diff --git a/.eslintignore b/.eslintignore index 76add87..202fe05 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ -node_modules -dist \ No newline at end of file +**/node_modules/** +*.d.ts +*.js diff --git a/.gitignore b/.gitignore index fc878f0..226205f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ # Vite default settings node_modules .DS_Store -dist dist-ssr *.local diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..2063ae1 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,7 @@ +{ + "src/index.ts": { + "file": "my-lib.umd.cjs", + "isEntry": true, + "src": "src/index.ts" + } +} \ No newline at end of file diff --git a/dist/my-lib.js b/dist/my-lib.js new file mode 100644 index 0000000..20200ae --- /dev/null +++ b/dist/my-lib.js @@ -0,0 +1,32757 @@ +var extendStatics = function(J, e) { + return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, O) { + _.__proto__ = O; + } || function(_, O) { + for (var A in O) + Object.prototype.hasOwnProperty.call(O, A) && (_[A] = O[A]); + }, extendStatics(J, e); +}; +function __extends(J, e) { + if (typeof e != "function" && e !== null) + throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); + extendStatics(J, e); + function _() { + this.constructor = J; + } + J.prototype = e === null ? Object.create(e) : (_.prototype = e.prototype, new _()); +} +function __awaiter(J, e, _, O) { + function A(k) { + return k instanceof _ ? k : new _(function(b) { + b(k); + }); + } + return new (_ || (_ = Promise))(function(k, b) { + function a(d) { + try { + u(O.next(d)); + } catch (s) { + b(s); + } + } + function t(d) { + try { + u(O.throw(d)); + } catch (s) { + b(s); + } + } + function u(d) { + d.done ? k(d.value) : A(d.value).then(a, t); + } + u((O = O.apply(J, e || [])).next()); + }); +} +function __generator(J, e) { + var _ = { label: 0, sent: function() { + if (k[0] & 1) + throw k[1]; + return k[1]; + }, trys: [], ops: [] }, O, A, k, b; + return b = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (b[Symbol.iterator] = function() { + return this; + }), b; + function a(u) { + return function(d) { + return t([u, d]); + }; + } + function t(u) { + if (O) + throw new TypeError("Generator is already executing."); + for (; b && (b = 0, u[0] && (_ = 0)), _; ) + try { + if (O = 1, A && (k = u[0] & 2 ? A.return : u[0] ? A.throw || ((k = A.return) && k.call(A), 0) : A.next) && !(k = k.call(A, u[1])).done) + return k; + switch (A = 0, k && (u = [u[0] & 2, k.value]), u[0]) { + case 0: + case 1: + k = u; + break; + case 4: + return _.label++, { value: u[1], done: !1 }; + case 5: + _.label++, A = u[1], u = [0]; + continue; + case 7: + u = _.ops.pop(), _.trys.pop(); + continue; + default: + if (k = _.trys, !(k = k.length > 0 && k[k.length - 1]) && (u[0] === 6 || u[0] === 2)) { + _ = 0; + continue; + } + if (u[0] === 3 && (!k || u[1] > k[0] && u[1] < k[3])) { + _.label = u[1]; + break; + } + if (u[0] === 6 && _.label < k[1]) { + _.label = k[1], k = u; + break; + } + if (k && _.label < k[2]) { + _.label = k[2], _.ops.push(u); + break; + } + k[2] && _.ops.pop(), _.trys.pop(); + continue; + } + u = e.call(J, _); + } catch (d) { + u = [6, d], A = 0; + } finally { + O = k = 0; + } + if (u[0] & 5) + throw u[1]; + return { value: u[0] ? u[1] : void 0, done: !0 }; + } +} +function __values(J) { + var e = typeof Symbol == "function" && Symbol.iterator, _ = e && J[e], O = 0; + if (_) + return _.call(J); + if (J && typeof J.length == "number") + return { + next: function() { + return J && O >= J.length && (J = void 0), { value: J && J[O++], done: !J }; + } + }; + throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); +} +function __read(J, e) { + var _ = typeof Symbol == "function" && J[Symbol.iterator]; + if (!_) + return J; + var O = _.call(J), A, k = [], b; + try { + for (; (e === void 0 || e-- > 0) && !(A = O.next()).done; ) + k.push(A.value); + } catch (a) { + b = { error: a }; + } finally { + try { + A && !A.done && (_ = O.return) && _.call(O); + } finally { + if (b) + throw b.error; + } + } + return k; +} +function __spreadArray(J, e, _) { + if (_ || arguments.length === 2) + for (var O = 0, A = e.length, k; O < A; O++) + (k || !(O in e)) && (k || (k = Array.prototype.slice.call(e, 0, O)), k[O] = e[O]); + return J.concat(k || Array.prototype.slice.call(e)); +} +function __await(J) { + return this instanceof __await ? (this.v = J, this) : new __await(J); +} +function __asyncGenerator(J, e, _) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var O = _.apply(J, e || []), A, k = []; + return A = {}, b("next"), b("throw"), b("return"), A[Symbol.asyncIterator] = function() { + return this; + }, A; + function b(r) { + O[r] && (A[r] = function(n) { + return new Promise(function(o, i) { + k.push([r, n, o, i]) > 1 || a(r, n); + }); + }); + } + function a(r, n) { + try { + t(O[r](n)); + } catch (o) { + s(k[0][3], o); + } + } + function t(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(u, d) : s(k[0][2], r); + } + function u(r) { + a("next", r); + } + function d(r) { + a("throw", r); + } + function s(r, n) { + r(n), k.shift(), k.length && a(k[0][0], k[0][1]); + } +} +function __asyncValues(J) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var e = J[Symbol.asyncIterator], _; + return e ? e.call(J) : (J = typeof __values == "function" ? __values(J) : J[Symbol.iterator](), _ = {}, O("next"), O("throw"), O("return"), _[Symbol.asyncIterator] = function() { + return this; + }, _); + function O(k) { + _[k] = J[k] && function(b) { + return new Promise(function(a, t) { + b = J[k](b), A(a, t, b.done, b.value); + }); + }; + } + function A(k, b, a, t) { + Promise.resolve(t).then(function(u) { + k({ value: u, done: a }); + }, b); + } +} +typeof SuppressedError == "function" && SuppressedError; +function isFunction(J) { + return typeof J == "function"; +} +function createErrorClass(J) { + var e = function(O) { + Error.call(O), O.stack = new Error().stack; + }, _ = J(e); + return _.prototype = Object.create(Error.prototype), _.prototype.constructor = _, _; +} +var UnsubscriptionError = createErrorClass(function(J) { + return function(_) { + J(this), this.message = _ ? _.length + ` errors occurred during unsubscription: +` + _.map(function(O, A) { + return A + 1 + ") " + O.toString(); + }).join(` + `) : "", this.name = "UnsubscriptionError", this.errors = _; + }; +}); +function arrRemove(J, e) { + if (J) { + var _ = J.indexOf(e); + 0 <= _ && J.splice(_, 1); + } +} +var Subscription = function() { + function J(e) { + this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null; + } + return J.prototype.unsubscribe = function() { + var e, _, O, A, k; + if (!this.closed) { + this.closed = !0; + var b = this._parentage; + if (b) + if (this._parentage = null, Array.isArray(b)) + try { + for (var a = __values(b), t = a.next(); !t.done; t = a.next()) { + var u = t.value; + u.remove(this); + } + } catch (i) { + e = { error: i }; + } finally { + try { + t && !t.done && (_ = a.return) && _.call(a); + } finally { + if (e) + throw e.error; + } + } + else + b.remove(this); + var d = this.initialTeardown; + if (isFunction(d)) + try { + d(); + } catch (i) { + k = i instanceof UnsubscriptionError ? i.errors : [i]; + } + var s = this._finalizers; + if (s) { + this._finalizers = null; + try { + for (var r = __values(s), n = r.next(); !n.done; n = r.next()) { + var o = n.value; + try { + execFinalizer(o); + } catch (i) { + k = k ?? [], i instanceof UnsubscriptionError ? k = __spreadArray(__spreadArray([], __read(k)), __read(i.errors)) : k.push(i); + } + } + } catch (i) { + O = { error: i }; + } finally { + try { + n && !n.done && (A = r.return) && A.call(r); + } finally { + if (O) + throw O.error; + } + } + } + if (k) + throw new UnsubscriptionError(k); + } + }, J.prototype.add = function(e) { + var _; + if (e && e !== this) + if (this.closed) + execFinalizer(e); + else { + if (e instanceof J) { + if (e.closed || e._hasParent(this)) + return; + e._addParent(this); + } + (this._finalizers = (_ = this._finalizers) !== null && _ !== void 0 ? _ : []).push(e); + } + }, J.prototype._hasParent = function(e) { + var _ = this._parentage; + return _ === e || Array.isArray(_) && _.includes(e); + }, J.prototype._addParent = function(e) { + var _ = this._parentage; + this._parentage = Array.isArray(_) ? (_.push(e), _) : _ ? [_, e] : e; + }, J.prototype._removeParent = function(e) { + var _ = this._parentage; + _ === e ? this._parentage = null : Array.isArray(_) && arrRemove(_, e); + }, J.prototype.remove = function(e) { + var _ = this._finalizers; + _ && arrRemove(_, e), e instanceof J && e._removeParent(this); + }, J.EMPTY = function() { + var e = new J(); + return e.closed = !0, e; + }(), J; +}(); +Subscription.EMPTY; +function isSubscription(J) { + return J instanceof Subscription || J && "closed" in J && isFunction(J.remove) && isFunction(J.add) && isFunction(J.unsubscribe); +} +function execFinalizer(J) { + isFunction(J) ? J() : J.unsubscribe(); +} +var config = { + onUnhandledError: null, + onStoppedNotification: null, + Promise: void 0, + useDeprecatedSynchronousErrorHandling: !1, + useDeprecatedNextContext: !1 +}, timeoutProvider = { + setTimeout: function(J, e) { + for (var _ = [], O = 2; O < arguments.length; O++) + _[O - 2] = arguments[O]; + var A = timeoutProvider.delegate; + return A != null && A.setTimeout ? A.setTimeout.apply(A, __spreadArray([J, e], __read(_))) : setTimeout.apply(void 0, __spreadArray([J, e], __read(_))); + }, + clearTimeout: function(J) { + var e = timeoutProvider.delegate; + return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(J); + }, + delegate: void 0 +}; +function reportUnhandledError(J) { + timeoutProvider.setTimeout(function() { + throw J; + }); +} +function noop() { +} +function errorContext(J) { + J(); +} +var Subscriber = function(J) { + __extends(e, J); + function e(_) { + var O = J.call(this) || this; + return O.isStopped = !1, _ ? (O.destination = _, isSubscription(_) && _.add(O)) : O.destination = EMPTY_OBSERVER, O; + } + return e.create = function(_, O, A) { + return new SafeSubscriber(_, O, A); + }, e.prototype.next = function(_) { + this.isStopped || this._next(_); + }, e.prototype.error = function(_) { + this.isStopped || (this.isStopped = !0, this._error(_)); + }, e.prototype.complete = function() { + this.isStopped || (this.isStopped = !0, this._complete()); + }, e.prototype.unsubscribe = function() { + this.closed || (this.isStopped = !0, J.prototype.unsubscribe.call(this), this.destination = null); + }, e.prototype._next = function(_) { + this.destination.next(_); + }, e.prototype._error = function(_) { + try { + this.destination.error(_); + } finally { + this.unsubscribe(); + } + }, e.prototype._complete = function() { + try { + this.destination.complete(); + } finally { + this.unsubscribe(); + } + }, e; +}(Subscription), _bind = Function.prototype.bind; +function bind(J, e) { + return _bind.call(J, e); +} +var ConsumerObserver = function() { + function J(e) { + this.partialObserver = e; + } + return J.prototype.next = function(e) { + var _ = this.partialObserver; + if (_.next) + try { + _.next(e); + } catch (O) { + handleUnhandledError(O); + } + }, J.prototype.error = function(e) { + var _ = this.partialObserver; + if (_.error) + try { + _.error(e); + } catch (O) { + handleUnhandledError(O); + } + else + handleUnhandledError(e); + }, J.prototype.complete = function() { + var e = this.partialObserver; + if (e.complete) + try { + e.complete(); + } catch (_) { + handleUnhandledError(_); + } + }, J; +}(), SafeSubscriber = function(J) { + __extends(e, J); + function e(_, O, A) { + var k = J.call(this) || this, b; + if (isFunction(_) || !_) + b = { + next: _ ?? void 0, + error: O ?? void 0, + complete: A ?? void 0 + }; + else { + var a; + k && config.useDeprecatedNextContext ? (a = Object.create(_), a.unsubscribe = function() { + return k.unsubscribe(); + }, b = { + next: _.next && bind(_.next, a), + error: _.error && bind(_.error, a), + complete: _.complete && bind(_.complete, a) + }) : b = _; + } + return k.destination = new ConsumerObserver(b), k; + } + return e; +}(Subscriber); +function handleUnhandledError(J) { + reportUnhandledError(J); +} +function defaultErrorHandler(J) { + throw J; +} +var EMPTY_OBSERVER = { + closed: !0, + next: noop, + error: defaultErrorHandler, + complete: noop +}, observable = function() { + return typeof Symbol == "function" && Symbol.observable || "@@observable"; +}(); +function identity(J) { + return J; +} +function pipeFromArray(J) { + return J.length === 0 ? identity : J.length === 1 ? J[0] : function(_) { + return J.reduce(function(O, A) { + return A(O); + }, _); + }; +} +var Observable = function() { + function J(e) { + e && (this._subscribe = e); + } + return J.prototype.lift = function(e) { + var _ = new J(); + return _.source = this, _.operator = e, _; + }, J.prototype.subscribe = function(e, _, O) { + var A = this, k = isSubscriber(e) ? e : new SafeSubscriber(e, _, O); + return errorContext(function() { + var b = A, a = b.operator, t = b.source; + k.add(a ? a.call(k, t) : t ? A._subscribe(k) : A._trySubscribe(k)); + }), k; + }, J.prototype._trySubscribe = function(e) { + try { + return this._subscribe(e); + } catch (_) { + e.error(_); + } + }, J.prototype.forEach = function(e, _) { + var O = this; + return _ = getPromiseCtor(_), new _(function(A, k) { + var b = new SafeSubscriber({ + next: function(a) { + try { + e(a); + } catch (t) { + k(t), b.unsubscribe(); + } + }, + error: k, + complete: A + }); + O.subscribe(b); + }); + }, J.prototype._subscribe = function(e) { + var _; + return (_ = this.source) === null || _ === void 0 ? void 0 : _.subscribe(e); + }, J.prototype[observable] = function() { + return this; + }, J.prototype.pipe = function() { + for (var e = [], _ = 0; _ < arguments.length; _++) + e[_] = arguments[_]; + return pipeFromArray(e)(this); + }, J.prototype.toPromise = function(e) { + var _ = this; + return e = getPromiseCtor(e), new e(function(O, A) { + var k; + _.subscribe(function(b) { + return k = b; + }, function(b) { + return A(b); + }, function() { + return O(k); + }); + }); + }, J.create = function(e) { + return new J(e); + }, J; +}(); +function getPromiseCtor(J) { + var e; + return (e = J ?? config.Promise) !== null && e !== void 0 ? e : Promise; +} +function isObserver(J) { + return J && isFunction(J.next) && isFunction(J.error) && isFunction(J.complete); +} +function isSubscriber(J) { + return J && J instanceof Subscriber || isObserver(J) && isSubscription(J); +} +function hasLift(J) { + return isFunction(J == null ? void 0 : J.lift); +} +function operate(J) { + return function(e) { + if (hasLift(e)) + return e.lift(function(_) { + try { + return J(_, this); + } catch (O) { + this.error(O); + } + }); + throw new TypeError("Unable to lift unknown Observable type"); + }; +} +function createOperatorSubscriber(J, e, _, O, A) { + return new OperatorSubscriber(J, e, _, O, A); +} +var OperatorSubscriber = function(J) { + __extends(e, J); + function e(_, O, A, k, b, a) { + var t = J.call(this, _) || this; + return t.onFinalize = b, t.shouldUnsubscribe = a, t._next = O ? function(u) { + try { + O(u); + } catch (d) { + _.error(d); + } + } : J.prototype._next, t._error = k ? function(u) { + try { + k(u); + } catch (d) { + _.error(d); + } finally { + this.unsubscribe(); + } + } : J.prototype._error, t._complete = A ? function() { + try { + A(); + } catch (u) { + _.error(u); + } finally { + this.unsubscribe(); + } + } : J.prototype._complete, t; + } + return e.prototype.unsubscribe = function() { + var _; + if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { + var O = this.closed; + J.prototype.unsubscribe.call(this), !O && ((_ = this.onFinalize) === null || _ === void 0 || _.call(this)); + } + }, e; +}(Subscriber), EMPTY = new Observable(function(J) { + return J.complete(); +}); +function isScheduler(J) { + return J && isFunction(J.schedule); +} +function last(J) { + return J[J.length - 1]; +} +function popScheduler(J) { + return isScheduler(last(J)) ? J.pop() : void 0; +} +var isArrayLike = function(J) { + return J && typeof J.length == "number" && typeof J != "function"; +}; +function isPromise(J) { + return isFunction(J == null ? void 0 : J.then); +} +function isInteropObservable(J) { + return isFunction(J[observable]); +} +function isAsyncIterable(J) { + return Symbol.asyncIterator && isFunction(J == null ? void 0 : J[Symbol.asyncIterator]); +} +function createInvalidObservableTypeError(J) { + return new TypeError("You provided " + (J !== null && typeof J == "object" ? "an invalid object" : "'" + J + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); +} +function getSymbolIterator() { + return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator; +} +var iterator = getSymbolIterator(); +function isIterable(J) { + return isFunction(J == null ? void 0 : J[iterator]); +} +function readableStreamLikeToAsyncGenerator(J) { + return __asyncGenerator(this, arguments, function() { + var _, O, A, k; + return __generator(this, function(b) { + switch (b.label) { + case 0: + _ = J.getReader(), b.label = 1; + case 1: + b.trys.push([1, , 9, 10]), b.label = 2; + case 2: + return [4, __await(_.read())]; + case 3: + return O = b.sent(), A = O.value, k = O.done, k ? [4, __await(void 0)] : [3, 5]; + case 4: + return [2, b.sent()]; + case 5: + return [4, __await(A)]; + case 6: + return [4, b.sent()]; + case 7: + return b.sent(), [3, 2]; + case 8: + return [3, 10]; + case 9: + return _.releaseLock(), [7]; + case 10: + return [2]; + } + }); + }); +} +function isReadableStreamLike(J) { + return isFunction(J == null ? void 0 : J.getReader); +} +function innerFrom(J) { + if (J instanceof Observable) + return J; + if (J != null) { + if (isInteropObservable(J)) + return fromInteropObservable(J); + if (isArrayLike(J)) + return fromArrayLike(J); + if (isPromise(J)) + return fromPromise(J); + if (isAsyncIterable(J)) + return fromAsyncIterable(J); + if (isIterable(J)) + return fromIterable(J); + if (isReadableStreamLike(J)) + return fromReadableStreamLike(J); + } + throw createInvalidObservableTypeError(J); +} +function fromInteropObservable(J) { + return new Observable(function(e) { + var _ = J[observable](); + if (isFunction(_.subscribe)) + return _.subscribe(e); + throw new TypeError("Provided object does not correctly implement Symbol.observable"); + }); +} +function fromArrayLike(J) { + return new Observable(function(e) { + for (var _ = 0; _ < J.length && !e.closed; _++) + e.next(J[_]); + e.complete(); + }); +} +function fromPromise(J) { + return new Observable(function(e) { + J.then(function(_) { + e.closed || (e.next(_), e.complete()); + }, function(_) { + return e.error(_); + }).then(null, reportUnhandledError); + }); +} +function fromIterable(J) { + return new Observable(function(e) { + var _, O; + try { + for (var A = __values(J), k = A.next(); !k.done; k = A.next()) { + var b = k.value; + if (e.next(b), e.closed) + return; + } + } catch (a) { + _ = { error: a }; + } finally { + try { + k && !k.done && (O = A.return) && O.call(A); + } finally { + if (_) + throw _.error; + } + } + e.complete(); + }); +} +function fromAsyncIterable(J) { + return new Observable(function(e) { + process(J, e).catch(function(_) { + return e.error(_); + }); + }); +} +function fromReadableStreamLike(J) { + return fromAsyncIterable(readableStreamLikeToAsyncGenerator(J)); +} +function process(J, e) { + var _, O, A, k; + return __awaiter(this, void 0, void 0, function() { + var b, a; + return __generator(this, function(t) { + switch (t.label) { + case 0: + t.trys.push([0, 5, 6, 11]), _ = __asyncValues(J), t.label = 1; + case 1: + return [4, _.next()]; + case 2: + if (O = t.sent(), !!O.done) + return [3, 4]; + if (b = O.value, e.next(b), e.closed) + return [2]; + t.label = 3; + case 3: + return [3, 1]; + case 4: + return [3, 11]; + case 5: + return a = t.sent(), A = { error: a }, [3, 11]; + case 6: + return t.trys.push([6, , 9, 10]), O && !O.done && (k = _.return) ? [4, k.call(_)] : [3, 8]; + case 7: + t.sent(), t.label = 8; + case 8: + return [3, 10]; + case 9: + if (A) + throw A.error; + return [7]; + case 10: + return [7]; + case 11: + return e.complete(), [2]; + } + }); + }); +} +function executeSchedule(J, e, _, O, A) { + O === void 0 && (O = 0), A === void 0 && (A = !1); + var k = e.schedule(function() { + _(), A ? J.add(this.schedule(null, O)) : this.unsubscribe(); + }, O); + if (J.add(k), !A) + return k; +} +function observeOn(J, e) { + return e === void 0 && (e = 0), operate(function(_, O) { + _.subscribe(createOperatorSubscriber(O, function(A) { + return executeSchedule(O, J, function() { + return O.next(A); + }, e); + }, function() { + return executeSchedule(O, J, function() { + return O.complete(); + }, e); + }, function(A) { + return executeSchedule(O, J, function() { + return O.error(A); + }, e); + })); + }); +} +function subscribeOn(J, e) { + return e === void 0 && (e = 0), operate(function(_, O) { + O.add(J.schedule(function() { + return _.subscribe(O); + }, e)); + }); +} +function scheduleObservable(J, e) { + return innerFrom(J).pipe(subscribeOn(e), observeOn(e)); +} +function schedulePromise(J, e) { + return innerFrom(J).pipe(subscribeOn(e), observeOn(e)); +} +function scheduleArray(J, e) { + return new Observable(function(_) { + var O = 0; + return e.schedule(function() { + O === J.length ? _.complete() : (_.next(J[O++]), _.closed || this.schedule()); + }); + }); +} +function scheduleIterable(J, e) { + return new Observable(function(_) { + var O; + return executeSchedule(_, e, function() { + O = J[iterator](), executeSchedule(_, e, function() { + var A, k, b; + try { + A = O.next(), k = A.value, b = A.done; + } catch (a) { + _.error(a); + return; + } + b ? _.complete() : _.next(k); + }, 0, !0); + }), function() { + return isFunction(O == null ? void 0 : O.return) && O.return(); + }; + }); +} +function scheduleAsyncIterable(J, e) { + if (!J) + throw new Error("Iterable cannot be null"); + return new Observable(function(_) { + executeSchedule(_, e, function() { + var O = J[Symbol.asyncIterator](); + executeSchedule(_, e, function() { + O.next().then(function(A) { + A.done ? _.complete() : _.next(A.value); + }); + }, 0, !0); + }); + }); +} +function scheduleReadableStreamLike(J, e) { + return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(J), e); +} +function scheduled(J, e) { + if (J != null) { + if (isInteropObservable(J)) + return scheduleObservable(J, e); + if (isArrayLike(J)) + return scheduleArray(J, e); + if (isPromise(J)) + return schedulePromise(J, e); + if (isAsyncIterable(J)) + return scheduleAsyncIterable(J, e); + if (isIterable(J)) + return scheduleIterable(J, e); + if (isReadableStreamLike(J)) + return scheduleReadableStreamLike(J, e); + } + throw createInvalidObservableTypeError(J); +} +function from(J, e) { + return e ? scheduled(J, e) : innerFrom(J); +} +function of() { + for (var J = [], e = 0; e < arguments.length; e++) + J[e] = arguments[e]; + var _ = popScheduler(J); + return from(J, _); +} +var EmptyError = createErrorClass(function(J) { + return function() { + J(this), this.name = "EmptyError", this.message = "no elements in sequence"; + }; +}); +function defer(J) { + return new Observable(function(e) { + innerFrom(J()).subscribe(e); + }); +} +function filter(J, e) { + return operate(function(_, O) { + var A = 0; + _.subscribe(createOperatorSubscriber(O, function(k) { + return J.call(e, k, A++) && O.next(k); + })); + }); +} +function catchError(J) { + return operate(function(e, _) { + var O = null, A = !1, k; + O = e.subscribe(createOperatorSubscriber(_, void 0, void 0, function(b) { + k = innerFrom(J(b, catchError(J)(e))), O ? (O.unsubscribe(), O = null, k.subscribe(_)) : A = !0; + })), A && (O.unsubscribe(), O = null, k.subscribe(_)); + }); +} +function defaultIfEmpty(J) { + return operate(function(e, _) { + var O = !1; + e.subscribe(createOperatorSubscriber(_, function(A) { + O = !0, _.next(A); + }, function() { + O || _.next(J), _.complete(); + })); + }); +} +function take(J) { + return J <= 0 ? function() { + return EMPTY; + } : operate(function(e, _) { + var O = 0; + e.subscribe(createOperatorSubscriber(_, function(A) { + ++O <= J && (_.next(A), J <= O && _.complete()); + })); + }); +} +function throwIfEmpty(J) { + return J === void 0 && (J = defaultErrorFactory), operate(function(e, _) { + var O = !1; + e.subscribe(createOperatorSubscriber(_, function(A) { + O = !0, _.next(A); + }, function() { + return O ? _.complete() : _.error(J()); + })); + }); +} +function defaultErrorFactory() { + return new EmptyError(); +} +function first(J, e) { + var _ = arguments.length >= 2; + return function(O) { + return O.pipe(J ? filter(function(A, k) { + return J(A, k, O); + }) : identity, take(1), _ ? defaultIfEmpty(e) : throwIfEmpty(function() { + return new EmptyError(); + })); + }; +} +function switchMap(J, e) { + return operate(function(_, O) { + var A = null, k = 0, b = !1, a = function() { + return b && !A && O.complete(); + }; + _.subscribe(createOperatorSubscriber(O, function(t) { + A == null || A.unsubscribe(); + var u = 0, d = k++; + innerFrom(J(t, d)).subscribe(A = createOperatorSubscriber(O, function(s) { + return O.next(e ? e(t, s, d, u++) : s); + }, function() { + A = null, a(); + })); + }, function() { + b = !0, a(); + })); + }); +} +function tap(J, e, _) { + var O = isFunction(J) || e || _ ? { next: J, error: e, complete: _ } : J; + return O ? operate(function(A, k) { + var b; + (b = O.subscribe) === null || b === void 0 || b.call(O); + var a = !0; + A.subscribe(createOperatorSubscriber(k, function(t) { + var u; + (u = O.next) === null || u === void 0 || u.call(O, t), k.next(t); + }, function() { + var t; + a = !1, (t = O.complete) === null || t === void 0 || t.call(O), k.complete(); + }, function(t) { + var u; + a = !1, (u = O.error) === null || u === void 0 || u.call(O, t), k.error(t); + }, function() { + var t, u; + a && ((t = O.unsubscribe) === null || t === void 0 || t.call(O)), (u = O.finalize) === null || u === void 0 || u.call(O); + })); + }) : identity; +} +var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, browser = { exports: {} }; +/*! For license information please see browser.js.LICENSE.txt */ +(function(module, exports) { + (function(J, e) { + module.exports = e(); + })(commonjsGlobal, () => (() => { + var __webpack_modules__ = { 7768: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromAscii = e.toAscii = void 0, e.toAscii = function(_) { + return Uint8Array.from(_.split("").map((O) => { + const A = O.charCodeAt(0); + if (A < 32 || A > 126) + throw new Error("Cannot encode character that is out of printable ASCII range: " + A); + return A; + })); + }, e.fromAscii = function(_) { + return (O = Array.from(_), O.map((A) => { + if (A < 32 || A > 126) + throw new Error("Cannot decode character that is out of printable ASCII range: " + A); + return String.fromCharCode(A); + })).join(""); + var O; + }; + }, 3431: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromBase64 = e.toBase64 = void 0; + const b = k(_(9742)); + e.toBase64 = function(a) { + return b.fromByteArray(a); + }, e.fromBase64 = function(a) { + if (!a.match(/^[a-zA-Z0-9+/]*={0,2}$/)) + throw new Error("Invalid base64 string format"); + return b.toByteArray(a); + }; + }, 5438: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Bech32 = void 0; + const b = k(_(3235)); + e.Bech32 = class { + static encode(a, t, u) { + return b.encode(a, b.toWords(t), u); + } + static decode(a, t = 1 / 0) { + const u = b.decode(a, t); + return { prefix: u.prefix, data: new Uint8Array(b.fromWords(u.words)) }; + } + }; + }, 6135: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromHex = e.toHex = void 0, e.toHex = function(_) { + let O = ""; + for (const A of _) + O += ("0" + A.toString(16)).slice(-2); + return O; + }, e.fromHex = function(_) { + if (_.length % 2 != 0) + throw new Error("hex string length must be a multiple of 2"); + const O = []; + for (let A = 0; A < _.length; A += 2) { + const k = _.substr(A, 2); + if (!k.match(/[0-9a-f]{2}/i)) + throw new Error("hex string contains invalid characters"); + O.push(parseInt(k, 16)); + } + return new Uint8Array(O); + }; + }, 8972: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.toUtf8 = e.fromUtf8 = e.toRfc3339 = e.fromRfc3339 = e.toHex = e.fromHex = e.Bech32 = e.toBase64 = e.fromBase64 = e.toAscii = e.fromAscii = void 0; + var O = _(7768); + Object.defineProperty(e, "fromAscii", { enumerable: !0, get: function() { + return O.fromAscii; + } }), Object.defineProperty(e, "toAscii", { enumerable: !0, get: function() { + return O.toAscii; + } }); + var A = _(3431); + Object.defineProperty(e, "fromBase64", { enumerable: !0, get: function() { + return A.fromBase64; + } }), Object.defineProperty(e, "toBase64", { enumerable: !0, get: function() { + return A.toBase64; + } }); + var k = _(5438); + Object.defineProperty(e, "Bech32", { enumerable: !0, get: function() { + return k.Bech32; + } }); + var b = _(6135); + Object.defineProperty(e, "fromHex", { enumerable: !0, get: function() { + return b.fromHex; + } }), Object.defineProperty(e, "toHex", { enumerable: !0, get: function() { + return b.toHex; + } }); + var a = _(7310); + Object.defineProperty(e, "fromRfc3339", { enumerable: !0, get: function() { + return a.fromRfc3339; + } }), Object.defineProperty(e, "toRfc3339", { enumerable: !0, get: function() { + return a.toRfc3339; + } }); + var t = _(6081); + Object.defineProperty(e, "fromUtf8", { enumerable: !0, get: function() { + return t.fromUtf8; + } }), Object.defineProperty(e, "toUtf8", { enumerable: !0, get: function() { + return t.toUtf8; + } }); + }, 7310: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.toRfc3339 = e.fromRfc3339 = void 0; + const _ = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/; + function O(A, k = 2) { + const b = "00000" + A.toString(); + return b.substring(b.length - k); + } + e.fromRfc3339 = function(A) { + const k = _.exec(A); + if (!k) + throw new Error("Date string is not in RFC3339 format"); + const b = +k[1], a = +k[2], t = +k[3], u = +k[4], d = +k[5], s = +k[6], r = k[7] ? Math.floor(1e3 * +k[7]) : 0; + let n, o, i; + k[8] === "Z" ? (n = 1, o = 0, i = 0) : (n = k[8].substring(0, 1) === "-" ? -1 : 1, o = +k[8].substring(1, 3), i = +k[8].substring(4, 6)); + const f = n * (60 * o + i) * 60, c = Date.UTC(b, a - 1, t, u, d, s, r) - 1e3 * f; + return new Date(c); + }, e.toRfc3339 = function(A) { + return `${A.getUTCFullYear()}-${O(A.getUTCMonth() + 1)}-${O(A.getUTCDate())}T${O(A.getUTCHours())}:${O(A.getUTCMinutes())}:${O(A.getUTCSeconds())}.${O(A.getUTCMilliseconds(), 3)}Z`; + }; + }, 6081: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromUtf8 = e.toUtf8 = void 0, e.toUtf8 = function(_) { + return new TextEncoder().encode(_); + }, e.fromUtf8 = function(_) { + return new TextDecoder("utf-8", { fatal: !0 }).decode(_); + }; + }, 3235: (J) => { + for (var e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", _ = {}, O = 0; O < 32; O++) { + var A = e.charAt(O); + if (_[A] !== void 0) + throw new TypeError(A + " is ambiguous"); + _[A] = O; + } + function k(u) { + var d = u >> 25; + return (33554431 & u) << 5 ^ 996825010 & -(d >> 0 & 1) ^ 642813549 & -(d >> 1 & 1) ^ 513874426 & -(d >> 2 & 1) ^ 1027748829 & -(d >> 3 & 1) ^ 705979059 & -(d >> 4 & 1); + } + function b(u) { + for (var d = 1, s = 0; s < u.length; ++s) { + var r = u.charCodeAt(s); + if (r < 33 || r > 126) + return "Invalid prefix (" + u + ")"; + d = k(d) ^ r >> 5; + } + for (d = k(d), s = 0; s < u.length; ++s) { + var n = u.charCodeAt(s); + d = k(d) ^ 31 & n; + } + return d; + } + function a(u, d) { + if (d = d || 90, u.length < 8) + return u + " too short"; + if (u.length > d) + return "Exceeds length limit"; + var s = u.toLowerCase(), r = u.toUpperCase(); + if (u !== s && u !== r) + return "Mixed-case string " + u; + var n = (u = s).lastIndexOf("1"); + if (n === -1) + return "No separator character for " + u; + if (n === 0) + return "Missing prefix for " + u; + var o = u.slice(0, n), i = u.slice(n + 1); + if (i.length < 6) + return "Data too short"; + var f = b(o); + if (typeof f == "string") + return f; + for (var c = [], h = 0; h < i.length; ++h) { + var p = i.charAt(h), m = _[p]; + if (m === void 0) + return "Unknown character " + p; + f = k(f) ^ m, h + 6 >= i.length || c.push(m); + } + return f !== 1 ? "Invalid checksum for " + u : { prefix: o, words: c }; + } + function t(u, d, s, r) { + for (var n = 0, o = 0, i = (1 << s) - 1, f = [], c = 0; c < u.length; ++c) + for (n = n << d | u[c], o += d; o >= s; ) + o -= s, f.push(n >> o & i); + if (r) + o > 0 && f.push(n << s - o & i); + else { + if (o >= d) + return "Excess padding"; + if (n << s - o & i) + return "Non-zero padding"; + } + return f; + } + J.exports = { decodeUnsafe: function() { + var u = a.apply(null, arguments); + if (typeof u == "object") + return u; + }, decode: function(u) { + var d = a.apply(null, arguments); + if (typeof d == "object") + return d; + throw new Error(d); + }, encode: function(u, d, s) { + if (s = s || 90, u.length + 7 + d.length > s) + throw new TypeError("Exceeds length limit"); + var r = b(u = u.toLowerCase()); + if (typeof r == "string") + throw new Error(r); + for (var n = u + "1", o = 0; o < d.length; ++o) { + var i = d[o]; + if (i >> 5) + throw new Error("Non 5-bit word"); + r = k(r) ^ i, n += e.charAt(i); + } + for (o = 0; o < 6; ++o) + r = k(r); + for (r ^= 1, o = 0; o < 6; ++o) + n += e.charAt(r >> 5 * (5 - o) & 31); + return n; + }, toWordsUnsafe: function(u) { + var d = t(u, 8, 5, !0); + if (Array.isArray(d)) + return d; + }, toWords: function(u) { + var d = t(u, 8, 5, !0); + if (Array.isArray(d)) + return d; + throw new Error(d); + }, fromWordsUnsafe: function(u) { + var d = t(u, 5, 8, !1); + if (Array.isArray(d)) + return d; + }, fromWords: function(u) { + var d = t(u, 5, 8, !1); + if (Array.isArray(d)) + return d; + throw new Error(d); + } }; + }, 7505: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.SHA2 = void 0; + const O = _(8089); + class A extends O.Hash { + constructor(b, a, t, u) { + super(), this.blockLen = b, this.outputLen = a, this.padOffset = t, this.isLE = u, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(b), this.view = (0, O.createView)(this.buffer); + } + update(b) { + if (this.destroyed) + throw new Error("instance is destroyed"); + const { view: a, buffer: t, blockLen: u, finished: d } = this; + if (d) + throw new Error("digest() was already called"); + const s = (b = (0, O.toBytes)(b)).length; + for (let r = 0; r < s; ) { + const n = Math.min(u - this.pos, s - r); + if (n !== u) + t.set(b.subarray(r, r + n), this.pos), this.pos += n, r += n, this.pos === u && (this.process(a, 0), this.pos = 0); + else { + const o = (0, O.createView)(b); + for (; u <= s - r; r += u) + this.process(o, r); + } + } + return this.length += b.length, this.roundClean(), this; + } + digestInto(b) { + if (this.destroyed) + throw new Error("instance is destroyed"); + if (!(b instanceof Uint8Array) || b.length < this.outputLen) + throw new Error("_Sha2: Invalid output buffer"); + if (this.finished) + throw new Error("digest() was already called"); + this.finished = !0; + const { buffer: a, view: t, blockLen: u, isLE: d } = this; + let { pos: s } = this; + a[s++] = 128, this.buffer.subarray(s).fill(0), this.padOffset > u - s && (this.process(t, 0), s = 0); + for (let n = s; n < u; n++) + a[n] = 0; + (function(n, o, i, f) { + if (typeof n.setBigUint64 == "function") + return n.setBigUint64(o, i, f); + const c = BigInt(32), h = BigInt(4294967295), p = Number(i >> c & h), m = Number(i & h), M = f ? 4 : 0, l = f ? 0 : 4; + n.setUint32(o + M, p, f), n.setUint32(o + l, m, f); + })(t, u - 8, BigInt(8 * this.length), d), this.process(t, 0); + const r = (0, O.createView)(b); + this.get().forEach((n, o) => r.setUint32(4 * o, n, d)); + } + digest() { + const { buffer: b, outputLen: a } = this; + this.digestInto(b); + const t = b.slice(0, a); + return this.destroy(), t; + } + _cloneInto(b) { + b || (b = new this.constructor()), b.set(...this.get()); + const { blockLen: a, buffer: t, length: u, finished: d, destroyed: s, pos: r } = this; + return b.length = u, b.pos = r, b.finished = d, b.destroyed = s, u % a && b.buffer.set(t), b; + } + } + e.SHA2 = A; + }, 6873: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.add5H = e.add5L = e.add4H = e.add4L = e.add3H = e.add3L = e.add = e.rotlBL = e.rotlBH = e.rotlSL = e.rotlSH = e.rotr32L = e.rotr32H = e.rotrBL = e.rotrBH = e.rotrSL = e.rotrSH = e.shrSL = e.shrSH = e.toBig = e.split = e.fromBig = void 0; + const _ = BigInt(2 ** 32 - 1), O = BigInt(32); + function A(k, b = !1) { + return b ? { h: Number(k & _), l: Number(k >> O & _) } : { h: 0 | Number(k >> O & _), l: 0 | Number(k & _) }; + } + e.fromBig = A, e.split = function(k, b = !1) { + let a = new Uint32Array(k.length), t = new Uint32Array(k.length); + for (let u = 0; u < k.length; u++) { + const { h: d, l: s } = A(k[u], b); + [a[u], t[u]] = [d, s]; + } + return [a, t]; + }, e.toBig = (k, b) => BigInt(k >>> 0) << O | BigInt(b >>> 0), e.shrSH = (k, b, a) => k >>> a, e.shrSL = (k, b, a) => k << 32 - a | b >>> a, e.rotrSH = (k, b, a) => k >>> a | b << 32 - a, e.rotrSL = (k, b, a) => k << 32 - a | b >>> a, e.rotrBH = (k, b, a) => k << 64 - a | b >>> a - 32, e.rotrBL = (k, b, a) => k >>> a - 32 | b << 64 - a, e.rotr32H = (k, b) => b, e.rotr32L = (k, b) => k, e.rotlSH = (k, b, a) => k << a | b >>> 32 - a, e.rotlSL = (k, b, a) => b << a | k >>> 32 - a, e.rotlBH = (k, b, a) => b << a - 32 | k >>> 64 - a, e.rotlBL = (k, b, a) => k << a - 32 | b >>> 64 - a, e.add = function(k, b, a, t) { + const u = (b >>> 0) + (t >>> 0); + return { h: k + a + (u / 4294967296 | 0) | 0, l: 0 | u }; + }, e.add3L = (k, b, a) => (k >>> 0) + (b >>> 0) + (a >>> 0), e.add3H = (k, b, a, t) => b + a + t + (k / 4294967296 | 0) | 0, e.add4L = (k, b, a, t) => (k >>> 0) + (b >>> 0) + (a >>> 0) + (t >>> 0), e.add4H = (k, b, a, t, u) => b + a + t + u + (k / 4294967296 | 0) | 0, e.add5L = (k, b, a, t, u) => (k >>> 0) + (b >>> 0) + (a >>> 0) + (t >>> 0) + (u >>> 0), e.add5H = (k, b, a, t, u, d) => b + a + t + u + d + (k / 4294967296 | 0) | 0; + }, 4421: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.crypto = void 0, e.crypto = { node: void 0, web: typeof self == "object" && "crypto" in self ? self.crypto : void 0 }; + }, 4330: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.hkdf = e.expand = e.extract = void 0; + const O = _(8089), A = _(9569); + function k(u, d, s) { + return (0, O.assertHash)(u), s === void 0 && (s = new Uint8Array(u.outputLen)), (0, A.hmac)(u, (0, O.toBytes)(s), (0, O.toBytes)(d)); + } + e.extract = k; + const b = new Uint8Array([0]), a = new Uint8Array(); + function t(u, d, s, r = 32) { + if ((0, O.assertHash)(u), (0, O.assertNumber)(r), r > 255 * u.outputLen) + throw new Error("Length should be <= 255*HashLen"); + const n = Math.ceil(r / u.outputLen); + s === void 0 && (s = a); + const o = new Uint8Array(n * u.outputLen), i = A.hmac.create(u, d), f = i._cloneInto(), c = new Uint8Array(i.outputLen); + for (let h = 0; h < n; h++) + b[0] = h + 1, f.update(h === 0 ? a : c).update(s).update(b).digestInto(c), o.set(c, u.outputLen * h), i._cloneInto(f); + return i.destroy(), f.destroy(), c.fill(0), b.fill(0), o.slice(0, r); + } + e.expand = t, e.hkdf = (u, d, s, r, n) => t(u, k(u, d, s), r, n); + }, 9569: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = void 0; + const O = _(8089); + class A extends O.Hash { + constructor(b, a) { + super(), this.finished = !1, this.destroyed = !1, (0, O.assertHash)(b); + const t = (0, O.toBytes)(a); + if (this.iHash = b.create(), !(this.iHash instanceof O.Hash)) + throw new TypeError("Expected instance of class which extends utils.Hash"); + const u = this.blockLen = this.iHash.blockLen; + this.outputLen = this.iHash.outputLen; + const d = new Uint8Array(u); + d.set(t.length > this.iHash.blockLen ? b.create().update(t).digest() : t); + for (let s = 0; s < d.length; s++) + d[s] ^= 54; + this.iHash.update(d), this.oHash = b.create(); + for (let s = 0; s < d.length; s++) + d[s] ^= 106; + this.oHash.update(d), d.fill(0); + } + update(b) { + if (this.destroyed) + throw new Error("instance is destroyed"); + return this.iHash.update(b), this; + } + digestInto(b) { + if (this.destroyed) + throw new Error("instance is destroyed"); + if (!(b instanceof Uint8Array) || b.length !== this.outputLen) + throw new Error("HMAC: Invalid output buffer"); + if (this.finished) + throw new Error("digest() was already called"); + this.finished = !0, this.iHash.digestInto(b), this.oHash.update(b), this.oHash.digestInto(b), this.destroy(); + } + digest() { + const b = new Uint8Array(this.oHash.outputLen); + return this.digestInto(b), b; + } + _cloneInto(b) { + b || (b = Object.create(Object.getPrototypeOf(this), {})); + const { oHash: a, iHash: t, finished: u, destroyed: d, blockLen: s, outputLen: r } = this; + return b.finished = u, b.destroyed = d, b.blockLen = s, b.outputLen = r, b.oHash = a._cloneInto(b.oHash), b.iHash = t._cloneInto(b.iHash), b; + } + destroy() { + this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy(); + } + } + e.hmac = (k, b, a) => new A(k, b).update(a).digest(), e.hmac.create = (k, b) => new A(k, b); + }, 830: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ripemd160 = e.RIPEMD160 = void 0; + const O = _(7505), A = _(8089), k = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), b = Uint8Array.from({ length: 16 }, (p, m) => m), a = b.map((p) => (9 * p + 5) % 16); + let t = [b], u = [a]; + for (let p = 0; p < 4; p++) + for (let m of [t, u]) + m.push(m[p].map((M) => k[M])); + const d = [[11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]].map((p) => new Uint8Array(p)), s = t.map((p, m) => p.map((M) => d[m][M])), r = u.map((p, m) => p.map((M) => d[m][M])), n = new Uint32Array([0, 1518500249, 1859775393, 2400959708, 2840853838]), o = new Uint32Array([1352829926, 1548603684, 1836072691, 2053994217, 0]), i = (p, m) => p << m | p >>> 32 - m; + function f(p, m, M, l) { + return p === 0 ? m ^ M ^ l : p === 1 ? m & M | ~m & l : p === 2 ? (m | ~M) ^ l : p === 3 ? m & l | M & ~l : m ^ (M | ~l); + } + const c = new Uint32Array(16); + class h extends O.SHA2 { + constructor() { + super(64, 20, 8, !0), this.h0 = 1732584193, this.h1 = -271733879, this.h2 = -1732584194, this.h3 = 271733878, this.h4 = -1009589776; + } + get() { + const { h0: m, h1: M, h2: l, h3: N, h4: j } = this; + return [m, M, l, N, j]; + } + set(m, M, l, N, j) { + this.h0 = 0 | m, this.h1 = 0 | M, this.h2 = 0 | l, this.h3 = 0 | N, this.h4 = 0 | j; + } + process(m, M) { + for (let U = 0; U < 16; U++, M += 4) + c[U] = m.getUint32(M, !0); + let l = 0 | this.h0, N = l, j = 0 | this.h1, R = j, I = 0 | this.h2, x = I, P = 0 | this.h3, w = P, g = 0 | this.h4, E = g; + for (let U = 0; U < 5; U++) { + const C = 4 - U, F = n[U], re = o[U], ee = t[U], ne = u[U], D = s[U], Z = r[U]; + for (let $ = 0; $ < 16; $++) { + const X = i(l + f(U, j, I, P) + c[ee[$]] + F, D[$]) + g | 0; + l = g, g = P, P = 0 | i(I, 10), I = j, j = X; + } + for (let $ = 0; $ < 16; $++) { + const X = i(N + f(C, R, x, w) + c[ne[$]] + re, Z[$]) + E | 0; + N = E, E = w, w = 0 | i(x, 10), x = R, R = X; + } + } + this.set(this.h1 + I + w | 0, this.h2 + P + E | 0, this.h3 + g + N | 0, this.h4 + l + R | 0, this.h0 + j + x | 0); + } + roundClean() { + c.fill(0); + } + destroy() { + this.destroyed = !0, this.buffer.fill(0), this.set(0, 0, 0, 0, 0); + } + } + e.RIPEMD160 = h, e.ripemd160 = (0, A.wrapConstructor)(() => new h()); + }, 3061: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.sha256 = void 0; + const O = _(7505), A = _(8089), k = (d, s, r) => d & s ^ d & r ^ s & r, b = 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]), a = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), t = new Uint32Array(64); + class u extends O.SHA2 { + constructor() { + super(64, 32, 8, !1), this.A = 0 | a[0], this.B = 0 | a[1], this.C = 0 | a[2], this.D = 0 | a[3], this.E = 0 | a[4], this.F = 0 | a[5], this.G = 0 | a[6], this.H = 0 | a[7]; + } + get() { + const { A: s, B: r, C: n, D: o, E: i, F: f, G: c, H: h } = this; + return [s, r, n, o, i, f, c, h]; + } + set(s, r, n, o, i, f, c, h) { + this.A = 0 | s, this.B = 0 | r, this.C = 0 | n, this.D = 0 | o, this.E = 0 | i, this.F = 0 | f, this.G = 0 | c, this.H = 0 | h; + } + process(s, r) { + for (let l = 0; l < 16; l++, r += 4) + t[l] = s.getUint32(r, !1); + for (let l = 16; l < 64; l++) { + const N = t[l - 15], j = t[l - 2], R = (0, A.rotr)(N, 7) ^ (0, A.rotr)(N, 18) ^ N >>> 3, I = (0, A.rotr)(j, 17) ^ (0, A.rotr)(j, 19) ^ j >>> 10; + t[l] = I + t[l - 7] + R + t[l - 16] | 0; + } + let { A: n, B: o, C: i, D: f, E: c, F: h, G: p, H: m } = this; + for (let l = 0; l < 64; l++) { + const N = m + ((0, A.rotr)(c, 6) ^ (0, A.rotr)(c, 11) ^ (0, A.rotr)(c, 25)) + ((M = c) & h ^ ~M & p) + b[l] + t[l] | 0, j = ((0, A.rotr)(n, 2) ^ (0, A.rotr)(n, 13) ^ (0, A.rotr)(n, 22)) + k(n, o, i) | 0; + m = p, p = h, h = c, c = f + N | 0, f = i, i = o, o = n, n = N + j | 0; + } + var M; + n = n + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, h = h + this.F | 0, p = p + this.G | 0, m = m + this.H | 0, this.set(n, o, i, f, c, h, p, m); + } + roundClean() { + t.fill(0); + } + destroy() { + this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0); + } + } + e.sha256 = (0, A.wrapConstructor)(() => new u()); + }, 5426: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(R, I, x, P) { + P === void 0 && (P = x), Object.defineProperty(R, P, { enumerable: !0, get: function() { + return I[x]; + } }); + } : function(R, I, x, P) { + P === void 0 && (P = x), R[P] = I[x]; + }), A = this && this.__setModuleDefault || (Object.create ? function(R, I) { + Object.defineProperty(R, "default", { enumerable: !0, value: I }); + } : function(R, I) { + R.default = I; + }), k = this && this.__importStar || function(R) { + if (R && R.__esModule) + return R; + var I = {}; + if (R != null) + for (var x in R) + x !== "default" && Object.prototype.hasOwnProperty.call(R, x) && O(I, R, x); + return A(I, R), I; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.shake256 = e.shake128 = e.keccak_512 = e.keccak_384 = e.keccak_256 = e.keccak_224 = e.sha3_512 = e.sha3_384 = e.sha3_256 = e.sha3_224 = e.Keccak = e.keccakP = void 0; + const b = k(_(6873)), a = _(8089), [t, u, d] = [[], [], []], s = BigInt(0), r = BigInt(1), n = BigInt(2), o = BigInt(7), i = BigInt(256), f = BigInt(113); + for (let R = 0, I = r, x = 1, P = 0; R < 24; R++) { + [x, P] = [P, (2 * x + 3 * P) % 5], t.push(2 * (5 * P + x)), u.push((R + 1) * (R + 2) / 2 % 64); + let w = s; + for (let g = 0; g < 7; g++) + I = (I << r ^ (I >> o) * f) % i, I & n && (w ^= r << (r << BigInt(g)) - r); + d.push(w); + } + const [c, h] = b.split(d, !0), p = (R, I, x) => x > 32 ? b.rotlBH(R, I, x) : b.rotlSH(R, I, x), m = (R, I, x) => x > 32 ? b.rotlBL(R, I, x) : b.rotlSL(R, I, x); + function M(R, I = 24) { + const x = new Uint32Array(10); + for (let P = 24 - I; P < 24; P++) { + for (let E = 0; E < 10; E++) + x[E] = R[E] ^ R[E + 10] ^ R[E + 20] ^ R[E + 30] ^ R[E + 40]; + for (let E = 0; E < 10; E += 2) { + const U = (E + 8) % 10, C = (E + 2) % 10, F = x[C], re = x[C + 1], ee = p(F, re, 1) ^ x[U], ne = m(F, re, 1) ^ x[U + 1]; + for (let D = 0; D < 50; D += 10) + R[E + D] ^= ee, R[E + D + 1] ^= ne; + } + let w = R[2], g = R[3]; + for (let E = 0; E < 24; E++) { + const U = u[E], C = p(w, g, U), F = m(w, g, U), re = t[E]; + w = R[re], g = R[re + 1], R[re] = C, R[re + 1] = F; + } + for (let E = 0; E < 50; E += 10) { + for (let U = 0; U < 10; U++) + x[U] = R[E + U]; + for (let U = 0; U < 10; U++) + R[E + U] ^= ~x[(U + 2) % 10] & x[(U + 4) % 10]; + } + R[0] ^= c[P], R[1] ^= h[P]; + } + x.fill(0); + } + e.keccakP = M; + class l extends a.Hash { + constructor(I, x, P, w = !1, g = 24) { + if (super(), this.blockLen = I, this.suffix = x, this.outputLen = P, this.enableXOF = w, this.rounds = g, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, (0, a.assertNumber)(P), 0 >= this.blockLen || this.blockLen >= 200) + throw new Error("Sha3 supports only keccak-f1600 function"); + this.state = new Uint8Array(200), this.state32 = (0, a.u32)(this.state); + } + keccak() { + M(this.state32, this.rounds), this.posOut = 0, this.pos = 0; + } + update(I) { + if (this.destroyed) + throw new Error("instance is destroyed"); + if (this.finished) + throw new Error("digest() was already called"); + const { blockLen: x, state: P } = this, w = (I = (0, a.toBytes)(I)).length; + for (let g = 0; g < w; ) { + const E = Math.min(x - this.pos, w - g); + for (let U = 0; U < E; U++) + P[this.pos++] ^= I[g++]; + this.pos === x && this.keccak(); + } + return this; + } + finish() { + if (this.finished) + return; + this.finished = !0; + const { state: I, suffix: x, pos: P, blockLen: w } = this; + I[P] ^= x, 128 & x && P === w - 1 && this.keccak(), I[w - 1] ^= 128, this.keccak(); + } + writeInto(I) { + if (this.destroyed) + throw new Error("instance is destroyed"); + if (!(I instanceof Uint8Array)) + throw new Error("Keccak: invalid output buffer"); + this.finish(); + for (let x = 0, P = I.length; x < P; ) { + this.posOut >= this.blockLen && this.keccak(); + const w = Math.min(this.blockLen - this.posOut, P - x); + I.set(this.state.subarray(this.posOut, this.posOut + w), x), this.posOut += w, x += w; + } + return I; + } + xofInto(I) { + if (!this.enableXOF) + throw new Error("XOF is not possible for this instance"); + return this.writeInto(I); + } + xof(I) { + return (0, a.assertNumber)(I), this.xofInto(new Uint8Array(I)); + } + digestInto(I) { + if (I.length < this.outputLen) + throw new Error("Keccak: invalid output buffer"); + if (this.finished) + throw new Error("digest() was already called"); + return this.finish(), this.writeInto(I), this.destroy(), I; + } + digest() { + return this.digestInto(new Uint8Array(this.outputLen)); + } + destroy() { + this.destroyed = !0, this.state.fill(0); + } + _cloneInto(I) { + const { blockLen: x, suffix: P, outputLen: w, rounds: g, enableXOF: E } = this; + return I || (I = new l(x, P, w, E, g)), I.state32.set(this.state32), I.pos = this.pos, I.posOut = this.posOut, I.finished = this.finished, I.rounds = g, I.suffix = P, I.outputLen = w, I.enableXOF = E, I.destroyed = this.destroyed, I; + } + } + e.Keccak = l; + const N = (R, I, x) => (0, a.wrapConstructor)(() => new l(I, R, x)); + e.sha3_224 = N(6, 144, 28), e.sha3_256 = N(6, 136, 32), e.sha3_384 = N(6, 104, 48), e.sha3_512 = N(6, 72, 64), e.keccak_224 = N(1, 144, 28), e.keccak_256 = N(1, 136, 32), e.keccak_384 = N(1, 104, 48), e.keccak_512 = N(1, 72, 64); + const j = (R, I, x) => (0, a.wrapConstructorWithOpts)((P = {}) => new l(I, R, P.dkLen !== void 0 ? P.dkLen : x, !0)); + e.shake128 = j(31, 168, 16), e.shake256 = j(31, 136, 32); + }, 8089: (J, e, _) => { + J = _.nmd(J), Object.defineProperty(e, "__esModule", { value: !0 }), e.randomBytes = e.wrapConstructorWithOpts = e.wrapConstructor = e.checkOpts = e.Hash = e.assertHash = e.assertBytes = e.assertBool = e.assertNumber = e.concatBytes = e.toBytes = e.utf8ToBytes = e.asyncLoop = e.nextTick = e.hexToBytes = e.bytesToHex = e.isLE = e.rotr = e.createView = e.u32 = e.u8 = void 0; + const O = _(4421); + if (e.u8 = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), e.u32 = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), e.createView = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), e.rotr = (t, u) => t << 32 - u | t >>> u, e.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, !e.isLE) + throw new Error("Non little-endian hardware is not supported"); + const A = Array.from({ length: 256 }, (t, u) => u.toString(16).padStart(2, "0")); + function k(t) { + if (typeof t != "string") + throw new TypeError("utf8ToBytes expected string, got " + typeof t); + return new TextEncoder().encode(t); + } + function b(t) { + if (typeof t == "string" && (t = k(t)), !(t instanceof Uint8Array)) + throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`); + return t; + } + function a(t) { + if (!Number.isSafeInteger(t) || t < 0) + throw new Error(`Wrong positive integer: ${t}`); + } + e.bytesToHex = function(t) { + let u = ""; + for (let d = 0; d < t.length; d++) + u += A[t[d]]; + return u; + }, e.hexToBytes = function(t) { + if (typeof t != "string") + throw new TypeError("hexToBytes: expected string, got " + typeof t); + if (t.length % 2) + throw new Error("hexToBytes: received invalid unpadded hex"); + const u = new Uint8Array(t.length / 2); + for (let d = 0; d < u.length; d++) { + const s = 2 * d, r = t.slice(s, s + 2), n = Number.parseInt(r, 16); + if (Number.isNaN(n)) + throw new Error("Invalid byte sequence"); + u[d] = n; + } + return u; + }, e.nextTick = (() => { + const t = typeof J.require == "function" && J.require.bind(J); + try { + if (t) { + const { setImmediate: u } = t("timers"); + return () => new Promise((d) => u(d)); + } + } catch { + } + return () => new Promise((u) => setTimeout(u, 0)); + })(), e.asyncLoop = async function(t, u, d) { + let s = Date.now(); + for (let r = 0; r < t; r++) { + d(r); + const n = Date.now() - s; + n >= 0 && n < u || (await (0, e.nextTick)(), s += n); + } + }, e.utf8ToBytes = k, e.toBytes = b, e.concatBytes = function(...t) { + if (!t.every((s) => s instanceof Uint8Array)) + throw new Error("Uint8Array list expected"); + if (t.length === 1) + return t[0]; + const u = t.reduce((s, r) => s + r.length, 0), d = new Uint8Array(u); + for (let s = 0, r = 0; s < t.length; s++) { + const n = t[s]; + d.set(n, r), r += n.length; + } + return d; + }, e.assertNumber = a, e.assertBool = function(t) { + if (typeof t != "boolean") + throw new Error(`Expected boolean, not ${t}`); + }, e.assertBytes = function(t, ...u) { + if (!(t instanceof Uint8Array) || u.length && !u.includes(t.length)) + throw new TypeError(`Expected ${u} bytes, not ${typeof t} with length=${t.length}`); + }, e.assertHash = function(t) { + if (typeof t != "function" || typeof t.create != "function") + throw new Error("Hash should be wrapped by utils.wrapConstructor"); + a(t.outputLen), a(t.blockLen); + }, e.Hash = class { + clone() { + return this._cloneInto(); + } + }, e.checkOpts = function(t, u) { + if (u !== void 0 && (typeof u != "object" || (d = u, Object.prototype.toString.call(d) !== "[object Object]" || d.constructor !== Object))) + throw new TypeError("Options should be object or undefined"); + var d; + return Object.assign(t, u); + }, e.wrapConstructor = function(t) { + const u = (s) => t().update(b(s)).digest(), d = t(); + return u.outputLen = d.outputLen, u.blockLen = d.blockLen, u.create = () => t(), u; + }, e.wrapConstructorWithOpts = function(t) { + const u = (s, r) => t(r).update(b(s)).digest(), d = t({}); + return u.outputLen = d.outputLen, u.blockLen = d.blockLen, u.create = (s) => t(s), u; + }, e.randomBytes = function(t = 32) { + if (O.crypto.web) + return O.crypto.web.getRandomValues(new Uint8Array(t)); + if (O.crypto.node) + return new Uint8Array(O.crypto.node.randomBytes(t).buffer); + throw new Error("The environment doesn't have randomBytes function"); + }; + }, 9656: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.utils = e.schnorr = e.verify = e.signSync = e.sign = e.getSharedSecret = e.recoverPublicKey = e.getPublicKey = e.Signature = e.Point = e.CURVE = void 0; + const O = _(9159), A = BigInt(0), k = BigInt(1), b = BigInt(2), a = BigInt(3), t = BigInt(8), u = Object.freeze({ a: A, b: BigInt(7), P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), h: k, Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"), Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"), beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee") }); + function d(Q) { + const { a: G, b: H } = u, ie = E(Q * Q), se = E(ie * Q); + return E(se + G * Q + H); + } + e.CURVE = u; + const s = u.a === A; + class r extends Error { + constructor(G) { + super(G); + } + } + class n { + constructor(G, H, ie) { + this.x = G, this.y = H, this.z = ie; + } + static fromAffine(G) { + if (!(G instanceof i)) + throw new TypeError("JacobianPoint#fromAffine: expected Point"); + return new n(G.x, G.y, k); + } + static toAffineBatch(G) { + const H = function(ie, se = u.P) { + const fe = new Array(ie.length), he = C(ie.reduce((ve, me, ge) => me === A ? ve : (fe[ge] = ve, E(ve * me, se)), k), se); + return ie.reduceRight((ve, me, ge) => me === A ? ve : (fe[ge] = E(ve * fe[ge], se), E(ve * me, se)), he), fe; + }(G.map((ie) => ie.z)); + return G.map((ie, se) => ie.toAffine(H[se])); + } + static normalizeZ(G) { + return n.toAffineBatch(G).map(n.fromAffine); + } + equals(G) { + if (!(G instanceof n)) + throw new TypeError("JacobianPoint expected"); + const { x: H, y: ie, z: se } = this, { x: fe, y: he, z: ve } = G, me = E(se * se), ge = E(ve * ve), ye = E(H * ge), Ee = E(fe * me), Ae = E(E(ie * ve) * ge), Pe = E(E(he * se) * me); + return ye === Ee && Ae === Pe; + } + negate() { + return new n(this.x, E(-this.y), this.z); + } + double() { + const { x: G, y: H, z: ie } = this, se = E(G * G), fe = E(H * H), he = E(fe * fe), ve = G + fe, me = E(b * (E(ve * ve) - se - he)), ge = E(a * se), ye = E(ge * ge), Ee = E(ye - b * me), Ae = E(ge * (me - Ee) - t * he), Pe = E(b * H * ie); + return new n(Ee, Ae, Pe); + } + add(G) { + if (!(G instanceof n)) + throw new TypeError("JacobianPoint expected"); + const { x: H, y: ie, z: se } = this, { x: fe, y: he, z: ve } = G; + if (fe === A || he === A) + return this; + if (H === A || ie === A) + return G; + const me = E(se * se), ge = E(ve * ve), ye = E(H * ge), Ee = E(fe * me), Ae = E(E(ie * ve) * ge), Pe = E(E(he * se) * me), ke = E(Ee - ye), xe = E(Pe - Ae); + if (ke === A) + return xe === A ? this.double() : n.ZERO; + const we = E(ke * ke), Se = E(ke * we), Re = E(ye * we), Oe = E(xe * xe - Se - b * Re), Me = E(xe * (Re - Oe) - Ae * Se), Te = E(se * ve * ke); + return new n(Oe, Me, Te); + } + subtract(G) { + return this.add(G.negate()); + } + multiplyUnsafe(G) { + const H = n.ZERO; + if (typeof G == "bigint" && G === A) + return H; + let ie = g(G); + if (ie === k) + return this; + if (!s) { + let Ee = H, Ae = this; + for (; ie > A; ) + ie & k && (Ee = Ee.add(Ae)), Ae = Ae.double(), ie >>= k; + return Ee; + } + let { k1neg: se, k1: fe, k2neg: he, k2: ve } = ee(ie), me = H, ge = H, ye = this; + for (; fe > A || ve > A; ) + fe & k && (me = me.add(ye)), ve & k && (ge = ge.add(ye)), ye = ye.double(), fe >>= k, ve >>= k; + return se && (me = me.negate()), he && (ge = ge.negate()), ge = new n(E(ge.x * u.beta), ge.y, ge.z), me.add(ge); + } + precomputeWindow(G) { + const H = s ? 128 / G + 1 : 256 / G + 1, ie = []; + let se = this, fe = se; + for (let he = 0; he < H; he++) { + fe = se, ie.push(fe); + for (let ve = 1; ve < 2 ** (G - 1); ve++) + fe = fe.add(se), ie.push(fe); + se = fe.double(); + } + return ie; + } + wNAF(G, H) { + !H && this.equals(n.BASE) && (H = i.BASE); + const ie = H && H._WINDOW_SIZE || 1; + if (256 % ie) + throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2"); + let se = H && o.get(H); + se || (se = this.precomputeWindow(ie), H && ie !== 1 && (se = n.normalizeZ(se), o.set(H, se))); + let fe = n.ZERO, he = n.ZERO; + const ve = 1 + (s ? 128 / ie : 256 / ie), me = 2 ** (ie - 1), ge = BigInt(2 ** ie - 1), ye = 2 ** ie, Ee = BigInt(ie); + for (let Ae = 0; Ae < ve; Ae++) { + const Pe = Ae * me; + let ke = Number(G & ge); + if (G >>= Ee, ke > me && (ke -= ye, G += k), ke === 0) { + let xe = se[Pe]; + Ae % 2 && (xe = xe.negate()), he = he.add(xe); + } else { + let xe = se[Pe + Math.abs(ke) - 1]; + ke < 0 && (xe = xe.negate()), fe = fe.add(xe); + } + } + return { p: fe, f: he }; + } + multiply(G, H) { + let ie, se, fe = g(G); + if (s) { + const { k1neg: he, k1: ve, k2neg: me, k2: ge } = ee(fe); + let { p: ye, f: Ee } = this.wNAF(ve, H), { p: Ae, f: Pe } = this.wNAF(ge, H); + he && (ye = ye.negate()), me && (Ae = Ae.negate()), Ae = new n(E(Ae.x * u.beta), Ae.y, Ae.z), ie = ye.add(Ae), se = Ee.add(Pe); + } else { + const { p: he, f: ve } = this.wNAF(fe, H); + ie = he, se = ve; + } + return n.normalizeZ([ie, se])[0]; + } + toAffine(G = C(this.z)) { + const { x: H, y: ie, z: se } = this, fe = G, he = E(fe * fe), ve = E(he * fe), me = E(H * he), ge = E(ie * ve); + if (E(se * fe) !== k) + throw new Error("invZ was invalid"); + return new i(me, ge); + } + } + n.BASE = new n(u.Gx, u.Gy, k), n.ZERO = new n(A, k, A); + const o = /* @__PURE__ */ new WeakMap(); + class i { + constructor(G, H) { + this.x = G, this.y = H; + } + _setWindowSize(G) { + this._WINDOW_SIZE = G, o.delete(this); + } + hasEvenY() { + return this.y % b === A; + } + static fromCompressedHex(G) { + const H = G.length === 32, ie = P(H ? G : G.subarray(1)); + if (!K(ie)) + throw new Error("Point is not on curve"); + let se = function(ve) { + const { P: me } = u, ge = BigInt(6), ye = BigInt(11), Ee = BigInt(22), Ae = BigInt(23), Pe = BigInt(44), ke = BigInt(88), xe = ve * ve * ve % me, we = xe * xe * ve % me, Se = U(we, a) * we % me, Re = U(Se, a) * we % me, Oe = U(Re, b) * xe % me, Me = U(Oe, ye) * Oe % me, Te = U(Me, Ee) * Me % me, Ne = U(Te, Pe) * Te % me, Ce = U(Ne, ke) * Ne % me, Be = U(Ce, Pe) * Te % me, Ie = U(Be, a) * we % me, je = U(Ie, Ae) * Me % me, De = U(je, ge) * xe % me; + return U(De, b); + }(d(ie)); + const fe = (se & k) === k; + H ? fe && (se = E(-se)) : (1 & G[0]) == 1 !== fe && (se = E(-se)); + const he = new i(ie, se); + return he.assertValidity(), he; + } + static fromUncompressedHex(G) { + const H = P(G.subarray(1, 33)), ie = P(G.subarray(33, 65)), se = new i(H, ie); + return se.assertValidity(), se; + } + static fromHex(G) { + const H = w(G), ie = H.length, se = H[0]; + if (ie === 32 || ie === 33 && (se === 2 || se === 3)) + return this.fromCompressedHex(H); + if (ie === 65 && se === 4) + return this.fromUncompressedHex(H); + throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${ie}`); + } + static fromPrivateKey(G) { + return i.BASE.multiply(L(G)); + } + static fromSignature(G, H, ie) { + const se = ne(G = w(G)), { r: fe, s: he } = ce(H); + if (ie !== 0 && ie !== 1) + throw new Error("Cannot recover signature: invalid recovery bit"); + const ve = 1 & ie ? "03" : "02", me = i.fromHex(ve + N(fe)), { n: ge } = u, ye = C(fe, ge), Ee = E(-se * ye, ge), Ae = E(he * ye, ge), Pe = i.BASE.multiplyAndAddUnsafe(me, Ee, Ae); + if (!Pe) + throw new Error("Cannot recover signature: point at infinify"); + return Pe.assertValidity(), Pe; + } + toRawBytes(G = !1) { + return x(this.toHex(G)); + } + toHex(G = !1) { + const H = N(this.x); + return G ? `${this.hasEvenY() ? "02" : "03"}${H}` : `04${H}${N(this.y)}`; + } + toHexX() { + return this.toHex(!0).slice(2); + } + toRawX() { + return this.toRawBytes(!0).slice(1); + } + assertValidity() { + const G = "Point is not on elliptic curve", { x: H, y: ie } = this; + if (!K(H) || !K(ie)) + throw new Error(G); + const se = E(ie * ie); + if (E(se - d(H)) !== A) + throw new Error(G); + } + equals(G) { + return this.x === G.x && this.y === G.y; + } + negate() { + return new i(this.x, E(-this.y)); + } + double() { + return n.fromAffine(this).double().toAffine(); + } + add(G) { + return n.fromAffine(this).add(n.fromAffine(G)).toAffine(); + } + subtract(G) { + return this.add(G.negate()); + } + multiply(G) { + return n.fromAffine(this).multiply(G, this).toAffine(); + } + multiplyAndAddUnsafe(G, H, ie) { + const se = n.fromAffine(this), fe = H === A || H === k || this !== i.BASE ? se.multiplyUnsafe(H) : se.multiply(H), he = n.fromAffine(G).multiplyUnsafe(ie), ve = fe.add(he); + return ve.equals(n.ZERO) ? void 0 : ve.toAffine(); + } + } + function f(Q) { + return Number.parseInt(Q[0], 16) >= 8 ? "00" + Q : Q; + } + function c(Q) { + if (Q.length < 2 || Q[0] !== 2) + throw new Error(`Invalid signature integer tag: ${M(Q)}`); + const G = Q[1], H = Q.subarray(2, G + 2); + if (!G || H.length !== G) + throw new Error("Invalid signature integer: wrong length"); + if (H[0] === 0 && H[1] <= 127) + throw new Error("Invalid signature integer: trailing length"); + return { data: P(H), left: Q.subarray(G + 2) }; + } + e.Point = i, i.BASE = new i(u.Gx, u.Gy), i.ZERO = new i(A, A); + class h { + constructor(G, H) { + this.r = G, this.s = H, this.assertValidity(); + } + static fromCompact(G) { + const H = G instanceof Uint8Array, ie = "Signature.fromCompact"; + if (typeof G != "string" && !H) + throw new TypeError(`${ie}: Expected string or Uint8Array`); + const se = H ? M(G) : G; + if (se.length !== 128) + throw new Error(`${ie}: Expected 64-byte hex`); + return new h(I(se.slice(0, 64)), I(se.slice(64, 128))); + } + static fromDER(G) { + const H = G instanceof Uint8Array; + if (typeof G != "string" && !H) + throw new TypeError("Signature.fromDER: Expected string or Uint8Array"); + const { r: ie, s: se } = function(fe) { + if (fe.length < 2 || fe[0] != 48) + throw new Error(`Invalid signature tag: ${M(fe)}`); + if (fe[1] !== fe.length - 2) + throw new Error("Invalid signature: incorrect length"); + const { data: he, left: ve } = c(fe.subarray(2)), { data: me, left: ge } = c(ve); + if (ge.length) + throw new Error(`Invalid signature: left bytes after parsing: ${M(ge)}`); + return { r: he, s: me }; + }(H ? G : x(G)); + return new h(ie, se); + } + static fromHex(G) { + return this.fromDER(G); + } + assertValidity() { + const { r: G, s: H } = this; + if (!X(G)) + throw new Error("Invalid Signature: r must be 0 < r < n"); + if (!X(H)) + throw new Error("Invalid Signature: s must be 0 < s < n"); + } + hasHighS() { + const G = u.n >> k; + return this.s > G; + } + normalizeS() { + return this.hasHighS() ? new h(this.r, u.n - this.s) : this; + } + toDERRawBytes(G = !1) { + return x(this.toDERHex(G)); + } + toDERHex(G = !1) { + const H = f(R(this.s)); + if (G) + return H; + const ie = f(R(this.r)), se = R(ie.length / 2), fe = R(H.length / 2); + return `30${R(ie.length / 2 + H.length / 2 + 4)}02${se}${ie}02${fe}${H}`; + } + toRawBytes() { + return this.toDERRawBytes(); + } + toHex() { + return this.toDERHex(); + } + toCompactRawBytes() { + return x(this.toCompactHex()); + } + toCompactHex() { + return N(this.r) + N(this.s); + } + } + function p(...Q) { + if (!Q.every((ie) => ie instanceof Uint8Array)) + throw new Error("Uint8Array list expected"); + if (Q.length === 1) + return Q[0]; + const G = Q.reduce((ie, se) => ie + se.length, 0), H = new Uint8Array(G); + for (let ie = 0, se = 0; ie < Q.length; ie++) { + const fe = Q[ie]; + H.set(fe, se), se += fe.length; + } + return H; + } + e.Signature = h; + const m = Array.from({ length: 256 }, (Q, G) => G.toString(16).padStart(2, "0")); + function M(Q) { + if (!(Q instanceof Uint8Array)) + throw new Error("Expected Uint8Array"); + let G = ""; + for (let H = 0; H < Q.length; H++) + G += m[Q[H]]; + return G; + } + const l = BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"); + function N(Q) { + if (typeof Q != "bigint") + throw new Error("Expected bigint"); + if (!(A <= Q && Q < l)) + throw new Error("Expected number < 2^256"); + return Q.toString(16).padStart(64, "0"); + } + function j(Q) { + const G = x(N(Q)); + if (G.length !== 32) + throw new Error("Error: expected 32 bytes"); + return G; + } + function R(Q) { + const G = Q.toString(16); + return 1 & G.length ? `0${G}` : G; + } + function I(Q) { + if (typeof Q != "string") + throw new TypeError("hexToNumber: expected string, got " + typeof Q); + return BigInt(`0x${Q}`); + } + function x(Q) { + if (typeof Q != "string") + throw new TypeError("hexToBytes: expected string, got " + typeof Q); + if (Q.length % 2) + throw new Error("hexToBytes: received invalid unpadded hex" + Q.length); + const G = new Uint8Array(Q.length / 2); + for (let H = 0; H < G.length; H++) { + const ie = 2 * H, se = Q.slice(ie, ie + 2), fe = Number.parseInt(se, 16); + if (Number.isNaN(fe) || fe < 0) + throw new Error("Invalid byte sequence"); + G[H] = fe; + } + return G; + } + function P(Q) { + return I(M(Q)); + } + function w(Q) { + return Q instanceof Uint8Array ? Uint8Array.from(Q) : x(Q); + } + function g(Q) { + if (typeof Q == "number" && Number.isSafeInteger(Q) && Q > 0) + return BigInt(Q); + if (typeof Q == "bigint" && X(Q)) + return Q; + throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n"); + } + function E(Q, G = u.P) { + const H = Q % G; + return H >= A ? H : G + H; + } + function U(Q, G) { + const { P: H } = u; + let ie = Q; + for (; G-- > A; ) + ie *= ie, ie %= H; + return ie; + } + function C(Q, G = u.P) { + if (Q === A || G <= A) + throw new Error(`invert: expected positive integers, got n=${Q} mod=${G}`); + let H = E(Q, G), ie = G, se = A, fe = k; + for (; H !== A; ) { + const he = ie / H, ve = ie % H, me = se - fe * he; + ie = H, H = ve, se = fe, fe = me; + } + if (ie !== k) + throw new Error("invert: does not exist"); + return E(se, G); + } + const F = (Q, G) => (Q + G / b) / G, re = { a1: BigInt("0x3086d221a7d46bcde86c90e49284eb15"), b1: -k * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), a2: BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), b2: BigInt("0x3086d221a7d46bcde86c90e49284eb15"), POW_2_128: BigInt("0x100000000000000000000000000000000") }; + function ee(Q) { + const { n: G } = u, { a1: H, b1: ie, a2: se, b2: fe, POW_2_128: he } = re, ve = F(fe * Q, G), me = F(-ie * Q, G); + let ge = E(Q - ve * H - me * se, G), ye = E(-ve * ie - me * fe, G); + const Ee = ge > he, Ae = ye > he; + if (Ee && (ge = G - ge), Ae && (ye = G - ye), ge > he || ye > he) + throw new Error("splitScalarEndo: Endomorphism failed, k=" + Q); + return { k1neg: Ee, k1: ge, k2neg: Ae, k2: ye }; + } + function ne(Q) { + const { n: G } = u, H = 8 * Q.length - 256; + let ie = P(Q); + return H > 0 && (ie >>= BigInt(H)), ie >= G && (ie -= G), ie; + } + let D, Z; + class $ { + constructor() { + this.v = new Uint8Array(32).fill(1), this.k = new Uint8Array(32).fill(0), this.counter = 0; + } + hmac(...G) { + return e.utils.hmacSha256(this.k, ...G); + } + hmacSync(...G) { + return Z(this.k, ...G); + } + checkSync() { + if (typeof Z != "function") + throw new r("hmacSha256Sync needs to be set"); + } + incr() { + if (this.counter >= 1e3) + throw new Error("Tried 1,000 k values for sign(), all were invalid"); + this.counter += 1; + } + async reseed(G = new Uint8Array()) { + this.k = await this.hmac(this.v, Uint8Array.from([0]), G), this.v = await this.hmac(this.v), G.length !== 0 && (this.k = await this.hmac(this.v, Uint8Array.from([1]), G), this.v = await this.hmac(this.v)); + } + reseedSync(G = new Uint8Array()) { + this.checkSync(), this.k = this.hmacSync(this.v, Uint8Array.from([0]), G), this.v = this.hmacSync(this.v), G.length !== 0 && (this.k = this.hmacSync(this.v, Uint8Array.from([1]), G), this.v = this.hmacSync(this.v)); + } + async generate() { + return this.incr(), this.v = await this.hmac(this.v), this.v; + } + generateSync() { + return this.checkSync(), this.incr(), this.v = this.hmacSync(this.v), this.v; + } + } + function X(Q) { + return A < Q && Q < u.n; + } + function K(Q) { + return A < Q && Q < u.P; + } + function Y(Q, G, H) { + const ie = P(Q); + if (!X(ie)) + return; + const { n: se } = u, fe = i.BASE.multiply(ie), he = E(fe.x, se); + if (he === A) + return; + const ve = E(C(ie, se) * E(G + H * he, se), se); + if (ve === A) + return; + const me = new h(he, ve); + return { sig: me, recovery: (fe.x === me.r ? 0 : 2) | Number(fe.y & k) }; + } + function L(Q) { + let G; + if (typeof Q == "bigint") + G = Q; + else if (typeof Q == "number" && Number.isSafeInteger(Q) && Q > 0) + G = BigInt(Q); + else if (typeof Q == "string") { + if (Q.length !== 64) + throw new Error("Expected 32 bytes of private key"); + G = I(Q); + } else { + if (!(Q instanceof Uint8Array)) + throw new TypeError("Expected valid private key"); + if (Q.length !== 32) + throw new Error("Expected 32 bytes of private key"); + G = P(Q); + } + if (!X(G)) + throw new Error("Expected private key: 0 < key < n"); + return G; + } + function ae(Q) { + return Q instanceof i ? (Q.assertValidity(), Q) : i.fromHex(Q); + } + function ce(Q) { + if (Q instanceof h) + return Q.assertValidity(), Q; + try { + return h.fromDER(Q); + } catch { + return h.fromCompact(Q); + } + } + function ue(Q) { + const G = Q instanceof Uint8Array, H = typeof Q == "string", ie = (G || H) && Q.length; + return G ? ie === 33 || ie === 65 : H ? ie === 66 || ie === 130 : Q instanceof i; + } + function le(Q) { + return P(Q.length > 32 ? Q.slice(0, 32) : Q); + } + function be(Q) { + const G = le(Q), H = E(G, u.n); + return de(H < A ? G : H); + } + function de(Q) { + return j(Q); + } + function pe(Q, G, H) { + if (Q == null) + throw new Error(`sign: expected valid message hash, not "${Q}"`); + const ie = w(Q), se = L(G), fe = [de(se), be(ie)]; + if (H != null) { + H === !0 && (H = e.utils.randomBytes(32)); + const he = w(H); + if (he.length !== 32) + throw new Error("sign: Expected 32 bytes of extra data"); + fe.push(he); + } + return { seed: p(...fe), m: le(ie), d: se }; + } + function _e(Q, G) { + let { sig: H, recovery: ie } = Q; + const { canonical: se, der: fe, recovered: he } = Object.assign({ canonical: !0, der: !0 }, G); + se && H.hasHighS() && (H = H.normalizeS(), ie ^= 1); + const ve = fe ? H.toDERRawBytes() : H.toCompactRawBytes(); + return he ? [ve, ie] : ve; + } + e.getPublicKey = function(Q, G = !1) { + return i.fromPrivateKey(Q).toRawBytes(G); + }, e.recoverPublicKey = function(Q, G, H, ie = !1) { + return i.fromSignature(Q, G, H).toRawBytes(ie); + }, e.getSharedSecret = function(Q, G, H = !1) { + if (ue(Q)) + throw new TypeError("getSharedSecret: first arg must be private key"); + if (!ue(G)) + throw new TypeError("getSharedSecret: second arg must be public key"); + const ie = ae(G); + return ie.assertValidity(), ie.multiply(L(Q)).toRawBytes(H); + }, e.sign = async function(Q, G, H = {}) { + const { seed: ie, m: se, d: fe } = pe(Q, G, H.extraEntropy); + let he; + const ve = new $(); + for (await ve.reseed(ie); !(he = Y(await ve.generate(), se, fe)); ) + await ve.reseed(); + return _e(he, H); + }, e.signSync = function(Q, G, H = {}) { + const { seed: ie, m: se, d: fe } = pe(Q, G, H.extraEntropy); + let he; + const ve = new $(); + for (ve.reseedSync(ie); !(he = Y(ve.generateSync(), se, fe)); ) + ve.reseedSync(); + return _e(he, H); + }; + const W = { strict: !0 }; + function v(Q) { + return E(P(Q), u.n); + } + e.verify = function(Q, G, H, ie = W) { + let se; + try { + se = ce(Q), G = w(G); + } catch { + return !1; + } + const { r: fe, s: he } = se; + if (ie.strict && se.hasHighS()) + return !1; + const ve = ne(G); + let me; + try { + me = ae(H); + } catch { + return !1; + } + const { n: ge } = u, ye = C(he, ge), Ee = E(ve * ye, ge), Ae = E(fe * ye, ge), Pe = i.BASE.multiplyAndAddUnsafe(me, Ee, Ae); + return !!Pe && E(Pe.x, ge) === fe; + }; + class y { + constructor(G, H) { + this.r = G, this.s = H, this.assertValidity(); + } + static fromHex(G) { + const H = w(G); + if (H.length !== 64) + throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${H.length}`); + const ie = P(H.subarray(0, 32)), se = P(H.subarray(32, 64)); + return new y(ie, se); + } + assertValidity() { + const { r: G, s: H } = this; + if (!K(G) || !X(H)) + throw new Error("Invalid signature"); + } + toHex() { + return N(this.r) + N(this.s); + } + toRawBytes() { + return x(this.toHex()); + } + } + class S { + constructor(G, H, ie = e.utils.randomBytes()) { + if (G == null) + throw new TypeError(`sign: Expected valid message, not "${G}"`); + this.m = w(G); + const { x: se, scalar: fe } = this.getScalar(L(H)); + if (this.px = se, this.d = fe, this.rand = w(ie), this.rand.length !== 32) + throw new TypeError("sign: Expected 32 bytes of aux randomness"); + } + getScalar(G) { + const H = i.fromPrivateKey(G), ie = H.hasEvenY() ? G : u.n - G; + return { point: H, scalar: ie, x: H.toRawX() }; + } + initNonce(G, H) { + return j(G ^ P(H)); + } + finalizeNonce(G) { + const H = E(P(G), u.n); + if (H === A) + throw new Error("sign: Creation of signature failed. k is zero"); + const { point: ie, x: se, scalar: fe } = this.getScalar(H); + return { R: ie, rx: se, k: fe }; + } + finalizeSig(G, H, ie, se) { + return new y(G.x, E(H + ie * se, u.n)).toRawBytes(); + } + error() { + throw new Error("sign: Invalid signature produced"); + } + async calc() { + const { m: G, d: H, px: ie, rand: se } = this, fe = e.utils.taggedHash, he = this.initNonce(H, await fe(oe.aux, se)), { R: ve, rx: me, k: ge } = this.finalizeNonce(await fe(oe.nonce, he, ie, G)), ye = v(await fe(oe.challenge, me, ie, G)), Ee = this.finalizeSig(ve, ge, ye, H); + return await z(Ee, G, ie) || this.error(), Ee; + } + calcSync() { + const { m: G, d: H, px: ie, rand: se } = this, fe = e.utils.taggedHashSync, he = this.initNonce(H, fe(oe.aux, se)), { R: ve, rx: me, k: ge } = this.finalizeNonce(fe(oe.nonce, he, ie, G)), ye = v(fe(oe.challenge, me, ie, G)), Ee = this.finalizeSig(ve, ge, ye, H); + return q(Ee, G, ie) || this.error(), Ee; + } + } + function T(Q, G, H) { + const ie = Q instanceof y, se = ie ? Q : y.fromHex(Q); + return ie && se.assertValidity(), { ...se, m: w(G), P: ae(H) }; + } + function B(Q, G, H, ie) { + const se = i.BASE.multiplyAndAddUnsafe(G, L(H), E(-ie, u.n)); + return !(!se || !se.hasEvenY() || se.x !== Q); + } + async function z(Q, G, H) { + try { + const { r: ie, s: se, m: fe, P: he } = T(Q, G, H), ve = v(await e.utils.taggedHash(oe.challenge, j(ie), he.toRawX(), fe)); + return B(ie, he, se, ve); + } catch { + return !1; + } + } + function q(Q, G, H) { + try { + const { r: ie, s: se, m: fe, P: he } = T(Q, G, H), ve = v(e.utils.taggedHashSync(oe.challenge, j(ie), he.toRawX(), fe)); + return B(ie, he, se, ve); + } catch (ie) { + if (ie instanceof r) + throw ie; + return !1; + } + } + e.schnorr = { Signature: y, getPublicKey: function(Q) { + return i.fromPrivateKey(Q).toRawX(); + }, sign: async function(Q, G, H) { + return new S(Q, G, H).calc(); + }, verify: z, signSync: function(Q, G, H) { + return new S(Q, G, H).calcSync(); + }, verifySync: q }, i.BASE._setWindowSize(8); + const te = { node: O, web: typeof self == "object" && "crypto" in self ? self.crypto : void 0 }, oe = { challenge: "BIP0340/challenge", aux: "BIP0340/aux", nonce: "BIP0340/nonce" }, V = {}; + e.utils = { bytesToHex: M, hexToBytes: x, concatBytes: p, mod: E, invert: C, isValidPrivateKey(Q) { + try { + return L(Q), !0; + } catch { + return !1; + } + }, _bigintTo32Bytes: j, _normalizePrivateKey: L, hashToPrivateKey: (Q) => { + if ((Q = w(Q)).length < 40 || Q.length > 1024) + throw new Error("Expected 40-1024 bytes of private key as per FIPS 186"); + return j(E(P(Q), u.n - k) + k); + }, randomBytes: (Q = 32) => { + if (te.web) + return te.web.getRandomValues(new Uint8Array(Q)); + if (te.node) { + const { randomBytes: G } = te.node; + return Uint8Array.from(G(Q)); + } + throw new Error("The environment doesn't have randomBytes function"); + }, randomPrivateKey: () => e.utils.hashToPrivateKey(e.utils.randomBytes(40)), sha256: async (...Q) => { + if (te.web) { + const G = await te.web.subtle.digest("SHA-256", p(...Q)); + return new Uint8Array(G); + } + if (te.node) { + const { createHash: G } = te.node, H = G("sha256"); + return Q.forEach((ie) => H.update(ie)), Uint8Array.from(H.digest()); + } + throw new Error("The environment doesn't have sha256 function"); + }, hmacSha256: async (Q, ...G) => { + if (te.web) { + const H = await te.web.subtle.importKey("raw", Q, { name: "HMAC", hash: { name: "SHA-256" } }, !1, ["sign"]), ie = p(...G), se = await te.web.subtle.sign("HMAC", H, ie); + return new Uint8Array(se); + } + if (te.node) { + const { createHmac: H } = te.node, ie = H("sha256", Q); + return G.forEach((se) => ie.update(se)), Uint8Array.from(ie.digest()); + } + throw new Error("The environment doesn't have hmac-sha256 function"); + }, sha256Sync: void 0, hmacSha256Sync: void 0, taggedHash: async (Q, ...G) => { + let H = V[Q]; + if (H === void 0) { + const ie = await e.utils.sha256(Uint8Array.from(Q, (se) => se.charCodeAt(0))); + H = p(ie, ie), V[Q] = H; + } + return e.utils.sha256(H, ...G); + }, taggedHashSync: (Q, ...G) => { + if (typeof D != "function") + throw new r("sha256Sync is undefined, you need to set it"); + let H = V[Q]; + if (H === void 0) { + const ie = D(Uint8Array.from(Q, (se) => se.charCodeAt(0))); + H = p(ie, ie), V[Q] = H; + } + return D(H, ...G); + }, precompute(Q = 8, G = i.BASE) { + const H = G === i.BASE ? G : new i(G.x, G.y); + return H._setWindowSize(Q), H.multiply(a), H; + } }, Object.defineProperties(e.utils, { sha256Sync: { configurable: !1, get: () => D, set(Q) { + D || (D = Q); + } }, hmacSha256Sync: { configurable: !1, get: () => Z, set(Q) { + Z || (Z = Q); + } } }); + }, 4537: (J) => { + J.exports = function(e, _) { + for (var O = new Array(arguments.length - 1), A = 0, k = 2, b = !0; k < arguments.length; ) + O[A++] = arguments[k++]; + return new Promise(function(a, t) { + O[A] = function(u) { + if (b) + if (b = !1, u) + t(u); + else { + for (var d = new Array(arguments.length - 1), s = 0; s < d.length; ) + d[s++] = arguments[s]; + a.apply(null, d); + } + }; + try { + e.apply(_ || null, O); + } catch (u) { + b && (b = !1, t(u)); + } + }); + }; + }, 7419: (J, e) => { + var _ = e; + _.length = function(a) { + var t = a.length; + if (!t) + return 0; + for (var u = 0; --t % 4 > 1 && a.charAt(t) === "="; ) + ++u; + return Math.ceil(3 * a.length) / 4 - u; + }; + for (var O = new Array(64), A = new Array(123), k = 0; k < 64; ) + A[O[k] = k < 26 ? k + 65 : k < 52 ? k + 71 : k < 62 ? k - 4 : k - 59 | 43] = k++; + _.encode = function(a, t, u) { + for (var d, s = null, r = [], n = 0, o = 0; t < u; ) { + var i = a[t++]; + switch (o) { + case 0: + r[n++] = O[i >> 2], d = (3 & i) << 4, o = 1; + break; + case 1: + r[n++] = O[d | i >> 4], d = (15 & i) << 2, o = 2; + break; + case 2: + r[n++] = O[d | i >> 6], r[n++] = O[63 & i], o = 0; + } + n > 8191 && ((s || (s = [])).push(String.fromCharCode.apply(String, r)), n = 0); + } + return o && (r[n++] = O[d], r[n++] = 61, o === 1 && (r[n++] = 61)), s ? (n && s.push(String.fromCharCode.apply(String, r.slice(0, n))), s.join("")) : String.fromCharCode.apply(String, r.slice(0, n)); + }; + var b = "invalid encoding"; + _.decode = function(a, t, u) { + for (var d, s = u, r = 0, n = 0; n < a.length; ) { + var o = a.charCodeAt(n++); + if (o === 61 && r > 1) + break; + if ((o = A[o]) === void 0) + throw Error(b); + switch (r) { + case 0: + d = o, r = 1; + break; + case 1: + t[u++] = d << 2 | (48 & o) >> 4, d = o, r = 2; + break; + case 2: + t[u++] = (15 & d) << 4 | (60 & o) >> 2, d = o, r = 3; + break; + case 3: + t[u++] = (3 & d) << 6 | o, r = 0; + } + } + if (r === 1) + throw Error(b); + return u - s; + }, _.test = function(a) { + return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a); + }; + }, 9211: (J) => { + function e() { + this._listeners = {}; + } + J.exports = e, e.prototype.on = function(_, O, A) { + return (this._listeners[_] || (this._listeners[_] = [])).push({ fn: O, ctx: A || this }), this; + }, e.prototype.off = function(_, O) { + if (_ === void 0) + this._listeners = {}; + else if (O === void 0) + this._listeners[_] = []; + else + for (var A = this._listeners[_], k = 0; k < A.length; ) + A[k].fn === O ? A.splice(k, 1) : ++k; + return this; + }, e.prototype.emit = function(_) { + var O = this._listeners[_]; + if (O) { + for (var A = [], k = 1; k < arguments.length; ) + A.push(arguments[k++]); + for (k = 0; k < O.length; ) + O[k].fn.apply(O[k++].ctx, A); + } + return this; + }; + }, 945: (J) => { + function e(b) { + return typeof Float32Array < "u" ? function() { + var a = new Float32Array([-0]), t = new Uint8Array(a.buffer), u = t[3] === 128; + function d(o, i, f) { + a[0] = o, i[f] = t[0], i[f + 1] = t[1], i[f + 2] = t[2], i[f + 3] = t[3]; + } + function s(o, i, f) { + a[0] = o, i[f] = t[3], i[f + 1] = t[2], i[f + 2] = t[1], i[f + 3] = t[0]; + } + function r(o, i) { + return t[0] = o[i], t[1] = o[i + 1], t[2] = o[i + 2], t[3] = o[i + 3], a[0]; + } + function n(o, i) { + return t[3] = o[i], t[2] = o[i + 1], t[1] = o[i + 2], t[0] = o[i + 3], a[0]; + } + b.writeFloatLE = u ? d : s, b.writeFloatBE = u ? s : d, b.readFloatLE = u ? r : n, b.readFloatBE = u ? n : r; + }() : function() { + function a(u, d, s, r) { + var n = d < 0 ? 1 : 0; + if (n && (d = -d), d === 0) + u(1 / d > 0 ? 0 : 2147483648, s, r); + else if (isNaN(d)) + u(2143289344, s, r); + else if (d > 34028234663852886e22) + u((n << 31 | 2139095040) >>> 0, s, r); + else if (d < 11754943508222875e-54) + u((n << 31 | Math.round(d / 1401298464324817e-60)) >>> 0, s, r); + else { + var o = Math.floor(Math.log(d) / Math.LN2); + u((n << 31 | o + 127 << 23 | 8388607 & Math.round(d * Math.pow(2, -o) * 8388608)) >>> 0, s, r); + } + } + function t(u, d, s) { + var r = u(d, s), n = 2 * (r >> 31) + 1, o = r >>> 23 & 255, i = 8388607 & r; + return o === 255 ? i ? NaN : n * (1 / 0) : o === 0 ? 1401298464324817e-60 * n * i : n * Math.pow(2, o - 150) * (i + 8388608); + } + b.writeFloatLE = a.bind(null, _), b.writeFloatBE = a.bind(null, O), b.readFloatLE = t.bind(null, A), b.readFloatBE = t.bind(null, k); + }(), typeof Float64Array < "u" ? function() { + var a = new Float64Array([-0]), t = new Uint8Array(a.buffer), u = t[7] === 128; + function d(o, i, f) { + a[0] = o, i[f] = t[0], i[f + 1] = t[1], i[f + 2] = t[2], i[f + 3] = t[3], i[f + 4] = t[4], i[f + 5] = t[5], i[f + 6] = t[6], i[f + 7] = t[7]; + } + function s(o, i, f) { + a[0] = o, i[f] = t[7], i[f + 1] = t[6], i[f + 2] = t[5], i[f + 3] = t[4], i[f + 4] = t[3], i[f + 5] = t[2], i[f + 6] = t[1], i[f + 7] = t[0]; + } + function r(o, i) { + return t[0] = o[i], t[1] = o[i + 1], t[2] = o[i + 2], t[3] = o[i + 3], t[4] = o[i + 4], t[5] = o[i + 5], t[6] = o[i + 6], t[7] = o[i + 7], a[0]; + } + function n(o, i) { + return t[7] = o[i], t[6] = o[i + 1], t[5] = o[i + 2], t[4] = o[i + 3], t[3] = o[i + 4], t[2] = o[i + 5], t[1] = o[i + 6], t[0] = o[i + 7], a[0]; + } + b.writeDoubleLE = u ? d : s, b.writeDoubleBE = u ? s : d, b.readDoubleLE = u ? r : n, b.readDoubleBE = u ? n : r; + }() : function() { + function a(u, d, s, r, n, o) { + var i = r < 0 ? 1 : 0; + if (i && (r = -r), r === 0) + u(0, n, o + d), u(1 / r > 0 ? 0 : 2147483648, n, o + s); + else if (isNaN(r)) + u(0, n, o + d), u(2146959360, n, o + s); + else if (r > 17976931348623157e292) + u(0, n, o + d), u((i << 31 | 2146435072) >>> 0, n, o + s); + else { + var f; + if (r < 22250738585072014e-324) + u((f = r / 5e-324) >>> 0, n, o + d), u((i << 31 | f / 4294967296) >>> 0, n, o + s); + else { + var c = Math.floor(Math.log(r) / Math.LN2); + c === 1024 && (c = 1023), u(4503599627370496 * (f = r * Math.pow(2, -c)) >>> 0, n, o + d), u((i << 31 | c + 1023 << 20 | 1048576 * f & 1048575) >>> 0, n, o + s); + } + } + } + function t(u, d, s, r, n) { + var o = u(r, n + d), i = u(r, n + s), f = 2 * (i >> 31) + 1, c = i >>> 20 & 2047, h = 4294967296 * (1048575 & i) + o; + return c === 2047 ? h ? NaN : f * (1 / 0) : c === 0 ? 5e-324 * f * h : f * Math.pow(2, c - 1075) * (h + 4503599627370496); + } + b.writeDoubleLE = a.bind(null, _, 0, 4), b.writeDoubleBE = a.bind(null, O, 4, 0), b.readDoubleLE = t.bind(null, A, 0, 4), b.readDoubleBE = t.bind(null, k, 4, 0); + }(), b; + } + function _(b, a, t) { + a[t] = 255 & b, a[t + 1] = b >>> 8 & 255, a[t + 2] = b >>> 16 & 255, a[t + 3] = b >>> 24; + } + function O(b, a, t) { + a[t] = b >>> 24, a[t + 1] = b >>> 16 & 255, a[t + 2] = b >>> 8 & 255, a[t + 3] = 255 & b; + } + function A(b, a) { + return (b[a] | b[a + 1] << 8 | b[a + 2] << 16 | b[a + 3] << 24) >>> 0; + } + function k(b, a) { + return (b[a] << 24 | b[a + 1] << 16 | b[a + 2] << 8 | b[a + 3]) >>> 0; + } + J.exports = e(e); + }, 7199: (module) => { + function inquire(moduleName) { + try { + var mod = eval("quire".replace(/^/, "re"))(moduleName); + if (mod && (mod.length || Object.keys(mod).length)) + return mod; + } catch (J) { + } + return null; + } + module.exports = inquire; + }, 6662: (J) => { + J.exports = function(e, _, O) { + var A = O || 8192, k = A >>> 1, b = null, a = A; + return function(t) { + if (t < 1 || t > k) + return e(t); + a + t > A && (b = e(A), a = 0); + var u = _.call(b, a, a += t); + return 7 & a && (a = 1 + (7 | a)), u; + }; + }; + }, 4997: (J, e) => { + var _ = e; + _.length = function(O) { + for (var A = 0, k = 0, b = 0; b < O.length; ++b) + (k = O.charCodeAt(b)) < 128 ? A += 1 : k < 2048 ? A += 2 : (64512 & k) == 55296 && (64512 & O.charCodeAt(b + 1)) == 56320 ? (++b, A += 4) : A += 3; + return A; + }, _.read = function(O, A, k) { + if (k - A < 1) + return ""; + for (var b, a = null, t = [], u = 0; A < k; ) + (b = O[A++]) < 128 ? t[u++] = b : b > 191 && b < 224 ? t[u++] = (31 & b) << 6 | 63 & O[A++] : b > 239 && b < 365 ? (b = ((7 & b) << 18 | (63 & O[A++]) << 12 | (63 & O[A++]) << 6 | 63 & O[A++]) - 65536, t[u++] = 55296 + (b >> 10), t[u++] = 56320 + (1023 & b)) : t[u++] = (15 & b) << 12 | (63 & O[A++]) << 6 | 63 & O[A++], u > 8191 && ((a || (a = [])).push(String.fromCharCode.apply(String, t)), u = 0); + return a ? (u && a.push(String.fromCharCode.apply(String, t.slice(0, u))), a.join("")) : String.fromCharCode.apply(String, t.slice(0, u)); + }, _.write = function(O, A, k) { + for (var b, a, t = k, u = 0; u < O.length; ++u) + (b = O.charCodeAt(u)) < 128 ? A[k++] = b : b < 2048 ? (A[k++] = b >> 6 | 192, A[k++] = 63 & b | 128) : (64512 & b) == 55296 && (64512 & (a = O.charCodeAt(u + 1))) == 56320 ? (b = 65536 + ((1023 & b) << 10) + (1023 & a), ++u, A[k++] = b >> 18 | 240, A[k++] = b >> 12 & 63 | 128, A[k++] = b >> 6 & 63 | 128, A[k++] = 63 & b | 128) : (A[k++] = b >> 12 | 224, A[k++] = b >> 6 & 63 | 128, A[k++] = 63 & b | 128); + return k - t; + }; + }, 9282: (J, e, _) => { + var O = _(4155), A = _(5108); + function k(ee) { + return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ne) { + return typeof ne; + } : function(ne) { + return ne && typeof Symbol == "function" && ne.constructor === Symbol && ne !== Symbol.prototype ? "symbol" : typeof ne; + }, k(ee); + } + var b, a, t = _(2136).codes, u = t.ERR_AMBIGUOUS_ARGUMENT, d = t.ERR_INVALID_ARG_TYPE, s = t.ERR_INVALID_ARG_VALUE, r = t.ERR_INVALID_RETURN_VALUE, n = t.ERR_MISSING_ARGS, o = _(5961), i = _(9539).inspect, f = _(9539).types, c = f.isPromise, h = f.isRegExp, p = Object.assign ? Object.assign : _(8091).assign, m = Object.is ? Object.is : _(609); + function M() { + var ee = _(9158); + b = ee.isDeepEqual, a = ee.isDeepStrictEqual; + } + var l = !1, N = J.exports = x, j = {}; + function R(ee) { + throw ee.message instanceof Error ? ee.message : new o(ee); + } + function I(ee, ne, D, Z) { + if (!D) { + var $ = !1; + if (ne === 0) + $ = !0, Z = "No value argument passed to `assert.ok()`"; + else if (Z instanceof Error) + throw Z; + var X = new o({ actual: D, expected: !0, message: Z, operator: "==", stackStartFn: ee }); + throw X.generatedMessage = $, X; + } + } + function x() { + for (var ee = arguments.length, ne = new Array(ee), D = 0; D < ee; D++) + ne[D] = arguments[D]; + I.apply(void 0, [x, ne.length].concat(ne)); + } + N.fail = function ee(ne, D, Z, $, X) { + var K, Y = arguments.length; + if (Y === 0 ? K = "Failed" : Y === 1 ? (Z = ne, ne = void 0) : (l === !1 && (l = !0, (O.emitWarning ? O.emitWarning : A.warn.bind(A))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094")), Y === 2 && ($ = "!=")), Z instanceof Error) + throw Z; + var L = { actual: ne, expected: D, operator: $ === void 0 ? "fail" : $, stackStartFn: X || ee }; + Z !== void 0 && (L.message = Z); + var ae = new o(L); + throw K && (ae.message = K, ae.generatedMessage = !0), ae; + }, N.AssertionError = o, N.ok = x, N.equal = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + ne != D && R({ actual: ne, expected: D, message: Z, operator: "==", stackStartFn: ee }); + }, N.notEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + ne == D && R({ actual: ne, expected: D, message: Z, operator: "!=", stackStartFn: ee }); + }, N.deepEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + b === void 0 && M(), b(ne, D) || R({ actual: ne, expected: D, message: Z, operator: "deepEqual", stackStartFn: ee }); + }, N.notDeepEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + b === void 0 && M(), b(ne, D) && R({ actual: ne, expected: D, message: Z, operator: "notDeepEqual", stackStartFn: ee }); + }, N.deepStrictEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + b === void 0 && M(), a(ne, D) || R({ actual: ne, expected: D, message: Z, operator: "deepStrictEqual", stackStartFn: ee }); + }, N.notDeepStrictEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + b === void 0 && M(), a(ne, D) && R({ actual: ne, expected: D, message: Z, operator: "notDeepStrictEqual", stackStartFn: ee }); + }, N.strictEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + m(ne, D) || R({ actual: ne, expected: D, message: Z, operator: "strictEqual", stackStartFn: ee }); + }, N.notStrictEqual = function ee(ne, D, Z) { + if (arguments.length < 2) + throw new n("actual", "expected"); + m(ne, D) && R({ actual: ne, expected: D, message: Z, operator: "notStrictEqual", stackStartFn: ee }); + }; + var P = function ee(ne, D, Z) { + var $ = this; + (function(X, K) { + if (!(X instanceof K)) + throw new TypeError("Cannot call a class as a function"); + })(this, ee), D.forEach(function(X) { + X in ne && (Z !== void 0 && typeof Z[X] == "string" && h(ne[X]) && ne[X].test(Z[X]) ? $[X] = Z[X] : $[X] = ne[X]); + }); + }; + function w(ee, ne, D, Z) { + if (typeof ne != "function") { + if (h(ne)) + return ne.test(ee); + if (arguments.length === 2) + throw new d("expected", ["Function", "RegExp"], ne); + if (k(ee) !== "object" || ee === null) { + var $ = new o({ actual: ee, expected: ne, message: D, operator: "deepStrictEqual", stackStartFn: Z }); + throw $.operator = Z.name, $; + } + var X = Object.keys(ne); + if (ne instanceof Error) + X.push("name", "message"); + else if (X.length === 0) + throw new s("error", ne, "may not be an empty object"); + return b === void 0 && M(), X.forEach(function(K) { + typeof ee[K] == "string" && h(ne[K]) && ne[K].test(ee[K]) || function(Y, L, ae, ce, ue, le) { + if (!(ae in Y) || !a(Y[ae], L[ae])) { + if (!ce) { + var be = new P(Y, ue), de = new P(L, ue, Y), pe = new o({ actual: be, expected: de, operator: "deepStrictEqual", stackStartFn: le }); + throw pe.actual = Y, pe.expected = L, pe.operator = le.name, pe; + } + R({ actual: Y, expected: L, message: ce, operator: le.name, stackStartFn: le }); + } + }(ee, ne, K, D, X, Z); + }), !0; + } + return ne.prototype !== void 0 && ee instanceof ne || !Error.isPrototypeOf(ne) && ne.call({}, ee) === !0; + } + function g(ee) { + if (typeof ee != "function") + throw new d("fn", "Function", ee); + try { + ee(); + } catch (ne) { + return ne; + } + return j; + } + function E(ee) { + return c(ee) || ee !== null && k(ee) === "object" && typeof ee.then == "function" && typeof ee.catch == "function"; + } + function U(ee) { + return Promise.resolve().then(function() { + var ne; + if (typeof ee == "function") { + if (!E(ne = ee())) + throw new r("instance of Promise", "promiseFn", ne); + } else { + if (!E(ee)) + throw new d("promiseFn", ["Function", "Promise"], ee); + ne = ee; + } + return Promise.resolve().then(function() { + return ne; + }).then(function() { + return j; + }).catch(function(D) { + return D; + }); + }); + } + function C(ee, ne, D, Z) { + if (typeof D == "string") { + if (arguments.length === 4) + throw new d("error", ["Object", "Error", "Function", "RegExp"], D); + if (k(ne) === "object" && ne !== null) { + if (ne.message === D) + throw new u("error/message", 'The error message "'.concat(ne.message, '" is identical to the message.')); + } else if (ne === D) + throw new u("error/message", 'The error "'.concat(ne, '" is identical to the message.')); + Z = D, D = void 0; + } else if (D != null && k(D) !== "object" && typeof D != "function") + throw new d("error", ["Object", "Error", "Function", "RegExp"], D); + if (ne === j) { + var $ = ""; + D && D.name && ($ += " (".concat(D.name, ")")), $ += Z ? ": ".concat(Z) : "."; + var X = ee.name === "rejects" ? "rejection" : "exception"; + R({ actual: void 0, expected: D, operator: ee.name, message: "Missing expected ".concat(X).concat($), stackStartFn: ee }); + } + if (D && !w(ne, D, Z, ee)) + throw ne; + } + function F(ee, ne, D, Z) { + if (ne !== j) { + if (typeof D == "string" && (Z = D, D = void 0), !D || w(ne, D)) { + var $ = Z ? ": ".concat(Z) : ".", X = ee.name === "doesNotReject" ? "rejection" : "exception"; + R({ actual: ne, expected: D, operator: ee.name, message: "Got unwanted ".concat(X).concat($, ` +`) + 'Actual message: "'.concat(ne && ne.message, '"'), stackStartFn: ee }); + } + throw ne; + } + } + function re() { + for (var ee = arguments.length, ne = new Array(ee), D = 0; D < ee; D++) + ne[D] = arguments[D]; + I.apply(void 0, [re, ne.length].concat(ne)); + } + N.throws = function ee(ne) { + for (var D = arguments.length, Z = new Array(D > 1 ? D - 1 : 0), $ = 1; $ < D; $++) + Z[$ - 1] = arguments[$]; + C.apply(void 0, [ee, g(ne)].concat(Z)); + }, N.rejects = function ee(ne) { + for (var D = arguments.length, Z = new Array(D > 1 ? D - 1 : 0), $ = 1; $ < D; $++) + Z[$ - 1] = arguments[$]; + return U(ne).then(function(X) { + return C.apply(void 0, [ee, X].concat(Z)); + }); + }, N.doesNotThrow = function ee(ne) { + for (var D = arguments.length, Z = new Array(D > 1 ? D - 1 : 0), $ = 1; $ < D; $++) + Z[$ - 1] = arguments[$]; + F.apply(void 0, [ee, g(ne)].concat(Z)); + }, N.doesNotReject = function ee(ne) { + for (var D = arguments.length, Z = new Array(D > 1 ? D - 1 : 0), $ = 1; $ < D; $++) + Z[$ - 1] = arguments[$]; + return U(ne).then(function(X) { + return F.apply(void 0, [ee, X].concat(Z)); + }); + }, N.ifError = function ee(ne) { + if (ne != null) { + var D = "ifError got unwanted exception: "; + k(ne) === "object" && typeof ne.message == "string" ? ne.message.length === 0 && ne.constructor ? D += ne.constructor.name : D += ne.message : D += i(ne); + var Z = new o({ actual: ne, expected: null, operator: "ifError", message: D, stackStartFn: ee }), $ = ne.stack; + if (typeof $ == "string") { + var X = $.split(` +`); + X.shift(); + for (var K = Z.stack.split(` +`), Y = 0; Y < X.length; Y++) { + var L = K.indexOf(X[Y]); + if (L !== -1) { + K = K.slice(0, L); + break; + } + } + Z.stack = "".concat(K.join(` +`), ` +`).concat(X.join(` +`)); + } + throw Z; + } + }, N.strict = p(re, N, { equal: N.strictEqual, deepEqual: N.deepStrictEqual, notEqual: N.notStrictEqual, notDeepEqual: N.notDeepStrictEqual }), N.strict.strict = N.strict; + }, 5961: (J, e, _) => { + var O = _(4155); + function A(j, R, I) { + return R in j ? Object.defineProperty(j, R, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : j[R] = I, j; + } + function k(j, R) { + for (var I = 0; I < R.length; I++) { + var x = R[I]; + x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(j, x.key, x); + } + } + function b(j, R) { + return !R || r(R) !== "object" && typeof R != "function" ? a(j) : R; + } + function a(j) { + if (j === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return j; + } + function t(j) { + var R = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; + return t = function(I) { + if (I === null || (x = I, Function.toString.call(x).indexOf("[native code]") === -1)) + return I; + var x; + if (typeof I != "function") + throw new TypeError("Super expression must either be null or a function"); + if (R !== void 0) { + if (R.has(I)) + return R.get(I); + R.set(I, P); + } + function P() { + return u(I, arguments, s(this).constructor); + } + return P.prototype = Object.create(I.prototype, { constructor: { value: P, enumerable: !1, writable: !0, configurable: !0 } }), d(P, I); + }, t(j); + } + function u(j, R, I) { + return u = function() { + if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch { + return !1; + } + }() ? Reflect.construct : function(x, P, w) { + var g = [null]; + g.push.apply(g, P); + var E = new (Function.bind.apply(x, g))(); + return w && d(E, w.prototype), E; + }, u.apply(null, arguments); + } + function d(j, R) { + return d = Object.setPrototypeOf || function(I, x) { + return I.__proto__ = x, I; + }, d(j, R); + } + function s(j) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(R) { + return R.__proto__ || Object.getPrototypeOf(R); + }, s(j); + } + function r(j) { + return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(R) { + return typeof R; + } : function(R) { + return R && typeof Symbol == "function" && R.constructor === Symbol && R !== Symbol.prototype ? "symbol" : typeof R; + }, r(j); + } + var n = _(9539).inspect, o = _(2136).codes.ERR_INVALID_ARG_TYPE; + function i(j, R, I) { + return (I === void 0 || I > j.length) && (I = j.length), j.substring(I - R.length, I) === R; + } + var f = "", c = "", h = "", p = "", m = { deepStrictEqual: "Expected values to be strictly deep-equal:", strictEqual: "Expected values to be strictly equal:", strictEqualObject: 'Expected "actual" to be reference-equal to "expected":', deepEqual: "Expected values to be loosely deep-equal:", equal: "Expected values to be loosely equal:", notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:', notStrictEqual: 'Expected "actual" to be strictly unequal to:', notStrictEqualObject: 'Expected "actual" not to be reference-equal to "expected":', notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:', notEqual: 'Expected "actual" to be loosely unequal to:', notIdentical: "Values identical but not reference-equal:" }; + function M(j) { + var R = Object.keys(j), I = Object.create(Object.getPrototypeOf(j)); + return R.forEach(function(x) { + I[x] = j[x]; + }), Object.defineProperty(I, "message", { value: j.message }), I; + } + function l(j) { + return n(j, { compact: !1, customInspect: !1, depth: 1e3, maxArrayLength: 1 / 0, showHidden: !1, breakLength: 1 / 0, showProxy: !1, sorted: !0, getters: !0 }); + } + var N = function(j) { + function R(P) { + var w; + if (function(X, K) { + if (!(X instanceof K)) + throw new TypeError("Cannot call a class as a function"); + }(this, R), r(P) !== "object" || P === null) + throw new o("options", "Object", P); + var g = P.message, E = P.operator, U = P.stackStartFn, C = P.actual, F = P.expected, re = Error.stackTraceLimit; + if (Error.stackTraceLimit = 0, g != null) + w = b(this, s(R).call(this, String(g))); + else if (O.stderr && O.stderr.isTTY && (O.stderr && O.stderr.getColorDepth && O.stderr.getColorDepth() !== 1 ? (f = "\x1B[34m", c = "\x1B[32m", p = "\x1B[39m", h = "\x1B[31m") : (f = "", c = "", p = "", h = "")), r(C) === "object" && C !== null && r(F) === "object" && F !== null && "stack" in C && C instanceof Error && "stack" in F && F instanceof Error && (C = M(C), F = M(F)), E === "deepStrictEqual" || E === "strictEqual") + w = b(this, s(R).call(this, function(X, K, Y) { + var L = "", ae = "", ce = 0, ue = "", le = !1, be = l(X), de = be.split(` +`), pe = l(K).split(` +`), _e = 0, W = ""; + if (Y === "strictEqual" && r(X) === "object" && r(K) === "object" && X !== null && K !== null && (Y = "strictEqualObject"), de.length === 1 && pe.length === 1 && de[0] !== pe[0]) { + var v = de[0].length + pe[0].length; + if (v <= 10) { + if (!(r(X) === "object" && X !== null || r(K) === "object" && K !== null || X === 0 && K === 0)) + return "".concat(m[Y], ` + +`) + "".concat(de[0], " !== ").concat(pe[0], ` +`); + } else if (Y !== "strictEqualObject" && v < (O.stderr && O.stderr.isTTY ? O.stderr.columns : 80)) { + for (; de[0][_e] === pe[0][_e]; ) + _e++; + _e > 2 && (W = ` + `.concat(function(H, ie) { + if (ie = Math.floor(ie), H.length == 0 || ie == 0) + return ""; + var se = H.length * ie; + for (ie = Math.floor(Math.log(ie) / Math.log(2)); ie; ) + H += H, ie--; + return H + H.substring(0, se - H.length); + }(" ", _e), "^"), _e = 0); + } + } + for (var y = de[de.length - 1], S = pe[pe.length - 1]; y === S && (_e++ < 2 ? ue = ` + `.concat(y).concat(ue) : L = y, de.pop(), pe.pop(), de.length !== 0 && pe.length !== 0); ) + y = de[de.length - 1], S = pe[pe.length - 1]; + var T = Math.max(de.length, pe.length); + if (T === 0) { + var B = be.split(` +`); + if (B.length > 30) + for (B[26] = "".concat(f, "...").concat(p); B.length > 27; ) + B.pop(); + return "".concat(m.notIdentical, ` + +`).concat(B.join(` +`), ` +`); + } + _e > 3 && (ue = ` +`.concat(f, "...").concat(p).concat(ue), le = !0), L !== "" && (ue = ` + `.concat(L).concat(ue), L = ""); + var z = 0, q = m[Y] + ` +`.concat(c, "+ actual").concat(p, " ").concat(h, "- expected").concat(p), te = " ".concat(f, "...").concat(p, " Lines skipped"); + for (_e = 0; _e < T; _e++) { + var oe = _e - ce; + if (de.length < _e + 1) + oe > 1 && _e > 2 && (oe > 4 ? (ae += ` +`.concat(f, "...").concat(p), le = !0) : oe > 3 && (ae += ` + `.concat(pe[_e - 2]), z++), ae += ` + `.concat(pe[_e - 1]), z++), ce = _e, L += ` +`.concat(h, "-").concat(p, " ").concat(pe[_e]), z++; + else if (pe.length < _e + 1) + oe > 1 && _e > 2 && (oe > 4 ? (ae += ` +`.concat(f, "...").concat(p), le = !0) : oe > 3 && (ae += ` + `.concat(de[_e - 2]), z++), ae += ` + `.concat(de[_e - 1]), z++), ce = _e, ae += ` +`.concat(c, "+").concat(p, " ").concat(de[_e]), z++; + else { + var V = pe[_e], Q = de[_e], G = Q !== V && (!i(Q, ",") || Q.slice(0, -1) !== V); + G && i(V, ",") && V.slice(0, -1) === Q && (G = !1, Q += ","), G ? (oe > 1 && _e > 2 && (oe > 4 ? (ae += ` +`.concat(f, "...").concat(p), le = !0) : oe > 3 && (ae += ` + `.concat(de[_e - 2]), z++), ae += ` + `.concat(de[_e - 1]), z++), ce = _e, ae += ` +`.concat(c, "+").concat(p, " ").concat(Q), L += ` +`.concat(h, "-").concat(p, " ").concat(V), z += 2) : (ae += L, L = "", oe !== 1 && _e !== 0 || (ae += ` + `.concat(Q), z++)); + } + if (z > 20 && _e < T - 2) + return "".concat(q).concat(te, ` +`).concat(ae, ` +`).concat(f, "...").concat(p).concat(L, ` +`) + "".concat(f, "...").concat(p); + } + return "".concat(q).concat(le ? te : "", ` +`).concat(ae).concat(L).concat(ue).concat(W); + }(C, F, E))); + else if (E === "notDeepStrictEqual" || E === "notStrictEqual") { + var ee = m[E], ne = l(C).split(` +`); + if (E === "notStrictEqual" && r(C) === "object" && C !== null && (ee = m.notStrictEqualObject), ne.length > 30) + for (ne[26] = "".concat(f, "...").concat(p); ne.length > 27; ) + ne.pop(); + w = ne.length === 1 ? b(this, s(R).call(this, "".concat(ee, " ").concat(ne[0]))) : b(this, s(R).call(this, "".concat(ee, ` + +`).concat(ne.join(` +`), ` +`))); + } else { + var D = l(C), Z = "", $ = m[E]; + E === "notDeepEqual" || E === "notEqual" ? (D = "".concat(m[E], ` + +`).concat(D)).length > 1024 && (D = "".concat(D.slice(0, 1021), "...")) : (Z = "".concat(l(F)), D.length > 512 && (D = "".concat(D.slice(0, 509), "...")), Z.length > 512 && (Z = "".concat(Z.slice(0, 509), "...")), E === "deepEqual" || E === "equal" ? D = "".concat($, ` + +`).concat(D, ` + +should equal + +`) : Z = " ".concat(E, " ").concat(Z)), w = b(this, s(R).call(this, "".concat(D).concat(Z))); + } + return Error.stackTraceLimit = re, w.generatedMessage = !g, Object.defineProperty(a(w), "name", { value: "AssertionError [ERR_ASSERTION]", enumerable: !1, writable: !0, configurable: !0 }), w.code = "ERR_ASSERTION", w.actual = C, w.expected = F, w.operator = E, Error.captureStackTrace && Error.captureStackTrace(a(w), U), w.stack, w.name = "AssertionError", b(w); + } + var I, x; + return function(P, w) { + if (typeof w != "function" && w !== null) + throw new TypeError("Super expression must either be null or a function"); + P.prototype = Object.create(w && w.prototype, { constructor: { value: P, writable: !0, configurable: !0 } }), w && d(P, w); + }(R, j), I = R, x = [{ key: "toString", value: function() { + return "".concat(this.name, " [").concat(this.code, "]: ").concat(this.message); + } }, { key: n.custom, value: function(P, w) { + return n(this, function(g) { + for (var E = 1; E < arguments.length; E++) { + var U = arguments[E] != null ? arguments[E] : {}, C = Object.keys(U); + typeof Object.getOwnPropertySymbols == "function" && (C = C.concat(Object.getOwnPropertySymbols(U).filter(function(F) { + return Object.getOwnPropertyDescriptor(U, F).enumerable; + }))), C.forEach(function(F) { + A(g, F, U[F]); + }); + } + return g; + }({}, w, { customInspect: !1, depth: 0 })); + } }], x && k(I.prototype, x), R; + }(t(Error)); + J.exports = N; + }, 2136: (J, e, _) => { + function O(s) { + return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) { + return typeof r; + } : function(r) { + return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r; + }, O(s); + } + function A(s) { + return A = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) { + return r.__proto__ || Object.getPrototypeOf(r); + }, A(s); + } + function k(s, r) { + return k = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, k(s, r); + } + var b, a, t = {}; + function u(s, r, n) { + n || (n = Error); + var o = function(i) { + function f(c, h, p) { + var m; + return function(M, l) { + if (!(M instanceof l)) + throw new TypeError("Cannot call a class as a function"); + }(this, f), m = function(M, l) { + return !l || O(l) !== "object" && typeof l != "function" ? function(N) { + if (N === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return N; + }(M) : l; + }(this, A(f).call(this, function(M, l, N) { + return typeof r == "string" ? r : r(M, l, N); + }(c, h, p))), m.code = s, m; + } + return function(c, h) { + if (typeof h != "function" && h !== null) + throw new TypeError("Super expression must either be null or a function"); + c.prototype = Object.create(h && h.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), h && k(c, h); + }(f, i), f; + }(n); + t[s] = o; + } + function d(s, r) { + if (Array.isArray(s)) { + var n = s.length; + return s = s.map(function(o) { + return String(o); + }), n > 2 ? "one of ".concat(r, " ").concat(s.slice(0, n - 1).join(", "), ", or ") + s[n - 1] : n === 2 ? "one of ".concat(r, " ").concat(s[0], " or ").concat(s[1]) : "of ".concat(r, " ").concat(s[0]); + } + return "of ".concat(r, " ").concat(String(s)); + } + u("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), u("ERR_INVALID_ARG_TYPE", function(s, r, n) { + var o, i, f, c, h; + if (b === void 0 && (b = _(9282)), b(typeof s == "string", "'name' must be a string"), typeof r == "string" && (i = "not ", r.substr(0, 4) === i) ? (o = "must not be", r = r.replace(/^not /, "")) : o = "must be", function(m, M, l) { + return (l === void 0 || l > m.length) && (l = m.length), m.substring(l - 9, l) === M; + }(s, " argument")) + f = "The ".concat(s, " ").concat(o, " ").concat(d(r, "type")); + else { + var p = (typeof h != "number" && (h = 0), h + 1 > (c = s).length || c.indexOf(".", h) === -1 ? "argument" : "property"); + f = 'The "'.concat(s, '" ').concat(p, " ").concat(o, " ").concat(d(r, "type")); + } + return f + ". Received type ".concat(O(n)); + }, TypeError), u("ERR_INVALID_ARG_VALUE", function(s, r) { + var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "is invalid"; + a === void 0 && (a = _(9539)); + var o = a.inspect(r); + return o.length > 128 && (o = "".concat(o.slice(0, 128), "...")), "The argument '".concat(s, "' ").concat(n, ". Received ").concat(o); + }, TypeError), u("ERR_INVALID_RETURN_VALUE", function(s, r, n) { + var o; + return o = n && n.constructor && n.constructor.name ? "instance of ".concat(n.constructor.name) : "type ".concat(O(n)), "Expected ".concat(s, ' to be returned from the "').concat(r, '"') + " function but got ".concat(o, "."); + }, TypeError), u("ERR_MISSING_ARGS", function() { + for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) + r[n] = arguments[n]; + b === void 0 && (b = _(9282)), b(r.length > 0, "At least one arg needs to be specified"); + var o = "The ", i = r.length; + switch (r = r.map(function(f) { + return '"'.concat(f, '"'); + }), i) { + case 1: + o += "".concat(r[0], " argument"); + break; + case 2: + o += "".concat(r[0], " and ").concat(r[1], " arguments"); + break; + default: + o += r.slice(0, i - 1).join(", "), o += ", and ".concat(r[i - 1], " arguments"); + } + return "".concat(o, " must be specified"); + }, TypeError), J.exports.codes = t; + }, 9158: (J, e, _) => { + function O(ce, ue) { + return function(le) { + if (Array.isArray(le)) + return le; + }(ce) || function(le, be) { + var de = [], pe = !0, _e = !1, W = void 0; + try { + for (var v, y = le[Symbol.iterator](); !(pe = (v = y.next()).done) && (de.push(v.value), !be || de.length !== be); pe = !0) + ; + } catch (S) { + _e = !0, W = S; + } finally { + try { + pe || y.return == null || y.return(); + } finally { + if (_e) + throw W; + } + } + return de; + }(ce, ue) || function() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + }(); + } + function A(ce) { + return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ue) { + return typeof ue; + } : function(ue) { + return ue && typeof Symbol == "function" && ue.constructor === Symbol && ue !== Symbol.prototype ? "symbol" : typeof ue; + }, A(ce); + } + var k = /a/g.flags !== void 0, b = function(ce) { + var ue = []; + return ce.forEach(function(le) { + return ue.push(le); + }), ue; + }, a = function(ce) { + var ue = []; + return ce.forEach(function(le, be) { + return ue.push([be, le]); + }), ue; + }, t = Object.is ? Object.is : _(609), u = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() { + return []; + }, d = Number.isNaN ? Number.isNaN : _(360); + function s(ce) { + return ce.call.bind(ce); + } + var r = s(Object.prototype.hasOwnProperty), n = s(Object.prototype.propertyIsEnumerable), o = s(Object.prototype.toString), i = _(9539).types, f = i.isAnyArrayBuffer, c = i.isArrayBufferView, h = i.isDate, p = i.isMap, m = i.isRegExp, M = i.isSet, l = i.isNativeError, N = i.isBoxedPrimitive, j = i.isNumberObject, R = i.isStringObject, I = i.isBooleanObject, x = i.isBigIntObject, P = i.isSymbolObject, w = i.isFloat32Array, g = i.isFloat64Array; + function E(ce) { + if (ce.length === 0 || ce.length > 10) + return !0; + for (var ue = 0; ue < ce.length; ue++) { + var le = ce.charCodeAt(ue); + if (le < 48 || le > 57) + return !0; + } + return ce.length === 10 && ce >= Math.pow(2, 32); + } + function U(ce) { + return Object.keys(ce).filter(E).concat(u(ce).filter(Object.prototype.propertyIsEnumerable.bind(ce))); + } + function C(ce, ue) { + if (ce === ue) + return 0; + for (var le = ce.length, be = ue.length, de = 0, pe = Math.min(le, be); de < pe; ++de) + if (ce[de] !== ue[de]) { + le = ce[de], be = ue[de]; + break; + } + return le < be ? -1 : be < le ? 1 : 0; + } + var F = 0, re = 1, ee = 2, ne = 3; + function D(ce, ue, le, be) { + if (ce === ue) + return ce !== 0 || !le || t(ce, ue); + if (le) { + if (A(ce) !== "object") + return typeof ce == "number" && d(ce) && d(ue); + if (A(ue) !== "object" || ce === null || ue === null || Object.getPrototypeOf(ce) !== Object.getPrototypeOf(ue)) + return !1; + } else { + if (ce === null || A(ce) !== "object") + return (ue === null || A(ue) !== "object") && ce == ue; + if (ue === null || A(ue) !== "object") + return !1; + } + var de, pe, _e, W, v = o(ce); + if (v !== o(ue)) + return !1; + if (Array.isArray(ce)) { + if (ce.length !== ue.length) + return !1; + var y = U(ce), S = U(ue); + return y.length === S.length && $(ce, ue, le, be, re, y); + } + if (v === "[object Object]" && (!p(ce) && p(ue) || !M(ce) && M(ue))) + return !1; + if (h(ce)) { + if (!h(ue) || Date.prototype.getTime.call(ce) !== Date.prototype.getTime.call(ue)) + return !1; + } else if (m(ce)) { + if (!m(ue) || (_e = ce, W = ue, !(k ? _e.source === W.source && _e.flags === W.flags : RegExp.prototype.toString.call(_e) === RegExp.prototype.toString.call(W)))) + return !1; + } else if (l(ce) || ce instanceof Error) { + if (ce.message !== ue.message || ce.name !== ue.name) + return !1; + } else { + if (c(ce)) { + if (le || !w(ce) && !g(ce)) { + if (!function(z, q) { + return z.byteLength === q.byteLength && C(new Uint8Array(z.buffer, z.byteOffset, z.byteLength), new Uint8Array(q.buffer, q.byteOffset, q.byteLength)) === 0; + }(ce, ue)) + return !1; + } else if (!function(z, q) { + if (z.byteLength !== q.byteLength) + return !1; + for (var te = 0; te < z.byteLength; te++) + if (z[te] !== q[te]) + return !1; + return !0; + }(ce, ue)) + return !1; + var T = U(ce), B = U(ue); + return T.length === B.length && $(ce, ue, le, be, F, T); + } + if (M(ce)) + return !(!M(ue) || ce.size !== ue.size) && $(ce, ue, le, be, ee); + if (p(ce)) + return !(!p(ue) || ce.size !== ue.size) && $(ce, ue, le, be, ne); + if (f(ce)) { + if (pe = ue, (de = ce).byteLength !== pe.byteLength || C(new Uint8Array(de), new Uint8Array(pe)) !== 0) + return !1; + } else if (N(ce) && !function(z, q) { + return j(z) ? j(q) && t(Number.prototype.valueOf.call(z), Number.prototype.valueOf.call(q)) : R(z) ? R(q) && String.prototype.valueOf.call(z) === String.prototype.valueOf.call(q) : I(z) ? I(q) && Boolean.prototype.valueOf.call(z) === Boolean.prototype.valueOf.call(q) : x(z) ? x(q) && BigInt.prototype.valueOf.call(z) === BigInt.prototype.valueOf.call(q) : P(q) && Symbol.prototype.valueOf.call(z) === Symbol.prototype.valueOf.call(q); + }(ce, ue)) + return !1; + } + return $(ce, ue, le, be, F); + } + function Z(ce, ue) { + return ue.filter(function(le) { + return n(ce, le); + }); + } + function $(ce, ue, le, be, de, pe) { + if (arguments.length === 5) { + pe = Object.keys(ce); + var _e = Object.keys(ue); + if (pe.length !== _e.length) + return !1; + } + for (var W = 0; W < pe.length; W++) + if (!r(ue, pe[W])) + return !1; + if (le && arguments.length === 5) { + var v = u(ce); + if (v.length !== 0) { + var y = 0; + for (W = 0; W < v.length; W++) { + var S = v[W]; + if (n(ce, S)) { + if (!n(ue, S)) + return !1; + pe.push(S), y++; + } else if (n(ue, S)) + return !1; + } + var T = u(ue); + if (v.length !== T.length && Z(ue, T).length !== y) + return !1; + } else { + var B = u(ue); + if (B.length !== 0 && Z(ue, B).length !== 0) + return !1; + } + } + if (pe.length === 0 && (de === F || de === re && ce.length === 0 || ce.size === 0)) + return !0; + if (be === void 0) + be = { val1: /* @__PURE__ */ new Map(), val2: /* @__PURE__ */ new Map(), position: 0 }; + else { + var z = be.val1.get(ce); + if (z !== void 0) { + var q = be.val2.get(ue); + if (q !== void 0) + return z === q; + } + be.position++; + } + be.val1.set(ce, be.position), be.val2.set(ue, be.position); + var te = function(oe, V, Q, G, H, ie) { + var se = 0; + if (ie === ee) { + if (!function(me, ge, ye, Ee) { + for (var Ae = null, Pe = b(me), ke = 0; ke < Pe.length; ke++) { + var xe = Pe[ke]; + if (A(xe) === "object" && xe !== null) + Ae === null && (Ae = /* @__PURE__ */ new Set()), Ae.add(xe); + else if (!ge.has(xe)) { + if (ye || !Y(me, ge, xe)) + return !1; + Ae === null && (Ae = /* @__PURE__ */ new Set()), Ae.add(xe); + } + } + if (Ae !== null) { + for (var we = b(ge), Se = 0; Se < we.length; Se++) { + var Re = we[Se]; + if (A(Re) === "object" && Re !== null) { + if (!X(Ae, Re, ye, Ee)) + return !1; + } else if (!ye && !me.has(Re) && !X(Ae, Re, ye, Ee)) + return !1; + } + return Ae.size === 0; + } + return !0; + }(oe, V, Q, H)) + return !1; + } else if (ie === ne) { + if (!function(me, ge, ye, Ee) { + for (var Ae = null, Pe = a(me), ke = 0; ke < Pe.length; ke++) { + var xe = O(Pe[ke], 2), we = xe[0], Se = xe[1]; + if (A(we) === "object" && we !== null) + Ae === null && (Ae = /* @__PURE__ */ new Set()), Ae.add(we); + else { + var Re = ge.get(we); + if (Re === void 0 && !ge.has(we) || !D(Se, Re, ye, Ee)) { + if (ye || !L(me, ge, we, Se, Ee)) + return !1; + Ae === null && (Ae = /* @__PURE__ */ new Set()), Ae.add(we); + } + } + } + if (Ae !== null) { + for (var Oe = a(ge), Me = 0; Me < Oe.length; Me++) { + var Te = O(Oe[Me], 2), Ne = (we = Te[0], Te[1]); + if (A(we) === "object" && we !== null) { + if (!ae(Ae, me, we, Ne, ye, Ee)) + return !1; + } else if (!(ye || me.has(we) && D(me.get(we), Ne, !1, Ee) || ae(Ae, me, we, Ne, !1, Ee))) + return !1; + } + return Ae.size === 0; + } + return !0; + }(oe, V, Q, H)) + return !1; + } else if (ie === re) + for (; se < oe.length; se++) { + if (!r(oe, se)) { + if (r(V, se)) + return !1; + for (var fe = Object.keys(oe); se < fe.length; se++) { + var he = fe[se]; + if (!r(V, he) || !D(oe[he], V[he], Q, H)) + return !1; + } + return fe.length === Object.keys(V).length; + } + if (!r(V, se) || !D(oe[se], V[se], Q, H)) + return !1; + } + for (se = 0; se < G.length; se++) { + var ve = G[se]; + if (!D(oe[ve], V[ve], Q, H)) + return !1; + } + return !0; + }(ce, ue, le, pe, be, de); + return be.val1.delete(ce), be.val2.delete(ue), te; + } + function X(ce, ue, le, be) { + for (var de = b(ce), pe = 0; pe < de.length; pe++) { + var _e = de[pe]; + if (D(ue, _e, le, be)) + return ce.delete(_e), !0; + } + return !1; + } + function K(ce) { + switch (A(ce)) { + case "undefined": + return null; + case "object": + return; + case "symbol": + return !1; + case "string": + ce = +ce; + case "number": + if (d(ce)) + return !1; + } + return !0; + } + function Y(ce, ue, le) { + var be = K(le); + return be ?? (ue.has(be) && !ce.has(be)); + } + function L(ce, ue, le, be, de) { + var pe = K(le); + if (pe != null) + return pe; + var _e = ue.get(pe); + return !(_e === void 0 && !ue.has(pe) || !D(be, _e, !1, de)) && !ce.has(pe) && D(be, _e, !1, de); + } + function ae(ce, ue, le, be, de, pe) { + for (var _e = b(ce), W = 0; W < _e.length; W++) { + var v = _e[W]; + if (D(le, v, de, pe) && D(be, ue.get(v), de, pe)) + return ce.delete(v), !0; + } + return !1; + } + J.exports = { isDeepEqual: function(ce, ue) { + return D(ce, ue, !1); + }, isDeepStrictEqual: function(ce, ue) { + return D(ce, ue, !0); + } }; + }, 8162: (J, e, _) => { + var O = _(9509).Buffer; + J.exports = function(A) { + if (A.length >= 255) + throw new TypeError("Alphabet too long"); + for (var k = new Uint8Array(256), b = 0; b < k.length; b++) + k[b] = 255; + for (var a = 0; a < A.length; a++) { + var t = A.charAt(a), u = t.charCodeAt(0); + if (k[u] !== 255) + throw new TypeError(t + " is ambiguous"); + k[u] = a; + } + var d = A.length, s = A.charAt(0), r = Math.log(d) / Math.log(256), n = Math.log(256) / Math.log(d); + function o(i) { + if (typeof i != "string") + throw new TypeError("Expected String"); + if (i.length === 0) + return O.alloc(0); + for (var f = 0, c = 0, h = 0; i[f] === s; ) + c++, f++; + for (var p = (i.length - f) * r + 1 >>> 0, m = new Uint8Array(p); i[f]; ) { + var M = k[i.charCodeAt(f)]; + if (M === 255) + return; + for (var l = 0, N = p - 1; (M !== 0 || l < h) && N !== -1; N--, l++) + M += d * m[N] >>> 0, m[N] = M % 256 >>> 0, M = M / 256 >>> 0; + if (M !== 0) + throw new Error("Non-zero carry"); + h = l, f++; + } + for (var j = p - h; j !== p && m[j] === 0; ) + j++; + var R = O.allocUnsafe(c + (p - j)); + R.fill(0, 0, c); + for (var I = c; j !== p; ) + R[I++] = m[j++]; + return R; + } + return { encode: function(i) { + if ((Array.isArray(i) || i instanceof Uint8Array) && (i = O.from(i)), !O.isBuffer(i)) + throw new TypeError("Expected Buffer"); + if (i.length === 0) + return ""; + for (var f = 0, c = 0, h = 0, p = i.length; h !== p && i[h] === 0; ) + h++, f++; + for (var m = (p - h) * n + 1 >>> 0, M = new Uint8Array(m); h !== p; ) { + for (var l = i[h], N = 0, j = m - 1; (l !== 0 || N < c) && j !== -1; j--, N++) + l += 256 * M[j] >>> 0, M[j] = l % d >>> 0, l = l / d >>> 0; + if (l !== 0) + throw new Error("Non-zero carry"); + c = N, h++; + } + for (var R = m - c; R !== m && M[R] === 0; ) + R++; + for (var I = s.repeat(f); R < m; ++R) + I += A.charAt(M[R]); + return I; + }, decodeUnsafe: o, decode: function(i) { + var f = o(i); + if (f) + return f; + throw new Error("Non-base" + d + " character"); + } }; + }; + }, 9742: (J, e) => { + e.byteLength = function(u) { + var d = a(u), s = d[0], r = d[1]; + return 3 * (s + r) / 4 - r; + }, e.toByteArray = function(u) { + var d, s, r = a(u), n = r[0], o = r[1], i = new A(function(h, p, m) { + return 3 * (p + m) / 4 - m; + }(0, n, o)), f = 0, c = o > 0 ? n - 4 : n; + for (s = 0; s < c; s += 4) + d = O[u.charCodeAt(s)] << 18 | O[u.charCodeAt(s + 1)] << 12 | O[u.charCodeAt(s + 2)] << 6 | O[u.charCodeAt(s + 3)], i[f++] = d >> 16 & 255, i[f++] = d >> 8 & 255, i[f++] = 255 & d; + return o === 2 && (d = O[u.charCodeAt(s)] << 2 | O[u.charCodeAt(s + 1)] >> 4, i[f++] = 255 & d), o === 1 && (d = O[u.charCodeAt(s)] << 10 | O[u.charCodeAt(s + 1)] << 4 | O[u.charCodeAt(s + 2)] >> 2, i[f++] = d >> 8 & 255, i[f++] = 255 & d), i; + }, e.fromByteArray = function(u) { + for (var d, s = u.length, r = s % 3, n = [], o = 16383, i = 0, f = s - r; i < f; i += o) + n.push(t(u, i, i + o > f ? f : i + o)); + return r === 1 ? (d = u[s - 1], n.push(_[d >> 2] + _[d << 4 & 63] + "==")) : r === 2 && (d = (u[s - 2] << 8) + u[s - 1], n.push(_[d >> 10] + _[d >> 4 & 63] + _[d << 2 & 63] + "=")), n.join(""); + }; + for (var _ = [], O = [], A = typeof Uint8Array < "u" ? Uint8Array : Array, k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", b = 0; b < 64; ++b) + _[b] = k[b], O[k.charCodeAt(b)] = b; + function a(u) { + var d = u.length; + if (d % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var s = u.indexOf("="); + return s === -1 && (s = d), [s, s === d ? 0 : 4 - s % 4]; + } + function t(u, d, s) { + for (var r, n, o = [], i = d; i < s; i += 3) + r = (u[i] << 16 & 16711680) + (u[i + 1] << 8 & 65280) + (255 & u[i + 2]), o.push(_[(n = r) >> 18 & 63] + _[n >> 12 & 63] + _[n >> 6 & 63] + _[63 & n]); + return o.join(""); + } + O["-".charCodeAt(0)] = 62, O["_".charCodeAt(0)] = 63; + }, 7715: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.bech32m = e.bech32 = void 0; + const _ = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", O = {}; + for (let s = 0; s < 32; s++) { + const r = _.charAt(s); + O[r] = s; + } + function A(s) { + const r = s >> 25; + return (33554431 & s) << 5 ^ 996825010 & -(r >> 0 & 1) ^ 642813549 & -(r >> 1 & 1) ^ 513874426 & -(r >> 2 & 1) ^ 1027748829 & -(r >> 3 & 1) ^ 705979059 & -(r >> 4 & 1); + } + function k(s) { + let r = 1; + for (let n = 0; n < s.length; ++n) { + const o = s.charCodeAt(n); + if (o < 33 || o > 126) + return "Invalid prefix (" + s + ")"; + r = A(r) ^ o >> 5; + } + r = A(r); + for (let n = 0; n < s.length; ++n) { + const o = s.charCodeAt(n); + r = A(r) ^ 31 & o; + } + return r; + } + function b(s, r, n, o) { + let i = 0, f = 0; + const c = (1 << n) - 1, h = []; + for (let p = 0; p < s.length; ++p) + for (i = i << r | s[p], f += r; f >= n; ) + f -= n, h.push(i >> f & c); + if (o) + f > 0 && h.push(i << n - f & c); + else { + if (f >= r) + return "Excess padding"; + if (i << n - f & c) + return "Non-zero padding"; + } + return h; + } + function a(s) { + return b(s, 8, 5, !0); + } + function t(s) { + const r = b(s, 5, 8, !1); + if (Array.isArray(r)) + return r; + } + function u(s) { + const r = b(s, 5, 8, !1); + if (Array.isArray(r)) + return r; + throw new Error(r); + } + function d(s) { + let r; + function n(o, i) { + if (i = i || 90, o.length < 8) + return o + " too short"; + if (o.length > i) + return "Exceeds length limit"; + const f = o.toLowerCase(), c = o.toUpperCase(); + if (o !== f && o !== c) + return "Mixed-case string " + o; + const h = (o = f).lastIndexOf("1"); + if (h === -1) + return "No separator character for " + o; + if (h === 0) + return "Missing prefix for " + o; + const p = o.slice(0, h), m = o.slice(h + 1); + if (m.length < 6) + return "Data too short"; + let M = k(p); + if (typeof M == "string") + return M; + const l = []; + for (let N = 0; N < m.length; ++N) { + const j = m.charAt(N), R = O[j]; + if (R === void 0) + return "Unknown character " + j; + M = A(M) ^ R, N + 6 >= m.length || l.push(R); + } + return M !== r ? "Invalid checksum for " + o : { prefix: p, words: l }; + } + return r = s === "bech32" ? 1 : 734539939, { decodeUnsafe: function(o, i) { + const f = n(o, i); + if (typeof f == "object") + return f; + }, decode: function(o, i) { + const f = n(o, i); + if (typeof f == "object") + return f; + throw new Error(f); + }, encode: function(o, i, f) { + if (f = f || 90, o.length + 7 + i.length > f) + throw new TypeError("Exceeds length limit"); + let c = k(o = o.toLowerCase()); + if (typeof c == "string") + throw new Error(c); + let h = o + "1"; + for (let p = 0; p < i.length; ++p) { + const m = i[p]; + if (m >> 5) + throw new Error("Non 5-bit word"); + c = A(c) ^ m, h += _.charAt(m); + } + for (let p = 0; p < 6; ++p) + c = A(c); + c ^= r; + for (let p = 0; p < 6; ++p) + h += _.charAt(c >> 5 * (5 - p) & 31); + return h; + }, toWords: a, fromWordsUnsafe: t, fromWords: u }; + } + e.bech32 = d("bech32"), e.bech32m = d("bech32m"); + }, 4736: (J, e, _) => { + var O; + J = _.nmd(J); + var A = function(k) { + var b = 1e7, a = 7, t = 9007199254740992, u = c(t), d = "0123456789abcdefghijklmnopqrstuvwxyz", s = typeof BigInt == "function"; + function r(T, B, z, q) { + return T === void 0 ? r[0] : B === void 0 || +B == 10 && !z ? y(T) : de(T, B, z, q); + } + function n(T, B) { + this.value = T, this.sign = B, this.isSmall = !1; + } + function o(T) { + this.value = T, this.sign = T < 0, this.isSmall = !0; + } + function i(T) { + this.value = T; + } + function f(T) { + return -t < T && T < t; + } + function c(T) { + return T < 1e7 ? [T] : T < 1e14 ? [T % 1e7, Math.floor(T / 1e7)] : [T % 1e7, Math.floor(T / 1e7) % 1e7, Math.floor(T / 1e14)]; + } + function h(T) { + p(T); + var B = T.length; + if (B < 4 && re(T, u) < 0) + switch (B) { + case 0: + return 0; + case 1: + return T[0]; + case 2: + return T[0] + T[1] * b; + default: + return T[0] + (T[1] + T[2] * b) * b; + } + return T; + } + function p(T) { + for (var B = T.length; T[--B] === 0; ) + ; + T.length = B + 1; + } + function m(T) { + for (var B = new Array(T), z = -1; ++z < T; ) + B[z] = 0; + return B; + } + function M(T) { + return T > 0 ? Math.floor(T) : Math.ceil(T); + } + function l(T, B) { + var z, q, te = T.length, oe = B.length, V = new Array(te), Q = 0, G = b; + for (q = 0; q < oe; q++) + Q = (z = T[q] + B[q] + Q) >= G ? 1 : 0, V[q] = z - Q * G; + for (; q < te; ) + Q = (z = T[q] + Q) === G ? 1 : 0, V[q++] = z - Q * G; + return Q > 0 && V.push(Q), V; + } + function N(T, B) { + return T.length >= B.length ? l(T, B) : l(B, T); + } + function j(T, B) { + var z, q, te = T.length, oe = new Array(te), V = b; + for (q = 0; q < te; q++) + z = T[q] - V + B, B = Math.floor(z / V), oe[q] = z - B * V, B += 1; + for (; B > 0; ) + oe[q++] = B % V, B = Math.floor(B / V); + return oe; + } + function R(T, B) { + var z, q, te = T.length, oe = B.length, V = new Array(te), Q = 0, G = b; + for (z = 0; z < oe; z++) + (q = T[z] - Q - B[z]) < 0 ? (q += G, Q = 1) : Q = 0, V[z] = q; + for (z = oe; z < te; z++) { + if (!((q = T[z] - Q) < 0)) { + V[z++] = q; + break; + } + q += G, V[z] = q; + } + for (; z < te; z++) + V[z] = T[z]; + return p(V), V; + } + function I(T, B, z) { + var q, te, oe = T.length, V = new Array(oe), Q = -B, G = b; + for (q = 0; q < oe; q++) + te = T[q] + Q, Q = Math.floor(te / G), te %= G, V[q] = te < 0 ? te + G : te; + return typeof (V = h(V)) == "number" ? (z && (V = -V), new o(V)) : new n(V, z); + } + function x(T, B) { + var z, q, te, oe, V = T.length, Q = B.length, G = m(V + Q), H = b; + for (te = 0; te < V; ++te) { + oe = T[te]; + for (var ie = 0; ie < Q; ++ie) + z = oe * B[ie] + G[te + ie], q = Math.floor(z / H), G[te + ie] = z - q * H, G[te + ie + 1] += q; + } + return p(G), G; + } + function P(T, B) { + var z, q, te = T.length, oe = new Array(te), V = b, Q = 0; + for (q = 0; q < te; q++) + z = T[q] * B + Q, Q = Math.floor(z / V), oe[q] = z - Q * V; + for (; Q > 0; ) + oe[q++] = Q % V, Q = Math.floor(Q / V); + return oe; + } + function w(T, B) { + for (var z = []; B-- > 0; ) + z.push(0); + return z.concat(T); + } + function g(T, B) { + var z = Math.max(T.length, B.length); + if (z <= 30) + return x(T, B); + z = Math.ceil(z / 2); + var q = T.slice(z), te = T.slice(0, z), oe = B.slice(z), V = B.slice(0, z), Q = g(te, V), G = g(q, oe), H = g(N(te, q), N(V, oe)), ie = N(N(Q, w(R(R(H, Q), G), z)), w(G, 2 * z)); + return p(ie), ie; + } + function E(T, B, z) { + return new n(T < b ? P(B, T) : x(B, c(T)), z); + } + function U(T) { + var B, z, q, te, oe = T.length, V = m(oe + oe), Q = b; + for (q = 0; q < oe; q++) { + z = 0 - (te = T[q]) * te; + for (var G = q; G < oe; G++) + B = te * T[G] * 2 + V[q + G] + z, z = Math.floor(B / Q), V[q + G] = B - z * Q; + V[q + oe] = z; + } + return p(V), V; + } + function C(T, B) { + var z, q, te, oe, V = T.length, Q = m(V), G = b; + for (te = 0, z = V - 1; z >= 0; --z) + te = (oe = te * G + T[z]) - (q = M(oe / B)) * B, Q[z] = 0 | q; + return [Q, 0 | te]; + } + function F(T, B) { + var z, q = y(B); + if (s) + return [new i(T.value / q.value), new i(T.value % q.value)]; + var te, oe = T.value, V = q.value; + if (V === 0) + throw new Error("Cannot divide by zero"); + if (T.isSmall) + return q.isSmall ? [new o(M(oe / V)), new o(oe % V)] : [r[0], T]; + if (q.isSmall) { + if (V === 1) + return [T, r[0]]; + if (V == -1) + return [T.negate(), r[0]]; + var Q = Math.abs(V); + if (Q < b) { + te = h((z = C(oe, Q))[0]); + var G = z[1]; + return T.sign && (G = -G), typeof te == "number" ? (T.sign !== q.sign && (te = -te), [new o(te), new o(G)]) : [new n(te, T.sign !== q.sign), new o(G)]; + } + V = c(Q); + } + var H = re(oe, V); + if (H === -1) + return [r[0], T]; + if (H === 0) + return [r[T.sign === q.sign ? 1 : -1], r[0]]; + z = oe.length + V.length <= 200 ? function(he, ve) { + var me, ge, ye, Ee, Ae, Pe, ke, xe = he.length, we = ve.length, Se = b, Re = m(ve.length), Oe = ve[we - 1], Me = Math.ceil(Se / (2 * Oe)), Te = P(he, Me), Ne = P(ve, Me); + for (Te.length <= xe && Te.push(0), Ne.push(0), Oe = Ne[we - 1], ge = xe - we; ge >= 0; ge--) { + for (me = Se - 1, Te[ge + we] !== Oe && (me = Math.floor((Te[ge + we] * Se + Te[ge + we - 1]) / Oe)), ye = 0, Ee = 0, Pe = Ne.length, Ae = 0; Ae < Pe; Ae++) + ye += me * Ne[Ae], ke = Math.floor(ye / Se), Ee += Te[ge + Ae] - (ye - ke * Se), ye = ke, Ee < 0 ? (Te[ge + Ae] = Ee + Se, Ee = -1) : (Te[ge + Ae] = Ee, Ee = 0); + for (; Ee !== 0; ) { + for (me -= 1, ye = 0, Ae = 0; Ae < Pe; Ae++) + (ye += Te[ge + Ae] - Se + Ne[Ae]) < 0 ? (Te[ge + Ae] = ye + Se, ye = 0) : (Te[ge + Ae] = ye, ye = 1); + Ee += ye; + } + Re[ge] = me; + } + return Te = C(Te, Me)[0], [h(Re), h(Te)]; + }(oe, V) : function(he, ve) { + for (var me, ge, ye, Ee, Ae, Pe = he.length, ke = ve.length, xe = [], we = [], Se = b; Pe; ) + if (we.unshift(he[--Pe]), p(we), re(we, ve) < 0) + xe.push(0); + else { + ye = we[(ge = we.length) - 1] * Se + we[ge - 2], Ee = ve[ke - 1] * Se + ve[ke - 2], ge > ke && (ye = (ye + 1) * Se), me = Math.ceil(ye / Ee); + do { + if (re(Ae = P(ve, me), we) <= 0) + break; + me--; + } while (me); + xe.push(me), we = R(we, Ae); + } + return xe.reverse(), [h(xe), h(we)]; + }(oe, V), te = z[0]; + var ie = T.sign !== q.sign, se = z[1], fe = T.sign; + return typeof te == "number" ? (ie && (te = -te), te = new o(te)) : te = new n(te, ie), typeof se == "number" ? (fe && (se = -se), se = new o(se)) : se = new n(se, fe), [te, se]; + } + function re(T, B) { + if (T.length !== B.length) + return T.length > B.length ? 1 : -1; + for (var z = T.length - 1; z >= 0; z--) + if (T[z] !== B[z]) + return T[z] > B[z] ? 1 : -1; + return 0; + } + function ee(T) { + var B = T.abs(); + return !B.isUnit() && (!!(B.equals(2) || B.equals(3) || B.equals(5)) || !(B.isEven() || B.isDivisibleBy(3) || B.isDivisibleBy(5)) && (!!B.lesser(49) || void 0)); + } + function ne(T, B) { + for (var z, q, te, oe = T.prev(), V = oe, Q = 0; V.isEven(); ) + V = V.divide(2), Q++; + e: + for (q = 0; q < B.length; q++) + if (!T.lesser(B[q]) && !(te = A(B[q]).modPow(V, T)).isUnit() && !te.equals(oe)) { + for (z = Q - 1; z != 0; z--) { + if ((te = te.square().mod(T)).isUnit()) + return !1; + if (te.equals(oe)) + continue e; + } + return !1; + } + return !0; + } + n.prototype = Object.create(r.prototype), o.prototype = Object.create(r.prototype), i.prototype = Object.create(r.prototype), n.prototype.add = function(T) { + var B = y(T); + if (this.sign !== B.sign) + return this.subtract(B.negate()); + var z = this.value, q = B.value; + return B.isSmall ? new n(j(z, Math.abs(q)), this.sign) : new n(N(z, q), this.sign); + }, n.prototype.plus = n.prototype.add, o.prototype.add = function(T) { + var B = y(T), z = this.value; + if (z < 0 !== B.sign) + return this.subtract(B.negate()); + var q = B.value; + if (B.isSmall) { + if (f(z + q)) + return new o(z + q); + q = c(Math.abs(q)); + } + return new n(j(q, Math.abs(z)), z < 0); + }, o.prototype.plus = o.prototype.add, i.prototype.add = function(T) { + return new i(this.value + y(T).value); + }, i.prototype.plus = i.prototype.add, n.prototype.subtract = function(T) { + var B = y(T); + if (this.sign !== B.sign) + return this.add(B.negate()); + var z = this.value, q = B.value; + return B.isSmall ? I(z, Math.abs(q), this.sign) : function(te, oe, V) { + var Q; + return re(te, oe) >= 0 ? Q = R(te, oe) : (Q = R(oe, te), V = !V), typeof (Q = h(Q)) == "number" ? (V && (Q = -Q), new o(Q)) : new n(Q, V); + }(z, q, this.sign); + }, n.prototype.minus = n.prototype.subtract, o.prototype.subtract = function(T) { + var B = y(T), z = this.value; + if (z < 0 !== B.sign) + return this.add(B.negate()); + var q = B.value; + return B.isSmall ? new o(z - q) : I(q, Math.abs(z), z >= 0); + }, o.prototype.minus = o.prototype.subtract, i.prototype.subtract = function(T) { + return new i(this.value - y(T).value); + }, i.prototype.minus = i.prototype.subtract, n.prototype.negate = function() { + return new n(this.value, !this.sign); + }, o.prototype.negate = function() { + var T = this.sign, B = new o(-this.value); + return B.sign = !T, B; + }, i.prototype.negate = function() { + return new i(-this.value); + }, n.prototype.abs = function() { + return new n(this.value, !1); + }, o.prototype.abs = function() { + return new o(Math.abs(this.value)); + }, i.prototype.abs = function() { + return new i(this.value >= 0 ? this.value : -this.value); + }, n.prototype.multiply = function(T) { + var B, z, q, te = y(T), oe = this.value, V = te.value, Q = this.sign !== te.sign; + if (te.isSmall) { + if (V === 0) + return r[0]; + if (V === 1) + return this; + if (V === -1) + return this.negate(); + if ((B = Math.abs(V)) < b) + return new n(P(oe, B), Q); + V = c(B); + } + return new n(-0.012 * (z = oe.length) - 0.012 * (q = V.length) + 15e-6 * z * q > 0 ? g(oe, V) : x(oe, V), Q); + }, n.prototype.times = n.prototype.multiply, o.prototype._multiplyBySmall = function(T) { + return f(T.value * this.value) ? new o(T.value * this.value) : E(Math.abs(T.value), c(Math.abs(this.value)), this.sign !== T.sign); + }, n.prototype._multiplyBySmall = function(T) { + return T.value === 0 ? r[0] : T.value === 1 ? this : T.value === -1 ? this.negate() : E(Math.abs(T.value), this.value, this.sign !== T.sign); + }, o.prototype.multiply = function(T) { + return y(T)._multiplyBySmall(this); + }, o.prototype.times = o.prototype.multiply, i.prototype.multiply = function(T) { + return new i(this.value * y(T).value); + }, i.prototype.times = i.prototype.multiply, n.prototype.square = function() { + return new n(U(this.value), !1); + }, o.prototype.square = function() { + var T = this.value * this.value; + return f(T) ? new o(T) : new n(U(c(Math.abs(this.value))), !1); + }, i.prototype.square = function(T) { + return new i(this.value * this.value); + }, n.prototype.divmod = function(T) { + var B = F(this, T); + return { quotient: B[0], remainder: B[1] }; + }, i.prototype.divmod = o.prototype.divmod = n.prototype.divmod, n.prototype.divide = function(T) { + return F(this, T)[0]; + }, i.prototype.over = i.prototype.divide = function(T) { + return new i(this.value / y(T).value); + }, o.prototype.over = o.prototype.divide = n.prototype.over = n.prototype.divide, n.prototype.mod = function(T) { + return F(this, T)[1]; + }, i.prototype.mod = i.prototype.remainder = function(T) { + return new i(this.value % y(T).value); + }, o.prototype.remainder = o.prototype.mod = n.prototype.remainder = n.prototype.mod, n.prototype.pow = function(T) { + var B, z, q, te = y(T), oe = this.value, V = te.value; + if (V === 0) + return r[1]; + if (oe === 0) + return r[0]; + if (oe === 1) + return r[1]; + if (oe === -1) + return te.isEven() ? r[1] : r[-1]; + if (te.sign) + return r[0]; + if (!te.isSmall) + throw new Error("The exponent " + te.toString() + " is too large."); + if (this.isSmall && f(B = Math.pow(oe, V))) + return new o(M(B)); + for (z = this, q = r[1]; !0 & V && (q = q.times(z), --V), V !== 0; ) + V /= 2, z = z.square(); + return q; + }, o.prototype.pow = n.prototype.pow, i.prototype.pow = function(T) { + var B = y(T), z = this.value, q = B.value, te = BigInt(0), oe = BigInt(1), V = BigInt(2); + if (q === te) + return r[1]; + if (z === te) + return r[0]; + if (z === oe) + return r[1]; + if (z === BigInt(-1)) + return B.isEven() ? r[1] : r[-1]; + if (B.isNegative()) + return new i(te); + for (var Q = this, G = r[1]; (q & oe) === oe && (G = G.times(Q), --q), q !== te; ) + q /= V, Q = Q.square(); + return G; + }, n.prototype.modPow = function(T, B) { + if (T = y(T), (B = y(B)).isZero()) + throw new Error("Cannot take modPow with modulus 0"); + var z = r[1], q = this.mod(B); + for (T.isNegative() && (T = T.multiply(r[-1]), q = q.modInv(B)); T.isPositive(); ) { + if (q.isZero()) + return r[0]; + T.isOdd() && (z = z.multiply(q).mod(B)), T = T.divide(2), q = q.square().mod(B); + } + return z; + }, i.prototype.modPow = o.prototype.modPow = n.prototype.modPow, n.prototype.compareAbs = function(T) { + var B = y(T), z = this.value, q = B.value; + return B.isSmall ? 1 : re(z, q); + }, o.prototype.compareAbs = function(T) { + var B = y(T), z = Math.abs(this.value), q = B.value; + return B.isSmall ? z === (q = Math.abs(q)) ? 0 : z > q ? 1 : -1 : -1; + }, i.prototype.compareAbs = function(T) { + var B = this.value, z = y(T).value; + return (B = B >= 0 ? B : -B) === (z = z >= 0 ? z : -z) ? 0 : B > z ? 1 : -1; + }, n.prototype.compare = function(T) { + if (T === 1 / 0) + return -1; + if (T === -1 / 0) + return 1; + var B = y(T), z = this.value, q = B.value; + return this.sign !== B.sign ? B.sign ? 1 : -1 : B.isSmall ? this.sign ? -1 : 1 : re(z, q) * (this.sign ? -1 : 1); + }, n.prototype.compareTo = n.prototype.compare, o.prototype.compare = function(T) { + if (T === 1 / 0) + return -1; + if (T === -1 / 0) + return 1; + var B = y(T), z = this.value, q = B.value; + return B.isSmall ? z == q ? 0 : z > q ? 1 : -1 : z < 0 !== B.sign ? z < 0 ? -1 : 1 : z < 0 ? 1 : -1; + }, o.prototype.compareTo = o.prototype.compare, i.prototype.compare = function(T) { + if (T === 1 / 0) + return -1; + if (T === -1 / 0) + return 1; + var B = this.value, z = y(T).value; + return B === z ? 0 : B > z ? 1 : -1; + }, i.prototype.compareTo = i.prototype.compare, n.prototype.equals = function(T) { + return this.compare(T) === 0; + }, i.prototype.eq = i.prototype.equals = o.prototype.eq = o.prototype.equals = n.prototype.eq = n.prototype.equals, n.prototype.notEquals = function(T) { + return this.compare(T) !== 0; + }, i.prototype.neq = i.prototype.notEquals = o.prototype.neq = o.prototype.notEquals = n.prototype.neq = n.prototype.notEquals, n.prototype.greater = function(T) { + return this.compare(T) > 0; + }, i.prototype.gt = i.prototype.greater = o.prototype.gt = o.prototype.greater = n.prototype.gt = n.prototype.greater, n.prototype.lesser = function(T) { + return this.compare(T) < 0; + }, i.prototype.lt = i.prototype.lesser = o.prototype.lt = o.prototype.lesser = n.prototype.lt = n.prototype.lesser, n.prototype.greaterOrEquals = function(T) { + return this.compare(T) >= 0; + }, i.prototype.geq = i.prototype.greaterOrEquals = o.prototype.geq = o.prototype.greaterOrEquals = n.prototype.geq = n.prototype.greaterOrEquals, n.prototype.lesserOrEquals = function(T) { + return this.compare(T) <= 0; + }, i.prototype.leq = i.prototype.lesserOrEquals = o.prototype.leq = o.prototype.lesserOrEquals = n.prototype.leq = n.prototype.lesserOrEquals, n.prototype.isEven = function() { + return (1 & this.value[0]) == 0; + }, o.prototype.isEven = function() { + return (1 & this.value) == 0; + }, i.prototype.isEven = function() { + return (this.value & BigInt(1)) === BigInt(0); + }, n.prototype.isOdd = function() { + return (1 & this.value[0]) == 1; + }, o.prototype.isOdd = function() { + return (1 & this.value) == 1; + }, i.prototype.isOdd = function() { + return (this.value & BigInt(1)) === BigInt(1); + }, n.prototype.isPositive = function() { + return !this.sign; + }, o.prototype.isPositive = function() { + return this.value > 0; + }, i.prototype.isPositive = o.prototype.isPositive, n.prototype.isNegative = function() { + return this.sign; + }, o.prototype.isNegative = function() { + return this.value < 0; + }, i.prototype.isNegative = o.prototype.isNegative, n.prototype.isUnit = function() { + return !1; + }, o.prototype.isUnit = function() { + return Math.abs(this.value) === 1; + }, i.prototype.isUnit = function() { + return this.abs().value === BigInt(1); + }, n.prototype.isZero = function() { + return !1; + }, o.prototype.isZero = function() { + return this.value === 0; + }, i.prototype.isZero = function() { + return this.value === BigInt(0); + }, n.prototype.isDivisibleBy = function(T) { + var B = y(T); + return !B.isZero() && (!!B.isUnit() || (B.compareAbs(2) === 0 ? this.isEven() : this.mod(B).isZero())); + }, i.prototype.isDivisibleBy = o.prototype.isDivisibleBy = n.prototype.isDivisibleBy, n.prototype.isPrime = function(T) { + var B = ee(this); + if (B !== k) + return B; + var z = this.abs(), q = z.bitLength(); + if (q <= 64) + return ne(z, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]); + for (var te = Math.log(2) * q.toJSNumber(), oe = Math.ceil(T === !0 ? 2 * Math.pow(te, 2) : te), V = [], Q = 0; Q < oe; Q++) + V.push(A(Q + 2)); + return ne(z, V); + }, i.prototype.isPrime = o.prototype.isPrime = n.prototype.isPrime, n.prototype.isProbablePrime = function(T, B) { + var z = ee(this); + if (z !== k) + return z; + for (var q = this.abs(), te = T === k ? 5 : T, oe = [], V = 0; V < te; V++) + oe.push(A.randBetween(2, q.minus(2), B)); + return ne(q, oe); + }, i.prototype.isProbablePrime = o.prototype.isProbablePrime = n.prototype.isProbablePrime, n.prototype.modInv = function(T) { + for (var B, z, q, te = A.zero, oe = A.one, V = y(T), Q = this.abs(); !Q.isZero(); ) + B = V.divide(Q), z = te, q = V, te = oe, V = Q, oe = z.subtract(B.multiply(oe)), Q = q.subtract(B.multiply(Q)); + if (!V.isUnit()) + throw new Error(this.toString() + " and " + T.toString() + " are not co-prime"); + return te.compare(0) === -1 && (te = te.add(T)), this.isNegative() ? te.negate() : te; + }, i.prototype.modInv = o.prototype.modInv = n.prototype.modInv, n.prototype.next = function() { + var T = this.value; + return this.sign ? I(T, 1, this.sign) : new n(j(T, 1), this.sign); + }, o.prototype.next = function() { + var T = this.value; + return T + 1 < t ? new o(T + 1) : new n(u, !1); + }, i.prototype.next = function() { + return new i(this.value + BigInt(1)); + }, n.prototype.prev = function() { + var T = this.value; + return this.sign ? new n(j(T, 1), !0) : I(T, 1, this.sign); + }, o.prototype.prev = function() { + var T = this.value; + return T - 1 > -t ? new o(T - 1) : new n(u, !0); + }, i.prototype.prev = function() { + return new i(this.value - BigInt(1)); + }; + for (var D = [1]; 2 * D[D.length - 1] <= b; ) + D.push(2 * D[D.length - 1]); + var Z = D.length, $ = D[Z - 1]; + function X(T) { + return Math.abs(T) <= b; + } + function K(T, B, z) { + B = y(B); + for (var q = T.isNegative(), te = B.isNegative(), oe = q ? T.not() : T, V = te ? B.not() : B, Q = 0, G = 0, H = null, ie = null, se = []; !oe.isZero() || !V.isZero(); ) + Q = (H = F(oe, $))[1].toJSNumber(), q && (Q = $ - 1 - Q), G = (ie = F(V, $))[1].toJSNumber(), te && (G = $ - 1 - G), oe = H[0], V = ie[0], se.push(z(Q, G)); + for (var fe = z(q ? 1 : 0, te ? 1 : 0) !== 0 ? A(-1) : A(0), he = se.length - 1; he >= 0; he -= 1) + fe = fe.multiply($).add(A(se[he])); + return fe; + } + n.prototype.shiftLeft = function(T) { + var B = y(T).toJSNumber(); + if (!X(B)) + throw new Error(String(B) + " is too large for shifting."); + if (B < 0) + return this.shiftRight(-B); + var z = this; + if (z.isZero()) + return z; + for (; B >= Z; ) + z = z.multiply($), B -= Z - 1; + return z.multiply(D[B]); + }, i.prototype.shiftLeft = o.prototype.shiftLeft = n.prototype.shiftLeft, n.prototype.shiftRight = function(T) { + var B, z = y(T).toJSNumber(); + if (!X(z)) + throw new Error(String(z) + " is too large for shifting."); + if (z < 0) + return this.shiftLeft(-z); + for (var q = this; z >= Z; ) { + if (q.isZero() || q.isNegative() && q.isUnit()) + return q; + q = (B = F(q, $))[1].isNegative() ? B[0].prev() : B[0], z -= Z - 1; + } + return (B = F(q, D[z]))[1].isNegative() ? B[0].prev() : B[0]; + }, i.prototype.shiftRight = o.prototype.shiftRight = n.prototype.shiftRight, n.prototype.not = function() { + return this.negate().prev(); + }, i.prototype.not = o.prototype.not = n.prototype.not, n.prototype.and = function(T) { + return K(this, T, function(B, z) { + return B & z; + }); + }, i.prototype.and = o.prototype.and = n.prototype.and, n.prototype.or = function(T) { + return K(this, T, function(B, z) { + return B | z; + }); + }, i.prototype.or = o.prototype.or = n.prototype.or, n.prototype.xor = function(T) { + return K(this, T, function(B, z) { + return B ^ z; + }); + }, i.prototype.xor = o.prototype.xor = n.prototype.xor; + var Y = 1 << 30, L = (b & -b) * (b & -b) | Y; + function ae(T) { + var B = T.value, z = typeof B == "number" ? B | Y : typeof B == "bigint" ? B | BigInt(Y) : B[0] + B[1] * b | L; + return z & -z; + } + function ce(T, B) { + if (B.compareTo(T) <= 0) { + var z = ce(T, B.square(B)), q = z.p, te = z.e, oe = q.multiply(B); + return oe.compareTo(T) <= 0 ? { p: oe, e: 2 * te + 1 } : { p: q, e: 2 * te }; + } + return { p: A(1), e: 0 }; + } + function ue(T, B) { + return T = y(T), B = y(B), T.greater(B) ? T : B; + } + function le(T, B) { + return T = y(T), B = y(B), T.lesser(B) ? T : B; + } + function be(T, B) { + if (T = y(T).abs(), B = y(B).abs(), T.equals(B)) + return T; + if (T.isZero()) + return B; + if (B.isZero()) + return T; + for (var z, q, te = r[1]; T.isEven() && B.isEven(); ) + z = le(ae(T), ae(B)), T = T.divide(z), B = B.divide(z), te = te.multiply(z); + for (; T.isEven(); ) + T = T.divide(ae(T)); + do { + for (; B.isEven(); ) + B = B.divide(ae(B)); + T.greater(B) && (q = B, B = T, T = q), B = B.subtract(T); + } while (!B.isZero()); + return te.isUnit() ? T : T.multiply(te); + } + n.prototype.bitLength = function() { + var T = this; + return T.compareTo(A(0)) < 0 && (T = T.negate().subtract(A(1))), T.compareTo(A(0)) === 0 ? A(0) : A(ce(T, A(2)).e).add(A(1)); + }, i.prototype.bitLength = o.prototype.bitLength = n.prototype.bitLength; + var de = function(T, B, z, q) { + z = z || d, T = String(T), q || (T = T.toLowerCase(), z = z.toLowerCase()); + var te, oe = T.length, V = Math.abs(B), Q = {}; + for (te = 0; te < z.length; te++) + Q[z[te]] = te; + for (te = 0; te < oe; te++) + if ((ie = T[te]) !== "-" && ie in Q && Q[ie] >= V) { + if (ie === "1" && V === 1) + continue; + throw new Error(ie + " is not a valid digit in base " + B + "."); + } + B = y(B); + var G = [], H = T[0] === "-"; + for (te = H ? 1 : 0; te < T.length; te++) { + var ie; + if ((ie = T[te]) in Q) + G.push(y(Q[ie])); + else { + if (ie !== "<") + throw new Error(ie + " is not a valid character"); + var se = te; + do + te++; + while (T[te] !== ">" && te < T.length); + G.push(y(T.slice(se + 1, te))); + } + } + return pe(G, B, H); + }; + function pe(T, B, z) { + var q, te = r[0], oe = r[1]; + for (q = T.length - 1; q >= 0; q--) + te = te.add(T[q].times(oe)), oe = oe.times(B); + return z ? te.negate() : te; + } + function _e(T, B) { + if ((B = A(B)).isZero()) { + if (T.isZero()) + return { value: [0], isNegative: !1 }; + throw new Error("Cannot convert nonzero numbers to base 0."); + } + if (B.equals(-1)) { + if (T.isZero()) + return { value: [0], isNegative: !1 }; + if (T.isNegative()) + return { value: [].concat.apply([], Array.apply(null, Array(-T.toJSNumber())).map(Array.prototype.valueOf, [1, 0])), isNegative: !1 }; + var z = Array.apply(null, Array(T.toJSNumber() - 1)).map(Array.prototype.valueOf, [0, 1]); + return z.unshift([1]), { value: [].concat.apply([], z), isNegative: !1 }; + } + var q = !1; + if (T.isNegative() && B.isPositive() && (q = !0, T = T.abs()), B.isUnit()) + return T.isZero() ? { value: [0], isNegative: !1 } : { value: Array.apply(null, Array(T.toJSNumber())).map(Number.prototype.valueOf, 1), isNegative: q }; + for (var te, oe = [], V = T; V.isNegative() || V.compareAbs(B) >= 0; ) { + te = V.divmod(B), V = te.quotient; + var Q = te.remainder; + Q.isNegative() && (Q = B.minus(Q).abs(), V = V.next()), oe.push(Q.toJSNumber()); + } + return oe.push(V.toJSNumber()), { value: oe.reverse(), isNegative: q }; + } + function W(T, B, z) { + var q = _e(T, B); + return (q.isNegative ? "-" : "") + q.value.map(function(te) { + return function(oe, V) { + return oe < (V = V || d).length ? V[oe] : "<" + oe + ">"; + }(te, z); + }).join(""); + } + function v(T) { + if (f(+T)) { + var B = +T; + if (B === M(B)) + return s ? new i(BigInt(B)) : new o(B); + throw new Error("Invalid integer: " + T); + } + var z = T[0] === "-"; + z && (T = T.slice(1)); + var q = T.split(/e/i); + if (q.length > 2) + throw new Error("Invalid integer: " + q.join("e")); + if (q.length === 2) { + var te = q[1]; + if (te[0] === "+" && (te = te.slice(1)), (te = +te) !== M(te) || !f(te)) + throw new Error("Invalid integer: " + te + " is not a valid exponent."); + var oe = q[0], V = oe.indexOf("."); + if (V >= 0 && (te -= oe.length - V - 1, oe = oe.slice(0, V) + oe.slice(V + 1)), te < 0) + throw new Error("Cannot include negative exponent part for integers"); + T = oe += new Array(te + 1).join("0"); + } + if (!/^([0-9][0-9]*)$/.test(T)) + throw new Error("Invalid integer: " + T); + if (s) + return new i(BigInt(z ? "-" + T : T)); + for (var Q = [], G = T.length, H = a, ie = G - H; G > 0; ) + Q.push(+T.slice(ie, G)), (ie -= H) < 0 && (ie = 0), G -= H; + return p(Q), new n(Q, z); + } + function y(T) { + return typeof T == "number" ? function(B) { + if (s) + return new i(BigInt(B)); + if (f(B)) { + if (B !== M(B)) + throw new Error(B + " is not an integer."); + return new o(B); + } + return v(B.toString()); + }(T) : typeof T == "string" ? v(T) : typeof T == "bigint" ? new i(T) : T; + } + n.prototype.toArray = function(T) { + return _e(this, T); + }, o.prototype.toArray = function(T) { + return _e(this, T); + }, i.prototype.toArray = function(T) { + return _e(this, T); + }, n.prototype.toString = function(T, B) { + if (T === k && (T = 10), T !== 10) + return W(this, T, B); + for (var z, q = this.value, te = q.length, oe = String(q[--te]); --te >= 0; ) + z = String(q[te]), oe += "0000000".slice(z.length) + z; + return (this.sign ? "-" : "") + oe; + }, o.prototype.toString = function(T, B) { + return T === k && (T = 10), T != 10 ? W(this, T, B) : String(this.value); + }, i.prototype.toString = o.prototype.toString, i.prototype.toJSON = n.prototype.toJSON = o.prototype.toJSON = function() { + return this.toString(); + }, n.prototype.valueOf = function() { + return parseInt(this.toString(), 10); + }, n.prototype.toJSNumber = n.prototype.valueOf, o.prototype.valueOf = function() { + return this.value; + }, o.prototype.toJSNumber = o.prototype.valueOf, i.prototype.valueOf = i.prototype.toJSNumber = function() { + return parseInt(this.toString(), 10); + }; + for (var S = 0; S < 1e3; S++) + r[S] = y(S), S > 0 && (r[-S] = y(-S)); + return r.one = r[1], r.zero = r[0], r.minusOne = r[-1], r.max = ue, r.min = le, r.gcd = be, r.lcm = function(T, B) { + return T = y(T).abs(), B = y(B).abs(), T.divide(be(T, B)).multiply(B); + }, r.isInstance = function(T) { + return T instanceof n || T instanceof o || T instanceof i; + }, r.randBetween = function(T, B, z) { + T = y(T), B = y(B); + var q = z || Math.random, te = le(T, B), oe = ue(T, B).subtract(te).add(1); + if (oe.isSmall) + return te.add(Math.floor(q() * oe)); + for (var V = _e(oe, b).value, Q = [], G = !0, H = 0; H < V.length; H++) { + var ie = G ? V[H] + (H + 1 < V.length ? V[H + 1] / b : 0) : b, se = M(q() * ie); + Q.push(se), se < V[H] && (G = !1); + } + return te.add(r.fromArray(Q, b, !1)); + }, r.fromArray = function(T, B, z) { + return pe(T.map(y), y(B || 10), z); + }, r; + }(); + J.hasOwnProperty("exports") && (J.exports = A), (O = (function() { + return A; + }).call(e, _, e, J)) === void 0 || (J.exports = O); + }, 4431: function(J, e, _) { + var O; + (function(A) { + var k, b = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, a = Math.ceil, t = Math.floor, u = "[BigNumber Error] ", d = u + "Number primitive has more than 15 significant digits: ", s = 1e14, r = 14, n = 9007199254740991, o = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], i = 1e7, f = 1e9; + function c(j) { + var R = 0 | j; + return j > 0 || j === R ? R : R - 1; + } + function h(j) { + for (var R, I, x = 1, P = j.length, w = j[0] + ""; x < P; ) { + for (R = j[x++] + "", I = r - R.length; I--; R = "0" + R) + ; + w += R; + } + for (P = w.length; w.charCodeAt(--P) === 48; ) + ; + return w.slice(0, P + 1 || 1); + } + function p(j, R) { + var I, x, P = j.c, w = R.c, g = j.s, E = R.s, U = j.e, C = R.e; + if (!g || !E) + return null; + if (I = P && !P[0], x = w && !w[0], I || x) + return I ? x ? 0 : -E : g; + if (g != E) + return g; + if (I = g < 0, x = U == C, !P || !w) + return x ? 0 : !P ^ I ? 1 : -1; + if (!x) + return U > C ^ I ? 1 : -1; + for (E = (U = P.length) < (C = w.length) ? U : C, g = 0; g < E; g++) + if (P[g] != w[g]) + return P[g] > w[g] ^ I ? 1 : -1; + return U == C ? 0 : U > C ^ I ? 1 : -1; + } + function m(j, R, I, x) { + if (j < R || j > I || j !== t(j)) + throw Error(u + (x || "Argument") + (typeof j == "number" ? j < R || j > I ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(j)); + } + function M(j) { + var R = j.c.length - 1; + return c(j.e / r) == R && j.c[R] % 2 != 0; + } + function l(j, R) { + return (j.length > 1 ? j.charAt(0) + "." + j.slice(1) : j) + (R < 0 ? "e" : "e+") + R; + } + function N(j, R, I) { + var x, P; + if (R < 0) { + for (P = I + "."; ++R; P += I) + ; + j = P + j; + } else if (++R > (x = j.length)) { + for (P = I, R -= x; --R; P += I) + ; + j += P; + } else + R < x && (j = j.slice(0, R) + "." + j.slice(R)); + return j; + } + k = function j(R) { + var I, x, P, w, g, E, U, C, F, re, ee = de.prototype = { constructor: de, toString: null, valueOf: null }, ne = new de(1), D = 20, Z = 4, $ = -7, X = 21, K = -1e7, Y = 1e7, L = !1, ae = 1, ce = 0, ue = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, le = "0123456789abcdefghijklmnopqrstuvwxyz", be = !0; + function de(S, T) { + var B, z, q, te, oe, V, Q, G, H = this; + if (!(H instanceof de)) + return new de(S, T); + if (T == null) { + if (S && S._isBigNumber === !0) + return H.s = S.s, void (!S.c || S.e > Y ? H.c = H.e = null : S.e < K ? H.c = [H.e = 0] : (H.e = S.e, H.c = S.c.slice())); + if ((V = typeof S == "number") && 0 * S == 0) { + if (H.s = 1 / S < 0 ? (S = -S, -1) : 1, S === ~~S) { + for (te = 0, oe = S; oe >= 10; oe /= 10, te++) + ; + return void (te > Y ? H.c = H.e = null : (H.e = te, H.c = [S])); + } + G = String(S); + } else { + if (!b.test(G = String(S))) + return P(H, G, V); + H.s = G.charCodeAt(0) == 45 ? (G = G.slice(1), -1) : 1; + } + (te = G.indexOf(".")) > -1 && (G = G.replace(".", "")), (oe = G.search(/e/i)) > 0 ? (te < 0 && (te = oe), te += +G.slice(oe + 1), G = G.substring(0, oe)) : te < 0 && (te = G.length); + } else { + if (m(T, 2, le.length, "Base"), T == 10 && be) + return v(H = new de(S), D + H.e + 1, Z); + if (G = String(S), V = typeof S == "number") { + if (0 * S != 0) + return P(H, G, V, T); + if (H.s = 1 / S < 0 ? (G = G.slice(1), -1) : 1, de.DEBUG && G.replace(/^0\.0*|\./, "").length > 15) + throw Error(d + S); + } else + H.s = G.charCodeAt(0) === 45 ? (G = G.slice(1), -1) : 1; + for (B = le.slice(0, T), te = oe = 0, Q = G.length; oe < Q; oe++) + if (B.indexOf(z = G.charAt(oe)) < 0) { + if (z == ".") { + if (oe > te) { + te = Q; + continue; + } + } else if (!q && (G == G.toUpperCase() && (G = G.toLowerCase()) || G == G.toLowerCase() && (G = G.toUpperCase()))) { + q = !0, oe = -1, te = 0; + continue; + } + return P(H, String(S), V, T); + } + V = !1, (te = (G = x(G, T, 10, H.s)).indexOf(".")) > -1 ? G = G.replace(".", "") : te = G.length; + } + for (oe = 0; G.charCodeAt(oe) === 48; oe++) + ; + for (Q = G.length; G.charCodeAt(--Q) === 48; ) + ; + if (G = G.slice(oe, ++Q)) { + if (Q -= oe, V && de.DEBUG && Q > 15 && (S > n || S !== t(S))) + throw Error(d + H.s * S); + if ((te = te - oe - 1) > Y) + H.c = H.e = null; + else if (te < K) + H.c = [H.e = 0]; + else { + if (H.e = te, H.c = [], oe = (te + 1) % r, te < 0 && (oe += r), oe < Q) { + for (oe && H.c.push(+G.slice(0, oe)), Q -= r; oe < Q; ) + H.c.push(+G.slice(oe, oe += r)); + oe = r - (G = G.slice(oe)).length; + } else + oe -= Q; + for (; oe--; G += "0") + ; + H.c.push(+G); + } + } else + H.c = [H.e = 0]; + } + function pe(S, T, B, z) { + var q, te, oe, V, Q; + if (B == null ? B = Z : m(B, 0, 8), !S.c) + return S.toString(); + if (q = S.c[0], oe = S.e, T == null) + Q = h(S.c), Q = z == 1 || z == 2 && (oe <= $ || oe >= X) ? l(Q, oe) : N(Q, oe, "0"); + else if (te = (S = v(new de(S), T, B)).e, V = (Q = h(S.c)).length, z == 1 || z == 2 && (T <= te || te <= $)) { + for (; V < T; Q += "0", V++) + ; + Q = l(Q, te); + } else if (T -= oe, Q = N(Q, te, "0"), te + 1 > V) { + if (--T > 0) + for (Q += "."; T--; Q += "0") + ; + } else if ((T += te - V) > 0) + for (te + 1 == V && (Q += "."); T--; Q += "0") + ; + return S.s < 0 && q ? "-" + Q : Q; + } + function _e(S, T) { + for (var B, z = 1, q = new de(S[0]); z < S.length; z++) { + if (!(B = new de(S[z])).s) { + q = B; + break; + } + T.call(q, B) && (q = B); + } + return q; + } + function W(S, T, B) { + for (var z = 1, q = T.length; !T[--q]; T.pop()) + ; + for (q = T[0]; q >= 10; q /= 10, z++) + ; + return (B = z + B * r - 1) > Y ? S.c = S.e = null : B < K ? S.c = [S.e = 0] : (S.e = B, S.c = T), S; + } + function v(S, T, B, z) { + var q, te, oe, V, Q, G, H, ie = S.c, se = o; + if (ie) { + e: { + for (q = 1, V = ie[0]; V >= 10; V /= 10, q++) + ; + if ((te = T - q) < 0) + te += r, oe = T, H = (Q = ie[G = 0]) / se[q - oe - 1] % 10 | 0; + else if ((G = a((te + 1) / r)) >= ie.length) { + if (!z) + break e; + for (; ie.length <= G; ie.push(0)) + ; + Q = H = 0, q = 1, oe = (te %= r) - r + 1; + } else { + for (Q = V = ie[G], q = 1; V >= 10; V /= 10, q++) + ; + H = (oe = (te %= r) - r + q) < 0 ? 0 : Q / se[q - oe - 1] % 10 | 0; + } + if (z = z || T < 0 || ie[G + 1] != null || (oe < 0 ? Q : Q % se[q - oe - 1]), z = B < 4 ? (H || z) && (B == 0 || B == (S.s < 0 ? 3 : 2)) : H > 5 || H == 5 && (B == 4 || z || B == 6 && (te > 0 ? oe > 0 ? Q / se[q - oe] : 0 : ie[G - 1]) % 10 & 1 || B == (S.s < 0 ? 8 : 7)), T < 1 || !ie[0]) + return ie.length = 0, z ? (T -= S.e + 1, ie[0] = se[(r - T % r) % r], S.e = -T || 0) : ie[0] = S.e = 0, S; + if (te == 0 ? (ie.length = G, V = 1, G--) : (ie.length = G + 1, V = se[r - te], ie[G] = oe > 0 ? t(Q / se[q - oe] % se[oe]) * V : 0), z) + for (; ; ) { + if (G == 0) { + for (te = 1, oe = ie[0]; oe >= 10; oe /= 10, te++) + ; + for (oe = ie[0] += V, V = 1; oe >= 10; oe /= 10, V++) + ; + te != V && (S.e++, ie[0] == s && (ie[0] = 1)); + break; + } + if (ie[G] += V, ie[G] != s) + break; + ie[G--] = 0, V = 1; + } + for (te = ie.length; ie[--te] === 0; ie.pop()) + ; + } + S.e > Y ? S.c = S.e = null : S.e < K && (S.c = [S.e = 0]); + } + return S; + } + function y(S) { + var T, B = S.e; + return B === null ? S.toString() : (T = h(S.c), T = B <= $ || B >= X ? l(T, B) : N(T, B, "0"), S.s < 0 ? "-" + T : T); + } + return de.clone = j, de.ROUND_UP = 0, de.ROUND_DOWN = 1, de.ROUND_CEIL = 2, de.ROUND_FLOOR = 3, de.ROUND_HALF_UP = 4, de.ROUND_HALF_DOWN = 5, de.ROUND_HALF_EVEN = 6, de.ROUND_HALF_CEIL = 7, de.ROUND_HALF_FLOOR = 8, de.EUCLID = 9, de.config = de.set = function(S) { + var T, B; + if (S != null) { + if (typeof S != "object") + throw Error(u + "Object expected: " + S); + if (S.hasOwnProperty(T = "DECIMAL_PLACES") && (m(B = S[T], 0, f, T), D = B), S.hasOwnProperty(T = "ROUNDING_MODE") && (m(B = S[T], 0, 8, T), Z = B), S.hasOwnProperty(T = "EXPONENTIAL_AT") && ((B = S[T]) && B.pop ? (m(B[0], -f, 0, T), m(B[1], 0, f, T), $ = B[0], X = B[1]) : (m(B, -f, f, T), $ = -(X = B < 0 ? -B : B))), S.hasOwnProperty(T = "RANGE")) + if ((B = S[T]) && B.pop) + m(B[0], -f, -1, T), m(B[1], 1, f, T), K = B[0], Y = B[1]; + else { + if (m(B, -f, f, T), !B) + throw Error(u + T + " cannot be zero: " + B); + K = -(Y = B < 0 ? -B : B); + } + if (S.hasOwnProperty(T = "CRYPTO")) { + if ((B = S[T]) !== !!B) + throw Error(u + T + " not true or false: " + B); + if (B) { + if (typeof crypto > "u" || !crypto || !crypto.getRandomValues && !crypto.randomBytes) + throw L = !B, Error(u + "crypto unavailable"); + L = B; + } else + L = B; + } + if (S.hasOwnProperty(T = "MODULO_MODE") && (m(B = S[T], 0, 9, T), ae = B), S.hasOwnProperty(T = "POW_PRECISION") && (m(B = S[T], 0, f, T), ce = B), S.hasOwnProperty(T = "FORMAT")) { + if (typeof (B = S[T]) != "object") + throw Error(u + T + " not an object: " + B); + ue = B; + } + if (S.hasOwnProperty(T = "ALPHABET")) { + if (typeof (B = S[T]) != "string" || /^.?$|[+\-.\s]|(.).*\1/.test(B)) + throw Error(u + T + " invalid: " + B); + be = B.slice(0, 10) == "0123456789", le = B; + } + } + return { DECIMAL_PLACES: D, ROUNDING_MODE: Z, EXPONENTIAL_AT: [$, X], RANGE: [K, Y], CRYPTO: L, MODULO_MODE: ae, POW_PRECISION: ce, FORMAT: ue, ALPHABET: le }; + }, de.isBigNumber = function(S) { + if (!S || S._isBigNumber !== !0) + return !1; + if (!de.DEBUG) + return !0; + var T, B, z = S.c, q = S.e, te = S.s; + e: + if ({}.toString.call(z) == "[object Array]") { + if ((te === 1 || te === -1) && q >= -f && q <= f && q === t(q)) { + if (z[0] === 0) { + if (q === 0 && z.length === 1) + return !0; + break e; + } + if ((T = (q + 1) % r) < 1 && (T += r), String(z[0]).length == T) { + for (T = 0; T < z.length; T++) + if ((B = z[T]) < 0 || B >= s || B !== t(B)) + break e; + if (B !== 0) + return !0; + } + } + } else if (z === null && q === null && (te === null || te === 1 || te === -1)) + return !0; + throw Error(u + "Invalid BigNumber: " + S); + }, de.maximum = de.max = function() { + return _e(arguments, ee.lt); + }, de.minimum = de.min = function() { + return _e(arguments, ee.gt); + }, de.random = (w = 9007199254740992, g = Math.random() * w & 2097151 ? function() { + return t(Math.random() * w); + } : function() { + return 8388608 * (1073741824 * Math.random() | 0) + (8388608 * Math.random() | 0); + }, function(S) { + var T, B, z, q, te, oe = 0, V = [], Q = new de(ne); + if (S == null ? S = D : m(S, 0, f), q = a(S / r), L) + if (crypto.getRandomValues) { + for (T = crypto.getRandomValues(new Uint32Array(q *= 2)); oe < q; ) + (te = 131072 * T[oe] + (T[oe + 1] >>> 11)) >= 9e15 ? (B = crypto.getRandomValues(new Uint32Array(2)), T[oe] = B[0], T[oe + 1] = B[1]) : (V.push(te % 1e14), oe += 2); + oe = q / 2; + } else { + if (!crypto.randomBytes) + throw L = !1, Error(u + "crypto unavailable"); + for (T = crypto.randomBytes(q *= 7); oe < q; ) + (te = 281474976710656 * (31 & T[oe]) + 1099511627776 * T[oe + 1] + 4294967296 * T[oe + 2] + 16777216 * T[oe + 3] + (T[oe + 4] << 16) + (T[oe + 5] << 8) + T[oe + 6]) >= 9e15 ? crypto.randomBytes(7).copy(T, oe) : (V.push(te % 1e14), oe += 7); + oe = q / 7; + } + if (!L) + for (; oe < q; ) + (te = g()) < 9e15 && (V[oe++] = te % 1e14); + for (q = V[--oe], S %= r, q && S && (te = o[r - S], V[oe] = t(q / te) * te); V[oe] === 0; V.pop(), oe--) + ; + if (oe < 0) + V = [z = 0]; + else { + for (z = -1; V[0] === 0; V.splice(0, 1), z -= r) + ; + for (oe = 1, te = V[0]; te >= 10; te /= 10, oe++) + ; + oe < r && (z -= r - oe); + } + return Q.e = z, Q.c = V, Q; + }), de.sum = function() { + for (var S = 1, T = arguments, B = new de(T[0]); S < T.length; ) + B = B.plus(T[S++]); + return B; + }, x = function() { + var S = "0123456789"; + function T(B, z, q, te) { + for (var oe, V, Q = [0], G = 0, H = B.length; G < H; ) { + for (V = Q.length; V--; Q[V] *= z) + ; + for (Q[0] += te.indexOf(B.charAt(G++)), oe = 0; oe < Q.length; oe++) + Q[oe] > q - 1 && (Q[oe + 1] == null && (Q[oe + 1] = 0), Q[oe + 1] += Q[oe] / q | 0, Q[oe] %= q); + } + return Q.reverse(); + } + return function(B, z, q, te, oe) { + var V, Q, G, H, ie, se, fe, he, ve = B.indexOf("."), me = D, ge = Z; + for (ve >= 0 && (H = ce, ce = 0, B = B.replace(".", ""), se = (he = new de(z)).pow(B.length - ve), ce = H, he.c = T(N(h(se.c), se.e, "0"), 10, q, S), he.e = he.c.length), G = H = (fe = T(B, z, q, oe ? (V = le, S) : (V = S, le))).length; fe[--H] == 0; fe.pop()) + ; + if (!fe[0]) + return V.charAt(0); + if (ve < 0 ? --G : (se.c = fe, se.e = G, se.s = te, fe = (se = I(se, he, me, ge, q)).c, ie = se.r, G = se.e), ve = fe[Q = G + me + 1], H = q / 2, ie = ie || Q < 0 || fe[Q + 1] != null, ie = ge < 4 ? (ve != null || ie) && (ge == 0 || ge == (se.s < 0 ? 3 : 2)) : ve > H || ve == H && (ge == 4 || ie || ge == 6 && 1 & fe[Q - 1] || ge == (se.s < 0 ? 8 : 7)), Q < 1 || !fe[0]) + B = ie ? N(V.charAt(1), -me, V.charAt(0)) : V.charAt(0); + else { + if (fe.length = Q, ie) + for (--q; ++fe[--Q] > q; ) + fe[Q] = 0, Q || (++G, fe = [1].concat(fe)); + for (H = fe.length; !fe[--H]; ) + ; + for (ve = 0, B = ""; ve <= H; B += V.charAt(fe[ve++])) + ; + B = N(B, G, V.charAt(0)); + } + return B; + }; + }(), I = function() { + function S(z, q, te) { + var oe, V, Q, G, H = 0, ie = z.length, se = q % i, fe = q / i | 0; + for (z = z.slice(); ie--; ) + H = ((V = se * (Q = z[ie] % i) + (oe = fe * Q + (G = z[ie] / i | 0) * se) % i * i + H) / te | 0) + (oe / i | 0) + fe * G, z[ie] = V % te; + return H && (z = [H].concat(z)), z; + } + function T(z, q, te, oe) { + var V, Q; + if (te != oe) + Q = te > oe ? 1 : -1; + else + for (V = Q = 0; V < te; V++) + if (z[V] != q[V]) { + Q = z[V] > q[V] ? 1 : -1; + break; + } + return Q; + } + function B(z, q, te, oe) { + for (var V = 0; te--; ) + z[te] -= V, V = z[te] < q[te] ? 1 : 0, z[te] = V * oe + z[te] - q[te]; + for (; !z[0] && z.length > 1; z.splice(0, 1)) + ; + } + return function(z, q, te, oe, V) { + var Q, G, H, ie, se, fe, he, ve, me, ge, ye, Ee, Ae, Pe, ke, xe, we, Se = z.s == q.s ? 1 : -1, Re = z.c, Oe = q.c; + if (!(Re && Re[0] && Oe && Oe[0])) + return new de(z.s && q.s && (Re ? !Oe || Re[0] != Oe[0] : Oe) ? Re && Re[0] == 0 || !Oe ? 0 * Se : Se / 0 : NaN); + for (me = (ve = new de(Se)).c = [], Se = te + (G = z.e - q.e) + 1, V || (V = s, G = c(z.e / r) - c(q.e / r), Se = Se / r | 0), H = 0; Oe[H] == (Re[H] || 0); H++) + ; + if (Oe[H] > (Re[H] || 0) && G--, Se < 0) + me.push(1), ie = !0; + else { + for (Pe = Re.length, xe = Oe.length, H = 0, Se += 2, (se = t(V / (Oe[0] + 1))) > 1 && (Oe = S(Oe, se, V), Re = S(Re, se, V), xe = Oe.length, Pe = Re.length), Ae = xe, ye = (ge = Re.slice(0, xe)).length; ye < xe; ge[ye++] = 0) + ; + we = Oe.slice(), we = [0].concat(we), ke = Oe[0], Oe[1] >= V / 2 && ke++; + do { + if (se = 0, (Q = T(Oe, ge, xe, ye)) < 0) { + if (Ee = ge[0], xe != ye && (Ee = Ee * V + (ge[1] || 0)), (se = t(Ee / ke)) > 1) + for (se >= V && (se = V - 1), he = (fe = S(Oe, se, V)).length, ye = ge.length; T(fe, ge, he, ye) == 1; ) + se--, B(fe, xe < he ? we : Oe, he, V), he = fe.length, Q = 1; + else + se == 0 && (Q = se = 1), he = (fe = Oe.slice()).length; + if (he < ye && (fe = [0].concat(fe)), B(ge, fe, ye, V), ye = ge.length, Q == -1) + for (; T(Oe, ge, xe, ye) < 1; ) + se++, B(ge, xe < ye ? we : Oe, ye, V), ye = ge.length; + } else + Q === 0 && (se++, ge = [0]); + me[H++] = se, ge[0] ? ge[ye++] = Re[Ae] || 0 : (ge = [Re[Ae]], ye = 1); + } while ((Ae++ < Pe || ge[0] != null) && Se--); + ie = ge[0] != null, me[0] || me.splice(0, 1); + } + if (V == s) { + for (H = 1, Se = me[0]; Se >= 10; Se /= 10, H++) + ; + v(ve, te + (ve.e = H + G * r - 1) + 1, oe, ie); + } else + ve.e = G, ve.r = +ie; + return ve; + }; + }(), E = /^(-?)0([xbo])(?=\w[\w.]*$)/i, U = /^([^.]+)\.$/, C = /^\.([^.]+)$/, F = /^-?(Infinity|NaN)$/, re = /^\s*\+(?=[\w.])|^\s+|\s+$/g, P = function(S, T, B, z) { + var q, te = B ? T : T.replace(re, ""); + if (F.test(te)) + S.s = isNaN(te) ? null : te < 0 ? -1 : 1; + else { + if (!B && (te = te.replace(E, function(oe, V, Q) { + return q = (Q = Q.toLowerCase()) == "x" ? 16 : Q == "b" ? 2 : 8, z && z != q ? oe : V; + }), z && (q = z, te = te.replace(U, "$1").replace(C, "0.$1")), T != te)) + return new de(te, q); + if (de.DEBUG) + throw Error(u + "Not a" + (z ? " base " + z : "") + " number: " + T); + S.s = null; + } + S.c = S.e = null; + }, ee.absoluteValue = ee.abs = function() { + var S = new de(this); + return S.s < 0 && (S.s = 1), S; + }, ee.comparedTo = function(S, T) { + return p(this, new de(S, T)); + }, ee.decimalPlaces = ee.dp = function(S, T) { + var B, z, q, te = this; + if (S != null) + return m(S, 0, f), T == null ? T = Z : m(T, 0, 8), v(new de(te), S + te.e + 1, T); + if (!(B = te.c)) + return null; + if (z = ((q = B.length - 1) - c(this.e / r)) * r, q = B[q]) + for (; q % 10 == 0; q /= 10, z--) + ; + return z < 0 && (z = 0), z; + }, ee.dividedBy = ee.div = function(S, T) { + return I(this, new de(S, T), D, Z); + }, ee.dividedToIntegerBy = ee.idiv = function(S, T) { + return I(this, new de(S, T), 0, 1); + }, ee.exponentiatedBy = ee.pow = function(S, T) { + var B, z, q, te, oe, V, Q, G, H = this; + if ((S = new de(S)).c && !S.isInteger()) + throw Error(u + "Exponent not an integer: " + y(S)); + if (T != null && (T = new de(T)), oe = S.e > 14, !H.c || !H.c[0] || H.c[0] == 1 && !H.e && H.c.length == 1 || !S.c || !S.c[0]) + return G = new de(Math.pow(+y(H), oe ? 2 - M(S) : +y(S))), T ? G.mod(T) : G; + if (V = S.s < 0, T) { + if (T.c ? !T.c[0] : !T.s) + return new de(NaN); + (z = !V && H.isInteger() && T.isInteger()) && (H = H.mod(T)); + } else { + if (S.e > 9 && (H.e > 0 || H.e < -1 || (H.e == 0 ? H.c[0] > 1 || oe && H.c[1] >= 24e7 : H.c[0] < 8e13 || oe && H.c[0] <= 9999975e7))) + return te = H.s < 0 && M(S) ? -0 : 0, H.e > -1 && (te = 1 / te), new de(V ? 1 / te : te); + ce && (te = a(ce / r + 2)); + } + for (oe ? (B = new de(0.5), V && (S.s = 1), Q = M(S)) : Q = (q = Math.abs(+y(S))) % 2, G = new de(ne); ; ) { + if (Q) { + if (!(G = G.times(H)).c) + break; + te ? G.c.length > te && (G.c.length = te) : z && (G = G.mod(T)); + } + if (q) { + if ((q = t(q / 2)) === 0) + break; + Q = q % 2; + } else if (v(S = S.times(B), S.e + 1, 1), S.e > 14) + Q = M(S); + else { + if ((q = +y(S)) == 0) + break; + Q = q % 2; + } + H = H.times(H), te ? H.c && H.c.length > te && (H.c.length = te) : z && (H = H.mod(T)); + } + return z ? G : (V && (G = ne.div(G)), T ? G.mod(T) : te ? v(G, ce, Z, void 0) : G); + }, ee.integerValue = function(S) { + var T = new de(this); + return S == null ? S = Z : m(S, 0, 8), v(T, T.e + 1, S); + }, ee.isEqualTo = ee.eq = function(S, T) { + return p(this, new de(S, T)) === 0; + }, ee.isFinite = function() { + return !!this.c; + }, ee.isGreaterThan = ee.gt = function(S, T) { + return p(this, new de(S, T)) > 0; + }, ee.isGreaterThanOrEqualTo = ee.gte = function(S, T) { + return (T = p(this, new de(S, T))) === 1 || T === 0; + }, ee.isInteger = function() { + return !!this.c && c(this.e / r) > this.c.length - 2; + }, ee.isLessThan = ee.lt = function(S, T) { + return p(this, new de(S, T)) < 0; + }, ee.isLessThanOrEqualTo = ee.lte = function(S, T) { + return (T = p(this, new de(S, T))) === -1 || T === 0; + }, ee.isNaN = function() { + return !this.s; + }, ee.isNegative = function() { + return this.s < 0; + }, ee.isPositive = function() { + return this.s > 0; + }, ee.isZero = function() { + return !!this.c && this.c[0] == 0; + }, ee.minus = function(S, T) { + var B, z, q, te, oe = this, V = oe.s; + if (T = (S = new de(S, T)).s, !V || !T) + return new de(NaN); + if (V != T) + return S.s = -T, oe.plus(S); + var Q = oe.e / r, G = S.e / r, H = oe.c, ie = S.c; + if (!Q || !G) { + if (!H || !ie) + return H ? (S.s = -T, S) : new de(ie ? oe : NaN); + if (!H[0] || !ie[0]) + return ie[0] ? (S.s = -T, S) : new de(H[0] ? oe : Z == 3 ? -0 : 0); + } + if (Q = c(Q), G = c(G), H = H.slice(), V = Q - G) { + for ((te = V < 0) ? (V = -V, q = H) : (G = Q, q = ie), q.reverse(), T = V; T--; q.push(0)) + ; + q.reverse(); + } else + for (z = (te = (V = H.length) < (T = ie.length)) ? V : T, V = T = 0; T < z; T++) + if (H[T] != ie[T]) { + te = H[T] < ie[T]; + break; + } + if (te && (q = H, H = ie, ie = q, S.s = -S.s), (T = (z = ie.length) - (B = H.length)) > 0) + for (; T--; H[B++] = 0) + ; + for (T = s - 1; z > V; ) { + if (H[--z] < ie[z]) { + for (B = z; B && !H[--B]; H[B] = T) + ; + --H[B], H[z] += s; + } + H[z] -= ie[z]; + } + for (; H[0] == 0; H.splice(0, 1), --G) + ; + return H[0] ? W(S, H, G) : (S.s = Z == 3 ? -1 : 1, S.c = [S.e = 0], S); + }, ee.modulo = ee.mod = function(S, T) { + var B, z, q = this; + return S = new de(S, T), !q.c || !S.s || S.c && !S.c[0] ? new de(NaN) : !S.c || q.c && !q.c[0] ? new de(q) : (ae == 9 ? (z = S.s, S.s = 1, B = I(q, S, 0, 3), S.s = z, B.s *= z) : B = I(q, S, 0, ae), (S = q.minus(B.times(S))).c[0] || ae != 1 || (S.s = q.s), S); + }, ee.multipliedBy = ee.times = function(S, T) { + var B, z, q, te, oe, V, Q, G, H, ie, se, fe, he, ve, me, ge = this, ye = ge.c, Ee = (S = new de(S, T)).c; + if (!(ye && Ee && ye[0] && Ee[0])) + return !ge.s || !S.s || ye && !ye[0] && !Ee || Ee && !Ee[0] && !ye ? S.c = S.e = S.s = null : (S.s *= ge.s, ye && Ee ? (S.c = [0], S.e = 0) : S.c = S.e = null), S; + for (z = c(ge.e / r) + c(S.e / r), S.s *= ge.s, (Q = ye.length) < (ie = Ee.length) && (he = ye, ye = Ee, Ee = he, q = Q, Q = ie, ie = q), q = Q + ie, he = []; q--; he.push(0)) + ; + for (ve = s, me = i, q = ie; --q >= 0; ) { + for (B = 0, se = Ee[q] % me, fe = Ee[q] / me | 0, te = q + (oe = Q); te > q; ) + B = ((G = se * (G = ye[--oe] % me) + (V = fe * G + (H = ye[oe] / me | 0) * se) % me * me + he[te] + B) / ve | 0) + (V / me | 0) + fe * H, he[te--] = G % ve; + he[te] = B; + } + return B ? ++z : he.splice(0, 1), W(S, he, z); + }, ee.negated = function() { + var S = new de(this); + return S.s = -S.s || null, S; + }, ee.plus = function(S, T) { + var B, z = this, q = z.s; + if (T = (S = new de(S, T)).s, !q || !T) + return new de(NaN); + if (q != T) + return S.s = -T, z.minus(S); + var te = z.e / r, oe = S.e / r, V = z.c, Q = S.c; + if (!te || !oe) { + if (!V || !Q) + return new de(q / 0); + if (!V[0] || !Q[0]) + return Q[0] ? S : new de(V[0] ? z : 0 * q); + } + if (te = c(te), oe = c(oe), V = V.slice(), q = te - oe) { + for (q > 0 ? (oe = te, B = Q) : (q = -q, B = V), B.reverse(); q--; B.push(0)) + ; + B.reverse(); + } + for ((q = V.length) - (T = Q.length) < 0 && (B = Q, Q = V, V = B, T = q), q = 0; T; ) + q = (V[--T] = V[T] + Q[T] + q) / s | 0, V[T] = s === V[T] ? 0 : V[T] % s; + return q && (V = [q].concat(V), ++oe), W(S, V, oe); + }, ee.precision = ee.sd = function(S, T) { + var B, z, q, te = this; + if (S != null && S !== !!S) + return m(S, 1, f), T == null ? T = Z : m(T, 0, 8), v(new de(te), S, T); + if (!(B = te.c)) + return null; + if (z = (q = B.length - 1) * r + 1, q = B[q]) { + for (; q % 10 == 0; q /= 10, z--) + ; + for (q = B[0]; q >= 10; q /= 10, z++) + ; + } + return S && te.e + 1 > z && (z = te.e + 1), z; + }, ee.shiftedBy = function(S) { + return m(S, -9007199254740991, n), this.times("1e" + S); + }, ee.squareRoot = ee.sqrt = function() { + var S, T, B, z, q, te = this, oe = te.c, V = te.s, Q = te.e, G = D + 4, H = new de("0.5"); + if (V !== 1 || !oe || !oe[0]) + return new de(!V || V < 0 && (!oe || oe[0]) ? NaN : oe ? te : 1 / 0); + if ((V = Math.sqrt(+y(te))) == 0 || V == 1 / 0 ? (((T = h(oe)).length + Q) % 2 == 0 && (T += "0"), V = Math.sqrt(+T), Q = c((Q + 1) / 2) - (Q < 0 || Q % 2), B = new de(T = V == 1 / 0 ? "5e" + Q : (T = V.toExponential()).slice(0, T.indexOf("e") + 1) + Q)) : B = new de(V + ""), B.c[0]) { + for ((V = (Q = B.e) + G) < 3 && (V = 0); ; ) + if (q = B, B = H.times(q.plus(I(te, q, G, 1))), h(q.c).slice(0, V) === (T = h(B.c)).slice(0, V)) { + if (B.e < Q && --V, (T = T.slice(V - 3, V + 1)) != "9999" && (z || T != "4999")) { + +T && (+T.slice(1) || T.charAt(0) != "5") || (v(B, B.e + D + 2, 1), S = !B.times(B).eq(te)); + break; + } + if (!z && (v(q, q.e + D + 2, 0), q.times(q).eq(te))) { + B = q; + break; + } + G += 4, V += 4, z = 1; + } + } + return v(B, B.e + D + 1, Z, S); + }, ee.toExponential = function(S, T) { + return S != null && (m(S, 0, f), S++), pe(this, S, T, 1); + }, ee.toFixed = function(S, T) { + return S != null && (m(S, 0, f), S = S + this.e + 1), pe(this, S, T); + }, ee.toFormat = function(S, T, B) { + var z, q = this; + if (B == null) + S != null && T && typeof T == "object" ? (B = T, T = null) : S && typeof S == "object" ? (B = S, S = T = null) : B = ue; + else if (typeof B != "object") + throw Error(u + "Argument not an object: " + B); + if (z = q.toFixed(S, T), q.c) { + var te, oe = z.split("."), V = +B.groupSize, Q = +B.secondaryGroupSize, G = B.groupSeparator || "", H = oe[0], ie = oe[1], se = q.s < 0, fe = se ? H.slice(1) : H, he = fe.length; + if (Q && (te = V, V = Q, Q = te, he -= te), V > 0 && he > 0) { + for (te = he % V || V, H = fe.substr(0, te); te < he; te += V) + H += G + fe.substr(te, V); + Q > 0 && (H += G + fe.slice(te)), se && (H = "-" + H); + } + z = ie ? H + (B.decimalSeparator || "") + ((Q = +B.fractionGroupSize) ? ie.replace(new RegExp("\\d{" + Q + "}\\B", "g"), "$&" + (B.fractionGroupSeparator || "")) : ie) : H; + } + return (B.prefix || "") + z + (B.suffix || ""); + }, ee.toFraction = function(S) { + var T, B, z, q, te, oe, V, Q, G, H, ie, se, fe = this, he = fe.c; + if (S != null && (!(V = new de(S)).isInteger() && (V.c || V.s !== 1) || V.lt(ne))) + throw Error(u + "Argument " + (V.isInteger() ? "out of range: " : "not an integer: ") + y(V)); + if (!he) + return new de(fe); + for (T = new de(ne), G = B = new de(ne), z = Q = new de(ne), se = h(he), te = T.e = se.length - fe.e - 1, T.c[0] = o[(oe = te % r) < 0 ? r + oe : oe], S = !S || V.comparedTo(T) > 0 ? te > 0 ? T : G : V, oe = Y, Y = 1 / 0, V = new de(se), Q.c[0] = 0; H = I(V, T, 0, 1), (q = B.plus(H.times(z))).comparedTo(S) != 1; ) + B = z, z = q, G = Q.plus(H.times(q = G)), Q = q, T = V.minus(H.times(q = T)), V = q; + return q = I(S.minus(B), z, 0, 1), Q = Q.plus(q.times(G)), B = B.plus(q.times(z)), Q.s = G.s = fe.s, ie = I(G, z, te *= 2, Z).minus(fe).abs().comparedTo(I(Q, B, te, Z).minus(fe).abs()) < 1 ? [G, z] : [Q, B], Y = oe, ie; + }, ee.toNumber = function() { + return +y(this); + }, ee.toPrecision = function(S, T) { + return S != null && m(S, 1, f), pe(this, S, T, 2); + }, ee.toString = function(S) { + var T, B = this, z = B.s, q = B.e; + return q === null ? z ? (T = "Infinity", z < 0 && (T = "-" + T)) : T = "NaN" : (S == null ? T = q <= $ || q >= X ? l(h(B.c), q) : N(h(B.c), q, "0") : S === 10 && be ? T = N(h((B = v(new de(B), D + q + 1, Z)).c), B.e, "0") : (m(S, 2, le.length, "Base"), T = x(N(h(B.c), q, "0"), 10, S, z, !0)), z < 0 && B.c[0] && (T = "-" + T)), T; + }, ee.valueOf = ee.toJSON = function() { + return y(this); + }, ee._isBigNumber = !0, R != null && de.set(R), de; + }(), k.default = k.BigNumber = k, (O = (function() { + return k; + }).call(e, _, e, J)) === void 0 || (J.exports = O); + })(); + }, 4090: (J, e, _) => { + var O = _(8764).Buffer; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(6903), k = _(8334), b = _(5892), a = _(2401), t = _(9898), u = a.BufferN(32), d = a.compile({ wif: a.UInt8, bip32: { public: a.UInt32, private: a.UInt32 } }), s = { messagePrefix: `Bitcoin Signed Message: +`, bech32: "bc", bip32: { public: 76067358, private: 76066276 }, pubKeyHash: 0, scriptHash: 5, wif: 128 }, r = 2147483648, n = Math.pow(2, 31) - 1; + function o(m) { + return a.String(m) && m.match(/^(m\/)?(\d+'?\/)*\d+'?$/) !== null; + } + function i(m) { + return a.UInt32(m) && m <= n; + } + class f { + constructor(M, l, N, j, R = 0, I = 0, x = 0) { + this.__D = M, this.__Q = l, this.chainCode = N, this.network = j, this.__DEPTH = R, this.__INDEX = I, this.__PARENT_FINGERPRINT = x, a(d, j), this.lowR = !1; + } + get depth() { + return this.__DEPTH; + } + get index() { + return this.__INDEX; + } + get parentFingerprint() { + return this.__PARENT_FINGERPRINT; + } + get publicKey() { + return this.__Q === void 0 && (this.__Q = b.pointFromScalar(this.__D, !0)), this.__Q; + } + get privateKey() { + return this.__D; + } + get identifier() { + return A.hash160(this.publicKey); + } + get fingerprint() { + return this.identifier.slice(0, 4); + } + get compressed() { + return !0; + } + isNeutered() { + return this.__D === void 0; + } + neutered() { + return p(this.publicKey, this.chainCode, this.network, this.depth, this.index, this.parentFingerprint); + } + toBase58() { + const M = this.network, l = this.isNeutered() ? M.bip32.public : M.bip32.private, N = O.allocUnsafe(78); + return N.writeUInt32BE(l, 0), N.writeUInt8(this.depth, 4), N.writeUInt32BE(this.parentFingerprint, 5), N.writeUInt32BE(this.index, 9), this.chainCode.copy(N, 13), this.isNeutered() ? this.publicKey.copy(N, 45) : (N.writeUInt8(0, 45), this.privateKey.copy(N, 46)), k.encode(N); + } + toWIF() { + if (!this.privateKey) + throw new TypeError("Missing private key"); + return t.encode(this.network.wif, this.privateKey, !0); + } + derive(M) { + a(a.UInt32, M); + const l = M >= r, N = O.allocUnsafe(37); + if (l) { + if (this.isNeutered()) + throw new TypeError("Missing private key for hardened child key"); + N[0] = 0, this.privateKey.copy(N, 1), N.writeUInt32BE(M, 33); + } else + this.publicKey.copy(N, 0), N.writeUInt32BE(M, 33); + const j = A.hmacSHA512(this.chainCode, N), R = j.slice(0, 32), I = j.slice(32); + if (!b.isPrivate(R)) + return this.derive(M + 1); + let x; + if (this.isNeutered()) { + const P = b.pointAddScalar(this.publicKey, R, !0); + if (P === null) + return this.derive(M + 1); + x = p(P, I, this.network, this.depth + 1, M, this.fingerprint.readUInt32BE(0)); + } else { + const P = b.privateAdd(this.privateKey, R); + if (P == null) + return this.derive(M + 1); + x = h(P, I, this.network, this.depth + 1, M, this.fingerprint.readUInt32BE(0)); + } + return x; + } + deriveHardened(M) { + return a(i, M), this.derive(M + r); + } + derivePath(M) { + a(o, M); + let l = M.split("/"); + if (l[0] === "m") { + if (this.parentFingerprint) + throw new TypeError("Expected master, got child"); + l = l.slice(1); + } + return l.reduce((N, j) => { + let R; + return j.slice(-1) === "'" ? (R = parseInt(j.slice(0, -1), 10), N.deriveHardened(R)) : (R = parseInt(j, 10), N.derive(R)); + }, this); + } + sign(M, l) { + if (!this.privateKey) + throw new Error("Missing private key"); + if (l === void 0 && (l = this.lowR), l === !1) + return b.sign(M, this.privateKey); + { + let N = b.sign(M, this.privateKey); + const j = O.alloc(32, 0); + let R = 0; + for (; N[0] > 127; ) + R++, j.writeUIntLE(R, 0, 6), N = b.signWithEntropy(M, this.privateKey, j); + return N; + } + } + verify(M, l) { + return b.verify(M, this.publicKey, l); + } + } + function c(m, M, l) { + return h(m, M, l); + } + function h(m, M, l, N, j, R) { + if (a({ privateKey: u, chainCode: u }, { privateKey: m, chainCode: M }), l = l || s, !b.isPrivate(m)) + throw new TypeError("Private key not in range [1, n)"); + return new f(m, void 0, M, l, N, j, R); + } + function p(m, M, l, N, j, R) { + if (a({ publicKey: a.BufferN(33), chainCode: u }, { publicKey: m, chainCode: M }), l = l || s, !b.isPoint(m)) + throw new TypeError("Point is not on the curve"); + return new f(void 0, m, M, l, N, j, R); + } + e.fromBase58 = function(m, M) { + const l = k.decode(m); + if (l.length !== 78) + throw new TypeError("Invalid buffer length"); + M = M || s; + const N = l.readUInt32BE(0); + if (N !== M.bip32.private && N !== M.bip32.public) + throw new TypeError("Invalid network version"); + const j = l[4], R = l.readUInt32BE(5); + if (j === 0 && R !== 0) + throw new TypeError("Invalid parent fingerprint"); + const I = l.readUInt32BE(9); + if (j === 0 && I !== 0) + throw new TypeError("Invalid index"); + const x = l.slice(13, 45); + let P; + if (N === M.bip32.private) { + if (l.readUInt8(45) !== 0) + throw new TypeError("Invalid private key"); + P = h(l.slice(46, 78), x, M, j, I, R); + } else + P = p(l.slice(45, 78), x, M, j, I, R); + return P; + }, e.fromPrivateKey = c, e.fromPublicKey = function(m, M, l) { + return p(m, M, l); + }, e.fromSeed = function(m, M) { + if (a(a.Buffer, m), m.length < 16) + throw new TypeError("Seed should be at least 128 bits"); + if (m.length > 64) + throw new TypeError("Seed should be at most 512 bits"); + M = M || s; + const l = A.hmacSHA512(O.from("Bitcoin seed", "utf8"), m); + return c(l.slice(0, 32), l.slice(32), M); + }; + }, 6903: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + const O = _(3482), A = _(8355); + e.hash160 = function(k) { + const b = O("sha256").update(k).digest(); + try { + return O("rmd160").update(b).digest(); + } catch { + return O("ripemd160").update(b).digest(); + } + }, e.hmacSHA512 = function(k, b) { + return A("sha512", k).update(b).digest(); + }; + }, 7786: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + var O = _(4090); + e.fromSeed = O.fromSeed, e.fromBase58 = O.fromBase58, e.fromPublicKey = O.fromPublicKey, e.fromPrivateKey = O.fromPrivateKey; + }, 2314: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + const O = {}; + let A; + e.wordlists = O, e._default = A; + try { + e._default = A = _(32), O.czech = A; + } catch { + } + try { + e._default = A = _(6996), O.chinese_simplified = A; + } catch { + } + try { + e._default = A = _(4262), O.chinese_traditional = A; + } catch { + } + try { + e._default = A = _(8013), O.korean = A; + } catch { + } + try { + e._default = A = _(1848), O.french = A; + } catch { + } + try { + e._default = A = _(2841), O.italian = A; + } catch { + } + try { + e._default = A = _(659), O.spanish = A; + } catch { + } + try { + e._default = A = _(4472), O.japanese = A, O.JA = A; + } catch { + } + try { + e._default = A = _(1945), O.portuguese = A; + } catch { + } + try { + e._default = A = _(4573), O.english = A, O.EN = A; + } catch { + } + }, 2153: (J, e, _) => { + var O = _(8764).Buffer; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3482), k = _(5632), b = _(1798), a = _(2314); + let t = a._default; + const u = "Invalid mnemonic", d = "Invalid entropy", s = `A wordlist is required but a default could not be found. +Please pass a 2048 word array explicitly.`; + function r(M) { + return (M || "").normalize("NFKD"); + } + function n(M, l, N) { + for (; M.length < N; ) + M = l + M; + return M; + } + function o(M) { + return parseInt(M, 2); + } + function i(M) { + return M.map((l) => n(l.toString(2), "0", 8)).join(""); + } + function f(M) { + const l = 8 * M.length / 32, N = A("sha256").update(M).digest(); + return i(Array.from(N)).slice(0, l); + } + function c(M) { + return "mnemonic" + (M || ""); + } + function h(M, l) { + if (!(l = l || t)) + throw new Error(s); + const N = r(M).split(" "); + if (N.length % 3 != 0) + throw new Error(u); + const j = N.map((g) => { + const E = l.indexOf(g); + if (E === -1) + throw new Error(u); + return n(E.toString(2), "0", 11); + }).join(""), R = 32 * Math.floor(j.length / 33), I = j.slice(0, R), x = j.slice(R), P = I.match(/(.{1,8})/g).map(o); + if (P.length < 16) + throw new Error(d); + if (P.length > 32) + throw new Error(d); + if (P.length % 4 != 0) + throw new Error(d); + const w = O.from(P); + if (f(w) !== x) + throw new Error("Invalid mnemonic checksum"); + return w.toString("hex"); + } + function p(M, l) { + if (O.isBuffer(M) || (M = O.from(M, "hex")), !(l = l || t)) + throw new Error(s); + if (M.length < 16) + throw new TypeError(d); + if (M.length > 32) + throw new TypeError(d); + if (M.length % 4 != 0) + throw new TypeError(d); + const N = (i(Array.from(M)) + f(M)).match(/(.{1,11})/g).map((j) => { + const R = o(j); + return l[R]; + }); + return l[0] === "あいこくしん" ? N.join(" ") : N.join(" "); + } + e.mnemonicToSeedSync = function(M, l) { + const N = O.from(r(M), "utf8"), j = O.from(c(r(l)), "utf8"); + return k.pbkdf2Sync(N, j, 2048, 64, "sha512"); + }, e.mnemonicToSeed = function(M, l) { + return Promise.resolve().then(() => function(N, j, R, I, x) { + return Promise.resolve().then(() => new Promise((P, w) => { + k.pbkdf2(N, j, 2048, 64, "sha512", (g, E) => g ? w(g) : P(E)); + })); + }(O.from(r(M), "utf8"), O.from(c(r(l)), "utf8"))); + }, e.mnemonicToEntropy = h, e.entropyToMnemonic = p, e.generateMnemonic = function(M, l, N) { + if ((M = M || 128) % 32 != 0) + throw new TypeError(d); + return p((l = l || b)(M / 8), N); + }, e.validateMnemonic = function(M, l) { + try { + h(M, l); + } catch { + return !1; + } + return !0; + }, e.setDefaultWordlist = function(M) { + const l = a.wordlists[M]; + if (!l) + throw new Error('Could not find wordlist for language "' + M + '"'); + t = l; + }, e.getDefaultWordlist = function() { + if (!t) + throw new Error("No Default Wordlist set"); + return Object.keys(a.wordlists).filter((M) => M !== "JA" && M !== "EN" && a.wordlists[M].every((l, N) => l === t[N]))[0]; + }; + var m = _(2314); + e.wordlists = m.wordlists; + }, 3550: function(J, e, _) { + (function(O, A) { + function k(x, P) { + if (!x) + throw new Error(P || "Assertion failed"); + } + function b(x, P) { + x.super_ = P; + var w = function() { + }; + w.prototype = P.prototype, x.prototype = new w(), x.prototype.constructor = x; + } + function a(x, P, w) { + if (a.isBN(x)) + return x; + this.negative = 0, this.words = null, this.length = 0, this.red = null, x !== null && (P !== "le" && P !== "be" || (w = P, P = 10), this._init(x || 0, P || 10, w || "be")); + } + var t; + typeof O == "object" ? O.exports = a : A.BN = a, a.BN = a, a.wordSize = 26; + try { + t = typeof window < "u" && window.Buffer !== void 0 ? window.Buffer : _(6601).Buffer; + } catch { + } + function u(x, P) { + var w = x.charCodeAt(P); + return w >= 65 && w <= 70 ? w - 55 : w >= 97 && w <= 102 ? w - 87 : w - 48 & 15; + } + function d(x, P, w) { + var g = u(x, w); + return w - 1 >= P && (g |= u(x, w - 1) << 4), g; + } + function s(x, P, w, g) { + for (var E = 0, U = Math.min(x.length, w), C = P; C < U; C++) { + var F = x.charCodeAt(C) - 48; + E *= g, E += F >= 49 ? F - 49 + 10 : F >= 17 ? F - 17 + 10 : F; + } + return E; + } + a.isBN = function(x) { + return x instanceof a || x !== null && typeof x == "object" && x.constructor.wordSize === a.wordSize && Array.isArray(x.words); + }, a.max = function(x, P) { + return x.cmp(P) > 0 ? x : P; + }, a.min = function(x, P) { + return x.cmp(P) < 0 ? x : P; + }, a.prototype._init = function(x, P, w) { + if (typeof x == "number") + return this._initNumber(x, P, w); + if (typeof x == "object") + return this._initArray(x, P, w); + P === "hex" && (P = 16), k(P === (0 | P) && P >= 2 && P <= 36); + var g = 0; + (x = x.toString().replace(/\s+/g, ""))[0] === "-" && (g++, this.negative = 1), g < x.length && (P === 16 ? this._parseHex(x, g, w) : (this._parseBase(x, P, g), w === "le" && this._initArray(this.toArray(), P, w))); + }, a.prototype._initNumber = function(x, P, w) { + x < 0 && (this.negative = 1, x = -x), x < 67108864 ? (this.words = [67108863 & x], this.length = 1) : x < 4503599627370496 ? (this.words = [67108863 & x, x / 67108864 & 67108863], this.length = 2) : (k(x < 9007199254740992), this.words = [67108863 & x, x / 67108864 & 67108863, 1], this.length = 3), w === "le" && this._initArray(this.toArray(), P, w); + }, a.prototype._initArray = function(x, P, w) { + if (k(typeof x.length == "number"), x.length <= 0) + return this.words = [0], this.length = 1, this; + this.length = Math.ceil(x.length / 3), this.words = new Array(this.length); + for (var g = 0; g < this.length; g++) + this.words[g] = 0; + var E, U, C = 0; + if (w === "be") + for (g = x.length - 1, E = 0; g >= 0; g -= 3) + U = x[g] | x[g - 1] << 8 | x[g - 2] << 16, this.words[E] |= U << C & 67108863, this.words[E + 1] = U >>> 26 - C & 67108863, (C += 24) >= 26 && (C -= 26, E++); + else if (w === "le") + for (g = 0, E = 0; g < x.length; g += 3) + U = x[g] | x[g + 1] << 8 | x[g + 2] << 16, this.words[E] |= U << C & 67108863, this.words[E + 1] = U >>> 26 - C & 67108863, (C += 24) >= 26 && (C -= 26, E++); + return this.strip(); + }, a.prototype._parseHex = function(x, P, w) { + this.length = Math.ceil((x.length - P) / 6), this.words = new Array(this.length); + for (var g = 0; g < this.length; g++) + this.words[g] = 0; + var E, U = 0, C = 0; + if (w === "be") + for (g = x.length - 1; g >= P; g -= 2) + E = d(x, P, g) << U, this.words[C] |= 67108863 & E, U >= 18 ? (U -= 18, C += 1, this.words[C] |= E >>> 26) : U += 8; + else + for (g = (x.length - P) % 2 == 0 ? P + 1 : P; g < x.length; g += 2) + E = d(x, P, g) << U, this.words[C] |= 67108863 & E, U >= 18 ? (U -= 18, C += 1, this.words[C] |= E >>> 26) : U += 8; + this.strip(); + }, a.prototype._parseBase = function(x, P, w) { + this.words = [0], this.length = 1; + for (var g = 0, E = 1; E <= 67108863; E *= P) + g++; + g--, E = E / P | 0; + for (var U = x.length - w, C = U % g, F = Math.min(U, U - C) + w, re = 0, ee = w; ee < F; ee += g) + re = s(x, ee, ee + g, P), this.imuln(E), this.words[0] + re < 67108864 ? this.words[0] += re : this._iaddn(re); + if (C !== 0) { + var ne = 1; + for (re = s(x, ee, x.length, P), ee = 0; ee < C; ee++) + ne *= P; + this.imuln(ne), this.words[0] + re < 67108864 ? this.words[0] += re : this._iaddn(re); + } + this.strip(); + }, a.prototype.copy = function(x) { + x.words = new Array(this.length); + for (var P = 0; P < this.length; P++) + x.words[P] = this.words[P]; + x.length = this.length, x.negative = this.negative, x.red = this.red; + }, a.prototype.clone = function() { + var x = new a(null); + return this.copy(x), x; + }, a.prototype._expand = function(x) { + for (; this.length < x; ) + this.words[this.length++] = 0; + return this; + }, a.prototype.strip = function() { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }, a.prototype._normSign = function() { + return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this; + }, a.prototype.inspect = function() { + return (this.red ? ""; + }; + var r = ["", "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"], n = [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], o = [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]; + function i(x, P, w) { + w.negative = P.negative ^ x.negative; + var g = x.length + P.length | 0; + w.length = g, g = g - 1 | 0; + var E = 0 | x.words[0], U = 0 | P.words[0], C = E * U, F = 67108863 & C, re = C / 67108864 | 0; + w.words[0] = F; + for (var ee = 1; ee < g; ee++) { + for (var ne = re >>> 26, D = 67108863 & re, Z = Math.min(ee, P.length - 1), $ = Math.max(0, ee - x.length + 1); $ <= Z; $++) { + var X = ee - $ | 0; + ne += (C = (E = 0 | x.words[X]) * (U = 0 | P.words[$]) + D) / 67108864 | 0, D = 67108863 & C; + } + w.words[ee] = 0 | D, re = 0 | ne; + } + return re !== 0 ? w.words[ee] = 0 | re : w.length--, w.strip(); + } + a.prototype.toString = function(x, P) { + var w; + if (P = 0 | P || 1, (x = x || 10) === 16 || x === "hex") { + w = ""; + for (var g = 0, E = 0, U = 0; U < this.length; U++) { + var C = this.words[U], F = (16777215 & (C << g | E)).toString(16); + w = (E = C >>> 24 - g & 16777215) != 0 || U !== this.length - 1 ? r[6 - F.length] + F + w : F + w, (g += 2) >= 26 && (g -= 26, U--); + } + for (E !== 0 && (w = E.toString(16) + w); w.length % P != 0; ) + w = "0" + w; + return this.negative !== 0 && (w = "-" + w), w; + } + if (x === (0 | x) && x >= 2 && x <= 36) { + var re = n[x], ee = o[x]; + w = ""; + var ne = this.clone(); + for (ne.negative = 0; !ne.isZero(); ) { + var D = ne.modn(ee).toString(x); + w = (ne = ne.idivn(ee)).isZero() ? D + w : r[re - D.length] + D + w; + } + for (this.isZero() && (w = "0" + w); w.length % P != 0; ) + w = "0" + w; + return this.negative !== 0 && (w = "-" + w), w; + } + k(!1, "Base should be between 2 and 36"); + }, a.prototype.toNumber = function() { + var x = this.words[0]; + return this.length === 2 ? x += 67108864 * this.words[1] : this.length === 3 && this.words[2] === 1 ? x += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && k(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -x : x; + }, a.prototype.toJSON = function() { + return this.toString(16); + }, a.prototype.toBuffer = function(x, P) { + return k(t !== void 0), this.toArrayLike(t, x, P); + }, a.prototype.toArray = function(x, P) { + return this.toArrayLike(Array, x, P); + }, a.prototype.toArrayLike = function(x, P, w) { + var g = this.byteLength(), E = w || Math.max(1, g); + k(g <= E, "byte array longer than desired length"), k(E > 0, "Requested array length <= 0"), this.strip(); + var U, C, F = P === "le", re = new x(E), ee = this.clone(); + if (F) { + for (C = 0; !ee.isZero(); C++) + U = ee.andln(255), ee.iushrn(8), re[C] = U; + for (; C < E; C++) + re[C] = 0; + } else { + for (C = 0; C < E - g; C++) + re[C] = 0; + for (C = 0; !ee.isZero(); C++) + U = ee.andln(255), ee.iushrn(8), re[E - C - 1] = U; + } + return re; + }, Math.clz32 ? a.prototype._countBits = function(x) { + return 32 - Math.clz32(x); + } : a.prototype._countBits = function(x) { + var P = x, w = 0; + return P >= 4096 && (w += 13, P >>>= 13), P >= 64 && (w += 7, P >>>= 7), P >= 8 && (w += 4, P >>>= 4), P >= 2 && (w += 2, P >>>= 2), w + P; + }, a.prototype._zeroBits = function(x) { + if (x === 0) + return 26; + var P = x, w = 0; + return !(8191 & P) && (w += 13, P >>>= 13), !(127 & P) && (w += 7, P >>>= 7), !(15 & P) && (w += 4, P >>>= 4), !(3 & P) && (w += 2, P >>>= 2), !(1 & P) && w++, w; + }, a.prototype.bitLength = function() { + var x = this.words[this.length - 1], P = this._countBits(x); + return 26 * (this.length - 1) + P; + }, a.prototype.zeroBits = function() { + if (this.isZero()) + return 0; + for (var x = 0, P = 0; P < this.length; P++) { + var w = this._zeroBits(this.words[P]); + if (x += w, w !== 26) + break; + } + return x; + }, a.prototype.byteLength = function() { + return Math.ceil(this.bitLength() / 8); + }, a.prototype.toTwos = function(x) { + return this.negative !== 0 ? this.abs().inotn(x).iaddn(1) : this.clone(); + }, a.prototype.fromTwos = function(x) { + return this.testn(x - 1) ? this.notn(x).iaddn(1).ineg() : this.clone(); + }, a.prototype.isNeg = function() { + return this.negative !== 0; + }, a.prototype.neg = function() { + return this.clone().ineg(); + }, a.prototype.ineg = function() { + return this.isZero() || (this.negative ^= 1), this; + }, a.prototype.iuor = function(x) { + for (; this.length < x.length; ) + this.words[this.length++] = 0; + for (var P = 0; P < x.length; P++) + this.words[P] = this.words[P] | x.words[P]; + return this.strip(); + }, a.prototype.ior = function(x) { + return k((this.negative | x.negative) == 0), this.iuor(x); + }, a.prototype.or = function(x) { + return this.length > x.length ? this.clone().ior(x) : x.clone().ior(this); + }, a.prototype.uor = function(x) { + return this.length > x.length ? this.clone().iuor(x) : x.clone().iuor(this); + }, a.prototype.iuand = function(x) { + var P; + P = this.length > x.length ? x : this; + for (var w = 0; w < P.length; w++) + this.words[w] = this.words[w] & x.words[w]; + return this.length = P.length, this.strip(); + }, a.prototype.iand = function(x) { + return k((this.negative | x.negative) == 0), this.iuand(x); + }, a.prototype.and = function(x) { + return this.length > x.length ? this.clone().iand(x) : x.clone().iand(this); + }, a.prototype.uand = function(x) { + return this.length > x.length ? this.clone().iuand(x) : x.clone().iuand(this); + }, a.prototype.iuxor = function(x) { + var P, w; + this.length > x.length ? (P = this, w = x) : (P = x, w = this); + for (var g = 0; g < w.length; g++) + this.words[g] = P.words[g] ^ w.words[g]; + if (this !== P) + for (; g < P.length; g++) + this.words[g] = P.words[g]; + return this.length = P.length, this.strip(); + }, a.prototype.ixor = function(x) { + return k((this.negative | x.negative) == 0), this.iuxor(x); + }, a.prototype.xor = function(x) { + return this.length > x.length ? this.clone().ixor(x) : x.clone().ixor(this); + }, a.prototype.uxor = function(x) { + return this.length > x.length ? this.clone().iuxor(x) : x.clone().iuxor(this); + }, a.prototype.inotn = function(x) { + k(typeof x == "number" && x >= 0); + var P = 0 | Math.ceil(x / 26), w = x % 26; + this._expand(P), w > 0 && P--; + for (var g = 0; g < P; g++) + this.words[g] = 67108863 & ~this.words[g]; + return w > 0 && (this.words[g] = ~this.words[g] & 67108863 >> 26 - w), this.strip(); + }, a.prototype.notn = function(x) { + return this.clone().inotn(x); + }, a.prototype.setn = function(x, P) { + k(typeof x == "number" && x >= 0); + var w = x / 26 | 0, g = x % 26; + return this._expand(w + 1), this.words[w] = P ? this.words[w] | 1 << g : this.words[w] & ~(1 << g), this.strip(); + }, a.prototype.iadd = function(x) { + var P, w, g; + if (this.negative !== 0 && x.negative === 0) + return this.negative = 0, P = this.isub(x), this.negative ^= 1, this._normSign(); + if (this.negative === 0 && x.negative !== 0) + return x.negative = 0, P = this.isub(x), x.negative = 1, P._normSign(); + this.length > x.length ? (w = this, g = x) : (w = x, g = this); + for (var E = 0, U = 0; U < g.length; U++) + P = (0 | w.words[U]) + (0 | g.words[U]) + E, this.words[U] = 67108863 & P, E = P >>> 26; + for (; E !== 0 && U < w.length; U++) + P = (0 | w.words[U]) + E, this.words[U] = 67108863 & P, E = P >>> 26; + if (this.length = w.length, E !== 0) + this.words[this.length] = E, this.length++; + else if (w !== this) + for (; U < w.length; U++) + this.words[U] = w.words[U]; + return this; + }, a.prototype.add = function(x) { + var P; + return x.negative !== 0 && this.negative === 0 ? (x.negative = 0, P = this.sub(x), x.negative ^= 1, P) : x.negative === 0 && this.negative !== 0 ? (this.negative = 0, P = x.sub(this), this.negative = 1, P) : this.length > x.length ? this.clone().iadd(x) : x.clone().iadd(this); + }, a.prototype.isub = function(x) { + if (x.negative !== 0) { + x.negative = 0; + var P = this.iadd(x); + return x.negative = 1, P._normSign(); + } + if (this.negative !== 0) + return this.negative = 0, this.iadd(x), this.negative = 1, this._normSign(); + var w, g, E = this.cmp(x); + if (E === 0) + return this.negative = 0, this.length = 1, this.words[0] = 0, this; + E > 0 ? (w = this, g = x) : (w = x, g = this); + for (var U = 0, C = 0; C < g.length; C++) + U = (P = (0 | w.words[C]) - (0 | g.words[C]) + U) >> 26, this.words[C] = 67108863 & P; + for (; U !== 0 && C < w.length; C++) + U = (P = (0 | w.words[C]) + U) >> 26, this.words[C] = 67108863 & P; + if (U === 0 && C < w.length && w !== this) + for (; C < w.length; C++) + this.words[C] = w.words[C]; + return this.length = Math.max(this.length, C), w !== this && (this.negative = 1), this.strip(); + }, a.prototype.sub = function(x) { + return this.clone().isub(x); + }; + var f = function(x, P, w) { + var g, E, U, C = x.words, F = P.words, re = w.words, ee = 0, ne = 0 | C[0], D = 8191 & ne, Z = ne >>> 13, $ = 0 | C[1], X = 8191 & $, K = $ >>> 13, Y = 0 | C[2], L = 8191 & Y, ae = Y >>> 13, ce = 0 | C[3], ue = 8191 & ce, le = ce >>> 13, be = 0 | C[4], de = 8191 & be, pe = be >>> 13, _e = 0 | C[5], W = 8191 & _e, v = _e >>> 13, y = 0 | C[6], S = 8191 & y, T = y >>> 13, B = 0 | C[7], z = 8191 & B, q = B >>> 13, te = 0 | C[8], oe = 8191 & te, V = te >>> 13, Q = 0 | C[9], G = 8191 & Q, H = Q >>> 13, ie = 0 | F[0], se = 8191 & ie, fe = ie >>> 13, he = 0 | F[1], ve = 8191 & he, me = he >>> 13, ge = 0 | F[2], ye = 8191 & ge, Ee = ge >>> 13, Ae = 0 | F[3], Pe = 8191 & Ae, ke = Ae >>> 13, xe = 0 | F[4], we = 8191 & xe, Se = xe >>> 13, Re = 0 | F[5], Oe = 8191 & Re, Me = Re >>> 13, Te = 0 | F[6], Ne = 8191 & Te, Ce = Te >>> 13, Be = 0 | F[7], Ie = 8191 & Be, je = Be >>> 13, De = 0 | F[8], Ue = 8191 & De, Je = De >>> 13, st = 0 | F[9], ze = 8191 & st, qe = st >>> 13; + w.negative = x.negative ^ P.negative, w.length = 19; + var Le = (ee + (g = Math.imul(D, se)) | 0) + ((8191 & (E = (E = Math.imul(D, fe)) + Math.imul(Z, se) | 0)) << 13) | 0; + ee = ((U = Math.imul(Z, fe)) + (E >>> 13) | 0) + (Le >>> 26) | 0, Le &= 67108863, g = Math.imul(X, se), E = (E = Math.imul(X, fe)) + Math.imul(K, se) | 0, U = Math.imul(K, fe); + var Fe = (ee + (g = g + Math.imul(D, ve) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, me) | 0) + Math.imul(Z, ve) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, me) | 0) + (E >>> 13) | 0) + (Fe >>> 26) | 0, Fe &= 67108863, g = Math.imul(L, se), E = (E = Math.imul(L, fe)) + Math.imul(ae, se) | 0, U = Math.imul(ae, fe), g = g + Math.imul(X, ve) | 0, E = (E = E + Math.imul(X, me) | 0) + Math.imul(K, ve) | 0, U = U + Math.imul(K, me) | 0; + var We = (ee + (g = g + Math.imul(D, ye) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, Ee) | 0) + Math.imul(Z, ye) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, Ee) | 0) + (E >>> 13) | 0) + (We >>> 26) | 0, We &= 67108863, g = Math.imul(ue, se), E = (E = Math.imul(ue, fe)) + Math.imul(le, se) | 0, U = Math.imul(le, fe), g = g + Math.imul(L, ve) | 0, E = (E = E + Math.imul(L, me) | 0) + Math.imul(ae, ve) | 0, U = U + Math.imul(ae, me) | 0, g = g + Math.imul(X, ye) | 0, E = (E = E + Math.imul(X, Ee) | 0) + Math.imul(K, ye) | 0, U = U + Math.imul(K, Ee) | 0; + var Ve = (ee + (g = g + Math.imul(D, Pe) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, ke) | 0) + Math.imul(Z, Pe) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, ke) | 0) + (E >>> 13) | 0) + (Ve >>> 26) | 0, Ve &= 67108863, g = Math.imul(de, se), E = (E = Math.imul(de, fe)) + Math.imul(pe, se) | 0, U = Math.imul(pe, fe), g = g + Math.imul(ue, ve) | 0, E = (E = E + Math.imul(ue, me) | 0) + Math.imul(le, ve) | 0, U = U + Math.imul(le, me) | 0, g = g + Math.imul(L, ye) | 0, E = (E = E + Math.imul(L, Ee) | 0) + Math.imul(ae, ye) | 0, U = U + Math.imul(ae, Ee) | 0, g = g + Math.imul(X, Pe) | 0, E = (E = E + Math.imul(X, ke) | 0) + Math.imul(K, Pe) | 0, U = U + Math.imul(K, ke) | 0; + var Ge = (ee + (g = g + Math.imul(D, we) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, Se) | 0) + Math.imul(Z, we) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, Se) | 0) + (E >>> 13) | 0) + (Ge >>> 26) | 0, Ge &= 67108863, g = Math.imul(W, se), E = (E = Math.imul(W, fe)) + Math.imul(v, se) | 0, U = Math.imul(v, fe), g = g + Math.imul(de, ve) | 0, E = (E = E + Math.imul(de, me) | 0) + Math.imul(pe, ve) | 0, U = U + Math.imul(pe, me) | 0, g = g + Math.imul(ue, ye) | 0, E = (E = E + Math.imul(ue, Ee) | 0) + Math.imul(le, ye) | 0, U = U + Math.imul(le, Ee) | 0, g = g + Math.imul(L, Pe) | 0, E = (E = E + Math.imul(L, ke) | 0) + Math.imul(ae, Pe) | 0, U = U + Math.imul(ae, ke) | 0, g = g + Math.imul(X, we) | 0, E = (E = E + Math.imul(X, Se) | 0) + Math.imul(K, we) | 0, U = U + Math.imul(K, Se) | 0; + var He = (ee + (g = g + Math.imul(D, Oe) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, Me) | 0) + Math.imul(Z, Oe) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, Me) | 0) + (E >>> 13) | 0) + (He >>> 26) | 0, He &= 67108863, g = Math.imul(S, se), E = (E = Math.imul(S, fe)) + Math.imul(T, se) | 0, U = Math.imul(T, fe), g = g + Math.imul(W, ve) | 0, E = (E = E + Math.imul(W, me) | 0) + Math.imul(v, ve) | 0, U = U + Math.imul(v, me) | 0, g = g + Math.imul(de, ye) | 0, E = (E = E + Math.imul(de, Ee) | 0) + Math.imul(pe, ye) | 0, U = U + Math.imul(pe, Ee) | 0, g = g + Math.imul(ue, Pe) | 0, E = (E = E + Math.imul(ue, ke) | 0) + Math.imul(le, Pe) | 0, U = U + Math.imul(le, ke) | 0, g = g + Math.imul(L, we) | 0, E = (E = E + Math.imul(L, Se) | 0) + Math.imul(ae, we) | 0, U = U + Math.imul(ae, Se) | 0, g = g + Math.imul(X, Oe) | 0, E = (E = E + Math.imul(X, Me) | 0) + Math.imul(K, Oe) | 0, U = U + Math.imul(K, Me) | 0; + var $e = (ee + (g = g + Math.imul(D, Ne) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, Ce) | 0) + Math.imul(Z, Ne) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, Ce) | 0) + (E >>> 13) | 0) + ($e >>> 26) | 0, $e &= 67108863, g = Math.imul(z, se), E = (E = Math.imul(z, fe)) + Math.imul(q, se) | 0, U = Math.imul(q, fe), g = g + Math.imul(S, ve) | 0, E = (E = E + Math.imul(S, me) | 0) + Math.imul(T, ve) | 0, U = U + Math.imul(T, me) | 0, g = g + Math.imul(W, ye) | 0, E = (E = E + Math.imul(W, Ee) | 0) + Math.imul(v, ye) | 0, U = U + Math.imul(v, Ee) | 0, g = g + Math.imul(de, Pe) | 0, E = (E = E + Math.imul(de, ke) | 0) + Math.imul(pe, Pe) | 0, U = U + Math.imul(pe, ke) | 0, g = g + Math.imul(ue, we) | 0, E = (E = E + Math.imul(ue, Se) | 0) + Math.imul(le, we) | 0, U = U + Math.imul(le, Se) | 0, g = g + Math.imul(L, Oe) | 0, E = (E = E + Math.imul(L, Me) | 0) + Math.imul(ae, Oe) | 0, U = U + Math.imul(ae, Me) | 0, g = g + Math.imul(X, Ne) | 0, E = (E = E + Math.imul(X, Ce) | 0) + Math.imul(K, Ne) | 0, U = U + Math.imul(K, Ce) | 0; + var Ke = (ee + (g = g + Math.imul(D, Ie) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, je) | 0) + Math.imul(Z, Ie) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, je) | 0) + (E >>> 13) | 0) + (Ke >>> 26) | 0, Ke &= 67108863, g = Math.imul(oe, se), E = (E = Math.imul(oe, fe)) + Math.imul(V, se) | 0, U = Math.imul(V, fe), g = g + Math.imul(z, ve) | 0, E = (E = E + Math.imul(z, me) | 0) + Math.imul(q, ve) | 0, U = U + Math.imul(q, me) | 0, g = g + Math.imul(S, ye) | 0, E = (E = E + Math.imul(S, Ee) | 0) + Math.imul(T, ye) | 0, U = U + Math.imul(T, Ee) | 0, g = g + Math.imul(W, Pe) | 0, E = (E = E + Math.imul(W, ke) | 0) + Math.imul(v, Pe) | 0, U = U + Math.imul(v, ke) | 0, g = g + Math.imul(de, we) | 0, E = (E = E + Math.imul(de, Se) | 0) + Math.imul(pe, we) | 0, U = U + Math.imul(pe, Se) | 0, g = g + Math.imul(ue, Oe) | 0, E = (E = E + Math.imul(ue, Me) | 0) + Math.imul(le, Oe) | 0, U = U + Math.imul(le, Me) | 0, g = g + Math.imul(L, Ne) | 0, E = (E = E + Math.imul(L, Ce) | 0) + Math.imul(ae, Ne) | 0, U = U + Math.imul(ae, Ce) | 0, g = g + Math.imul(X, Ie) | 0, E = (E = E + Math.imul(X, je) | 0) + Math.imul(K, Ie) | 0, U = U + Math.imul(K, je) | 0; + var Qe = (ee + (g = g + Math.imul(D, Ue) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, Je) | 0) + Math.imul(Z, Ue) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, Je) | 0) + (E >>> 13) | 0) + (Qe >>> 26) | 0, Qe &= 67108863, g = Math.imul(G, se), E = (E = Math.imul(G, fe)) + Math.imul(H, se) | 0, U = Math.imul(H, fe), g = g + Math.imul(oe, ve) | 0, E = (E = E + Math.imul(oe, me) | 0) + Math.imul(V, ve) | 0, U = U + Math.imul(V, me) | 0, g = g + Math.imul(z, ye) | 0, E = (E = E + Math.imul(z, Ee) | 0) + Math.imul(q, ye) | 0, U = U + Math.imul(q, Ee) | 0, g = g + Math.imul(S, Pe) | 0, E = (E = E + Math.imul(S, ke) | 0) + Math.imul(T, Pe) | 0, U = U + Math.imul(T, ke) | 0, g = g + Math.imul(W, we) | 0, E = (E = E + Math.imul(W, Se) | 0) + Math.imul(v, we) | 0, U = U + Math.imul(v, Se) | 0, g = g + Math.imul(de, Oe) | 0, E = (E = E + Math.imul(de, Me) | 0) + Math.imul(pe, Oe) | 0, U = U + Math.imul(pe, Me) | 0, g = g + Math.imul(ue, Ne) | 0, E = (E = E + Math.imul(ue, Ce) | 0) + Math.imul(le, Ne) | 0, U = U + Math.imul(le, Ce) | 0, g = g + Math.imul(L, Ie) | 0, E = (E = E + Math.imul(L, je) | 0) + Math.imul(ae, Ie) | 0, U = U + Math.imul(ae, je) | 0, g = g + Math.imul(X, Ue) | 0, E = (E = E + Math.imul(X, Je) | 0) + Math.imul(K, Ue) | 0, U = U + Math.imul(K, Je) | 0; + var Ze = (ee + (g = g + Math.imul(D, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(D, qe) | 0) + Math.imul(Z, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(Z, qe) | 0) + (E >>> 13) | 0) + (Ze >>> 26) | 0, Ze &= 67108863, g = Math.imul(G, ve), E = (E = Math.imul(G, me)) + Math.imul(H, ve) | 0, U = Math.imul(H, me), g = g + Math.imul(oe, ye) | 0, E = (E = E + Math.imul(oe, Ee) | 0) + Math.imul(V, ye) | 0, U = U + Math.imul(V, Ee) | 0, g = g + Math.imul(z, Pe) | 0, E = (E = E + Math.imul(z, ke) | 0) + Math.imul(q, Pe) | 0, U = U + Math.imul(q, ke) | 0, g = g + Math.imul(S, we) | 0, E = (E = E + Math.imul(S, Se) | 0) + Math.imul(T, we) | 0, U = U + Math.imul(T, Se) | 0, g = g + Math.imul(W, Oe) | 0, E = (E = E + Math.imul(W, Me) | 0) + Math.imul(v, Oe) | 0, U = U + Math.imul(v, Me) | 0, g = g + Math.imul(de, Ne) | 0, E = (E = E + Math.imul(de, Ce) | 0) + Math.imul(pe, Ne) | 0, U = U + Math.imul(pe, Ce) | 0, g = g + Math.imul(ue, Ie) | 0, E = (E = E + Math.imul(ue, je) | 0) + Math.imul(le, Ie) | 0, U = U + Math.imul(le, je) | 0, g = g + Math.imul(L, Ue) | 0, E = (E = E + Math.imul(L, Je) | 0) + Math.imul(ae, Ue) | 0, U = U + Math.imul(ae, Je) | 0; + var Ye = (ee + (g = g + Math.imul(X, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(X, qe) | 0) + Math.imul(K, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(K, qe) | 0) + (E >>> 13) | 0) + (Ye >>> 26) | 0, Ye &= 67108863, g = Math.imul(G, ye), E = (E = Math.imul(G, Ee)) + Math.imul(H, ye) | 0, U = Math.imul(H, Ee), g = g + Math.imul(oe, Pe) | 0, E = (E = E + Math.imul(oe, ke) | 0) + Math.imul(V, Pe) | 0, U = U + Math.imul(V, ke) | 0, g = g + Math.imul(z, we) | 0, E = (E = E + Math.imul(z, Se) | 0) + Math.imul(q, we) | 0, U = U + Math.imul(q, Se) | 0, g = g + Math.imul(S, Oe) | 0, E = (E = E + Math.imul(S, Me) | 0) + Math.imul(T, Oe) | 0, U = U + Math.imul(T, Me) | 0, g = g + Math.imul(W, Ne) | 0, E = (E = E + Math.imul(W, Ce) | 0) + Math.imul(v, Ne) | 0, U = U + Math.imul(v, Ce) | 0, g = g + Math.imul(de, Ie) | 0, E = (E = E + Math.imul(de, je) | 0) + Math.imul(pe, Ie) | 0, U = U + Math.imul(pe, je) | 0, g = g + Math.imul(ue, Ue) | 0, E = (E = E + Math.imul(ue, Je) | 0) + Math.imul(le, Ue) | 0, U = U + Math.imul(le, Je) | 0; + var Xe = (ee + (g = g + Math.imul(L, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(L, qe) | 0) + Math.imul(ae, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(ae, qe) | 0) + (E >>> 13) | 0) + (Xe >>> 26) | 0, Xe &= 67108863, g = Math.imul(G, Pe), E = (E = Math.imul(G, ke)) + Math.imul(H, Pe) | 0, U = Math.imul(H, ke), g = g + Math.imul(oe, we) | 0, E = (E = E + Math.imul(oe, Se) | 0) + Math.imul(V, we) | 0, U = U + Math.imul(V, Se) | 0, g = g + Math.imul(z, Oe) | 0, E = (E = E + Math.imul(z, Me) | 0) + Math.imul(q, Oe) | 0, U = U + Math.imul(q, Me) | 0, g = g + Math.imul(S, Ne) | 0, E = (E = E + Math.imul(S, Ce) | 0) + Math.imul(T, Ne) | 0, U = U + Math.imul(T, Ce) | 0, g = g + Math.imul(W, Ie) | 0, E = (E = E + Math.imul(W, je) | 0) + Math.imul(v, Ie) | 0, U = U + Math.imul(v, je) | 0, g = g + Math.imul(de, Ue) | 0, E = (E = E + Math.imul(de, Je) | 0) + Math.imul(pe, Ue) | 0, U = U + Math.imul(pe, Je) | 0; + var et = (ee + (g = g + Math.imul(ue, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(ue, qe) | 0) + Math.imul(le, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(le, qe) | 0) + (E >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, g = Math.imul(G, we), E = (E = Math.imul(G, Se)) + Math.imul(H, we) | 0, U = Math.imul(H, Se), g = g + Math.imul(oe, Oe) | 0, E = (E = E + Math.imul(oe, Me) | 0) + Math.imul(V, Oe) | 0, U = U + Math.imul(V, Me) | 0, g = g + Math.imul(z, Ne) | 0, E = (E = E + Math.imul(z, Ce) | 0) + Math.imul(q, Ne) | 0, U = U + Math.imul(q, Ce) | 0, g = g + Math.imul(S, Ie) | 0, E = (E = E + Math.imul(S, je) | 0) + Math.imul(T, Ie) | 0, U = U + Math.imul(T, je) | 0, g = g + Math.imul(W, Ue) | 0, E = (E = E + Math.imul(W, Je) | 0) + Math.imul(v, Ue) | 0, U = U + Math.imul(v, Je) | 0; + var tt = (ee + (g = g + Math.imul(de, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(de, qe) | 0) + Math.imul(pe, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(pe, qe) | 0) + (E >>> 13) | 0) + (tt >>> 26) | 0, tt &= 67108863, g = Math.imul(G, Oe), E = (E = Math.imul(G, Me)) + Math.imul(H, Oe) | 0, U = Math.imul(H, Me), g = g + Math.imul(oe, Ne) | 0, E = (E = E + Math.imul(oe, Ce) | 0) + Math.imul(V, Ne) | 0, U = U + Math.imul(V, Ce) | 0, g = g + Math.imul(z, Ie) | 0, E = (E = E + Math.imul(z, je) | 0) + Math.imul(q, Ie) | 0, U = U + Math.imul(q, je) | 0, g = g + Math.imul(S, Ue) | 0, E = (E = E + Math.imul(S, Je) | 0) + Math.imul(T, Ue) | 0, U = U + Math.imul(T, Je) | 0; + var rt = (ee + (g = g + Math.imul(W, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(W, qe) | 0) + Math.imul(v, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(v, qe) | 0) + (E >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, g = Math.imul(G, Ne), E = (E = Math.imul(G, Ce)) + Math.imul(H, Ne) | 0, U = Math.imul(H, Ce), g = g + Math.imul(oe, Ie) | 0, E = (E = E + Math.imul(oe, je) | 0) + Math.imul(V, Ie) | 0, U = U + Math.imul(V, je) | 0, g = g + Math.imul(z, Ue) | 0, E = (E = E + Math.imul(z, Je) | 0) + Math.imul(q, Ue) | 0, U = U + Math.imul(q, Je) | 0; + var nt = (ee + (g = g + Math.imul(S, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(S, qe) | 0) + Math.imul(T, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(T, qe) | 0) + (E >>> 13) | 0) + (nt >>> 26) | 0, nt &= 67108863, g = Math.imul(G, Ie), E = (E = Math.imul(G, je)) + Math.imul(H, Ie) | 0, U = Math.imul(H, je), g = g + Math.imul(oe, Ue) | 0, E = (E = E + Math.imul(oe, Je) | 0) + Math.imul(V, Ue) | 0, U = U + Math.imul(V, Je) | 0; + var ot = (ee + (g = g + Math.imul(z, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(z, qe) | 0) + Math.imul(q, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(q, qe) | 0) + (E >>> 13) | 0) + (ot >>> 26) | 0, ot &= 67108863, g = Math.imul(G, Ue), E = (E = Math.imul(G, Je)) + Math.imul(H, Ue) | 0, U = Math.imul(H, Je); + var it = (ee + (g = g + Math.imul(oe, ze) | 0) | 0) + ((8191 & (E = (E = E + Math.imul(oe, qe) | 0) + Math.imul(V, ze) | 0)) << 13) | 0; + ee = ((U = U + Math.imul(V, qe) | 0) + (E >>> 13) | 0) + (it >>> 26) | 0, it &= 67108863; + var at = (ee + (g = Math.imul(G, ze)) | 0) + ((8191 & (E = (E = Math.imul(G, qe)) + Math.imul(H, ze) | 0)) << 13) | 0; + return ee = ((U = Math.imul(H, qe)) + (E >>> 13) | 0) + (at >>> 26) | 0, at &= 67108863, re[0] = Le, re[1] = Fe, re[2] = We, re[3] = Ve, re[4] = Ge, re[5] = He, re[6] = $e, re[7] = Ke, re[8] = Qe, re[9] = Ze, re[10] = Ye, re[11] = Xe, re[12] = et, re[13] = tt, re[14] = rt, re[15] = nt, re[16] = ot, re[17] = it, re[18] = at, ee !== 0 && (re[19] = ee, w.length++), w; + }; + function c(x, P, w) { + return new h().mulp(x, P, w); + } + function h(x, P) { + this.x = x, this.y = P; + } + Math.imul || (f = i), a.prototype.mulTo = function(x, P) { + var w, g = this.length + x.length; + return w = this.length === 10 && x.length === 10 ? f(this, x, P) : g < 63 ? i(this, x, P) : g < 1024 ? function(E, U, C) { + C.negative = U.negative ^ E.negative, C.length = E.length + U.length; + for (var F = 0, re = 0, ee = 0; ee < C.length - 1; ee++) { + var ne = re; + re = 0; + for (var D = 67108863 & F, Z = Math.min(ee, U.length - 1), $ = Math.max(0, ee - E.length + 1); $ <= Z; $++) { + var X = ee - $, K = (0 | E.words[X]) * (0 | U.words[$]), Y = 67108863 & K; + D = 67108863 & (Y = Y + D | 0), re += (ne = (ne = ne + (K / 67108864 | 0) | 0) + (Y >>> 26) | 0) >>> 26, ne &= 67108863; + } + C.words[ee] = D, F = ne, ne = re; + } + return F !== 0 ? C.words[ee] = F : C.length--, C.strip(); + }(this, x, P) : c(this, x, P), w; + }, h.prototype.makeRBT = function(x) { + for (var P = new Array(x), w = a.prototype._countBits(x) - 1, g = 0; g < x; g++) + P[g] = this.revBin(g, w, x); + return P; + }, h.prototype.revBin = function(x, P, w) { + if (x === 0 || x === w - 1) + return x; + for (var g = 0, E = 0; E < P; E++) + g |= (1 & x) << P - E - 1, x >>= 1; + return g; + }, h.prototype.permute = function(x, P, w, g, E, U) { + for (var C = 0; C < U; C++) + g[C] = P[x[C]], E[C] = w[x[C]]; + }, h.prototype.transform = function(x, P, w, g, E, U) { + this.permute(U, x, P, w, g, E); + for (var C = 1; C < E; C <<= 1) + for (var F = C << 1, re = Math.cos(2 * Math.PI / F), ee = Math.sin(2 * Math.PI / F), ne = 0; ne < E; ne += F) + for (var D = re, Z = ee, $ = 0; $ < C; $++) { + var X = w[ne + $], K = g[ne + $], Y = w[ne + $ + C], L = g[ne + $ + C], ae = D * Y - Z * L; + L = D * L + Z * Y, Y = ae, w[ne + $] = X + Y, g[ne + $] = K + L, w[ne + $ + C] = X - Y, g[ne + $ + C] = K - L, $ !== F && (ae = re * D - ee * Z, Z = re * Z + ee * D, D = ae); + } + }, h.prototype.guessLen13b = function(x, P) { + var w = 1 | Math.max(P, x), g = 1 & w, E = 0; + for (w = w / 2 | 0; w; w >>>= 1) + E++; + return 1 << E + 1 + g; + }, h.prototype.conjugate = function(x, P, w) { + if (!(w <= 1)) + for (var g = 0; g < w / 2; g++) { + var E = x[g]; + x[g] = x[w - g - 1], x[w - g - 1] = E, E = P[g], P[g] = -P[w - g - 1], P[w - g - 1] = -E; + } + }, h.prototype.normalize13b = function(x, P) { + for (var w = 0, g = 0; g < P / 2; g++) { + var E = 8192 * Math.round(x[2 * g + 1] / P) + Math.round(x[2 * g] / P) + w; + x[g] = 67108863 & E, w = E < 67108864 ? 0 : E / 67108864 | 0; + } + return x; + }, h.prototype.convert13b = function(x, P, w, g) { + for (var E = 0, U = 0; U < P; U++) + E += 0 | x[U], w[2 * U] = 8191 & E, E >>>= 13, w[2 * U + 1] = 8191 & E, E >>>= 13; + for (U = 2 * P; U < g; ++U) + w[U] = 0; + k(E === 0), k((-8192 & E) == 0); + }, h.prototype.stub = function(x) { + for (var P = new Array(x), w = 0; w < x; w++) + P[w] = 0; + return P; + }, h.prototype.mulp = function(x, P, w) { + var g = 2 * this.guessLen13b(x.length, P.length), E = this.makeRBT(g), U = this.stub(g), C = new Array(g), F = new Array(g), re = new Array(g), ee = new Array(g), ne = new Array(g), D = new Array(g), Z = w.words; + Z.length = g, this.convert13b(x.words, x.length, C, g), this.convert13b(P.words, P.length, ee, g), this.transform(C, U, F, re, g, E), this.transform(ee, U, ne, D, g, E); + for (var $ = 0; $ < g; $++) { + var X = F[$] * ne[$] - re[$] * D[$]; + re[$] = F[$] * D[$] + re[$] * ne[$], F[$] = X; + } + return this.conjugate(F, re, g), this.transform(F, re, Z, U, g, E), this.conjugate(Z, U, g), this.normalize13b(Z, g), w.negative = x.negative ^ P.negative, w.length = x.length + P.length, w.strip(); + }, a.prototype.mul = function(x) { + var P = new a(null); + return P.words = new Array(this.length + x.length), this.mulTo(x, P); + }, a.prototype.mulf = function(x) { + var P = new a(null); + return P.words = new Array(this.length + x.length), c(this, x, P); + }, a.prototype.imul = function(x) { + return this.clone().mulTo(x, this); + }, a.prototype.imuln = function(x) { + k(typeof x == "number"), k(x < 67108864); + for (var P = 0, w = 0; w < this.length; w++) { + var g = (0 | this.words[w]) * x, E = (67108863 & g) + (67108863 & P); + P >>= 26, P += g / 67108864 | 0, P += E >>> 26, this.words[w] = 67108863 & E; + } + return P !== 0 && (this.words[w] = P, this.length++), this; + }, a.prototype.muln = function(x) { + return this.clone().imuln(x); + }, a.prototype.sqr = function() { + return this.mul(this); + }, a.prototype.isqr = function() { + return this.imul(this.clone()); + }, a.prototype.pow = function(x) { + var P = function(U) { + for (var C = new Array(U.bitLength()), F = 0; F < C.length; F++) { + var re = F / 26 | 0, ee = F % 26; + C[F] = (U.words[re] & 1 << ee) >>> ee; + } + return C; + }(x); + if (P.length === 0) + return new a(1); + for (var w = this, g = 0; g < P.length && P[g] === 0; g++, w = w.sqr()) + ; + if (++g < P.length) + for (var E = w.sqr(); g < P.length; g++, E = E.sqr()) + P[g] !== 0 && (w = w.mul(E)); + return w; + }, a.prototype.iushln = function(x) { + k(typeof x == "number" && x >= 0); + var P, w = x % 26, g = (x - w) / 26, E = 67108863 >>> 26 - w << 26 - w; + if (w !== 0) { + var U = 0; + for (P = 0; P < this.length; P++) { + var C = this.words[P] & E, F = (0 | this.words[P]) - C << w; + this.words[P] = F | U, U = C >>> 26 - w; + } + U && (this.words[P] = U, this.length++); + } + if (g !== 0) { + for (P = this.length - 1; P >= 0; P--) + this.words[P + g] = this.words[P]; + for (P = 0; P < g; P++) + this.words[P] = 0; + this.length += g; + } + return this.strip(); + }, a.prototype.ishln = function(x) { + return k(this.negative === 0), this.iushln(x); + }, a.prototype.iushrn = function(x, P, w) { + var g; + k(typeof x == "number" && x >= 0), g = P ? (P - P % 26) / 26 : 0; + var E = x % 26, U = Math.min((x - E) / 26, this.length), C = 67108863 ^ 67108863 >>> E << E, F = w; + if (g -= U, g = Math.max(0, g), F) { + for (var re = 0; re < U; re++) + F.words[re] = this.words[re]; + F.length = U; + } + if (U !== 0) + if (this.length > U) + for (this.length -= U, re = 0; re < this.length; re++) + this.words[re] = this.words[re + U]; + else + this.words[0] = 0, this.length = 1; + var ee = 0; + for (re = this.length - 1; re >= 0 && (ee !== 0 || re >= g); re--) { + var ne = 0 | this.words[re]; + this.words[re] = ee << 26 - E | ne >>> E, ee = ne & C; + } + return F && ee !== 0 && (F.words[F.length++] = ee), this.length === 0 && (this.words[0] = 0, this.length = 1), this.strip(); + }, a.prototype.ishrn = function(x, P, w) { + return k(this.negative === 0), this.iushrn(x, P, w); + }, a.prototype.shln = function(x) { + return this.clone().ishln(x); + }, a.prototype.ushln = function(x) { + return this.clone().iushln(x); + }, a.prototype.shrn = function(x) { + return this.clone().ishrn(x); + }, a.prototype.ushrn = function(x) { + return this.clone().iushrn(x); + }, a.prototype.testn = function(x) { + k(typeof x == "number" && x >= 0); + var P = x % 26, w = (x - P) / 26, g = 1 << P; + return !(this.length <= w || !(this.words[w] & g)); + }, a.prototype.imaskn = function(x) { + k(typeof x == "number" && x >= 0); + var P = x % 26, w = (x - P) / 26; + if (k(this.negative === 0, "imaskn works only with positive numbers"), this.length <= w) + return this; + if (P !== 0 && w++, this.length = Math.min(w, this.length), P !== 0) { + var g = 67108863 ^ 67108863 >>> P << P; + this.words[this.length - 1] &= g; + } + return this.strip(); + }, a.prototype.maskn = function(x) { + return this.clone().imaskn(x); + }, a.prototype.iaddn = function(x) { + return k(typeof x == "number"), k(x < 67108864), x < 0 ? this.isubn(-x) : this.negative !== 0 ? this.length === 1 && (0 | this.words[0]) < x ? (this.words[0] = x - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(x), this.negative = 1, this) : this._iaddn(x); + }, a.prototype._iaddn = function(x) { + this.words[0] += x; + for (var P = 0; P < this.length && this.words[P] >= 67108864; P++) + this.words[P] -= 67108864, P === this.length - 1 ? this.words[P + 1] = 1 : this.words[P + 1]++; + return this.length = Math.max(this.length, P + 1), this; + }, a.prototype.isubn = function(x) { + if (k(typeof x == "number"), k(x < 67108864), x < 0) + return this.iaddn(-x); + if (this.negative !== 0) + return this.negative = 0, this.iaddn(x), this.negative = 1, this; + if (this.words[0] -= x, this.length === 1 && this.words[0] < 0) + this.words[0] = -this.words[0], this.negative = 1; + else + for (var P = 0; P < this.length && this.words[P] < 0; P++) + this.words[P] += 67108864, this.words[P + 1] -= 1; + return this.strip(); + }, a.prototype.addn = function(x) { + return this.clone().iaddn(x); + }, a.prototype.subn = function(x) { + return this.clone().isubn(x); + }, a.prototype.iabs = function() { + return this.negative = 0, this; + }, a.prototype.abs = function() { + return this.clone().iabs(); + }, a.prototype._ishlnsubmul = function(x, P, w) { + var g, E, U = x.length + w; + this._expand(U); + var C = 0; + for (g = 0; g < x.length; g++) { + E = (0 | this.words[g + w]) + C; + var F = (0 | x.words[g]) * P; + C = ((E -= 67108863 & F) >> 26) - (F / 67108864 | 0), this.words[g + w] = 67108863 & E; + } + for (; g < this.length - w; g++) + C = (E = (0 | this.words[g + w]) + C) >> 26, this.words[g + w] = 67108863 & E; + if (C === 0) + return this.strip(); + for (k(C === -1), C = 0, g = 0; g < this.length; g++) + C = (E = -(0 | this.words[g]) + C) >> 26, this.words[g] = 67108863 & E; + return this.negative = 1, this.strip(); + }, a.prototype._wordDiv = function(x, P) { + var w = (this.length, x.length), g = this.clone(), E = x, U = 0 | E.words[E.length - 1]; + (w = 26 - this._countBits(U)) != 0 && (E = E.ushln(w), g.iushln(w), U = 0 | E.words[E.length - 1]); + var C, F = g.length - E.length; + if (P !== "mod") { + (C = new a(null)).length = F + 1, C.words = new Array(C.length); + for (var re = 0; re < C.length; re++) + C.words[re] = 0; + } + var ee = g.clone()._ishlnsubmul(E, 1, F); + ee.negative === 0 && (g = ee, C && (C.words[F] = 1)); + for (var ne = F - 1; ne >= 0; ne--) { + var D = 67108864 * (0 | g.words[E.length + ne]) + (0 | g.words[E.length + ne - 1]); + for (D = Math.min(D / U | 0, 67108863), g._ishlnsubmul(E, D, ne); g.negative !== 0; ) + D--, g.negative = 0, g._ishlnsubmul(E, 1, ne), g.isZero() || (g.negative ^= 1); + C && (C.words[ne] = D); + } + return C && C.strip(), g.strip(), P !== "div" && w !== 0 && g.iushrn(w), { div: C || null, mod: g }; + }, a.prototype.divmod = function(x, P, w) { + return k(!x.isZero()), this.isZero() ? { div: new a(0), mod: new a(0) } : this.negative !== 0 && x.negative === 0 ? (U = this.neg().divmod(x, P), P !== "mod" && (g = U.div.neg()), P !== "div" && (E = U.mod.neg(), w && E.negative !== 0 && E.iadd(x)), { div: g, mod: E }) : this.negative === 0 && x.negative !== 0 ? (U = this.divmod(x.neg(), P), P !== "mod" && (g = U.div.neg()), { div: g, mod: U.mod }) : this.negative & x.negative ? (U = this.neg().divmod(x.neg(), P), P !== "div" && (E = U.mod.neg(), w && E.negative !== 0 && E.isub(x)), { div: U.div, mod: E }) : x.length > this.length || this.cmp(x) < 0 ? { div: new a(0), mod: this } : x.length === 1 ? P === "div" ? { div: this.divn(x.words[0]), mod: null } : P === "mod" ? { div: null, mod: new a(this.modn(x.words[0])) } : { div: this.divn(x.words[0]), mod: new a(this.modn(x.words[0])) } : this._wordDiv(x, P); + var g, E, U; + }, a.prototype.div = function(x) { + return this.divmod(x, "div", !1).div; + }, a.prototype.mod = function(x) { + return this.divmod(x, "mod", !1).mod; + }, a.prototype.umod = function(x) { + return this.divmod(x, "mod", !0).mod; + }, a.prototype.divRound = function(x) { + var P = this.divmod(x); + if (P.mod.isZero()) + return P.div; + var w = P.div.negative !== 0 ? P.mod.isub(x) : P.mod, g = x.ushrn(1), E = x.andln(1), U = w.cmp(g); + return U < 0 || E === 1 && U === 0 ? P.div : P.div.negative !== 0 ? P.div.isubn(1) : P.div.iaddn(1); + }, a.prototype.modn = function(x) { + k(x <= 67108863); + for (var P = 67108864 % x, w = 0, g = this.length - 1; g >= 0; g--) + w = (P * w + (0 | this.words[g])) % x; + return w; + }, a.prototype.idivn = function(x) { + k(x <= 67108863); + for (var P = 0, w = this.length - 1; w >= 0; w--) { + var g = (0 | this.words[w]) + 67108864 * P; + this.words[w] = g / x | 0, P = g % x; + } + return this.strip(); + }, a.prototype.divn = function(x) { + return this.clone().idivn(x); + }, a.prototype.egcd = function(x) { + k(x.negative === 0), k(!x.isZero()); + var P = this, w = x.clone(); + P = P.negative !== 0 ? P.umod(x) : P.clone(); + for (var g = new a(1), E = new a(0), U = new a(0), C = new a(1), F = 0; P.isEven() && w.isEven(); ) + P.iushrn(1), w.iushrn(1), ++F; + for (var re = w.clone(), ee = P.clone(); !P.isZero(); ) { + for (var ne = 0, D = 1; !(P.words[0] & D) && ne < 26; ++ne, D <<= 1) + ; + if (ne > 0) + for (P.iushrn(ne); ne-- > 0; ) + (g.isOdd() || E.isOdd()) && (g.iadd(re), E.isub(ee)), g.iushrn(1), E.iushrn(1); + for (var Z = 0, $ = 1; !(w.words[0] & $) && Z < 26; ++Z, $ <<= 1) + ; + if (Z > 0) + for (w.iushrn(Z); Z-- > 0; ) + (U.isOdd() || C.isOdd()) && (U.iadd(re), C.isub(ee)), U.iushrn(1), C.iushrn(1); + P.cmp(w) >= 0 ? (P.isub(w), g.isub(U), E.isub(C)) : (w.isub(P), U.isub(g), C.isub(E)); + } + return { a: U, b: C, gcd: w.iushln(F) }; + }, a.prototype._invmp = function(x) { + k(x.negative === 0), k(!x.isZero()); + var P = this, w = x.clone(); + P = P.negative !== 0 ? P.umod(x) : P.clone(); + for (var g, E = new a(1), U = new a(0), C = w.clone(); P.cmpn(1) > 0 && w.cmpn(1) > 0; ) { + for (var F = 0, re = 1; !(P.words[0] & re) && F < 26; ++F, re <<= 1) + ; + if (F > 0) + for (P.iushrn(F); F-- > 0; ) + E.isOdd() && E.iadd(C), E.iushrn(1); + for (var ee = 0, ne = 1; !(w.words[0] & ne) && ee < 26; ++ee, ne <<= 1) + ; + if (ee > 0) + for (w.iushrn(ee); ee-- > 0; ) + U.isOdd() && U.iadd(C), U.iushrn(1); + P.cmp(w) >= 0 ? (P.isub(w), E.isub(U)) : (w.isub(P), U.isub(E)); + } + return (g = P.cmpn(1) === 0 ? E : U).cmpn(0) < 0 && g.iadd(x), g; + }, a.prototype.gcd = function(x) { + if (this.isZero()) + return x.abs(); + if (x.isZero()) + return this.abs(); + var P = this.clone(), w = x.clone(); + P.negative = 0, w.negative = 0; + for (var g = 0; P.isEven() && w.isEven(); g++) + P.iushrn(1), w.iushrn(1); + for (; ; ) { + for (; P.isEven(); ) + P.iushrn(1); + for (; w.isEven(); ) + w.iushrn(1); + var E = P.cmp(w); + if (E < 0) { + var U = P; + P = w, w = U; + } else if (E === 0 || w.cmpn(1) === 0) + break; + P.isub(w); + } + return w.iushln(g); + }, a.prototype.invm = function(x) { + return this.egcd(x).a.umod(x); + }, a.prototype.isEven = function() { + return (1 & this.words[0]) == 0; + }, a.prototype.isOdd = function() { + return (1 & this.words[0]) == 1; + }, a.prototype.andln = function(x) { + return this.words[0] & x; + }, a.prototype.bincn = function(x) { + k(typeof x == "number"); + var P = x % 26, w = (x - P) / 26, g = 1 << P; + if (this.length <= w) + return this._expand(w + 1), this.words[w] |= g, this; + for (var E = g, U = w; E !== 0 && U < this.length; U++) { + var C = 0 | this.words[U]; + E = (C += E) >>> 26, C &= 67108863, this.words[U] = C; + } + return E !== 0 && (this.words[U] = E, this.length++), this; + }, a.prototype.isZero = function() { + return this.length === 1 && this.words[0] === 0; + }, a.prototype.cmpn = function(x) { + var P, w = x < 0; + if (this.negative !== 0 && !w) + return -1; + if (this.negative === 0 && w) + return 1; + if (this.strip(), this.length > 1) + P = 1; + else { + w && (x = -x), k(x <= 67108863, "Number is too big"); + var g = 0 | this.words[0]; + P = g === x ? 0 : g < x ? -1 : 1; + } + return this.negative !== 0 ? 0 | -P : P; + }, a.prototype.cmp = function(x) { + if (this.negative !== 0 && x.negative === 0) + return -1; + if (this.negative === 0 && x.negative !== 0) + return 1; + var P = this.ucmp(x); + return this.negative !== 0 ? 0 | -P : P; + }, a.prototype.ucmp = function(x) { + if (this.length > x.length) + return 1; + if (this.length < x.length) + return -1; + for (var P = 0, w = this.length - 1; w >= 0; w--) { + var g = 0 | this.words[w], E = 0 | x.words[w]; + if (g !== E) { + g < E ? P = -1 : g > E && (P = 1); + break; + } + } + return P; + }, a.prototype.gtn = function(x) { + return this.cmpn(x) === 1; + }, a.prototype.gt = function(x) { + return this.cmp(x) === 1; + }, a.prototype.gten = function(x) { + return this.cmpn(x) >= 0; + }, a.prototype.gte = function(x) { + return this.cmp(x) >= 0; + }, a.prototype.ltn = function(x) { + return this.cmpn(x) === -1; + }, a.prototype.lt = function(x) { + return this.cmp(x) === -1; + }, a.prototype.lten = function(x) { + return this.cmpn(x) <= 0; + }, a.prototype.lte = function(x) { + return this.cmp(x) <= 0; + }, a.prototype.eqn = function(x) { + return this.cmpn(x) === 0; + }, a.prototype.eq = function(x) { + return this.cmp(x) === 0; + }, a.red = function(x) { + return new R(x); + }, a.prototype.toRed = function(x) { + return k(!this.red, "Already a number in reduction context"), k(this.negative === 0, "red works only with positives"), x.convertTo(this)._forceRed(x); + }, a.prototype.fromRed = function() { + return k(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this); + }, a.prototype._forceRed = function(x) { + return this.red = x, this; + }, a.prototype.forceRed = function(x) { + return k(!this.red, "Already a number in reduction context"), this._forceRed(x); + }, a.prototype.redAdd = function(x) { + return k(this.red, "redAdd works only with red numbers"), this.red.add(this, x); + }, a.prototype.redIAdd = function(x) { + return k(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, x); + }, a.prototype.redSub = function(x) { + return k(this.red, "redSub works only with red numbers"), this.red.sub(this, x); + }, a.prototype.redISub = function(x) { + return k(this.red, "redISub works only with red numbers"), this.red.isub(this, x); + }, a.prototype.redShl = function(x) { + return k(this.red, "redShl works only with red numbers"), this.red.shl(this, x); + }, a.prototype.redMul = function(x) { + return k(this.red, "redMul works only with red numbers"), this.red._verify2(this, x), this.red.mul(this, x); + }, a.prototype.redIMul = function(x) { + return k(this.red, "redMul works only with red numbers"), this.red._verify2(this, x), this.red.imul(this, x); + }, a.prototype.redSqr = function() { + return k(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this); + }, a.prototype.redISqr = function() { + return k(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this); + }, a.prototype.redSqrt = function() { + return k(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this); + }, a.prototype.redInvm = function() { + return k(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this); + }, a.prototype.redNeg = function() { + return k(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this); + }, a.prototype.redPow = function(x) { + return k(this.red && !x.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, x); + }; + var p = { k256: null, p224: null, p192: null, p25519: null }; + function m(x, P) { + this.name = x, this.p = new a(P, 16), this.n = this.p.bitLength(), this.k = new a(1).iushln(this.n).isub(this.p), this.tmp = this._tmp(); + } + function M() { + m.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f"); + } + function l() { + m.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"); + } + function N() { + m.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff"); + } + function j() { + m.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"); + } + function R(x) { + if (typeof x == "string") { + var P = a._prime(x); + this.m = P.p, this.prime = P; + } else + k(x.gtn(1), "modulus must be greater than 1"), this.m = x, this.prime = null; + } + function I(x) { + R.call(this, x), 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); + } + m.prototype._tmp = function() { + var x = new a(null); + return x.words = new Array(Math.ceil(this.n / 13)), x; + }, m.prototype.ireduce = function(x) { + var P, w = x; + do + this.split(w, this.tmp), P = (w = (w = this.imulK(w)).iadd(this.tmp)).bitLength(); + while (P > this.n); + var g = P < this.n ? -1 : w.ucmp(this.p); + return g === 0 ? (w.words[0] = 0, w.length = 1) : g > 0 ? w.isub(this.p) : w.strip !== void 0 ? w.strip() : w._strip(), w; + }, m.prototype.split = function(x, P) { + x.iushrn(this.n, 0, P); + }, m.prototype.imulK = function(x) { + return x.imul(this.k); + }, b(M, m), M.prototype.split = function(x, P) { + for (var w = 4194303, g = Math.min(x.length, 9), E = 0; E < g; E++) + P.words[E] = x.words[E]; + if (P.length = g, x.length <= 9) + return x.words[0] = 0, void (x.length = 1); + var U = x.words[9]; + for (P.words[P.length++] = U & w, E = 10; E < x.length; E++) { + var C = 0 | x.words[E]; + x.words[E - 10] = (C & w) << 4 | U >>> 22, U = C; + } + U >>>= 22, x.words[E - 10] = U, U === 0 && x.length > 10 ? x.length -= 10 : x.length -= 9; + }, M.prototype.imulK = function(x) { + x.words[x.length] = 0, x.words[x.length + 1] = 0, x.length += 2; + for (var P = 0, w = 0; w < x.length; w++) { + var g = 0 | x.words[w]; + P += 977 * g, x.words[w] = 67108863 & P, P = 64 * g + (P / 67108864 | 0); + } + return x.words[x.length - 1] === 0 && (x.length--, x.words[x.length - 1] === 0 && x.length--), x; + }, b(l, m), b(N, m), b(j, m), j.prototype.imulK = function(x) { + for (var P = 0, w = 0; w < x.length; w++) { + var g = 19 * (0 | x.words[w]) + P, E = 67108863 & g; + g >>>= 26, x.words[w] = E, P = g; + } + return P !== 0 && (x.words[x.length++] = P), x; + }, a._prime = function(x) { + if (p[x]) + return p[x]; + var P; + if (x === "k256") + P = new M(); + else if (x === "p224") + P = new l(); + else if (x === "p192") + P = new N(); + else { + if (x !== "p25519") + throw new Error("Unknown prime " + x); + P = new j(); + } + return p[x] = P, P; + }, R.prototype._verify1 = function(x) { + k(x.negative === 0, "red works only with positives"), k(x.red, "red works only with red numbers"); + }, R.prototype._verify2 = function(x, P) { + k((x.negative | P.negative) == 0, "red works only with positives"), k(x.red && x.red === P.red, "red works only with red numbers"); + }, R.prototype.imod = function(x) { + return this.prime ? this.prime.ireduce(x)._forceRed(this) : x.umod(this.m)._forceRed(this); + }, R.prototype.neg = function(x) { + return x.isZero() ? x.clone() : this.m.sub(x)._forceRed(this); + }, R.prototype.add = function(x, P) { + this._verify2(x, P); + var w = x.add(P); + return w.cmp(this.m) >= 0 && w.isub(this.m), w._forceRed(this); + }, R.prototype.iadd = function(x, P) { + this._verify2(x, P); + var w = x.iadd(P); + return w.cmp(this.m) >= 0 && w.isub(this.m), w; + }, R.prototype.sub = function(x, P) { + this._verify2(x, P); + var w = x.sub(P); + return w.cmpn(0) < 0 && w.iadd(this.m), w._forceRed(this); + }, R.prototype.isub = function(x, P) { + this._verify2(x, P); + var w = x.isub(P); + return w.cmpn(0) < 0 && w.iadd(this.m), w; + }, R.prototype.shl = function(x, P) { + return this._verify1(x), this.imod(x.ushln(P)); + }, R.prototype.imul = function(x, P) { + return this._verify2(x, P), this.imod(x.imul(P)); + }, R.prototype.mul = function(x, P) { + return this._verify2(x, P), this.imod(x.mul(P)); + }, R.prototype.isqr = function(x) { + return this.imul(x, x.clone()); + }, R.prototype.sqr = function(x) { + return this.mul(x, x); + }, R.prototype.sqrt = function(x) { + if (x.isZero()) + return x.clone(); + var P = this.m.andln(3); + if (k(P % 2 == 1), P === 3) { + var w = this.m.add(new a(1)).iushrn(2); + return this.pow(x, w); + } + for (var g = this.m.subn(1), E = 0; !g.isZero() && g.andln(1) === 0; ) + E++, g.iushrn(1); + k(!g.isZero()); + var U = new a(1).toRed(this), C = U.redNeg(), F = this.m.subn(1).iushrn(1), re = this.m.bitLength(); + for (re = new a(2 * re * re).toRed(this); this.pow(re, F).cmp(C) !== 0; ) + re.redIAdd(C); + for (var ee = this.pow(re, g), ne = this.pow(x, g.addn(1).iushrn(1)), D = this.pow(x, g), Z = E; D.cmp(U) !== 0; ) { + for (var $ = D, X = 0; $.cmp(U) !== 0; X++) + $ = $.redSqr(); + k(X < Z); + var K = this.pow(ee, new a(1).iushln(Z - X - 1)); + ne = ne.redMul(K), ee = K.redSqr(), D = D.redMul(ee), Z = X; + } + return ne; + }, R.prototype.invm = function(x) { + var P = x._invmp(this.m); + return P.negative !== 0 ? (P.negative = 0, this.imod(P).redNeg()) : this.imod(P); + }, R.prototype.pow = function(x, P) { + if (P.isZero()) + return new a(1).toRed(this); + if (P.cmpn(1) === 0) + return x.clone(); + var w = new Array(16); + w[0] = new a(1).toRed(this), w[1] = x; + for (var g = 2; g < w.length; g++) + w[g] = this.mul(w[g - 1], x); + var E = w[0], U = 0, C = 0, F = P.bitLength() % 26; + for (F === 0 && (F = 26), g = P.length - 1; g >= 0; g--) { + for (var re = P.words[g], ee = F - 1; ee >= 0; ee--) { + var ne = re >> ee & 1; + E !== w[0] && (E = this.sqr(E)), ne !== 0 || U !== 0 ? (U <<= 1, U |= ne, (++C == 4 || g === 0 && ee === 0) && (E = this.mul(E, w[U]), C = 0, U = 0)) : C = 0; + } + F = 26; + } + return E; + }, R.prototype.convertTo = function(x) { + var P = x.umod(this.m); + return P === x ? P.clone() : P; + }, R.prototype.convertFrom = function(x) { + var P = x.clone(); + return P.red = null, P; + }, a.mont = function(x) { + return new I(x); + }, b(I, R), I.prototype.convertTo = function(x) { + return this.imod(x.ushln(this.shift)); + }, I.prototype.convertFrom = function(x) { + var P = this.imod(x.mul(this.rinv)); + return P.red = null, P; + }, I.prototype.imul = function(x, P) { + if (x.isZero() || P.isZero()) + return x.words[0] = 0, x.length = 1, x; + var w = x.imul(P), g = w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), E = w.isub(g).iushrn(this.shift), U = E; + return E.cmp(this.m) >= 0 ? U = E.isub(this.m) : E.cmpn(0) < 0 && (U = E.iadd(this.m)), U._forceRed(this); + }, I.prototype.mul = function(x, P) { + if (x.isZero() || P.isZero()) + return new a(0)._forceRed(this); + var w = x.mul(P), g = w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), E = w.isub(g).iushrn(this.shift), U = E; + return E.cmp(this.m) >= 0 ? U = E.isub(this.m) : E.cmpn(0) < 0 && (U = E.iadd(this.m)), U._forceRed(this); + }, I.prototype.invm = function(x) { + return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this); + }; + })(J = _.nmd(J), this); + }, 9931: (J, e, _) => { + var O; + function A(b) { + this.rand = b; + } + if (J.exports = function(b) { + return O || (O = new A(null)), O.generate(b); + }, J.exports.Rand = A, A.prototype.generate = function(b) { + return this._rand(b); + }, A.prototype._rand = function(b) { + if (this.rand.getBytes) + return this.rand.getBytes(b); + for (var a = new Uint8Array(b), t = 0; t < a.length; t++) + a[t] = this.rand.getByte(); + return a; + }, typeof self == "object") + self.crypto && self.crypto.getRandomValues ? A.prototype._rand = function(b) { + var a = new Uint8Array(b); + return self.crypto.getRandomValues(a), a; + } : self.msCrypto && self.msCrypto.getRandomValues ? A.prototype._rand = function(b) { + var a = new Uint8Array(b); + return self.msCrypto.getRandomValues(a), a; + } : typeof window == "object" && (A.prototype._rand = function() { + throw new Error("Not implemented yet"); + }); + else + try { + var k = _(9214); + if (typeof k.randomBytes != "function") + throw new Error("Not supported"); + A.prototype._rand = function(b) { + return k.randomBytes(b); + }; + } catch { + } + }, 7191: (J, e, _) => { + var O = _(8162); + J.exports = O("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); + }, 3310: (J, e, _) => { + var O = _(7191), A = _(9509).Buffer; + J.exports = function(k) { + function b(a) { + var t = a.slice(0, -4), u = a.slice(-4), d = k(t); + if (!(u[0] ^ d[0] | u[1] ^ d[1] | u[2] ^ d[2] | u[3] ^ d[3])) + return t; + } + return { encode: function(a) { + var t = k(a); + return O.encode(A.concat([a, t], a.length + 4)); + }, decode: function(a) { + var t = b(O.decode(a)); + if (!t) + throw new Error("Invalid checksum"); + return t; + }, decodeUnsafe: function(a) { + var t = O.decodeUnsafe(a); + if (t) + return b(t); + } }; + }; + }, 8334: (J, e, _) => { + var O = _(3482), A = _(3310); + J.exports = A(function(k) { + var b = O("sha256").update(k).digest(); + return O("sha256").update(b).digest(); + }); + }, 8764: (J, e, _) => { + var O = _(5108); + const A = _(9742), k = _(645), b = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; + e.Buffer = u, e.SlowBuffer = function(y) { + return +y != y && (y = 0), u.alloc(+y); + }, e.INSPECT_MAX_BYTES = 50; + const a = 2147483647; + function t(y) { + if (y > a) + throw new RangeError('The value "' + y + '" is invalid for option "size"'); + const S = new Uint8Array(y); + return Object.setPrototypeOf(S, u.prototype), S; + } + function u(y, S, T) { + if (typeof y == "number") { + if (typeof S == "string") + throw new TypeError('The "string" argument must be of type string. Received type number'); + return r(y); + } + return d(y, S, T); + } + function d(y, S, T) { + if (typeof y == "string") + return function(q, te) { + if (typeof te == "string" && te !== "" || (te = "utf8"), !u.isEncoding(te)) + throw new TypeError("Unknown encoding: " + te); + const oe = 0 | f(q, te); + let V = t(oe); + const Q = V.write(q, te); + return Q !== oe && (V = V.slice(0, Q)), V; + }(y, S); + if (ArrayBuffer.isView(y)) + return function(q) { + if (de(q, Uint8Array)) { + const te = new Uint8Array(q); + return o(te.buffer, te.byteOffset, te.byteLength); + } + return n(q); + }(y); + if (y == null) + throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof y); + if (de(y, ArrayBuffer) || y && de(y.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (de(y, SharedArrayBuffer) || y && de(y.buffer, SharedArrayBuffer))) + return o(y, S, T); + if (typeof y == "number") + throw new TypeError('The "value" argument must not be of type number. Received type number'); + const B = y.valueOf && y.valueOf(); + if (B != null && B !== y) + return u.from(B, S, T); + const z = function(q) { + if (u.isBuffer(q)) { + const te = 0 | i(q.length), oe = t(te); + return oe.length === 0 || q.copy(oe, 0, 0, te), oe; + } + return q.length !== void 0 ? typeof q.length != "number" || pe(q.length) ? t(0) : n(q) : q.type === "Buffer" && Array.isArray(q.data) ? n(q.data) : void 0; + }(y); + if (z) + return z; + if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof y[Symbol.toPrimitive] == "function") + return u.from(y[Symbol.toPrimitive]("string"), S, T); + throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof y); + } + function s(y) { + if (typeof y != "number") + throw new TypeError('"size" argument must be of type number'); + if (y < 0) + throw new RangeError('The value "' + y + '" is invalid for option "size"'); + } + function r(y) { + return s(y), t(y < 0 ? 0 : 0 | i(y)); + } + function n(y) { + const S = y.length < 0 ? 0 : 0 | i(y.length), T = t(S); + for (let B = 0; B < S; B += 1) + T[B] = 255 & y[B]; + return T; + } + function o(y, S, T) { + if (S < 0 || y.byteLength < S) + throw new RangeError('"offset" is outside of buffer bounds'); + if (y.byteLength < S + (T || 0)) + throw new RangeError('"length" is outside of buffer bounds'); + let B; + return B = S === void 0 && T === void 0 ? new Uint8Array(y) : T === void 0 ? new Uint8Array(y, S) : new Uint8Array(y, S, T), Object.setPrototypeOf(B, u.prototype), B; + } + function i(y) { + if (y >= a) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes"); + return 0 | y; + } + function f(y, S) { + if (u.isBuffer(y)) + return y.length; + if (ArrayBuffer.isView(y) || de(y, ArrayBuffer)) + return y.byteLength; + if (typeof y != "string") + throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof y); + const T = y.length, B = arguments.length > 2 && arguments[2] === !0; + if (!B && T === 0) + return 0; + let z = !1; + for (; ; ) + switch (S) { + case "ascii": + case "latin1": + case "binary": + return T; + case "utf8": + case "utf-8": + return ue(y).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return 2 * T; + case "hex": + return T >>> 1; + case "base64": + return le(y).length; + default: + if (z) + return B ? -1 : ue(y).length; + S = ("" + S).toLowerCase(), z = !0; + } + } + function c(y, S, T) { + let B = !1; + if ((S === void 0 || S < 0) && (S = 0), S > this.length || ((T === void 0 || T > this.length) && (T = this.length), T <= 0) || (T >>>= 0) <= (S >>>= 0)) + return ""; + for (y || (y = "utf8"); ; ) + switch (y) { + case "hex": + return E(this, S, T); + case "utf8": + case "utf-8": + return x(this, S, T); + case "ascii": + return w(this, S, T); + case "latin1": + case "binary": + return g(this, S, T); + case "base64": + return I(this, S, T); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return U(this, S, T); + default: + if (B) + throw new TypeError("Unknown encoding: " + y); + y = (y + "").toLowerCase(), B = !0; + } + } + function h(y, S, T) { + const B = y[S]; + y[S] = y[T], y[T] = B; + } + function p(y, S, T, B, z) { + if (y.length === 0) + return -1; + if (typeof T == "string" ? (B = T, T = 0) : T > 2147483647 ? T = 2147483647 : T < -2147483648 && (T = -2147483648), pe(T = +T) && (T = z ? 0 : y.length - 1), T < 0 && (T = y.length + T), T >= y.length) { + if (z) + return -1; + T = y.length - 1; + } else if (T < 0) { + if (!z) + return -1; + T = 0; + } + if (typeof S == "string" && (S = u.from(S, B)), u.isBuffer(S)) + return S.length === 0 ? -1 : m(y, S, T, B, z); + if (typeof S == "number") + return S &= 255, typeof Uint8Array.prototype.indexOf == "function" ? z ? Uint8Array.prototype.indexOf.call(y, S, T) : Uint8Array.prototype.lastIndexOf.call(y, S, T) : m(y, [S], T, B, z); + throw new TypeError("val must be string, number or Buffer"); + } + function m(y, S, T, B, z) { + let q, te = 1, oe = y.length, V = S.length; + if (B !== void 0 && ((B = String(B).toLowerCase()) === "ucs2" || B === "ucs-2" || B === "utf16le" || B === "utf-16le")) { + if (y.length < 2 || S.length < 2) + return -1; + te = 2, oe /= 2, V /= 2, T /= 2; + } + function Q(G, H) { + return te === 1 ? G[H] : G.readUInt16BE(H * te); + } + if (z) { + let G = -1; + for (q = T; q < oe; q++) + if (Q(y, q) === Q(S, G === -1 ? 0 : q - G)) { + if (G === -1 && (G = q), q - G + 1 === V) + return G * te; + } else + G !== -1 && (q -= q - G), G = -1; + } else + for (T + V > oe && (T = oe - V), q = T; q >= 0; q--) { + let G = !0; + for (let H = 0; H < V; H++) + if (Q(y, q + H) !== Q(S, H)) { + G = !1; + break; + } + if (G) + return q; + } + return -1; + } + function M(y, S, T, B) { + T = Number(T) || 0; + const z = y.length - T; + B ? (B = Number(B)) > z && (B = z) : B = z; + const q = S.length; + let te; + for (B > q / 2 && (B = q / 2), te = 0; te < B; ++te) { + const oe = parseInt(S.substr(2 * te, 2), 16); + if (pe(oe)) + return te; + y[T + te] = oe; + } + return te; + } + function l(y, S, T, B) { + return be(ue(S, y.length - T), y, T, B); + } + function N(y, S, T, B) { + return be(function(z) { + const q = []; + for (let te = 0; te < z.length; ++te) + q.push(255 & z.charCodeAt(te)); + return q; + }(S), y, T, B); + } + function j(y, S, T, B) { + return be(le(S), y, T, B); + } + function R(y, S, T, B) { + return be(function(z, q) { + let te, oe, V; + const Q = []; + for (let G = 0; G < z.length && !((q -= 2) < 0); ++G) + te = z.charCodeAt(G), oe = te >> 8, V = te % 256, Q.push(V), Q.push(oe); + return Q; + }(S, y.length - T), y, T, B); + } + function I(y, S, T) { + return S === 0 && T === y.length ? A.fromByteArray(y) : A.fromByteArray(y.slice(S, T)); + } + function x(y, S, T) { + T = Math.min(y.length, T); + const B = []; + let z = S; + for (; z < T; ) { + const q = y[z]; + let te = null, oe = q > 239 ? 4 : q > 223 ? 3 : q > 191 ? 2 : 1; + if (z + oe <= T) { + let V, Q, G, H; + switch (oe) { + case 1: + q < 128 && (te = q); + break; + case 2: + V = y[z + 1], (192 & V) == 128 && (H = (31 & q) << 6 | 63 & V, H > 127 && (te = H)); + break; + case 3: + V = y[z + 1], Q = y[z + 2], (192 & V) == 128 && (192 & Q) == 128 && (H = (15 & q) << 12 | (63 & V) << 6 | 63 & Q, H > 2047 && (H < 55296 || H > 57343) && (te = H)); + break; + case 4: + V = y[z + 1], Q = y[z + 2], G = y[z + 3], (192 & V) == 128 && (192 & Q) == 128 && (192 & G) == 128 && (H = (15 & q) << 18 | (63 & V) << 12 | (63 & Q) << 6 | 63 & G, H > 65535 && H < 1114112 && (te = H)); + } + } + te === null ? (te = 65533, oe = 1) : te > 65535 && (te -= 65536, B.push(te >>> 10 & 1023 | 55296), te = 56320 | 1023 & te), B.push(te), z += oe; + } + return function(q) { + const te = q.length; + if (te <= P) + return String.fromCharCode.apply(String, q); + let oe = "", V = 0; + for (; V < te; ) + oe += String.fromCharCode.apply(String, q.slice(V, V += P)); + return oe; + }(B); + } + e.kMaxLength = a, u.TYPED_ARRAY_SUPPORT = function() { + try { + const y = new Uint8Array(1), S = { foo: function() { + return 42; + } }; + return Object.setPrototypeOf(S, Uint8Array.prototype), Object.setPrototypeOf(y, S), y.foo() === 42; + } catch { + return !1; + } + }(), u.TYPED_ARRAY_SUPPORT || O === void 0 || typeof O.error != "function" || O.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(u.prototype, "parent", { enumerable: !0, get: function() { + if (u.isBuffer(this)) + return this.buffer; + } }), Object.defineProperty(u.prototype, "offset", { enumerable: !0, get: function() { + if (u.isBuffer(this)) + return this.byteOffset; + } }), u.poolSize = 8192, u.from = function(y, S, T) { + return d(y, S, T); + }, Object.setPrototypeOf(u.prototype, Uint8Array.prototype), Object.setPrototypeOf(u, Uint8Array), u.alloc = function(y, S, T) { + return function(B, z, q) { + return s(B), B <= 0 ? t(B) : z !== void 0 ? typeof q == "string" ? t(B).fill(z, q) : t(B).fill(z) : t(B); + }(y, S, T); + }, u.allocUnsafe = function(y) { + return r(y); + }, u.allocUnsafeSlow = function(y) { + return r(y); + }, u.isBuffer = function(y) { + return y != null && y._isBuffer === !0 && y !== u.prototype; + }, u.compare = function(y, S) { + if (de(y, Uint8Array) && (y = u.from(y, y.offset, y.byteLength)), de(S, Uint8Array) && (S = u.from(S, S.offset, S.byteLength)), !u.isBuffer(y) || !u.isBuffer(S)) + throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + if (y === S) + return 0; + let T = y.length, B = S.length; + for (let z = 0, q = Math.min(T, B); z < q; ++z) + if (y[z] !== S[z]) { + T = y[z], B = S[z]; + break; + } + return T < B ? -1 : B < T ? 1 : 0; + }, u.isEncoding = function(y) { + switch (String(y).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return !0; + default: + return !1; + } + }, u.concat = function(y, S) { + if (!Array.isArray(y)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (y.length === 0) + return u.alloc(0); + let T; + if (S === void 0) + for (S = 0, T = 0; T < y.length; ++T) + S += y[T].length; + const B = u.allocUnsafe(S); + let z = 0; + for (T = 0; T < y.length; ++T) { + let q = y[T]; + if (de(q, Uint8Array)) + z + q.length > B.length ? (u.isBuffer(q) || (q = u.from(q)), q.copy(B, z)) : Uint8Array.prototype.set.call(B, q, z); + else { + if (!u.isBuffer(q)) + throw new TypeError('"list" argument must be an Array of Buffers'); + q.copy(B, z); + } + z += q.length; + } + return B; + }, u.byteLength = f, u.prototype._isBuffer = !0, u.prototype.swap16 = function() { + const y = this.length; + if (y % 2 != 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (let S = 0; S < y; S += 2) + h(this, S, S + 1); + return this; + }, u.prototype.swap32 = function() { + const y = this.length; + if (y % 4 != 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (let S = 0; S < y; S += 4) + h(this, S, S + 3), h(this, S + 1, S + 2); + return this; + }, u.prototype.swap64 = function() { + const y = this.length; + if (y % 8 != 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (let S = 0; S < y; S += 8) + h(this, S, S + 7), h(this, S + 1, S + 6), h(this, S + 2, S + 5), h(this, S + 3, S + 4); + return this; + }, u.prototype.toString = function() { + const y = this.length; + return y === 0 ? "" : arguments.length === 0 ? x(this, 0, y) : c.apply(this, arguments); + }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(y) { + if (!u.isBuffer(y)) + throw new TypeError("Argument must be a Buffer"); + return this === y || u.compare(this, y) === 0; + }, u.prototype.inspect = function() { + let y = ""; + const S = e.INSPECT_MAX_BYTES; + return y = this.toString("hex", 0, S).replace(/(.{2})/g, "$1 ").trim(), this.length > S && (y += " ... "), ""; + }, b && (u.prototype[b] = u.prototype.inspect), u.prototype.compare = function(y, S, T, B, z) { + if (de(y, Uint8Array) && (y = u.from(y, y.offset, y.byteLength)), !u.isBuffer(y)) + throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof y); + if (S === void 0 && (S = 0), T === void 0 && (T = y ? y.length : 0), B === void 0 && (B = 0), z === void 0 && (z = this.length), S < 0 || T > y.length || B < 0 || z > this.length) + throw new RangeError("out of range index"); + if (B >= z && S >= T) + return 0; + if (B >= z) + return -1; + if (S >= T) + return 1; + if (this === y) + return 0; + let q = (z >>>= 0) - (B >>>= 0), te = (T >>>= 0) - (S >>>= 0); + const oe = Math.min(q, te), V = this.slice(B, z), Q = y.slice(S, T); + for (let G = 0; G < oe; ++G) + if (V[G] !== Q[G]) { + q = V[G], te = Q[G]; + break; + } + return q < te ? -1 : te < q ? 1 : 0; + }, u.prototype.includes = function(y, S, T) { + return this.indexOf(y, S, T) !== -1; + }, u.prototype.indexOf = function(y, S, T) { + return p(this, y, S, T, !0); + }, u.prototype.lastIndexOf = function(y, S, T) { + return p(this, y, S, T, !1); + }, u.prototype.write = function(y, S, T, B) { + if (S === void 0) + B = "utf8", T = this.length, S = 0; + else if (T === void 0 && typeof S == "string") + B = S, T = this.length, S = 0; + else { + if (!isFinite(S)) + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + S >>>= 0, isFinite(T) ? (T >>>= 0, B === void 0 && (B = "utf8")) : (B = T, T = void 0); + } + const z = this.length - S; + if ((T === void 0 || T > z) && (T = z), y.length > 0 && (T < 0 || S < 0) || S > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + B || (B = "utf8"); + let q = !1; + for (; ; ) + switch (B) { + case "hex": + return M(this, y, S, T); + case "utf8": + case "utf-8": + return l(this, y, S, T); + case "ascii": + case "latin1": + case "binary": + return N(this, y, S, T); + case "base64": + return j(this, y, S, T); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return R(this, y, S, T); + default: + if (q) + throw new TypeError("Unknown encoding: " + B); + B = ("" + B).toLowerCase(), q = !0; + } + }, u.prototype.toJSON = function() { + return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; + }; + const P = 4096; + function w(y, S, T) { + let B = ""; + T = Math.min(y.length, T); + for (let z = S; z < T; ++z) + B += String.fromCharCode(127 & y[z]); + return B; + } + function g(y, S, T) { + let B = ""; + T = Math.min(y.length, T); + for (let z = S; z < T; ++z) + B += String.fromCharCode(y[z]); + return B; + } + function E(y, S, T) { + const B = y.length; + (!S || S < 0) && (S = 0), (!T || T < 0 || T > B) && (T = B); + let z = ""; + for (let q = S; q < T; ++q) + z += _e[y[q]]; + return z; + } + function U(y, S, T) { + const B = y.slice(S, T); + let z = ""; + for (let q = 0; q < B.length - 1; q += 2) + z += String.fromCharCode(B[q] + 256 * B[q + 1]); + return z; + } + function C(y, S, T) { + if (y % 1 != 0 || y < 0) + throw new RangeError("offset is not uint"); + if (y + S > T) + throw new RangeError("Trying to access beyond buffer length"); + } + function F(y, S, T, B, z, q) { + if (!u.isBuffer(y)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (S > z || S < q) + throw new RangeError('"value" argument is out of bounds'); + if (T + B > y.length) + throw new RangeError("Index out of range"); + } + function re(y, S, T, B, z) { + Y(S, B, z, y, T, 7); + let q = Number(S & BigInt(4294967295)); + y[T++] = q, q >>= 8, y[T++] = q, q >>= 8, y[T++] = q, q >>= 8, y[T++] = q; + let te = Number(S >> BigInt(32) & BigInt(4294967295)); + return y[T++] = te, te >>= 8, y[T++] = te, te >>= 8, y[T++] = te, te >>= 8, y[T++] = te, T; + } + function ee(y, S, T, B, z) { + Y(S, B, z, y, T, 7); + let q = Number(S & BigInt(4294967295)); + y[T + 7] = q, q >>= 8, y[T + 6] = q, q >>= 8, y[T + 5] = q, q >>= 8, y[T + 4] = q; + let te = Number(S >> BigInt(32) & BigInt(4294967295)); + return y[T + 3] = te, te >>= 8, y[T + 2] = te, te >>= 8, y[T + 1] = te, te >>= 8, y[T] = te, T + 8; + } + function ne(y, S, T, B, z, q) { + if (T + B > y.length) + throw new RangeError("Index out of range"); + if (T < 0) + throw new RangeError("Index out of range"); + } + function D(y, S, T, B, z) { + return S = +S, T >>>= 0, z || ne(y, 0, T, 4), k.write(y, S, T, B, 23, 4), T + 4; + } + function Z(y, S, T, B, z) { + return S = +S, T >>>= 0, z || ne(y, 0, T, 8), k.write(y, S, T, B, 52, 8), T + 8; + } + u.prototype.slice = function(y, S) { + const T = this.length; + (y = ~~y) < 0 ? (y += T) < 0 && (y = 0) : y > T && (y = T), (S = S === void 0 ? T : ~~S) < 0 ? (S += T) < 0 && (S = 0) : S > T && (S = T), S < y && (S = y); + const B = this.subarray(y, S); + return Object.setPrototypeOf(B, u.prototype), B; + }, u.prototype.readUintLE = u.prototype.readUIntLE = function(y, S, T) { + y >>>= 0, S >>>= 0, T || C(y, S, this.length); + let B = this[y], z = 1, q = 0; + for (; ++q < S && (z *= 256); ) + B += this[y + q] * z; + return B; + }, u.prototype.readUintBE = u.prototype.readUIntBE = function(y, S, T) { + y >>>= 0, S >>>= 0, T || C(y, S, this.length); + let B = this[y + --S], z = 1; + for (; S > 0 && (z *= 256); ) + B += this[y + --S] * z; + return B; + }, u.prototype.readUint8 = u.prototype.readUInt8 = function(y, S) { + return y >>>= 0, S || C(y, 1, this.length), this[y]; + }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(y, S) { + return y >>>= 0, S || C(y, 2, this.length), this[y] | this[y + 1] << 8; + }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(y, S) { + return y >>>= 0, S || C(y, 2, this.length), this[y] << 8 | this[y + 1]; + }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), (this[y] | this[y + 1] << 8 | this[y + 2] << 16) + 16777216 * this[y + 3]; + }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), 16777216 * this[y] + (this[y + 1] << 16 | this[y + 2] << 8 | this[y + 3]); + }, u.prototype.readBigUInt64LE = W(function(y) { + L(y >>>= 0, "offset"); + const S = this[y], T = this[y + 7]; + S !== void 0 && T !== void 0 || ae(y, this.length - 8); + const B = S + 256 * this[++y] + 65536 * this[++y] + this[++y] * 2 ** 24, z = this[++y] + 256 * this[++y] + 65536 * this[++y] + T * 2 ** 24; + return BigInt(B) + (BigInt(z) << BigInt(32)); + }), u.prototype.readBigUInt64BE = W(function(y) { + L(y >>>= 0, "offset"); + const S = this[y], T = this[y + 7]; + S !== void 0 && T !== void 0 || ae(y, this.length - 8); + const B = S * 2 ** 24 + 65536 * this[++y] + 256 * this[++y] + this[++y], z = this[++y] * 2 ** 24 + 65536 * this[++y] + 256 * this[++y] + T; + return (BigInt(B) << BigInt(32)) + BigInt(z); + }), u.prototype.readIntLE = function(y, S, T) { + y >>>= 0, S >>>= 0, T || C(y, S, this.length); + let B = this[y], z = 1, q = 0; + for (; ++q < S && (z *= 256); ) + B += this[y + q] * z; + return z *= 128, B >= z && (B -= Math.pow(2, 8 * S)), B; + }, u.prototype.readIntBE = function(y, S, T) { + y >>>= 0, S >>>= 0, T || C(y, S, this.length); + let B = S, z = 1, q = this[y + --B]; + for (; B > 0 && (z *= 256); ) + q += this[y + --B] * z; + return z *= 128, q >= z && (q -= Math.pow(2, 8 * S)), q; + }, u.prototype.readInt8 = function(y, S) { + return y >>>= 0, S || C(y, 1, this.length), 128 & this[y] ? -1 * (255 - this[y] + 1) : this[y]; + }, u.prototype.readInt16LE = function(y, S) { + y >>>= 0, S || C(y, 2, this.length); + const T = this[y] | this[y + 1] << 8; + return 32768 & T ? 4294901760 | T : T; + }, u.prototype.readInt16BE = function(y, S) { + y >>>= 0, S || C(y, 2, this.length); + const T = this[y + 1] | this[y] << 8; + return 32768 & T ? 4294901760 | T : T; + }, u.prototype.readInt32LE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), this[y] | this[y + 1] << 8 | this[y + 2] << 16 | this[y + 3] << 24; + }, u.prototype.readInt32BE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), this[y] << 24 | this[y + 1] << 16 | this[y + 2] << 8 | this[y + 3]; + }, u.prototype.readBigInt64LE = W(function(y) { + L(y >>>= 0, "offset"); + const S = this[y], T = this[y + 7]; + S !== void 0 && T !== void 0 || ae(y, this.length - 8); + const B = this[y + 4] + 256 * this[y + 5] + 65536 * this[y + 6] + (T << 24); + return (BigInt(B) << BigInt(32)) + BigInt(S + 256 * this[++y] + 65536 * this[++y] + this[++y] * 16777216); + }), u.prototype.readBigInt64BE = W(function(y) { + L(y >>>= 0, "offset"); + const S = this[y], T = this[y + 7]; + S !== void 0 && T !== void 0 || ae(y, this.length - 8); + const B = (S << 24) + 65536 * this[++y] + 256 * this[++y] + this[++y]; + return (BigInt(B) << BigInt(32)) + BigInt(this[++y] * 16777216 + 65536 * this[++y] + 256 * this[++y] + T); + }), u.prototype.readFloatLE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), k.read(this, y, !0, 23, 4); + }, u.prototype.readFloatBE = function(y, S) { + return y >>>= 0, S || C(y, 4, this.length), k.read(this, y, !1, 23, 4); + }, u.prototype.readDoubleLE = function(y, S) { + return y >>>= 0, S || C(y, 8, this.length), k.read(this, y, !0, 52, 8); + }, u.prototype.readDoubleBE = function(y, S) { + return y >>>= 0, S || C(y, 8, this.length), k.read(this, y, !1, 52, 8); + }, u.prototype.writeUintLE = u.prototype.writeUIntLE = function(y, S, T, B) { + y = +y, S >>>= 0, T >>>= 0, B || F(this, y, S, T, Math.pow(2, 8 * T) - 1, 0); + let z = 1, q = 0; + for (this[S] = 255 & y; ++q < T && (z *= 256); ) + this[S + q] = y / z & 255; + return S + T; + }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(y, S, T, B) { + y = +y, S >>>= 0, T >>>= 0, B || F(this, y, S, T, Math.pow(2, 8 * T) - 1, 0); + let z = T - 1, q = 1; + for (this[S + z] = 255 & y; --z >= 0 && (q *= 256); ) + this[S + z] = y / q & 255; + return S + T; + }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 1, 255, 0), this[S] = 255 & y, S + 1; + }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 2, 65535, 0), this[S] = 255 & y, this[S + 1] = y >>> 8, S + 2; + }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 2, 65535, 0), this[S] = y >>> 8, this[S + 1] = 255 & y, S + 2; + }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 4, 4294967295, 0), this[S + 3] = y >>> 24, this[S + 2] = y >>> 16, this[S + 1] = y >>> 8, this[S] = 255 & y, S + 4; + }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 4, 4294967295, 0), this[S] = y >>> 24, this[S + 1] = y >>> 16, this[S + 2] = y >>> 8, this[S + 3] = 255 & y, S + 4; + }, u.prototype.writeBigUInt64LE = W(function(y, S = 0) { + return re(this, y, S, BigInt(0), BigInt("0xffffffffffffffff")); + }), u.prototype.writeBigUInt64BE = W(function(y, S = 0) { + return ee(this, y, S, BigInt(0), BigInt("0xffffffffffffffff")); + }), u.prototype.writeIntLE = function(y, S, T, B) { + if (y = +y, S >>>= 0, !B) { + const oe = Math.pow(2, 8 * T - 1); + F(this, y, S, T, oe - 1, -oe); + } + let z = 0, q = 1, te = 0; + for (this[S] = 255 & y; ++z < T && (q *= 256); ) + y < 0 && te === 0 && this[S + z - 1] !== 0 && (te = 1), this[S + z] = (y / q >> 0) - te & 255; + return S + T; + }, u.prototype.writeIntBE = function(y, S, T, B) { + if (y = +y, S >>>= 0, !B) { + const oe = Math.pow(2, 8 * T - 1); + F(this, y, S, T, oe - 1, -oe); + } + let z = T - 1, q = 1, te = 0; + for (this[S + z] = 255 & y; --z >= 0 && (q *= 256); ) + y < 0 && te === 0 && this[S + z + 1] !== 0 && (te = 1), this[S + z] = (y / q >> 0) - te & 255; + return S + T; + }, u.prototype.writeInt8 = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 1, 127, -128), y < 0 && (y = 255 + y + 1), this[S] = 255 & y, S + 1; + }, u.prototype.writeInt16LE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 2, 32767, -32768), this[S] = 255 & y, this[S + 1] = y >>> 8, S + 2; + }, u.prototype.writeInt16BE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 2, 32767, -32768), this[S] = y >>> 8, this[S + 1] = 255 & y, S + 2; + }, u.prototype.writeInt32LE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 4, 2147483647, -2147483648), this[S] = 255 & y, this[S + 1] = y >>> 8, this[S + 2] = y >>> 16, this[S + 3] = y >>> 24, S + 4; + }, u.prototype.writeInt32BE = function(y, S, T) { + return y = +y, S >>>= 0, T || F(this, y, S, 4, 2147483647, -2147483648), y < 0 && (y = 4294967295 + y + 1), this[S] = y >>> 24, this[S + 1] = y >>> 16, this[S + 2] = y >>> 8, this[S + 3] = 255 & y, S + 4; + }, u.prototype.writeBigInt64LE = W(function(y, S = 0) { + return re(this, y, S, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + }), u.prototype.writeBigInt64BE = W(function(y, S = 0) { + return ee(this, y, S, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + }), u.prototype.writeFloatLE = function(y, S, T) { + return D(this, y, S, !0, T); + }, u.prototype.writeFloatBE = function(y, S, T) { + return D(this, y, S, !1, T); + }, u.prototype.writeDoubleLE = function(y, S, T) { + return Z(this, y, S, !0, T); + }, u.prototype.writeDoubleBE = function(y, S, T) { + return Z(this, y, S, !1, T); + }, u.prototype.copy = function(y, S, T, B) { + if (!u.isBuffer(y)) + throw new TypeError("argument should be a Buffer"); + if (T || (T = 0), B || B === 0 || (B = this.length), S >= y.length && (S = y.length), S || (S = 0), B > 0 && B < T && (B = T), B === T || y.length === 0 || this.length === 0) + return 0; + if (S < 0) + throw new RangeError("targetStart out of bounds"); + if (T < 0 || T >= this.length) + throw new RangeError("Index out of range"); + if (B < 0) + throw new RangeError("sourceEnd out of bounds"); + B > this.length && (B = this.length), y.length - S < B - T && (B = y.length - S + T); + const z = B - T; + return this === y && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(S, T, B) : Uint8Array.prototype.set.call(y, this.subarray(T, B), S), z; + }, u.prototype.fill = function(y, S, T, B) { + if (typeof y == "string") { + if (typeof S == "string" ? (B = S, S = 0, T = this.length) : typeof T == "string" && (B = T, T = this.length), B !== void 0 && typeof B != "string") + throw new TypeError("encoding must be a string"); + if (typeof B == "string" && !u.isEncoding(B)) + throw new TypeError("Unknown encoding: " + B); + if (y.length === 1) { + const q = y.charCodeAt(0); + (B === "utf8" && q < 128 || B === "latin1") && (y = q); + } + } else + typeof y == "number" ? y &= 255 : typeof y == "boolean" && (y = Number(y)); + if (S < 0 || this.length < S || this.length < T) + throw new RangeError("Out of range index"); + if (T <= S) + return this; + let z; + if (S >>>= 0, T = T === void 0 ? this.length : T >>> 0, y || (y = 0), typeof y == "number") + for (z = S; z < T; ++z) + this[z] = y; + else { + const q = u.isBuffer(y) ? y : u.from(y, B), te = q.length; + if (te === 0) + throw new TypeError('The value "' + y + '" is invalid for argument "value"'); + for (z = 0; z < T - S; ++z) + this[z + S] = q[z % te]; + } + return this; + }; + const $ = {}; + function X(y, S, T) { + $[y] = class extends T { + constructor() { + super(), Object.defineProperty(this, "message", { value: S.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${y}]`, this.stack, delete this.name; + } + get code() { + return y; + } + set code(B) { + Object.defineProperty(this, "code", { configurable: !0, enumerable: !0, value: B, writable: !0 }); + } + toString() { + return `${this.name} [${y}]: ${this.message}`; + } + }; + } + function K(y) { + let S = "", T = y.length; + const B = y[0] === "-" ? 1 : 0; + for (; T >= B + 4; T -= 3) + S = `_${y.slice(T - 3, T)}${S}`; + return `${y.slice(0, T)}${S}`; + } + function Y(y, S, T, B, z, q) { + if (y > T || y < S) { + const te = typeof S == "bigint" ? "n" : ""; + let oe; + throw oe = q > 3 ? S === 0 || S === BigInt(0) ? `>= 0${te} and < 2${te} ** ${8 * (q + 1)}${te}` : `>= -(2${te} ** ${8 * (q + 1) - 1}${te}) and < 2 ** ${8 * (q + 1) - 1}${te}` : `>= ${S}${te} and <= ${T}${te}`, new $.ERR_OUT_OF_RANGE("value", oe, y); + } + (function(te, oe, V) { + L(oe, "offset"), te[oe] !== void 0 && te[oe + V] !== void 0 || ae(oe, te.length - (V + 1)); + })(B, z, q); + } + function L(y, S) { + if (typeof y != "number") + throw new $.ERR_INVALID_ARG_TYPE(S, "number", y); + } + function ae(y, S, T) { + throw Math.floor(y) !== y ? (L(y, T), new $.ERR_OUT_OF_RANGE(T || "offset", "an integer", y)) : S < 0 ? new $.ERR_BUFFER_OUT_OF_BOUNDS() : new $.ERR_OUT_OF_RANGE(T || "offset", `>= ${T ? 1 : 0} and <= ${S}`, y); + } + X("ERR_BUFFER_OUT_OF_BOUNDS", function(y) { + return y ? `${y} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; + }, RangeError), X("ERR_INVALID_ARG_TYPE", function(y, S) { + return `The "${y}" argument must be of type number. Received type ${typeof S}`; + }, TypeError), X("ERR_OUT_OF_RANGE", function(y, S, T) { + let B = `The value of "${y}" is out of range.`, z = T; + return Number.isInteger(T) && Math.abs(T) > 4294967296 ? z = K(String(T)) : typeof T == "bigint" && (z = String(T), (T > BigInt(2) ** BigInt(32) || T < -(BigInt(2) ** BigInt(32))) && (z = K(z)), z += "n"), B += ` It must be ${S}. Received ${z}`, B; + }, RangeError); + const ce = /[^+/0-9A-Za-z-_]/g; + function ue(y, S) { + let T; + S = S || 1 / 0; + const B = y.length; + let z = null; + const q = []; + for (let te = 0; te < B; ++te) { + if (T = y.charCodeAt(te), T > 55295 && T < 57344) { + if (!z) { + if (T > 56319) { + (S -= 3) > -1 && q.push(239, 191, 189); + continue; + } + if (te + 1 === B) { + (S -= 3) > -1 && q.push(239, 191, 189); + continue; + } + z = T; + continue; + } + if (T < 56320) { + (S -= 3) > -1 && q.push(239, 191, 189), z = T; + continue; + } + T = 65536 + (z - 55296 << 10 | T - 56320); + } else + z && (S -= 3) > -1 && q.push(239, 191, 189); + if (z = null, T < 128) { + if ((S -= 1) < 0) + break; + q.push(T); + } else if (T < 2048) { + if ((S -= 2) < 0) + break; + q.push(T >> 6 | 192, 63 & T | 128); + } else if (T < 65536) { + if ((S -= 3) < 0) + break; + q.push(T >> 12 | 224, T >> 6 & 63 | 128, 63 & T | 128); + } else { + if (!(T < 1114112)) + throw new Error("Invalid code point"); + if ((S -= 4) < 0) + break; + q.push(T >> 18 | 240, T >> 12 & 63 | 128, T >> 6 & 63 | 128, 63 & T | 128); + } + } + return q; + } + function le(y) { + return A.toByteArray(function(S) { + if ((S = (S = S.split("=")[0]).trim().replace(ce, "")).length < 2) + return ""; + for (; S.length % 4 != 0; ) + S += "="; + return S; + }(y)); + } + function be(y, S, T, B) { + let z; + for (z = 0; z < B && !(z + T >= S.length || z >= y.length); ++z) + S[z + T] = y[z]; + return z; + } + function de(y, S) { + return y instanceof S || y != null && y.constructor != null && y.constructor.name != null && y.constructor.name === S.name; + } + function pe(y) { + return y != y; + } + const _e = function() { + const y = "0123456789abcdef", S = new Array(256); + for (let T = 0; T < 16; ++T) { + const B = 16 * T; + for (let z = 0; z < 16; ++z) + S[B + z] = y[T] + y[z]; + } + return S; + }(); + function W(y) { + return typeof BigInt > "u" ? v : y; + } + function v() { + throw new Error("BigInt not supported"); + } + }, 1924: (J, e, _) => { + var O = _(210), A = _(5559), k = A(O("String.prototype.indexOf")); + J.exports = function(b, a) { + var t = O(b, !!a); + return typeof t == "function" && k(b, ".prototype.") > -1 ? A(t) : t; + }; + }, 5559: (J, e, _) => { + var O = _(8612), A = _(210), k = A("%Function.prototype.apply%"), b = A("%Function.prototype.call%"), a = A("%Reflect.apply%", !0) || O.call(b, k), t = A("%Object.getOwnPropertyDescriptor%", !0), u = A("%Object.defineProperty%", !0), d = A("%Math.max%"); + if (u) + try { + u({}, "a", { value: 1 }); + } catch { + u = null; + } + J.exports = function(r) { + var n = a(O, b, arguments); + return t && u && t(n, "length").configurable && u(n, "length", { value: 1 + d(0, r.length - (arguments.length - 1)) }), n; + }; + var s = function() { + return a(O, k, arguments); + }; + u ? u(J.exports, "apply", { value: s }) : J.exports.apply = s; + }, 1027: (J, e, _) => { + var O = _(9509).Buffer, A = _(2830).Transform, k = _(2553).s; + function b(a) { + A.call(this), this.hashMode = typeof a == "string", this.hashMode ? this[a] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null; + } + _(5717)(b, A), b.prototype.update = function(a, t, u) { + typeof a == "string" && (a = O.from(a, t)); + var d = this._update(a); + return this.hashMode ? this : (u && (d = this._toString(d, u)), d); + }, b.prototype.setAutoPadding = function() { + }, b.prototype.getAuthTag = function() { + throw new Error("trying to get auth tag in unsupported state"); + }, b.prototype.setAuthTag = function() { + throw new Error("trying to set auth tag in unsupported state"); + }, b.prototype.setAAD = function() { + throw new Error("trying to set aad in unsupported state"); + }, b.prototype._transform = function(a, t, u) { + var d; + try { + this.hashMode ? this._update(a) : this.push(this._update(a)); + } catch (s) { + d = s; + } finally { + u(d); + } + }, b.prototype._flush = function(a) { + var t; + try { + this.push(this.__final()); + } catch (u) { + t = u; + } + a(t); + }, b.prototype._finalOrDigest = function(a) { + var t = this.__final() || O.alloc(0); + return a && (t = this._toString(t, a, !0)), t; + }, b.prototype._toString = function(a, t, u) { + if (this._decoder || (this._decoder = new k(t), this._encoding = t), this._encoding !== t) + throw new Error("can't switch encodings"); + var d = this._decoder.write(a); + return u && (d += this._decoder.end()), d; + }, J.exports = b; + }, 5108: (J, e, _) => { + var O = _(9539), A = _(9282); + function k() { + return (/* @__PURE__ */ new Date()).getTime(); + } + var b, a = Array.prototype.slice, t = {}; + b = _.g !== void 0 && _.g.console ? _.g.console : typeof window < "u" && window.console ? window.console : {}; + for (var u = [[function() { + }, "log"], [function() { + b.log.apply(b, arguments); + }, "info"], [function() { + b.log.apply(b, arguments); + }, "warn"], [function() { + b.warn.apply(b, arguments); + }, "error"], [function(o) { + t[o] = k(); + }, "time"], [function(o) { + var i = t[o]; + if (!i) + throw new Error("No such label: " + o); + delete t[o]; + var f = k() - i; + b.log(o + ": " + f + "ms"); + }, "timeEnd"], [function() { + var o = new Error(); + o.name = "Trace", o.message = O.format.apply(null, arguments), b.error(o.stack); + }, "trace"], [function(o) { + b.log(O.inspect(o) + ` +`); + }, "dir"], [function(o) { + if (!o) { + var i = a.call(arguments, 1); + A.ok(!1, O.format.apply(null, i)); + } + }, "assert"]], d = 0; d < u.length; d++) { + var s = u[d], r = s[0], n = s[1]; + b[n] || (b[n] = r); + } + J.exports = b; + }, 3482: (J, e, _) => { + var O = _(5717), A = _(2318), k = _(9785), b = _(9072), a = _(1027); + function t(u) { + a.call(this, "digest"), this._hash = u; + } + O(t, a), t.prototype._update = function(u) { + this._hash.update(u); + }, t.prototype._final = function() { + return this._hash.digest(); + }, J.exports = function(u) { + return (u = u.toLowerCase()) === "md5" ? new A() : u === "rmd160" || u === "ripemd160" ? new k() : new t(b(u)); + }; + }, 8028: (J, e, _) => { + var O = _(2318); + J.exports = function(A) { + return new O().update(A).digest(); + }; + }, 8355: (J, e, _) => { + var O = _(5717), A = _(1031), k = _(1027), b = _(9509).Buffer, a = _(8028), t = _(9785), u = _(9072), d = b.alloc(128); + function s(r, n) { + k.call(this, "digest"), typeof n == "string" && (n = b.from(n)); + var o = r === "sha512" || r === "sha384" ? 128 : 64; + this._alg = r, this._key = n, n.length > o ? n = (r === "rmd160" ? new t() : u(r)).update(n).digest() : n.length < o && (n = b.concat([n, d], o)); + for (var i = this._ipad = b.allocUnsafe(o), f = this._opad = b.allocUnsafe(o), c = 0; c < o; c++) + i[c] = 54 ^ n[c], f[c] = 92 ^ n[c]; + this._hash = r === "rmd160" ? new t() : u(r), this._hash.update(i); + } + O(s, k), s.prototype._update = function(r) { + this._hash.update(r); + }, s.prototype._final = function() { + var r = this._hash.digest(); + return (this._alg === "rmd160" ? new t() : u(this._alg)).update(this._opad).update(r).digest(); + }, J.exports = function(r, n) { + return (r = r.toLowerCase()) === "rmd160" || r === "ripemd160" ? new s("rmd160", n) : r === "md5" ? new A(a, n) : new s(r, n); + }; + }, 1031: (J, e, _) => { + var O = _(5717), A = _(9509).Buffer, k = _(1027), b = A.alloc(128), a = 64; + function t(u, d) { + k.call(this, "digest"), typeof d == "string" && (d = A.from(d)), this._alg = u, this._key = d, d.length > a ? d = u(d) : d.length < a && (d = A.concat([d, b], a)); + for (var s = this._ipad = A.allocUnsafe(a), r = this._opad = A.allocUnsafe(a), n = 0; n < a; n++) + s[n] = 54 ^ d[n], r[n] = 92 ^ d[n]; + this._hash = [s]; + } + O(t, k), t.prototype._update = function(u) { + this._hash.push(u); + }, t.prototype._final = function() { + var u = this._alg(A.concat(this._hash)); + return this._alg(A.concat([this._opad, u])); + }, J.exports = t; + }, 4098: function(J, e) { + var _ = typeof self < "u" ? self : this, O = function() { + function k() { + this.fetch = !1, this.DOMException = _.DOMException; + } + return k.prototype = _, new k(); + }(); + (function(k) { + (function(b) { + var a = { searchParams: "URLSearchParams" in k, iterable: "Symbol" in k && "iterator" in Symbol, blob: "FileReader" in k && "Blob" in k && function() { + try { + return new Blob(), !0; + } catch { + return !1; + } + }(), formData: "FormData" in k, arrayBuffer: "ArrayBuffer" in k }; + if (a.arrayBuffer) + var t = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], u = ArrayBuffer.isView || function(R) { + return R && t.indexOf(Object.prototype.toString.call(R)) > -1; + }; + function d(R) { + if (typeof R != "string" && (R = String(R)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(R)) + throw new TypeError("Invalid character in header field name"); + return R.toLowerCase(); + } + function s(R) { + return typeof R != "string" && (R = String(R)), R; + } + function r(R) { + var I = { next: function() { + var x = R.shift(); + return { done: x === void 0, value: x }; + } }; + return a.iterable && (I[Symbol.iterator] = function() { + return I; + }), I; + } + function n(R) { + this.map = {}, R instanceof n ? R.forEach(function(I, x) { + this.append(x, I); + }, this) : Array.isArray(R) ? R.forEach(function(I) { + this.append(I[0], I[1]); + }, this) : R && Object.getOwnPropertyNames(R).forEach(function(I) { + this.append(I, R[I]); + }, this); + } + function o(R) { + if (R.bodyUsed) + return Promise.reject(new TypeError("Already read")); + R.bodyUsed = !0; + } + function i(R) { + return new Promise(function(I, x) { + R.onload = function() { + I(R.result); + }, R.onerror = function() { + x(R.error); + }; + }); + } + function f(R) { + var I = new FileReader(), x = i(I); + return I.readAsArrayBuffer(R), x; + } + function c(R) { + if (R.slice) + return R.slice(0); + var I = new Uint8Array(R.byteLength); + return I.set(new Uint8Array(R)), I.buffer; + } + function h() { + return this.bodyUsed = !1, this._initBody = function(R) { + var I; + this._bodyInit = R, R ? typeof R == "string" ? this._bodyText = R : a.blob && Blob.prototype.isPrototypeOf(R) ? this._bodyBlob = R : a.formData && FormData.prototype.isPrototypeOf(R) ? this._bodyFormData = R : a.searchParams && URLSearchParams.prototype.isPrototypeOf(R) ? this._bodyText = R.toString() : a.arrayBuffer && a.blob && (I = R) && DataView.prototype.isPrototypeOf(I) ? (this._bodyArrayBuffer = c(R.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(R) || u(R)) ? this._bodyArrayBuffer = c(R) : this._bodyText = R = Object.prototype.toString.call(R) : this._bodyText = "", this.headers.get("content-type") || (typeof R == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(R) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); + }, a.blob && (this.blob = function() { + var R = o(this); + if (R) + return R; + if (this._bodyBlob) + return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + if (this._bodyFormData) + throw new Error("could not read FormData body as blob"); + return Promise.resolve(new Blob([this._bodyText])); + }, this.arrayBuffer = function() { + return this._bodyArrayBuffer ? o(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(f); + }), this.text = function() { + var R, I, x, P = o(this); + if (P) + return P; + if (this._bodyBlob) + return R = this._bodyBlob, x = i(I = new FileReader()), I.readAsText(R), x; + if (this._bodyArrayBuffer) + return Promise.resolve(function(w) { + for (var g = new Uint8Array(w), E = new Array(g.length), U = 0; U < g.length; U++) + E[U] = String.fromCharCode(g[U]); + return E.join(""); + }(this._bodyArrayBuffer)); + if (this._bodyFormData) + throw new Error("could not read FormData body as text"); + return Promise.resolve(this._bodyText); + }, a.formData && (this.formData = function() { + return this.text().then(M); + }), this.json = function() { + return this.text().then(JSON.parse); + }, this; + } + n.prototype.append = function(R, I) { + R = d(R), I = s(I); + var x = this.map[R]; + this.map[R] = x ? x + ", " + I : I; + }, n.prototype.delete = function(R) { + delete this.map[d(R)]; + }, n.prototype.get = function(R) { + return R = d(R), this.has(R) ? this.map[R] : null; + }, n.prototype.has = function(R) { + return this.map.hasOwnProperty(d(R)); + }, n.prototype.set = function(R, I) { + this.map[d(R)] = s(I); + }, n.prototype.forEach = function(R, I) { + for (var x in this.map) + this.map.hasOwnProperty(x) && R.call(I, this.map[x], x, this); + }, n.prototype.keys = function() { + var R = []; + return this.forEach(function(I, x) { + R.push(x); + }), r(R); + }, n.prototype.values = function() { + var R = []; + return this.forEach(function(I) { + R.push(I); + }), r(R); + }, n.prototype.entries = function() { + var R = []; + return this.forEach(function(I, x) { + R.push([x, I]); + }), r(R); + }, a.iterable && (n.prototype[Symbol.iterator] = n.prototype.entries); + var p = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; + function m(R, I) { + var x, P, w = (I = I || {}).body; + if (R instanceof m) { + if (R.bodyUsed) + throw new TypeError("Already read"); + this.url = R.url, this.credentials = R.credentials, I.headers || (this.headers = new n(R.headers)), this.method = R.method, this.mode = R.mode, this.signal = R.signal, w || R._bodyInit == null || (w = R._bodyInit, R.bodyUsed = !0); + } else + this.url = String(R); + if (this.credentials = I.credentials || this.credentials || "same-origin", !I.headers && this.headers || (this.headers = new n(I.headers)), this.method = (P = (x = I.method || this.method || "GET").toUpperCase(), p.indexOf(P) > -1 ? P : x), this.mode = I.mode || this.mode || null, this.signal = I.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && w) + throw new TypeError("Body not allowed for GET or HEAD requests"); + this._initBody(w); + } + function M(R) { + var I = new FormData(); + return R.trim().split("&").forEach(function(x) { + if (x) { + var P = x.split("="), w = P.shift().replace(/\+/g, " "), g = P.join("=").replace(/\+/g, " "); + I.append(decodeURIComponent(w), decodeURIComponent(g)); + } + }), I; + } + function l(R, I) { + I || (I = {}), this.type = "default", this.status = I.status === void 0 ? 200 : I.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in I ? I.statusText : "OK", this.headers = new n(I.headers), this.url = I.url || "", this._initBody(R); + } + m.prototype.clone = function() { + return new m(this, { body: this._bodyInit }); + }, h.call(m.prototype), h.call(l.prototype), l.prototype.clone = function() { + return new l(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new n(this.headers), url: this.url }); + }, l.error = function() { + var R = new l(null, { status: 0, statusText: "" }); + return R.type = "error", R; + }; + var N = [301, 302, 303, 307, 308]; + l.redirect = function(R, I) { + if (N.indexOf(I) === -1) + throw new RangeError("Invalid status code"); + return new l(null, { status: I, headers: { location: R } }); + }, b.DOMException = k.DOMException; + try { + new b.DOMException(); + } catch { + b.DOMException = function(I, x) { + this.message = I, this.name = x; + var P = Error(I); + this.stack = P.stack; + }, b.DOMException.prototype = Object.create(Error.prototype), b.DOMException.prototype.constructor = b.DOMException; + } + function j(R, I) { + return new Promise(function(x, P) { + var w = new m(R, I); + if (w.signal && w.signal.aborted) + return P(new b.DOMException("Aborted", "AbortError")); + var g = new XMLHttpRequest(); + function E() { + g.abort(); + } + g.onload = function() { + var U, C, F = { status: g.status, statusText: g.statusText, headers: (U = g.getAllResponseHeaders() || "", C = new n(), U.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function(ee) { + var ne = ee.split(":"), D = ne.shift().trim(); + if (D) { + var Z = ne.join(":").trim(); + C.append(D, Z); + } + }), C) }; + F.url = "responseURL" in g ? g.responseURL : F.headers.get("X-Request-URL"); + var re = "response" in g ? g.response : g.responseText; + x(new l(re, F)); + }, g.onerror = function() { + P(new TypeError("Network request failed")); + }, g.ontimeout = function() { + P(new TypeError("Network request failed")); + }, g.onabort = function() { + P(new b.DOMException("Aborted", "AbortError")); + }, g.open(w.method, w.url, !0), w.credentials === "include" ? g.withCredentials = !0 : w.credentials === "omit" && (g.withCredentials = !1), "responseType" in g && a.blob && (g.responseType = "blob"), w.headers.forEach(function(U, C) { + g.setRequestHeader(C, U); + }), w.signal && (w.signal.addEventListener("abort", E), g.onreadystatechange = function() { + g.readyState === 4 && w.signal.removeEventListener("abort", E); + }), g.send(w._bodyInit === void 0 ? null : w._bodyInit); + }); + } + j.polyfill = !0, k.fetch || (k.fetch = j, k.Headers = n, k.Request = m, k.Response = l), b.Headers = n, b.Request = m, b.Response = l, b.fetch = j, Object.defineProperty(b, "__esModule", { value: !0 }); + })({}); + })(O), O.fetch.ponyfill = !0, delete O.fetch.polyfill; + var A = O; + (e = A.fetch).default = A.fetch, e.fetch = A.fetch, e.Headers = A.Headers, e.Request = A.Request, e.Response = A.Response, J.exports = e; + }, 4063: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + let _ = new Uint8Array(32); + function O(X) { + var K, Y = new Float64Array(16); + if (X) + for (K = 0; K < X.length; K++) + Y[K] = X[K]; + return Y; + } + _[0] = 9; + const A = O(), k = O([1]), b = O([56129, 1]), a = O([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), t = O([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]), u = O([54554, 36645, 11616, 51542, 42930, 38181, 51040, 26924, 56412, 64982, 57905, 49316, 21502, 52590, 14035, 8553]), d = O([26200, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214]), s = O([41136, 18958, 6951, 50414, 58488, 44335, 6150, 12099, 55207, 15867, 153, 11085, 57099, 20417, 9344, 11139]); + function r(X, K, Y, L) { + X[K] = Y >> 24 & 255, X[K + 1] = Y >> 16 & 255, X[K + 2] = Y >> 8 & 255, X[K + 3] = 255 & Y, X[K + 4] = L >> 24 & 255, X[K + 5] = L >> 16 & 255, X[K + 6] = L >> 8 & 255, X[K + 7] = 255 & L; + } + function n(X, K, Y, L) { + return function(ae, ce, ue, le, be) { + var de, pe = 0; + for (de = 0; de < 32; de++) + pe |= ae[ce + de] ^ ue[le + de]; + return (1 & pe - 1 >>> 8) - 1; + }(X, K, Y, L); + } + function o(X, K) { + var Y; + for (Y = 0; Y < 16; Y++) + X[Y] = 0 | K[Y]; + } + function i(X) { + var K, Y, L = 1; + for (K = 0; K < 16; K++) + Y = X[K] + L + 65535, L = Math.floor(Y / 65536), X[K] = Y - 65536 * L; + X[0] += L - 1 + 37 * (L - 1); + } + function f(X, K, Y) { + for (var L, ae = ~(Y - 1), ce = 0; ce < 16; ce++) + L = ae & (X[ce] ^ K[ce]), X[ce] ^= L, K[ce] ^= L; + } + function c(X, K) { + var Y, L, ae, ce = O(), ue = O(); + for (Y = 0; Y < 16; Y++) + ue[Y] = K[Y]; + for (i(ue), i(ue), i(ue), L = 0; L < 2; L++) { + for (ce[0] = ue[0] - 65517, Y = 1; Y < 15; Y++) + ce[Y] = ue[Y] - 65535 - (ce[Y - 1] >> 16 & 1), ce[Y - 1] &= 65535; + ce[15] = ue[15] - 32767 - (ce[14] >> 16 & 1), ae = ce[15] >> 16 & 1, ce[14] &= 65535, f(ue, ce, 1 - ae); + } + for (Y = 0; Y < 16; Y++) + X[2 * Y] = 255 & ue[Y], X[2 * Y + 1] = ue[Y] >> 8; + } + function h(X, K) { + var Y = new Uint8Array(32), L = new Uint8Array(32); + return c(Y, X), c(L, K), n(Y, 0, L, 0); + } + function p(X) { + var K = new Uint8Array(32); + return c(K, X), 1 & K[0]; + } + function m(X, K) { + var Y; + for (Y = 0; Y < 16; Y++) + X[Y] = K[2 * Y] + (K[2 * Y + 1] << 8); + X[15] &= 32767; + } + function M(X, K, Y) { + for (var L = 0; L < 16; L++) + X[L] = K[L] + Y[L]; + } + function l(X, K, Y) { + for (var L = 0; L < 16; L++) + X[L] = K[L] - Y[L]; + } + function N(X, K, Y) { + var L, ae, ce = 0, ue = 0, le = 0, be = 0, de = 0, pe = 0, _e = 0, W = 0, v = 0, y = 0, S = 0, T = 0, B = 0, z = 0, q = 0, te = 0, oe = 0, V = 0, Q = 0, G = 0, H = 0, ie = 0, se = 0, fe = 0, he = 0, ve = 0, me = 0, ge = 0, ye = 0, Ee = 0, Ae = 0, Pe = Y[0], ke = Y[1], xe = Y[2], we = Y[3], Se = Y[4], Re = Y[5], Oe = Y[6], Me = Y[7], Te = Y[8], Ne = Y[9], Ce = Y[10], Be = Y[11], Ie = Y[12], je = Y[13], De = Y[14], Ue = Y[15]; + ce += (L = K[0]) * Pe, ue += L * ke, le += L * xe, be += L * we, de += L * Se, pe += L * Re, _e += L * Oe, W += L * Me, v += L * Te, y += L * Ne, S += L * Ce, T += L * Be, B += L * Ie, z += L * je, q += L * De, te += L * Ue, ue += (L = K[1]) * Pe, le += L * ke, be += L * xe, de += L * we, pe += L * Se, _e += L * Re, W += L * Oe, v += L * Me, y += L * Te, S += L * Ne, T += L * Ce, B += L * Be, z += L * Ie, q += L * je, te += L * De, oe += L * Ue, le += (L = K[2]) * Pe, be += L * ke, de += L * xe, pe += L * we, _e += L * Se, W += L * Re, v += L * Oe, y += L * Me, S += L * Te, T += L * Ne, B += L * Ce, z += L * Be, q += L * Ie, te += L * je, oe += L * De, V += L * Ue, be += (L = K[3]) * Pe, de += L * ke, pe += L * xe, _e += L * we, W += L * Se, v += L * Re, y += L * Oe, S += L * Me, T += L * Te, B += L * Ne, z += L * Ce, q += L * Be, te += L * Ie, oe += L * je, V += L * De, Q += L * Ue, de += (L = K[4]) * Pe, pe += L * ke, _e += L * xe, W += L * we, v += L * Se, y += L * Re, S += L * Oe, T += L * Me, B += L * Te, z += L * Ne, q += L * Ce, te += L * Be, oe += L * Ie, V += L * je, Q += L * De, G += L * Ue, pe += (L = K[5]) * Pe, _e += L * ke, W += L * xe, v += L * we, y += L * Se, S += L * Re, T += L * Oe, B += L * Me, z += L * Te, q += L * Ne, te += L * Ce, oe += L * Be, V += L * Ie, Q += L * je, G += L * De, H += L * Ue, _e += (L = K[6]) * Pe, W += L * ke, v += L * xe, y += L * we, S += L * Se, T += L * Re, B += L * Oe, z += L * Me, q += L * Te, te += L * Ne, oe += L * Ce, V += L * Be, Q += L * Ie, G += L * je, H += L * De, ie += L * Ue, W += (L = K[7]) * Pe, v += L * ke, y += L * xe, S += L * we, T += L * Se, B += L * Re, z += L * Oe, q += L * Me, te += L * Te, oe += L * Ne, V += L * Ce, Q += L * Be, G += L * Ie, H += L * je, ie += L * De, se += L * Ue, v += (L = K[8]) * Pe, y += L * ke, S += L * xe, T += L * we, B += L * Se, z += L * Re, q += L * Oe, te += L * Me, oe += L * Te, V += L * Ne, Q += L * Ce, G += L * Be, H += L * Ie, ie += L * je, se += L * De, fe += L * Ue, y += (L = K[9]) * Pe, S += L * ke, T += L * xe, B += L * we, z += L * Se, q += L * Re, te += L * Oe, oe += L * Me, V += L * Te, Q += L * Ne, G += L * Ce, H += L * Be, ie += L * Ie, se += L * je, fe += L * De, he += L * Ue, S += (L = K[10]) * Pe, T += L * ke, B += L * xe, z += L * we, q += L * Se, te += L * Re, oe += L * Oe, V += L * Me, Q += L * Te, G += L * Ne, H += L * Ce, ie += L * Be, se += L * Ie, fe += L * je, he += L * De, ve += L * Ue, T += (L = K[11]) * Pe, B += L * ke, z += L * xe, q += L * we, te += L * Se, oe += L * Re, V += L * Oe, Q += L * Me, G += L * Te, H += L * Ne, ie += L * Ce, se += L * Be, fe += L * Ie, he += L * je, ve += L * De, me += L * Ue, B += (L = K[12]) * Pe, z += L * ke, q += L * xe, te += L * we, oe += L * Se, V += L * Re, Q += L * Oe, G += L * Me, H += L * Te, ie += L * Ne, se += L * Ce, fe += L * Be, he += L * Ie, ve += L * je, me += L * De, ge += L * Ue, z += (L = K[13]) * Pe, q += L * ke, te += L * xe, oe += L * we, V += L * Se, Q += L * Re, G += L * Oe, H += L * Me, ie += L * Te, se += L * Ne, fe += L * Ce, he += L * Be, ve += L * Ie, me += L * je, ge += L * De, ye += L * Ue, q += (L = K[14]) * Pe, te += L * ke, oe += L * xe, V += L * we, Q += L * Se, G += L * Re, H += L * Oe, ie += L * Me, se += L * Te, fe += L * Ne, he += L * Ce, ve += L * Be, me += L * Ie, ge += L * je, ye += L * De, Ee += L * Ue, te += (L = K[15]) * Pe, ue += 38 * (V += L * xe), le += 38 * (Q += L * we), be += 38 * (G += L * Se), de += 38 * (H += L * Re), pe += 38 * (ie += L * Oe), _e += 38 * (se += L * Me), W += 38 * (fe += L * Te), v += 38 * (he += L * Ne), y += 38 * (ve += L * Ce), S += 38 * (me += L * Be), T += 38 * (ge += L * Ie), B += 38 * (ye += L * je), z += 38 * (Ee += L * De), q += 38 * (Ae += L * Ue), ce = (L = (ce += 38 * (oe += L * ke)) + (ae = 1) + 65535) - 65536 * (ae = Math.floor(L / 65536)), ue = (L = ue + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), le = (L = le + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), be = (L = be + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), de = (L = de + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), pe = (L = pe + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), _e = (L = _e + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), W = (L = W + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), v = (L = v + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), y = (L = y + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), S = (L = S + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), T = (L = T + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), B = (L = B + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), z = (L = z + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), q = (L = q + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), te = (L = te + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), ce = (L = (ce += ae - 1 + 37 * (ae - 1)) + (ae = 1) + 65535) - 65536 * (ae = Math.floor(L / 65536)), ue = (L = ue + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), le = (L = le + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), be = (L = be + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), de = (L = de + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), pe = (L = pe + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), _e = (L = _e + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), W = (L = W + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), v = (L = v + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), y = (L = y + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), S = (L = S + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), T = (L = T + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), B = (L = B + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), z = (L = z + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), q = (L = q + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), te = (L = te + ae + 65535) - 65536 * (ae = Math.floor(L / 65536)), ce += ae - 1 + 37 * (ae - 1), X[0] = ce, X[1] = ue, X[2] = le, X[3] = be, X[4] = de, X[5] = pe, X[6] = _e, X[7] = W, X[8] = v, X[9] = y, X[10] = S, X[11] = T, X[12] = B, X[13] = z, X[14] = q, X[15] = te; + } + function j(X, K) { + N(X, K, K); + } + function R(X, K) { + var Y, L = O(); + for (Y = 0; Y < 16; Y++) + L[Y] = K[Y]; + for (Y = 253; Y >= 0; Y--) + j(L, L), Y !== 2 && Y !== 4 && N(L, L, K); + for (Y = 0; Y < 16; Y++) + X[Y] = L[Y]; + } + function I(X, K, Y) { + var L, ae, ce = new Uint8Array(32), ue = new Float64Array(80), le = O(), be = O(), de = O(), pe = O(), _e = O(), W = O(); + for (ae = 0; ae < 31; ae++) + ce[ae] = K[ae]; + for (ce[31] = 127 & K[31] | 64, ce[0] &= 248, m(ue, Y), ae = 0; ae < 16; ae++) + be[ae] = ue[ae], pe[ae] = le[ae] = de[ae] = 0; + for (le[0] = pe[0] = 1, ae = 254; ae >= 0; --ae) + f(le, be, L = ce[ae >>> 3] >>> (7 & ae) & 1), f(de, pe, L), M(_e, le, de), l(le, le, de), M(de, be, pe), l(be, be, pe), j(pe, _e), j(W, le), N(le, de, le), N(de, be, _e), M(_e, le, de), l(le, le, de), j(be, le), l(de, pe, W), N(le, de, b), M(le, le, pe), N(de, de, le), N(le, pe, W), N(pe, be, ue), j(be, _e), f(le, be, L), f(de, pe, L); + for (ae = 0; ae < 16; ae++) + ue[ae + 16] = le[ae], ue[ae + 32] = de[ae], ue[ae + 48] = be[ae], ue[ae + 64] = pe[ae]; + var v = ue.subarray(32), y = ue.subarray(16); + return R(v, v), N(y, y, v), c(X, y), 0; + } + var x = [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]; + function P(X, K, Y, L) { + for (var ae, ce, ue, le, be, de, pe, _e, W, v, y, S, T, B, z, q, te, oe, V, Q, G, H, ie, se, fe, he, ve = new Int32Array(16), me = new Int32Array(16), ge = X[0], ye = X[1], Ee = X[2], Ae = X[3], Pe = X[4], ke = X[5], xe = X[6], we = X[7], Se = K[0], Re = K[1], Oe = K[2], Me = K[3], Te = K[4], Ne = K[5], Ce = K[6], Be = K[7], Ie = 0; L >= 128; ) { + for (V = 0; V < 16; V++) + Q = 8 * V + Ie, ve[V] = Y[Q + 0] << 24 | Y[Q + 1] << 16 | Y[Q + 2] << 8 | Y[Q + 3], me[V] = Y[Q + 4] << 24 | Y[Q + 5] << 16 | Y[Q + 6] << 8 | Y[Q + 7]; + for (V = 0; V < 80; V++) + if (ae = ge, ce = ye, ue = Ee, le = Ae, be = Pe, de = ke, pe = xe, W = Se, v = Re, y = Oe, S = Me, T = Te, B = Ne, z = Ce, ie = 65535 & (H = Be), se = H >>> 16, fe = 65535 & (G = we), he = G >>> 16, ie += 65535 & (H = (Te >>> 14 | Pe << 18) ^ (Te >>> 18 | Pe << 14) ^ (Pe >>> 9 | Te << 23)), se += H >>> 16, fe += 65535 & (G = (Pe >>> 14 | Te << 18) ^ (Pe >>> 18 | Te << 14) ^ (Te >>> 9 | Pe << 23)), he += G >>> 16, ie += 65535 & (H = Te & Ne ^ ~Te & Ce), se += H >>> 16, fe += 65535 & (G = Pe & ke ^ ~Pe & xe), he += G >>> 16, G = x[2 * V], ie += 65535 & (H = x[2 * V + 1]), se += H >>> 16, fe += 65535 & G, he += G >>> 16, G = ve[V % 16], se += (H = me[V % 16]) >>> 16, fe += 65535 & G, he += G >>> 16, fe += (se += (ie += 65535 & H) >>> 16) >>> 16, ie = 65535 & (H = oe = 65535 & ie | se << 16), se = H >>> 16, fe = 65535 & (G = te = 65535 & fe | (he += fe >>> 16) << 16), he = G >>> 16, ie += 65535 & (H = (Se >>> 28 | ge << 4) ^ (ge >>> 2 | Se << 30) ^ (ge >>> 7 | Se << 25)), se += H >>> 16, fe += 65535 & (G = (ge >>> 28 | Se << 4) ^ (Se >>> 2 | ge << 30) ^ (Se >>> 7 | ge << 25)), he += G >>> 16, se += (H = Se & Re ^ Se & Oe ^ Re & Oe) >>> 16, fe += 65535 & (G = ge & ye ^ ge & Ee ^ ye & Ee), he += G >>> 16, _e = 65535 & (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) | (he += fe >>> 16) << 16, q = 65535 & ie | se << 16, ie = 65535 & (H = S), se = H >>> 16, fe = 65535 & (G = le), he = G >>> 16, se += (H = oe) >>> 16, fe += 65535 & (G = te), he += G >>> 16, ye = ae, Ee = ce, Ae = ue, Pe = le = 65535 & (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) | (he += fe >>> 16) << 16, ke = be, xe = de, we = pe, ge = _e, Re = W, Oe = v, Me = y, Te = S = 65535 & ie | se << 16, Ne = T, Ce = B, Be = z, Se = q, V % 16 == 15) + for (Q = 0; Q < 16; Q++) + G = ve[Q], ie = 65535 & (H = me[Q]), se = H >>> 16, fe = 65535 & G, he = G >>> 16, G = ve[(Q + 9) % 16], ie += 65535 & (H = me[(Q + 9) % 16]), se += H >>> 16, fe += 65535 & G, he += G >>> 16, te = ve[(Q + 1) % 16], ie += 65535 & (H = ((oe = me[(Q + 1) % 16]) >>> 1 | te << 31) ^ (oe >>> 8 | te << 24) ^ (oe >>> 7 | te << 25)), se += H >>> 16, fe += 65535 & (G = (te >>> 1 | oe << 31) ^ (te >>> 8 | oe << 24) ^ te >>> 7), he += G >>> 16, te = ve[(Q + 14) % 16], se += (H = ((oe = me[(Q + 14) % 16]) >>> 19 | te << 13) ^ (te >>> 29 | oe << 3) ^ (oe >>> 6 | te << 26)) >>> 16, fe += 65535 & (G = (te >>> 19 | oe << 13) ^ (oe >>> 29 | te << 3) ^ te >>> 6), he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, ve[Q] = 65535 & fe | he << 16, me[Q] = 65535 & ie | se << 16; + ie = 65535 & (H = Se), se = H >>> 16, fe = 65535 & (G = ge), he = G >>> 16, G = X[0], se += (H = K[0]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[0] = ge = 65535 & fe | he << 16, K[0] = Se = 65535 & ie | se << 16, ie = 65535 & (H = Re), se = H >>> 16, fe = 65535 & (G = ye), he = G >>> 16, G = X[1], se += (H = K[1]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[1] = ye = 65535 & fe | he << 16, K[1] = Re = 65535 & ie | se << 16, ie = 65535 & (H = Oe), se = H >>> 16, fe = 65535 & (G = Ee), he = G >>> 16, G = X[2], se += (H = K[2]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[2] = Ee = 65535 & fe | he << 16, K[2] = Oe = 65535 & ie | se << 16, ie = 65535 & (H = Me), se = H >>> 16, fe = 65535 & (G = Ae), he = G >>> 16, G = X[3], se += (H = K[3]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[3] = Ae = 65535 & fe | he << 16, K[3] = Me = 65535 & ie | se << 16, ie = 65535 & (H = Te), se = H >>> 16, fe = 65535 & (G = Pe), he = G >>> 16, G = X[4], se += (H = K[4]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[4] = Pe = 65535 & fe | he << 16, K[4] = Te = 65535 & ie | se << 16, ie = 65535 & (H = Ne), se = H >>> 16, fe = 65535 & (G = ke), he = G >>> 16, G = X[5], se += (H = K[5]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[5] = ke = 65535 & fe | he << 16, K[5] = Ne = 65535 & ie | se << 16, ie = 65535 & (H = Ce), se = H >>> 16, fe = 65535 & (G = xe), he = G >>> 16, G = X[6], se += (H = K[6]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[6] = xe = 65535 & fe | he << 16, K[6] = Ce = 65535 & ie | se << 16, ie = 65535 & (H = Be), se = H >>> 16, fe = 65535 & (G = we), he = G >>> 16, G = X[7], se += (H = K[7]) >>> 16, fe += 65535 & G, he += G >>> 16, he += (fe += (se += (ie += 65535 & H) >>> 16) >>> 16) >>> 16, X[7] = we = 65535 & fe | he << 16, K[7] = Be = 65535 & ie | se << 16, Ie += 128, L -= 128; + } + return L; + } + function w(X, K, Y) { + var L, ae = new Int32Array(8), ce = new Int32Array(8), ue = new Uint8Array(256), le = Y; + for (ae[0] = 1779033703, ae[1] = 3144134277, ae[2] = 1013904242, ae[3] = 2773480762, ae[4] = 1359893119, ae[5] = 2600822924, ae[6] = 528734635, ae[7] = 1541459225, ce[0] = 4089235720, ce[1] = 2227873595, ce[2] = 4271175723, ce[3] = 1595750129, ce[4] = 2917565137, ce[5] = 725511199, ce[6] = 4215389547, ce[7] = 327033209, P(ae, ce, K, Y), Y %= 128, L = 0; L < Y; L++) + ue[L] = K[le - Y + L]; + for (ue[Y] = 128, ue[(Y = 256 - 128 * (Y < 112 ? 1 : 0)) - 9] = 0, r(ue, Y - 8, le / 536870912 | 0, le << 3), P(ae, ce, ue, Y), L = 0; L < 8; L++) + r(X, 8 * L, ae[L], ce[L]); + return 0; + } + function g(X, K) { + var Y = O(), L = O(), ae = O(), ce = O(), ue = O(), le = O(), be = O(), de = O(), pe = O(); + l(Y, X[1], X[0]), l(pe, K[1], K[0]), N(Y, Y, pe), M(L, X[0], X[1]), M(pe, K[0], K[1]), N(L, L, pe), N(ae, X[3], K[3]), N(ae, ae, t), N(ce, X[2], K[2]), M(ce, ce, ce), l(ue, L, Y), l(le, ce, ae), M(be, ce, ae), M(de, L, Y), N(X[0], ue, le), N(X[1], de, be), N(X[2], be, le), N(X[3], ue, de); + } + function E(X, K, Y) { + var L; + for (L = 0; L < 4; L++) + f(X[L], K[L], Y); + } + function U(X, K) { + var Y = O(), L = O(), ae = O(); + R(ae, K[2]), N(Y, K[0], ae), N(L, K[1], ae), c(X, L), X[31] ^= p(Y) << 7; + } + function C(X, K, Y) { + var L, ae; + for (o(X[0], A), o(X[1], k), o(X[2], k), o(X[3], A), ae = 255; ae >= 0; --ae) + E(X, K, L = Y[ae / 8 | 0] >> (7 & ae) & 1), g(K, X), g(X, X), E(X, K, L); + } + function F(X, K) { + var Y = [O(), O(), O(), O()]; + o(Y[0], u), o(Y[1], d), o(Y[2], k), N(Y[3], u, d), C(X, Y, K); + } + var re = new Float64Array([237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16]); + function ee(X, K) { + var Y, L, ae, ce; + for (L = 63; L >= 32; --L) { + for (Y = 0, ae = L - 32, ce = L - 12; ae < ce; ++ae) + K[ae] += Y - 16 * K[L] * re[ae - (L - 32)], Y = K[ae] + 128 >> 8, K[ae] -= 256 * Y; + K[ae] += Y, K[L] = 0; + } + for (Y = 0, ae = 0; ae < 32; ae++) + K[ae] += Y - (K[31] >> 4) * re[ae], Y = K[ae] >> 8, K[ae] &= 255; + for (ae = 0; ae < 32; ae++) + K[ae] -= Y * re[ae]; + for (L = 0; L < 32; L++) + K[L + 1] += K[L] >> 8, X[L] = 255 & K[L]; + } + function ne(X) { + var K, Y = new Float64Array(64); + for (K = 0; K < 64; K++) + Y[K] = X[K]; + for (K = 0; K < 64; K++) + X[K] = 0; + ee(X, Y); + } + function D(X, K, Y, L, ae) { + for (var ce = new Uint8Array(64), ue = [O(), O(), O(), O()], le = 0; le < 32; le++) + ce[le] = L[le]; + ce[0] &= 248, ce[31] &= 127, ce[31] |= 64, F(ue, ce), U(ce.subarray(32), ue); + var be, de = 128 & ce[63]; + return be = ae ? function(pe, _e, W, v, y) { + var S, T, B = new Uint8Array(64), z = new Uint8Array(64), q = new Float64Array(64), te = [O(), O(), O(), O()]; + for (pe[0] = 254, S = 1; S < 32; S++) + pe[S] = 255; + for (S = 0; S < 32; S++) + pe[32 + S] = v[S]; + for (S = 0; S < W; S++) + pe[64 + S] = _e[S]; + for (S = 0; S < 64; S++) + pe[W + 64 + S] = y[S]; + for (w(z, pe, W + 128), ne(z), F(te, z), U(pe, te), S = 0; S < 32; S++) + pe[S + 32] = v[32 + S]; + for (w(B, pe, W + 64), ne(B), S = 0; S < 64; S++) + pe[W + 64 + S] = 0; + for (S = 0; S < 64; S++) + q[S] = 0; + for (S = 0; S < 32; S++) + q[S] = z[S]; + for (S = 0; S < 32; S++) + for (T = 0; T < 32; T++) + q[S + T] += B[S] * v[T]; + return ee(pe.subarray(32, W + 64), q), W + 64; + }(X, K, Y, ce, ae) : function(pe, _e, W, v) { + var y, S, T = new Uint8Array(64), B = new Uint8Array(64), z = new Float64Array(64), q = [O(), O(), O(), O()]; + for (y = 0; y < W; y++) + pe[64 + y] = _e[y]; + for (y = 0; y < 32; y++) + pe[32 + y] = v[y]; + for (w(B, pe.subarray(32), W + 32), ne(B), F(q, B), U(pe, q), y = 0; y < 32; y++) + pe[y + 32] = v[32 + y]; + for (w(T, pe, W + 64), ne(T), y = 0; y < 64; y++) + z[y] = 0; + for (y = 0; y < 32; y++) + z[y] = B[y]; + for (y = 0; y < 32; y++) + for (S = 0; S < 32; S++) + z[y + S] += T[y] * v[S]; + return ee(pe.subarray(32), z), W + 64; + }(X, K, Y, ce), X[63] |= de, be; + } + function Z(X, K, Y, L) { + var ae = function(ce) { + var ue = new Uint8Array(32), le = O(), be = O(), de = O(); + return m(le, ce), M(be, le, k), l(de, le, k), R(be, be), N(be, be, de), c(ue, be), ue; + }(L); + return ae[31] |= 128 & K[63], K[63] &= 127, function(ce, ue, le, be) { + var de, pe = new Uint8Array(32), _e = new Uint8Array(64), W = [O(), O(), O(), O()], v = [O(), O(), O(), O()]; + if (le < 64 || function(y, S) { + var T = O(), B = O(), z = O(), q = O(), te = O(), oe = O(), V = O(); + return o(y[2], k), m(y[1], S), j(z, y[1]), N(q, z, a), l(z, z, y[2]), M(q, y[2], q), j(te, q), j(oe, te), N(V, oe, te), N(T, V, z), N(T, T, q), function(Q, G) { + var H, ie = O(); + for (H = 0; H < 16; H++) + ie[H] = G[H]; + for (H = 250; H >= 0; H--) + j(ie, ie), H !== 1 && N(ie, ie, G); + for (H = 0; H < 16; H++) + Q[H] = ie[H]; + }(T, T), N(T, T, z), N(T, T, q), N(T, T, q), N(y[0], T, q), j(B, y[0]), N(B, B, q), h(B, z) && N(y[0], y[0], s), j(B, y[0]), N(B, B, q), h(B, z) ? -1 : (p(y[0]) === S[31] >> 7 && l(y[0], A, y[0]), N(y[3], y[0], y[1]), 0); + }(v, be)) + return -1; + for (de = 0; de < le; de++) + ce[de] = ue[de]; + for (de = 0; de < 32; de++) + ce[de + 32] = be[de]; + if (w(_e, ce, le), ne(_e), C(W, v, _e), F(v, ue.subarray(32)), g(W, v), U(pe, W), le -= 64, n(ue, 0, pe, 0)) { + for (de = 0; de < le; de++) + ce[de] = 0; + return -1; + } + for (de = 0; de < le; de++) + ce[de] = ue[de + 64]; + return le; + }(X, K, Y, ae); + } + function $(...X) { + var K, Y; + for (Y = 0; Y < arguments.length; Y++) + if ((K = Object.prototype.toString.call(arguments[Y])) !== "[object Uint8Array]") + throw new TypeError("unexpected type " + K + ", use Uint8Array"); + } + e.sharedKey = function(X, K) { + if ($(K, X), K.length !== 32) + throw new Error("wrong public key length"); + if (X.length !== 32) + throw new Error("wrong secret key length"); + var Y = new Uint8Array(32); + return I(Y, X, K), Y; + }, e.signMessage = function(X, K, Y) { + if ($(K, X), X.length !== 32) + throw new Error("wrong secret key length"); + if (Y) { + if ($(Y), Y.length !== 64) + throw new Error("wrong random data length"); + var L = new Uint8Array(128 + K.length); + return D(L, K, K.length, X, Y), new Uint8Array(L.subarray(0, 64 + K.length)); + } + var ae = new Uint8Array(64 + K.length); + return D(ae, K, K.length, X), ae; + }, e.openMessage = function(X, K) { + if ($(K, X), X.length !== 32) + throw new Error("wrong public key length"); + var Y = new Uint8Array(K.length), L = Z(Y, K, K.length, X); + if (L < 0) + return null; + for (var ae = new Uint8Array(L), ce = 0; ce < ae.length; ce++) + ae[ce] = Y[ce]; + return ae; + }, e.sign = function(X, K, Y) { + if ($(X, K), X.length !== 32) + throw new Error("wrong secret key length"); + if (Y && ($(Y), Y.length !== 64)) + throw new Error("wrong random data length"); + var L = new Uint8Array((Y ? 128 : 64) + K.length); + D(L, K, K.length, X, Y); + for (var ae = new Uint8Array(64), ce = 0; ce < ae.length; ce++) + ae[ce] = L[ce]; + return ae; + }, e.verify = function(X, K, Y) { + if ($(K, Y, X), Y.length !== 64) + throw new Error("wrong signature length"); + if (X.length !== 32) + throw new Error("wrong public key length"); + var L, ae = new Uint8Array(64 + K.length), ce = new Uint8Array(64 + K.length); + for (L = 0; L < 64; L++) + ae[L] = Y[L]; + for (L = 0; L < K.length; L++) + ae[L + 64] = K[L]; + return Z(ce, ae, ae.length, X) >= 0; + }, e.generateKeyPair = function(X) { + if ($(X), X.length !== 32) + throw new Error("wrong seed length"); + for (var K = new Uint8Array(32), Y = new Uint8Array(32), L = 0; L < 32; L++) + K[L] = X[L]; + return I(Y, K, _), K[0] &= 248, K[31] &= 127, K[31] |= 64, Y[31] &= 127, { public: Y, private: K }; + }, e.default = {}; + }, 4289: (J, e, _) => { + var O = _(2215), A = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", k = Object.prototype.toString, b = Array.prototype.concat, a = Object.defineProperty, t = _(1044)(), u = a && t, d = function(r, n, o, i) { + if (n in r) { + if (i === !0) { + if (r[n] === o) + return; + } else if (typeof (f = i) != "function" || k.call(f) !== "[object Function]" || !i()) + return; + } + var f; + u ? a(r, n, { configurable: !0, enumerable: !1, value: o, writable: !0 }) : r[n] = o; + }, s = function(r, n) { + var o = arguments.length > 2 ? arguments[2] : {}, i = O(n); + A && (i = b.call(i, Object.getOwnPropertySymbols(n))); + for (var f = 0; f < i.length; f += 1) + d(r, i[f], n[i[f]], o[i[f]]); + }; + s.supportsDescriptors = !!u, J.exports = s; + }, 6266: (J, e, _) => { + var O = e; + O.version = _(8597).i8, O.utils = _(953), O.rand = _(9931), O.curve = _(8254), O.curves = _(5427), O.ec = _(7954), O.eddsa = _(5980); + }, 4918: (J, e, _) => { + var O = _(3550), A = _(953), k = A.getNAF, b = A.getJSF, a = A.assert; + function t(d, s) { + this.type = d, this.p = new O(s.p, 16), this.red = s.prime ? O.red(s.prime) : O.mont(this.p), this.zero = new O(0).toRed(this.red), this.one = new O(1).toRed(this.red), this.two = new O(2).toRed(this.red), this.n = s.n && new O(s.n, 16), this.g = s.g && this.pointFromJSON(s.g, s.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; + var r = this.n && this.p.div(this.n); + !r || r.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = !0, this.redN = this.n.toRed(this.red)); + } + function u(d, s) { + this.curve = d, this.type = s, this.precomputed = null; + } + J.exports = t, t.prototype.point = function() { + throw new Error("Not implemented"); + }, t.prototype.validate = function() { + throw new Error("Not implemented"); + }, t.prototype._fixedNafMul = function(d, s) { + a(d.precomputed); + var r = d._getDoubles(), n = k(s, 1, this._bitLength), o = (1 << r.step + 1) - (r.step % 2 == 0 ? 2 : 1); + o /= 3; + var i, f, c = []; + for (i = 0; i < n.length; i += r.step) { + f = 0; + for (var h = i + r.step - 1; h >= i; h--) + f = (f << 1) + n[h]; + c.push(f); + } + for (var p = this.jpoint(null, null, null), m = this.jpoint(null, null, null), M = o; M > 0; M--) { + for (i = 0; i < c.length; i++) + (f = c[i]) === M ? m = m.mixedAdd(r.points[i]) : f === -M && (m = m.mixedAdd(r.points[i].neg())); + p = p.add(m); + } + return p.toP(); + }, t.prototype._wnafMul = function(d, s) { + var r = 4, n = d._getNAFPoints(r); + r = n.wnd; + for (var o = n.points, i = k(s, r, this._bitLength), f = this.jpoint(null, null, null), c = i.length - 1; c >= 0; c--) { + for (var h = 0; c >= 0 && i[c] === 0; c--) + h++; + if (c >= 0 && h++, f = f.dblp(h), c < 0) + break; + var p = i[c]; + a(p !== 0), f = d.type === "affine" ? p > 0 ? f.mixedAdd(o[p - 1 >> 1]) : f.mixedAdd(o[-p - 1 >> 1].neg()) : p > 0 ? f.add(o[p - 1 >> 1]) : f.add(o[-p - 1 >> 1].neg()); + } + return d.type === "affine" ? f.toP() : f; + }, t.prototype._wnafMulAdd = function(d, s, r, n, o) { + var i, f, c, h = this._wnafT1, p = this._wnafT2, m = this._wnafT3, M = 0; + for (i = 0; i < n; i++) { + var l = (c = s[i])._getNAFPoints(d); + h[i] = l.wnd, p[i] = l.points; + } + for (i = n - 1; i >= 1; i -= 2) { + var N = i - 1, j = i; + if (h[N] === 1 && h[j] === 1) { + var R = [s[N], null, null, s[j]]; + s[N].y.cmp(s[j].y) === 0 ? (R[1] = s[N].add(s[j]), R[2] = s[N].toJ().mixedAdd(s[j].neg())) : s[N].y.cmp(s[j].y.redNeg()) === 0 ? (R[1] = s[N].toJ().mixedAdd(s[j]), R[2] = s[N].add(s[j].neg())) : (R[1] = s[N].toJ().mixedAdd(s[j]), R[2] = s[N].toJ().mixedAdd(s[j].neg())); + var I = [-3, -1, -5, -7, 0, 7, 5, 1, 3], x = b(r[N], r[j]); + for (M = Math.max(x[0].length, M), m[N] = new Array(M), m[j] = new Array(M), f = 0; f < M; f++) { + var P = 0 | x[0][f], w = 0 | x[1][f]; + m[N][f] = I[3 * (P + 1) + (w + 1)], m[j][f] = 0, p[N] = R; + } + } else + m[N] = k(r[N], h[N], this._bitLength), m[j] = k(r[j], h[j], this._bitLength), M = Math.max(m[N].length, M), M = Math.max(m[j].length, M); + } + var g = this.jpoint(null, null, null), E = this._wnafT4; + for (i = M; i >= 0; i--) { + for (var U = 0; i >= 0; ) { + var C = !0; + for (f = 0; f < n; f++) + E[f] = 0 | m[f][i], E[f] !== 0 && (C = !1); + if (!C) + break; + U++, i--; + } + if (i >= 0 && U++, g = g.dblp(U), i < 0) + break; + for (f = 0; f < n; f++) { + var F = E[f]; + F !== 0 && (F > 0 ? c = p[f][F - 1 >> 1] : F < 0 && (c = p[f][-F - 1 >> 1].neg()), g = c.type === "affine" ? g.mixedAdd(c) : g.add(c)); + } + } + for (i = 0; i < n; i++) + p[i] = null; + return o ? g : g.toP(); + }, t.BasePoint = u, u.prototype.eq = function() { + throw new Error("Not implemented"); + }, u.prototype.validate = function() { + return this.curve.validate(this); + }, t.prototype.decodePoint = function(d, s) { + d = A.toArray(d, s); + var r = this.p.byteLength(); + if ((d[0] === 4 || d[0] === 6 || d[0] === 7) && d.length - 1 == 2 * r) + return d[0] === 6 ? a(d[d.length - 1] % 2 == 0) : d[0] === 7 && a(d[d.length - 1] % 2 == 1), this.point(d.slice(1, 1 + r), d.slice(1 + r, 1 + 2 * r)); + if ((d[0] === 2 || d[0] === 3) && d.length - 1 === r) + return this.pointFromX(d.slice(1, 1 + r), d[0] === 3); + throw new Error("Unknown point format"); + }, u.prototype.encodeCompressed = function(d) { + return this.encode(d, !0); + }, u.prototype._encode = function(d) { + var s = this.curve.p.byteLength(), r = this.getX().toArray("be", s); + return d ? [this.getY().isEven() ? 2 : 3].concat(r) : [4].concat(r, this.getY().toArray("be", s)); + }, u.prototype.encode = function(d, s) { + return A.encode(this._encode(s), d); + }, u.prototype.precompute = function(d) { + if (this.precomputed) + return this; + var s = { doubles: null, naf: null, beta: null }; + return s.naf = this._getNAFPoints(8), s.doubles = this._getDoubles(4, d), s.beta = this._getBeta(), this.precomputed = s, this; + }, u.prototype._hasDoubles = function(d) { + if (!this.precomputed) + return !1; + var s = this.precomputed.doubles; + return !!s && s.points.length >= Math.ceil((d.bitLength() + 1) / s.step); + }, u.prototype._getDoubles = function(d, s) { + if (this.precomputed && this.precomputed.doubles) + return this.precomputed.doubles; + for (var r = [this], n = this, o = 0; o < s; o += d) { + for (var i = 0; i < d; i++) + n = n.dbl(); + r.push(n); + } + return { step: d, points: r }; + }, u.prototype._getNAFPoints = function(d) { + if (this.precomputed && this.precomputed.naf) + return this.precomputed.naf; + for (var s = [this], r = (1 << d) - 1, n = r === 1 ? null : this.dbl(), o = 1; o < r; o++) + s[o] = s[o - 1].add(n); + return { wnd: d, points: s }; + }, u.prototype._getBeta = function() { + return null; + }, u.prototype.dblp = function(d) { + for (var s = this, r = 0; r < d; r++) + s = s.dbl(); + return s; + }; + }, 1138: (J, e, _) => { + var O = _(953), A = _(3550), k = _(5717), b = _(4918), a = O.assert; + function t(d) { + this.twisted = (0 | d.a) != 1, this.mOneA = this.twisted && (0 | d.a) == -1, this.extended = this.mOneA, b.call(this, "edwards", d), this.a = new A(d.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new A(d.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new A(d.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), a(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (0 | d.c) == 1; + } + function u(d, s, r, n, o) { + b.BasePoint.call(this, d, "projective"), s === null && r === null && n === null ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new A(s, 16), this.y = new A(r, 16), this.z = n ? new A(n, 16) : this.curve.one, this.t = o && new A(o, 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())))); + } + k(t, b), J.exports = t, t.prototype._mulA = function(d) { + return this.mOneA ? d.redNeg() : this.a.redMul(d); + }, t.prototype._mulC = function(d) { + return this.oneC ? d : this.c.redMul(d); + }, t.prototype.jpoint = function(d, s, r, n) { + return this.point(d, s, r, n); + }, t.prototype.pointFromX = function(d, s) { + (d = new A(d, 16)).red || (d = d.toRed(this.red)); + var r = d.redSqr(), n = this.c2.redSub(this.a.redMul(r)), o = this.one.redSub(this.c2.redMul(this.d).redMul(r)), i = n.redMul(o.redInvm()), f = i.redSqrt(); + if (f.redSqr().redSub(i).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var c = f.fromRed().isOdd(); + return (s && !c || !s && c) && (f = f.redNeg()), this.point(d, f); + }, t.prototype.pointFromY = function(d, s) { + (d = new A(d, 16)).red || (d = d.toRed(this.red)); + var r = d.redSqr(), n = r.redSub(this.c2), o = r.redMul(this.d).redMul(this.c2).redSub(this.a), i = n.redMul(o.redInvm()); + if (i.cmp(this.zero) === 0) { + if (s) + throw new Error("invalid point"); + return this.point(this.zero, d); + } + var f = i.redSqrt(); + if (f.redSqr().redSub(i).cmp(this.zero) !== 0) + throw new Error("invalid point"); + return f.fromRed().isOdd() !== s && (f = f.redNeg()), this.point(f, d); + }, t.prototype.validate = function(d) { + if (d.isInfinity()) + return !0; + d.normalize(); + var s = d.x.redSqr(), r = d.y.redSqr(), n = s.redMul(this.a).redAdd(r), o = this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(r))); + return n.cmp(o) === 0; + }, k(u, b.BasePoint), t.prototype.pointFromJSON = function(d) { + return u.fromJSON(this, d); + }, t.prototype.point = function(d, s, r, n) { + return new u(this, d, s, r, n); + }, u.fromJSON = function(d, s) { + return new u(d, s[0], s[1], s[2]); + }, u.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, u.prototype.isInfinity = function() { + return this.x.cmpn(0) === 0 && (this.y.cmp(this.z) === 0 || this.zOne && this.y.cmp(this.curve.c) === 0); + }, u.prototype._extDbl = function() { + var d = this.x.redSqr(), s = this.y.redSqr(), r = this.z.redSqr(); + r = r.redIAdd(r); + var n = this.curve._mulA(d), o = this.x.redAdd(this.y).redSqr().redISub(d).redISub(s), i = n.redAdd(s), f = i.redSub(r), c = n.redSub(s), h = o.redMul(f), p = i.redMul(c), m = o.redMul(c), M = f.redMul(i); + return this.curve.point(h, p, M, m); + }, u.prototype._projDbl = function() { + var d, s, r, n, o, i, f = this.x.redAdd(this.y).redSqr(), c = this.x.redSqr(), h = this.y.redSqr(); + if (this.curve.twisted) { + var p = (n = this.curve._mulA(c)).redAdd(h); + this.zOne ? (d = f.redSub(c).redSub(h).redMul(p.redSub(this.curve.two)), s = p.redMul(n.redSub(h)), r = p.redSqr().redSub(p).redSub(p)) : (o = this.z.redSqr(), i = p.redSub(o).redISub(o), d = f.redSub(c).redISub(h).redMul(i), s = p.redMul(n.redSub(h)), r = p.redMul(i)); + } else + n = c.redAdd(h), o = this.curve._mulC(this.z).redSqr(), i = n.redSub(o).redSub(o), d = this.curve._mulC(f.redISub(n)).redMul(i), s = this.curve._mulC(n).redMul(c.redISub(h)), r = n.redMul(i); + return this.curve.point(d, s, r); + }, u.prototype.dbl = function() { + return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl(); + }, u.prototype._extAdd = function(d) { + var s = this.y.redSub(this.x).redMul(d.y.redSub(d.x)), r = this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)), n = this.t.redMul(this.curve.dd).redMul(d.t), o = this.z.redMul(d.z.redAdd(d.z)), i = r.redSub(s), f = o.redSub(n), c = o.redAdd(n), h = r.redAdd(s), p = i.redMul(f), m = c.redMul(h), M = i.redMul(h), l = f.redMul(c); + return this.curve.point(p, m, l, M); + }, u.prototype._projAdd = function(d) { + var s, r, n = this.z.redMul(d.z), o = n.redSqr(), i = this.x.redMul(d.x), f = this.y.redMul(d.y), c = this.curve.d.redMul(i).redMul(f), h = o.redSub(c), p = o.redAdd(c), m = this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(i).redISub(f), M = n.redMul(h).redMul(m); + return this.curve.twisted ? (s = n.redMul(p).redMul(f.redSub(this.curve._mulA(i))), r = h.redMul(p)) : (s = n.redMul(p).redMul(f.redSub(i)), r = this.curve._mulC(h).redMul(p)), this.curve.point(M, s, r); + }, u.prototype.add = function(d) { + return this.isInfinity() ? d : d.isInfinity() ? this : this.curve.extended ? this._extAdd(d) : this._projAdd(d); + }, u.prototype.mul = function(d) { + return this._hasDoubles(d) ? this.curve._fixedNafMul(this, d) : this.curve._wnafMul(this, d); + }, u.prototype.mulAdd = function(d, s, r) { + return this.curve._wnafMulAdd(1, [this, s], [d, r], 2, !1); + }, u.prototype.jmulAdd = function(d, s, r) { + return this.curve._wnafMulAdd(1, [this, s], [d, r], 2, !0); + }, u.prototype.normalize = function() { + if (this.zOne) + return this; + var d = this.z.redInvm(); + return this.x = this.x.redMul(d), this.y = this.y.redMul(d), this.t && (this.t = this.t.redMul(d)), this.z = this.curve.one, this.zOne = !0, this; + }, u.prototype.neg = function() { + return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg()); + }, u.prototype.getX = function() { + return this.normalize(), this.x.fromRed(); + }, u.prototype.getY = function() { + return this.normalize(), this.y.fromRed(); + }, u.prototype.eq = function(d) { + return this === d || this.getX().cmp(d.getX()) === 0 && this.getY().cmp(d.getY()) === 0; + }, u.prototype.eqXToP = function(d) { + var s = d.toRed(this.curve.red).redMul(this.z); + if (this.x.cmp(s) === 0) + return !0; + for (var r = d.clone(), n = this.curve.redN.redMul(this.z); ; ) { + if (r.iadd(this.curve.n), r.cmp(this.curve.p) >= 0) + return !1; + if (s.redIAdd(n), this.x.cmp(s) === 0) + return !0; + } + }, u.prototype.toP = u.prototype.normalize, u.prototype.mixedAdd = u.prototype.add; + }, 8254: (J, e, _) => { + var O = e; + O.base = _(4918), O.short = _(6673), O.mont = _(2881), O.edwards = _(1138); + }, 2881: (J, e, _) => { + var O = _(3550), A = _(5717), k = _(4918), b = _(953); + function a(u) { + k.call(this, "mont", u), this.a = new O(u.a, 16).toRed(this.red), this.b = new O(u.b, 16).toRed(this.red), this.i4 = new O(4).toRed(this.red).redInvm(), this.two = new O(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two)); + } + function t(u, d, s) { + k.BasePoint.call(this, u, "projective"), d === null && s === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new O(d, 16), this.z = new O(s, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red))); + } + A(a, k), J.exports = a, a.prototype.validate = function(u) { + var d = u.normalize().x, s = d.redSqr(), r = s.redMul(d).redAdd(s.redMul(this.a)).redAdd(d); + return r.redSqrt().redSqr().cmp(r) === 0; + }, A(t, k.BasePoint), a.prototype.decodePoint = function(u, d) { + return this.point(b.toArray(u, d), 1); + }, a.prototype.point = function(u, d) { + return new t(this, u, d); + }, a.prototype.pointFromJSON = function(u) { + return t.fromJSON(this, u); + }, t.prototype.precompute = function() { + }, t.prototype._encode = function() { + return this.getX().toArray("be", this.curve.p.byteLength()); + }, t.fromJSON = function(u, d) { + return new t(u, d[0], d[1] || u.one); + }, t.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, t.prototype.isInfinity = function() { + return this.z.cmpn(0) === 0; + }, t.prototype.dbl = function() { + var u = this.x.redAdd(this.z).redSqr(), d = this.x.redSub(this.z).redSqr(), s = u.redSub(d), r = u.redMul(d), n = s.redMul(d.redAdd(this.curve.a24.redMul(s))); + return this.curve.point(r, n); + }, t.prototype.add = function() { + throw new Error("Not supported on Montgomery curve"); + }, t.prototype.diffAdd = function(u, d) { + var s = this.x.redAdd(this.z), r = this.x.redSub(this.z), n = u.x.redAdd(u.z), o = u.x.redSub(u.z).redMul(s), i = n.redMul(r), f = d.z.redMul(o.redAdd(i).redSqr()), c = d.x.redMul(o.redISub(i).redSqr()); + return this.curve.point(f, c); + }, t.prototype.mul = function(u) { + for (var d = u.clone(), s = this, r = this.curve.point(null, null), n = []; d.cmpn(0) !== 0; d.iushrn(1)) + n.push(d.andln(1)); + for (var o = n.length - 1; o >= 0; o--) + n[o] === 0 ? (s = s.diffAdd(r, this), r = r.dbl()) : (r = s.diffAdd(r, this), s = s.dbl()); + return r; + }, t.prototype.mulAdd = function() { + throw new Error("Not supported on Montgomery curve"); + }, t.prototype.jumlAdd = function() { + throw new Error("Not supported on Montgomery curve"); + }, t.prototype.eq = function(u) { + return this.getX().cmp(u.getX()) === 0; + }, t.prototype.normalize = function() { + return this.x = this.x.redMul(this.z.redInvm()), this.z = this.curve.one, this; + }, t.prototype.getX = function() { + return this.normalize(), this.x.fromRed(); + }; + }, 6673: (J, e, _) => { + var O = _(953), A = _(3550), k = _(5717), b = _(4918), a = O.assert; + function t(s) { + b.call(this, "short", s), this.a = new A(s.a, 16).toRed(this.red), this.b = new A(s.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(s), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4); + } + function u(s, r, n, o) { + b.BasePoint.call(this, s, "affine"), r === null && n === null ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new A(r, 16), this.y = new A(n, 16), o && (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 = !1); + } + function d(s, r, n, o) { + b.BasePoint.call(this, s, "jacobian"), r === null && n === null && o === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new A(0)) : (this.x = new A(r, 16), this.y = new A(n, 16), this.z = new A(o, 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; + } + k(t, b), J.exports = t, t.prototype._getEndomorphism = function(s) { + if (this.zeroA && this.g && this.n && this.p.modn(3) === 1) { + var r, n; + if (s.beta) + r = new A(s.beta, 16).toRed(this.red); + else { + var o = this._getEndoRoots(this.p); + r = (r = o[0].cmp(o[1]) < 0 ? o[0] : o[1]).toRed(this.red); + } + if (s.lambda) + n = new A(s.lambda, 16); + else { + var i = this._getEndoRoots(this.n); + this.g.mul(i[0]).x.cmp(this.g.x.redMul(r)) === 0 ? n = i[0] : (n = i[1], a(this.g.mul(n).x.cmp(this.g.x.redMul(r)) === 0)); + } + return { beta: r, lambda: n, basis: s.basis ? s.basis.map(function(f) { + return { a: new A(f.a, 16), b: new A(f.b, 16) }; + }) : this._getEndoBasis(n) }; + } + }, t.prototype._getEndoRoots = function(s) { + var r = s === this.p ? this.red : A.mont(s), n = new A(2).toRed(r).redInvm(), o = n.redNeg(), i = new A(3).toRed(r).redNeg().redSqrt().redMul(n); + return [o.redAdd(i).fromRed(), o.redSub(i).fromRed()]; + }, t.prototype._getEndoBasis = function(s) { + for (var r, n, o, i, f, c, h, p, m, M = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), l = s, N = this.n.clone(), j = new A(1), R = new A(0), I = new A(0), x = new A(1), P = 0; l.cmpn(0) !== 0; ) { + var w = N.div(l); + p = N.sub(w.mul(l)), m = I.sub(w.mul(j)); + var g = x.sub(w.mul(R)); + if (!o && p.cmp(M) < 0) + r = h.neg(), n = j, o = p.neg(), i = m; + else if (o && ++P == 2) + break; + h = p, N = l, l = p, I = j, j = m, x = R, R = g; + } + f = p.neg(), c = m; + var E = o.sqr().add(i.sqr()); + return f.sqr().add(c.sqr()).cmp(E) >= 0 && (f = r, c = n), o.negative && (o = o.neg(), i = i.neg()), f.negative && (f = f.neg(), c = c.neg()), [{ a: o, b: i }, { a: f, b: c }]; + }, t.prototype._endoSplit = function(s) { + var r = this.endo.basis, n = r[0], o = r[1], i = o.b.mul(s).divRound(this.n), f = n.b.neg().mul(s).divRound(this.n), c = i.mul(n.a), h = f.mul(o.a), p = i.mul(n.b), m = f.mul(o.b); + return { k1: s.sub(c).sub(h), k2: p.add(m).neg() }; + }, t.prototype.pointFromX = function(s, r) { + (s = new A(s, 16)).red || (s = s.toRed(this.red)); + var n = s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b), o = n.redSqrt(); + if (o.redSqr().redSub(n).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var i = o.fromRed().isOdd(); + return (r && !i || !r && i) && (o = o.redNeg()), this.point(s, o); + }, t.prototype.validate = function(s) { + if (s.inf) + return !0; + var r = s.x, n = s.y, o = this.a.redMul(r), i = r.redSqr().redMul(r).redIAdd(o).redIAdd(this.b); + return n.redSqr().redISub(i).cmpn(0) === 0; + }, t.prototype._endoWnafMulAdd = function(s, r, n) { + for (var o = this._endoWnafT1, i = this._endoWnafT2, f = 0; f < s.length; f++) { + var c = this._endoSplit(r[f]), h = s[f], p = h._getBeta(); + c.k1.negative && (c.k1.ineg(), h = h.neg(!0)), c.k2.negative && (c.k2.ineg(), p = p.neg(!0)), o[2 * f] = h, o[2 * f + 1] = p, i[2 * f] = c.k1, i[2 * f + 1] = c.k2; + } + for (var m = this._wnafMulAdd(1, o, i, 2 * f, n), M = 0; M < 2 * f; M++) + o[M] = null, i[M] = null; + return m; + }, k(u, b.BasePoint), t.prototype.point = function(s, r, n) { + return new u(this, s, r, n); + }, t.prototype.pointFromJSON = function(s, r) { + return u.fromJSON(this, s, r); + }, u.prototype._getBeta = function() { + if (this.curve.endo) { + var s = this.precomputed; + if (s && s.beta) + return s.beta; + var r = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y); + if (s) { + var n = this.curve, o = function(i) { + return n.point(i.x.redMul(n.endo.beta), i.y); + }; + s.beta = r, r.precomputed = { beta: null, naf: s.naf && { wnd: s.naf.wnd, points: s.naf.points.map(o) }, doubles: s.doubles && { step: s.doubles.step, points: s.doubles.points.map(o) } }; + } + return r; + } + }, u.prototype.toJSON = function() { + 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]; + }, u.fromJSON = function(s, r, n) { + typeof r == "string" && (r = JSON.parse(r)); + var o = s.point(r[0], r[1], n); + if (!r[2]) + return o; + function i(c) { + return s.point(c[0], c[1], n); + } + var f = r[2]; + return o.precomputed = { beta: null, doubles: f.doubles && { step: f.doubles.step, points: [o].concat(f.doubles.points.map(i)) }, naf: f.naf && { wnd: f.naf.wnd, points: [o].concat(f.naf.points.map(i)) } }, o; + }, u.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, u.prototype.isInfinity = function() { + return this.inf; + }, u.prototype.add = function(s) { + if (this.inf) + return s; + if (s.inf) + return this; + if (this.eq(s)) + return this.dbl(); + if (this.neg().eq(s)) + return this.curve.point(null, null); + if (this.x.cmp(s.x) === 0) + return this.curve.point(null, null); + var r = this.y.redSub(s.y); + r.cmpn(0) !== 0 && (r = r.redMul(this.x.redSub(s.x).redInvm())); + var n = r.redSqr().redISub(this.x).redISub(s.x), o = r.redMul(this.x.redSub(n)).redISub(this.y); + return this.curve.point(n, o); + }, u.prototype.dbl = function() { + if (this.inf) + return this; + var s = this.y.redAdd(this.y); + if (s.cmpn(0) === 0) + return this.curve.point(null, null); + var r = this.curve.a, n = this.x.redSqr(), o = s.redInvm(), i = n.redAdd(n).redIAdd(n).redIAdd(r).redMul(o), f = i.redSqr().redISub(this.x.redAdd(this.x)), c = i.redMul(this.x.redSub(f)).redISub(this.y); + return this.curve.point(f, c); + }, u.prototype.getX = function() { + return this.x.fromRed(); + }, u.prototype.getY = function() { + return this.y.fromRed(); + }, u.prototype.mul = function(s) { + return s = new A(s, 16), this.isInfinity() ? this : this._hasDoubles(s) ? this.curve._fixedNafMul(this, s) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [s]) : this.curve._wnafMul(this, s); + }, u.prototype.mulAdd = function(s, r, n) { + var o = [this, r], i = [s, n]; + return this.curve.endo ? this.curve._endoWnafMulAdd(o, i) : this.curve._wnafMulAdd(1, o, i, 2); + }, u.prototype.jmulAdd = function(s, r, n) { + var o = [this, r], i = [s, n]; + return this.curve.endo ? this.curve._endoWnafMulAdd(o, i, !0) : this.curve._wnafMulAdd(1, o, i, 2, !0); + }, u.prototype.eq = function(s) { + return this === s || this.inf === s.inf && (this.inf || this.x.cmp(s.x) === 0 && this.y.cmp(s.y) === 0); + }, u.prototype.neg = function(s) { + if (this.inf) + return this; + var r = this.curve.point(this.x, this.y.redNeg()); + if (s && this.precomputed) { + var n = this.precomputed, o = function(i) { + return i.neg(); + }; + r.precomputed = { naf: n.naf && { wnd: n.naf.wnd, points: n.naf.points.map(o) }, doubles: n.doubles && { step: n.doubles.step, points: n.doubles.points.map(o) } }; + } + return r; + }, u.prototype.toJ = function() { + return this.inf ? this.curve.jpoint(null, null, null) : this.curve.jpoint(this.x, this.y, this.curve.one); + }, k(d, b.BasePoint), t.prototype.jpoint = function(s, r, n) { + return new d(this, s, r, n); + }, d.prototype.toP = function() { + if (this.isInfinity()) + return this.curve.point(null, null); + var s = this.z.redInvm(), r = s.redSqr(), n = this.x.redMul(r), o = this.y.redMul(r).redMul(s); + return this.curve.point(n, o); + }, d.prototype.neg = function() { + return this.curve.jpoint(this.x, this.y.redNeg(), this.z); + }, d.prototype.add = function(s) { + if (this.isInfinity()) + return s; + if (s.isInfinity()) + return this; + var r = s.z.redSqr(), n = this.z.redSqr(), o = this.x.redMul(r), i = s.x.redMul(n), f = this.y.redMul(r.redMul(s.z)), c = s.y.redMul(n.redMul(this.z)), h = o.redSub(i), p = f.redSub(c); + if (h.cmpn(0) === 0) + return p.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); + var m = h.redSqr(), M = m.redMul(h), l = o.redMul(m), N = p.redSqr().redIAdd(M).redISub(l).redISub(l), j = p.redMul(l.redISub(N)).redISub(f.redMul(M)), R = this.z.redMul(s.z).redMul(h); + return this.curve.jpoint(N, j, R); + }, d.prototype.mixedAdd = function(s) { + if (this.isInfinity()) + return s.toJ(); + if (s.isInfinity()) + return this; + var r = this.z.redSqr(), n = this.x, o = s.x.redMul(r), i = this.y, f = s.y.redMul(r).redMul(this.z), c = n.redSub(o), h = i.redSub(f); + if (c.cmpn(0) === 0) + return h.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); + var p = c.redSqr(), m = p.redMul(c), M = n.redMul(p), l = h.redSqr().redIAdd(m).redISub(M).redISub(M), N = h.redMul(M.redISub(l)).redISub(i.redMul(m)), j = this.z.redMul(c); + return this.curve.jpoint(l, N, j); + }, d.prototype.dblp = function(s) { + if (s === 0) + return this; + if (this.isInfinity()) + return this; + if (!s) + return this.dbl(); + var r; + if (this.curve.zeroA || this.curve.threeA) { + var n = this; + for (r = 0; r < s; r++) + n = n.dbl(); + return n; + } + var o = this.curve.a, i = this.curve.tinv, f = this.x, c = this.y, h = this.z, p = h.redSqr().redSqr(), m = c.redAdd(c); + for (r = 0; r < s; r++) { + var M = f.redSqr(), l = m.redSqr(), N = l.redSqr(), j = M.redAdd(M).redIAdd(M).redIAdd(o.redMul(p)), R = f.redMul(l), I = j.redSqr().redISub(R.redAdd(R)), x = R.redISub(I), P = j.redMul(x); + P = P.redIAdd(P).redISub(N); + var w = m.redMul(h); + r + 1 < s && (p = p.redMul(N)), f = I, h = w, m = P; + } + return this.curve.jpoint(f, m.redMul(i), h); + }, d.prototype.dbl = function() { + return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl(); + }, d.prototype._zeroDbl = function() { + var s, r, n; + if (this.zOne) { + var o = this.x.redSqr(), i = this.y.redSqr(), f = i.redSqr(), c = this.x.redAdd(i).redSqr().redISub(o).redISub(f); + c = c.redIAdd(c); + var h = o.redAdd(o).redIAdd(o), p = h.redSqr().redISub(c).redISub(c), m = f.redIAdd(f); + m = (m = m.redIAdd(m)).redIAdd(m), s = p, r = h.redMul(c.redISub(p)).redISub(m), n = this.y.redAdd(this.y); + } else { + var M = this.x.redSqr(), l = this.y.redSqr(), N = l.redSqr(), j = this.x.redAdd(l).redSqr().redISub(M).redISub(N); + j = j.redIAdd(j); + var R = M.redAdd(M).redIAdd(M), I = R.redSqr(), x = N.redIAdd(N); + x = (x = x.redIAdd(x)).redIAdd(x), s = I.redISub(j).redISub(j), r = R.redMul(j.redISub(s)).redISub(x), n = (n = this.y.redMul(this.z)).redIAdd(n); + } + return this.curve.jpoint(s, r, n); + }, d.prototype._threeDbl = function() { + var s, r, n; + if (this.zOne) { + var o = this.x.redSqr(), i = this.y.redSqr(), f = i.redSqr(), c = this.x.redAdd(i).redSqr().redISub(o).redISub(f); + c = c.redIAdd(c); + var h = o.redAdd(o).redIAdd(o).redIAdd(this.curve.a), p = h.redSqr().redISub(c).redISub(c); + s = p; + var m = f.redIAdd(f); + m = (m = m.redIAdd(m)).redIAdd(m), r = h.redMul(c.redISub(p)).redISub(m), n = this.y.redAdd(this.y); + } else { + var M = this.z.redSqr(), l = this.y.redSqr(), N = this.x.redMul(l), j = this.x.redSub(M).redMul(this.x.redAdd(M)); + j = j.redAdd(j).redIAdd(j); + var R = N.redIAdd(N), I = (R = R.redIAdd(R)).redAdd(R); + s = j.redSqr().redISub(I), n = this.y.redAdd(this.z).redSqr().redISub(l).redISub(M); + var x = l.redSqr(); + x = (x = (x = x.redIAdd(x)).redIAdd(x)).redIAdd(x), r = j.redMul(R.redISub(s)).redISub(x); + } + return this.curve.jpoint(s, r, n); + }, d.prototype._dbl = function() { + var s = this.curve.a, r = this.x, n = this.y, o = this.z, i = o.redSqr().redSqr(), f = r.redSqr(), c = n.redSqr(), h = f.redAdd(f).redIAdd(f).redIAdd(s.redMul(i)), p = r.redAdd(r), m = (p = p.redIAdd(p)).redMul(c), M = h.redSqr().redISub(m.redAdd(m)), l = m.redISub(M), N = c.redSqr(); + N = (N = (N = N.redIAdd(N)).redIAdd(N)).redIAdd(N); + var j = h.redMul(l).redISub(N), R = n.redAdd(n).redMul(o); + return this.curve.jpoint(M, j, R); + }, d.prototype.trpl = function() { + if (!this.curve.zeroA) + return this.dbl().add(this); + var s = this.x.redSqr(), r = this.y.redSqr(), n = this.z.redSqr(), o = r.redSqr(), i = s.redAdd(s).redIAdd(s), f = i.redSqr(), c = this.x.redAdd(r).redSqr().redISub(s).redISub(o), h = (c = (c = (c = c.redIAdd(c)).redAdd(c).redIAdd(c)).redISub(f)).redSqr(), p = o.redIAdd(o); + p = (p = (p = p.redIAdd(p)).redIAdd(p)).redIAdd(p); + var m = i.redIAdd(c).redSqr().redISub(f).redISub(h).redISub(p), M = r.redMul(m); + M = (M = M.redIAdd(M)).redIAdd(M); + var l = this.x.redMul(h).redISub(M); + l = (l = l.redIAdd(l)).redIAdd(l); + var N = this.y.redMul(m.redMul(p.redISub(m)).redISub(c.redMul(h))); + N = (N = (N = N.redIAdd(N)).redIAdd(N)).redIAdd(N); + var j = this.z.redAdd(c).redSqr().redISub(n).redISub(h); + return this.curve.jpoint(l, N, j); + }, d.prototype.mul = function(s, r) { + return s = new A(s, r), this.curve._wnafMul(this, s); + }, d.prototype.eq = function(s) { + if (s.type === "affine") + return this.eq(s.toJ()); + if (this === s) + return !0; + var r = this.z.redSqr(), n = s.z.redSqr(); + if (this.x.redMul(n).redISub(s.x.redMul(r)).cmpn(0) !== 0) + return !1; + var o = r.redMul(this.z), i = n.redMul(s.z); + return this.y.redMul(i).redISub(s.y.redMul(o)).cmpn(0) === 0; + }, d.prototype.eqXToP = function(s) { + var r = this.z.redSqr(), n = s.toRed(this.curve.red).redMul(r); + if (this.x.cmp(n) === 0) + return !0; + for (var o = s.clone(), i = this.curve.redN.redMul(r); ; ) { + if (o.iadd(this.curve.n), o.cmp(this.curve.p) >= 0) + return !1; + if (n.redIAdd(i), this.x.cmp(n) === 0) + return !0; + } + }, d.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, d.prototype.isInfinity = function() { + return this.z.cmpn(0) === 0; + }; + }, 5427: (J, e, _) => { + var O, A = e, k = _(3715), b = _(8254), a = _(953).assert; + function t(d) { + d.type === "short" ? this.curve = new b.short(d) : d.type === "edwards" ? this.curve = new b.edwards(d) : this.curve = new b.mont(d), this.g = this.curve.g, this.n = this.curve.n, this.hash = d.hash, a(this.g.validate(), "Invalid curve"), a(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); + } + function u(d, s) { + Object.defineProperty(A, d, { configurable: !0, enumerable: !0, get: function() { + var r = new t(s); + return Object.defineProperty(A, d, { configurable: !0, enumerable: !0, value: r }), r; + } }); + } + A.PresetCurve = t, u("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: k.sha256, gRed: !1, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), u("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: k.sha256, gRed: !1, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), u("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: k.sha256, gRed: !1, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), u("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: k.sha384, gRed: !1, 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"] }), u("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: k.sha512, gRed: !1, 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"] }), u("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: k.sha256, gRed: !1, g: ["9"] }), u("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: k.sha256, gRed: !1, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] }); + try { + O = _(1037); + } catch { + O = void 0; + } + u("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: k.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }], gRed: !1, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", O] }); + }, 7954: (J, e, _) => { + var O = _(3550), A = _(2156), k = _(953), b = _(5427), a = _(9931), t = k.assert, u = _(1251), d = _(611); + function s(r) { + if (!(this instanceof s)) + return new s(r); + typeof r == "string" && (t(Object.prototype.hasOwnProperty.call(b, r), "Unknown curve " + r), r = b[r]), r instanceof b.PresetCurve && (r = { curve: r }), this.curve = r.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = r.curve.g, this.g.precompute(r.curve.n.bitLength() + 1), this.hash = r.hash || r.curve.hash; + } + J.exports = s, s.prototype.keyPair = function(r) { + return new u(this, r); + }, s.prototype.keyFromPrivate = function(r, n) { + return u.fromPrivate(this, r, n); + }, s.prototype.keyFromPublic = function(r, n) { + return u.fromPublic(this, r, n); + }, s.prototype.genKeyPair = function(r) { + r || (r = {}); + for (var n = new A({ hash: this.hash, pers: r.pers, persEnc: r.persEnc || "utf8", entropy: r.entropy || a(this.hash.hmacStrength), entropyEnc: r.entropy && r.entropyEnc || "utf8", nonce: this.n.toArray() }), o = this.n.byteLength(), i = this.n.sub(new O(2)); ; ) { + var f = new O(n.generate(o)); + if (!(f.cmp(i) > 0)) + return f.iaddn(1), this.keyFromPrivate(f); + } + }, s.prototype._truncateToN = function(r, n) { + var o = 8 * r.byteLength() - this.n.bitLength(); + return o > 0 && (r = r.ushrn(o)), !n && r.cmp(this.n) >= 0 ? r.sub(this.n) : r; + }, s.prototype.sign = function(r, n, o, i) { + typeof o == "object" && (i = o, o = null), i || (i = {}), n = this.keyFromPrivate(n, o), r = this._truncateToN(new O(r, 16)); + for (var f = this.n.byteLength(), c = n.getPrivate().toArray("be", f), h = r.toArray("be", f), p = new A({ hash: this.hash, entropy: c, nonce: h, pers: i.pers, persEnc: i.persEnc || "utf8" }), m = this.n.sub(new O(1)), M = 0; ; M++) { + var l = i.k ? i.k(M) : new O(p.generate(this.n.byteLength())); + if (!((l = this._truncateToN(l, !0)).cmpn(1) <= 0 || l.cmp(m) >= 0)) { + var N = this.g.mul(l); + if (!N.isInfinity()) { + var j = N.getX(), R = j.umod(this.n); + if (R.cmpn(0) !== 0) { + var I = l.invm(this.n).mul(R.mul(n.getPrivate()).iadd(r)); + if ((I = I.umod(this.n)).cmpn(0) !== 0) { + var x = (N.getY().isOdd() ? 1 : 0) | (j.cmp(R) !== 0 ? 2 : 0); + return i.canonical && I.cmp(this.nh) > 0 && (I = this.n.sub(I), x ^= 1), new d({ r: R, s: I, recoveryParam: x }); + } + } + } + } + } + }, s.prototype.verify = function(r, n, o, i) { + r = this._truncateToN(new O(r, 16)), o = this.keyFromPublic(o, i); + var f = (n = new d(n, "hex")).r, c = n.s; + if (f.cmpn(1) < 0 || f.cmp(this.n) >= 0 || c.cmpn(1) < 0 || c.cmp(this.n) >= 0) + return !1; + var h, p = c.invm(this.n), m = p.mul(r).umod(this.n), M = p.mul(f).umod(this.n); + return this.curve._maxwellTrick ? !(h = this.g.jmulAdd(m, o.getPublic(), M)).isInfinity() && h.eqXToP(f) : !(h = this.g.mulAdd(m, o.getPublic(), M)).isInfinity() && h.getX().umod(this.n).cmp(f) === 0; + }, s.prototype.recoverPubKey = function(r, n, o, i) { + t((3 & o) === o, "The recovery param is more than two bits"), n = new d(n, i); + var f = this.n, c = new O(r), h = n.r, p = n.s, m = 1 & o, M = o >> 1; + if (h.cmp(this.curve.p.umod(this.curve.n)) >= 0 && M) + throw new Error("Unable to find sencond key candinate"); + h = M ? this.curve.pointFromX(h.add(this.curve.n), m) : this.curve.pointFromX(h, m); + var l = n.r.invm(f), N = f.sub(c).mul(l).umod(f), j = p.mul(l).umod(f); + return this.g.mulAdd(N, h, j); + }, s.prototype.getKeyRecoveryParam = function(r, n, o, i) { + if ((n = new d(n, i)).recoveryParam !== null) + return n.recoveryParam; + for (var f = 0; f < 4; f++) { + var c; + try { + c = this.recoverPubKey(r, n, f); + } catch { + continue; + } + if (c.eq(o)) + return f; + } + throw new Error("Unable to find valid recovery factor"); + }; + }, 1251: (J, e, _) => { + var O = _(3550), A = _(953).assert; + function k(b, a) { + this.ec = b, this.priv = null, this.pub = null, a.priv && this._importPrivate(a.priv, a.privEnc), a.pub && this._importPublic(a.pub, a.pubEnc); + } + J.exports = k, k.fromPublic = function(b, a, t) { + return a instanceof k ? a : new k(b, { pub: a, pubEnc: t }); + }, k.fromPrivate = function(b, a, t) { + return a instanceof k ? a : new k(b, { priv: a, privEnc: t }); + }, k.prototype.validate = function() { + var b = this.getPublic(); + return b.isInfinity() ? { result: !1, reason: "Invalid public key" } : b.validate() ? b.mul(this.ec.curve.n).isInfinity() ? { result: !0, reason: null } : { result: !1, reason: "Public key * N != O" } : { result: !1, reason: "Public key is not a point" }; + }, k.prototype.getPublic = function(b, a) { + return typeof b == "string" && (a = b, b = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), a ? this.pub.encode(a, b) : this.pub; + }, k.prototype.getPrivate = function(b) { + return b === "hex" ? this.priv.toString(16, 2) : this.priv; + }, k.prototype._importPrivate = function(b, a) { + this.priv = new O(b, a || 16), this.priv = this.priv.umod(this.ec.curve.n); + }, k.prototype._importPublic = function(b, a) { + if (b.x || b.y) + return this.ec.curve.type === "mont" ? A(b.x, "Need x coordinate") : this.ec.curve.type !== "short" && this.ec.curve.type !== "edwards" || A(b.x && b.y, "Need both x and y coordinate"), void (this.pub = this.ec.curve.point(b.x, b.y)); + this.pub = this.ec.curve.decodePoint(b, a); + }, k.prototype.derive = function(b) { + return b.validate() || A(b.validate(), "public point not validated"), b.mul(this.priv).getX(); + }, k.prototype.sign = function(b, a, t) { + return this.ec.sign(b, this, a, t); + }, k.prototype.verify = function(b, a) { + return this.ec.verify(b, a, this); + }, k.prototype.inspect = function() { + return ""; + }; + }, 611: (J, e, _) => { + var O = _(3550), A = _(953), k = A.assert; + function b(s, r) { + if (s instanceof b) + return s; + this._importDER(s, r) || (k(s.r && s.s, "Signature without r or s"), this.r = new O(s.r, 16), this.s = new O(s.s, 16), s.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = s.recoveryParam); + } + function a() { + this.place = 0; + } + function t(s, r) { + var n = s[r.place++]; + if (!(128 & n)) + return n; + var o = 15 & n; + if (o === 0 || o > 4) + return !1; + for (var i = 0, f = 0, c = r.place; f < o; f++, c++) + i <<= 8, i |= s[c], i >>>= 0; + return !(i <= 127) && (r.place = c, i); + } + function u(s) { + for (var r = 0, n = s.length - 1; !s[r] && !(128 & s[r + 1]) && r < n; ) + r++; + return r === 0 ? s : s.slice(r); + } + function d(s, r) { + if (r < 128) + s.push(r); + else { + var n = 1 + (Math.log(r) / Math.LN2 >>> 3); + for (s.push(128 | n); --n; ) + s.push(r >>> (n << 3) & 255); + s.push(r); + } + } + J.exports = b, b.prototype._importDER = function(s, r) { + s = A.toArray(s, r); + var n = new a(); + if (s[n.place++] !== 48) + return !1; + var o = t(s, n); + if (o === !1 || o + n.place !== s.length || s[n.place++] !== 2) + return !1; + var i = t(s, n); + if (i === !1) + return !1; + var f = s.slice(n.place, i + n.place); + if (n.place += i, s[n.place++] !== 2) + return !1; + var c = t(s, n); + if (c === !1 || s.length !== c + n.place) + return !1; + var h = s.slice(n.place, c + n.place); + if (f[0] === 0) { + if (!(128 & f[1])) + return !1; + f = f.slice(1); + } + if (h[0] === 0) { + if (!(128 & h[1])) + return !1; + h = h.slice(1); + } + return this.r = new O(f), this.s = new O(h), this.recoveryParam = null, !0; + }, b.prototype.toDER = function(s) { + var r = this.r.toArray(), n = this.s.toArray(); + for (128 & r[0] && (r = [0].concat(r)), 128 & n[0] && (n = [0].concat(n)), r = u(r), n = u(n); !(n[0] || 128 & n[1]); ) + n = n.slice(1); + var o = [2]; + d(o, r.length), (o = o.concat(r)).push(2), d(o, n.length); + var i = o.concat(n), f = [48]; + return d(f, i.length), f = f.concat(i), A.encode(f, s); + }; + }, 5980: (J, e, _) => { + var O = _(3715), A = _(5427), k = _(953), b = k.assert, a = k.parseBytes, t = _(9087), u = _(3622); + function d(s) { + if (b(s === "ed25519", "only tested with ed25519 so far"), !(this instanceof d)) + return new d(s); + s = A[s].curve, this.curve = s, this.g = s.g, this.g.precompute(s.n.bitLength() + 1), this.pointClass = s.point().constructor, this.encodingLength = Math.ceil(s.n.bitLength() / 8), this.hash = O.sha512; + } + J.exports = d, d.prototype.sign = function(s, r) { + s = a(s); + var n = this.keyFromSecret(r), o = this.hashInt(n.messagePrefix(), s), i = this.g.mul(o), f = this.encodePoint(i), c = this.hashInt(f, n.pubBytes(), s).mul(n.priv()), h = o.add(c).umod(this.curve.n); + return this.makeSignature({ R: i, S: h, Rencoded: f }); + }, d.prototype.verify = function(s, r, n) { + s = a(s), r = this.makeSignature(r); + var o = this.keyFromPublic(n), i = this.hashInt(r.Rencoded(), o.pubBytes(), s), f = this.g.mul(r.S()); + return r.R().add(o.pub().mul(i)).eq(f); + }, d.prototype.hashInt = function() { + for (var s = this.hash(), r = 0; r < arguments.length; r++) + s.update(arguments[r]); + return k.intFromLE(s.digest()).umod(this.curve.n); + }, d.prototype.keyFromPublic = function(s) { + return t.fromPublic(this, s); + }, d.prototype.keyFromSecret = function(s) { + return t.fromSecret(this, s); + }, d.prototype.makeSignature = function(s) { + return s instanceof u ? s : new u(this, s); + }, d.prototype.encodePoint = function(s) { + var r = s.getY().toArray("le", this.encodingLength); + return r[this.encodingLength - 1] |= s.getX().isOdd() ? 128 : 0, r; + }, d.prototype.decodePoint = function(s) { + var r = (s = k.parseBytes(s)).length - 1, n = s.slice(0, r).concat(-129 & s[r]), o = (128 & s[r]) != 0, i = k.intFromLE(n); + return this.curve.pointFromY(i, o); + }, d.prototype.encodeInt = function(s) { + return s.toArray("le", this.encodingLength); + }, d.prototype.decodeInt = function(s) { + return k.intFromLE(s); + }, d.prototype.isPoint = function(s) { + return s instanceof this.pointClass; + }; + }, 9087: (J, e, _) => { + var O = _(953), A = O.assert, k = O.parseBytes, b = O.cachedProperty; + function a(t, u) { + this.eddsa = t, this._secret = k(u.secret), t.isPoint(u.pub) ? this._pub = u.pub : this._pubBytes = k(u.pub); + } + a.fromPublic = function(t, u) { + return u instanceof a ? u : new a(t, { pub: u }); + }, a.fromSecret = function(t, u) { + return u instanceof a ? u : new a(t, { secret: u }); + }, a.prototype.secret = function() { + return this._secret; + }, b(a, "pubBytes", function() { + return this.eddsa.encodePoint(this.pub()); + }), b(a, "pub", function() { + return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv()); + }), b(a, "privBytes", function() { + var t = this.eddsa, u = this.hash(), d = t.encodingLength - 1, s = u.slice(0, t.encodingLength); + return s[0] &= 248, s[d] &= 127, s[d] |= 64, s; + }), b(a, "priv", function() { + return this.eddsa.decodeInt(this.privBytes()); + }), b(a, "hash", function() { + return this.eddsa.hash().update(this.secret()).digest(); + }), b(a, "messagePrefix", function() { + return this.hash().slice(this.eddsa.encodingLength); + }), a.prototype.sign = function(t) { + return A(this._secret, "KeyPair can only verify"), this.eddsa.sign(t, this); + }, a.prototype.verify = function(t, u) { + return this.eddsa.verify(t, u, this); + }, a.prototype.getSecret = function(t) { + return A(this._secret, "KeyPair is public only"), O.encode(this.secret(), t); + }, a.prototype.getPublic = function(t) { + return O.encode(this.pubBytes(), t); + }, J.exports = a; + }, 3622: (J, e, _) => { + var O = _(3550), A = _(953), k = A.assert, b = A.cachedProperty, a = A.parseBytes; + function t(u, d) { + this.eddsa = u, typeof d != "object" && (d = a(d)), Array.isArray(d) && (d = { R: d.slice(0, u.encodingLength), S: d.slice(u.encodingLength) }), k(d.R && d.S, "Signature without R or S"), u.isPoint(d.R) && (this._R = d.R), d.S instanceof O && (this._S = d.S), this._Rencoded = Array.isArray(d.R) ? d.R : d.Rencoded, this._Sencoded = Array.isArray(d.S) ? d.S : d.Sencoded; + } + b(t, "S", function() { + return this.eddsa.decodeInt(this.Sencoded()); + }), b(t, "R", function() { + return this.eddsa.decodePoint(this.Rencoded()); + }), b(t, "Rencoded", function() { + return this.eddsa.encodePoint(this.R()); + }), b(t, "Sencoded", function() { + return this.eddsa.encodeInt(this.S()); + }), t.prototype.toBytes = function() { + return this.Rencoded().concat(this.Sencoded()); + }, t.prototype.toHex = function() { + return A.encode(this.toBytes(), "hex").toUpperCase(); + }, J.exports = t; + }, 1037: (J) => { + J.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"], ["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891", "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"], ["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151", "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"], ["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", "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"], ["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", "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", "9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"], ["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"]] } }; + }, 953: (J, e, _) => { + var O = e, A = _(3550), k = _(9746), b = _(4504); + O.assert = k, O.toArray = b.toArray, O.zero2 = b.zero2, O.toHex = b.toHex, O.encode = b.encode, O.getNAF = function(a, t, u) { + var d = new Array(Math.max(a.bitLength(), u) + 1); + d.fill(0); + for (var s = 1 << t + 1, r = a.clone(), n = 0; n < d.length; n++) { + var o, i = r.andln(s - 1); + r.isOdd() ? (o = i > (s >> 1) - 1 ? (s >> 1) - i : i, r.isubn(o)) : o = 0, d[n] = o, r.iushrn(1); + } + return d; + }, O.getJSF = function(a, t) { + var u = [[], []]; + a = a.clone(), t = t.clone(); + for (var d, s = 0, r = 0; a.cmpn(-s) > 0 || t.cmpn(-r) > 0; ) { + var n, o, i = a.andln(3) + s & 3, f = t.andln(3) + r & 3; + i === 3 && (i = -1), f === 3 && (f = -1), n = 1 & i ? (d = a.andln(7) + s & 7) != 3 && d !== 5 || f !== 2 ? i : -i : 0, u[0].push(n), o = 1 & f ? (d = t.andln(7) + r & 7) != 3 && d !== 5 || i !== 2 ? f : -f : 0, u[1].push(o), 2 * s === n + 1 && (s = 1 - s), 2 * r === o + 1 && (r = 1 - r), a.iushrn(1), t.iushrn(1); + } + return u; + }, O.cachedProperty = function(a, t, u) { + var d = "_" + t; + a.prototype[t] = function() { + return this[d] !== void 0 ? this[d] : this[d] = u.call(this); + }; + }, O.parseBytes = function(a) { + return typeof a == "string" ? O.toArray(a, "hex") : a; + }, O.intFromLE = function(a) { + return new A(a, "hex", "le"); + }; + }, 8091: (J) => { + function e(_, O) { + if (_ == null) + throw new TypeError("Cannot convert first argument to object"); + for (var A = Object(_), k = 1; k < arguments.length; k++) { + var b = arguments[k]; + if (b != null) + for (var a = Object.keys(Object(b)), t = 0, u = a.length; t < u; t++) { + var d = a[t], s = Object.getOwnPropertyDescriptor(b, d); + s !== void 0 && s.enumerable && (A[d] = b[d]); + } + } + return A; + } + J.exports = { assign: e, polyfill: function() { + Object.assign || Object.defineProperty(Object, "assign", { enumerable: !1, configurable: !0, writable: !0, value: e }); + } }; + }, 7187: (J, e, _) => { + var O, A = _(5108), k = typeof Reflect == "object" ? Reflect : null, b = k && typeof k.apply == "function" ? k.apply : function(p, m, M) { + return Function.prototype.apply.call(p, m, M); + }; + O = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(p) { + return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p)); + } : function(p) { + return Object.getOwnPropertyNames(p); + }; + var a = Number.isNaN || function(p) { + return p != p; + }; + function t() { + t.init.call(this); + } + J.exports = t, J.exports.once = function(p, m) { + return new Promise(function(M, l) { + function N(R) { + p.removeListener(m, j), l(R); + } + function j() { + typeof p.removeListener == "function" && p.removeListener("error", N), M([].slice.call(arguments)); + } + h(p, m, j, { once: !0 }), m !== "error" && function(R, I, x) { + typeof R.on == "function" && h(R, "error", I, { once: !0 }); + }(p, N); + }); + }, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0; + var u = 10; + function d(p) { + if (typeof p != "function") + throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof p); + } + function s(p) { + return p._maxListeners === void 0 ? t.defaultMaxListeners : p._maxListeners; + } + function r(p, m, M, l) { + var N, j, R, I; + if (d(M), (j = p._events) === void 0 ? (j = p._events = /* @__PURE__ */ Object.create(null), p._eventsCount = 0) : (j.newListener !== void 0 && (p.emit("newListener", m, M.listener ? M.listener : M), j = p._events), R = j[m]), R === void 0) + R = j[m] = M, ++p._eventsCount; + else if (typeof R == "function" ? R = j[m] = l ? [M, R] : [R, M] : l ? R.unshift(M) : R.push(M), (N = s(p)) > 0 && R.length > N && !R.warned) { + R.warned = !0; + var x = new Error("Possible EventEmitter memory leak detected. " + R.length + " " + String(m) + " listeners added. Use emitter.setMaxListeners() to increase limit"); + x.name = "MaxListenersExceededWarning", x.emitter = p, x.type = m, x.count = R.length, I = x, A && A.warn && A.warn(I); + } + return p; + } + function n() { + if (!this.fired) + return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); + } + function o(p, m, M) { + var l = { fired: !1, wrapFn: void 0, target: p, type: m, listener: M }, N = n.bind(l); + return N.listener = M, l.wrapFn = N, N; + } + function i(p, m, M) { + var l = p._events; + if (l === void 0) + return []; + var N = l[m]; + return N === void 0 ? [] : typeof N == "function" ? M ? [N.listener || N] : [N] : M ? function(j) { + for (var R = new Array(j.length), I = 0; I < R.length; ++I) + R[I] = j[I].listener || j[I]; + return R; + }(N) : c(N, N.length); + } + function f(p) { + var m = this._events; + if (m !== void 0) { + var M = m[p]; + if (typeof M == "function") + return 1; + if (M !== void 0) + return M.length; + } + return 0; + } + function c(p, m) { + for (var M = new Array(m), l = 0; l < m; ++l) + M[l] = p[l]; + return M; + } + function h(p, m, M, l) { + if (typeof p.on == "function") + l.once ? p.once(m, M) : p.on(m, M); + else { + if (typeof p.addEventListener != "function") + throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof p); + p.addEventListener(m, function N(j) { + l.once && p.removeEventListener(m, N), M(j); + }); + } + } + Object.defineProperty(t, "defaultMaxListeners", { enumerable: !0, get: function() { + return u; + }, set: function(p) { + if (typeof p != "number" || p < 0 || a(p)) + throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + p + "."); + u = p; + } }), t.init = function() { + this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; + }, t.prototype.setMaxListeners = function(p) { + if (typeof p != "number" || p < 0 || a(p)) + throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + p + "."); + return this._maxListeners = p, this; + }, t.prototype.getMaxListeners = function() { + return s(this); + }, t.prototype.emit = function(p) { + for (var m = [], M = 1; M < arguments.length; M++) + m.push(arguments[M]); + var l = p === "error", N = this._events; + if (N !== void 0) + l = l && N.error === void 0; + else if (!l) + return !1; + if (l) { + var j; + if (m.length > 0 && (j = m[0]), j instanceof Error) + throw j; + var R = new Error("Unhandled error." + (j ? " (" + j.message + ")" : "")); + throw R.context = j, R; + } + var I = N[p]; + if (I === void 0) + return !1; + if (typeof I == "function") + b(I, this, m); + else { + var x = I.length, P = c(I, x); + for (M = 0; M < x; ++M) + b(P[M], this, m); + } + return !0; + }, t.prototype.addListener = function(p, m) { + return r(this, p, m, !1); + }, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(p, m) { + return r(this, p, m, !0); + }, t.prototype.once = function(p, m) { + return d(m), this.on(p, o(this, p, m)), this; + }, t.prototype.prependOnceListener = function(p, m) { + return d(m), this.prependListener(p, o(this, p, m)), this; + }, t.prototype.removeListener = function(p, m) { + var M, l, N, j, R; + if (d(m), (l = this._events) === void 0) + return this; + if ((M = l[p]) === void 0) + return this; + if (M === m || M.listener === m) + --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[p], l.removeListener && this.emit("removeListener", p, M.listener || m)); + else if (typeof M != "function") { + for (N = -1, j = M.length - 1; j >= 0; j--) + if (M[j] === m || M[j].listener === m) { + R = M[j].listener, N = j; + break; + } + if (N < 0) + return this; + N === 0 ? M.shift() : function(I, x) { + for (; x + 1 < I.length; x++) + I[x] = I[x + 1]; + I.pop(); + }(M, N), M.length === 1 && (l[p] = M[0]), l.removeListener !== void 0 && this.emit("removeListener", p, R || m); + } + return this; + }, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(p) { + var m, M, l; + if ((M = this._events) === void 0) + return this; + if (M.removeListener === void 0) + return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : M[p] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete M[p]), this; + if (arguments.length === 0) { + var N, j = Object.keys(M); + for (l = 0; l < j.length; ++l) + (N = j[l]) !== "removeListener" && this.removeAllListeners(N); + return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this; + } + if (typeof (m = M[p]) == "function") + this.removeListener(p, m); + else if (m !== void 0) + for (l = m.length - 1; l >= 0; l--) + this.removeListener(p, m[l]); + return this; + }, t.prototype.listeners = function(p) { + return i(this, p, !0); + }, t.prototype.rawListeners = function(p) { + return i(this, p, !1); + }, t.listenerCount = function(p, m) { + return typeof p.listenerCount == "function" ? p.listenerCount(m) : f.call(p, m); + }, t.prototype.listenerCount = f, t.prototype.eventNames = function() { + return this._eventsCount > 0 ? O(this._events) : []; + }; + }, 4029: (J, e, _) => { + var O = _(5320), A = Object.prototype.toString, k = Object.prototype.hasOwnProperty; + J.exports = function(b, a, t) { + if (!O(a)) + throw new TypeError("iterator must be a function"); + var u; + arguments.length >= 3 && (u = t), A.call(b) === "[object Array]" ? function(d, s, r) { + for (var n = 0, o = d.length; n < o; n++) + k.call(d, n) && (r == null ? s(d[n], n, d) : s.call(r, d[n], n, d)); + }(b, a, u) : typeof b == "string" ? function(d, s, r) { + for (var n = 0, o = d.length; n < o; n++) + r == null ? s(d.charAt(n), n, d) : s.call(r, d.charAt(n), n, d); + }(b, a, u) : function(d, s, r) { + for (var n in d) + k.call(d, n) && (r == null ? s(d[n], n, d) : s.call(r, d[n], n, d)); + }(b, a, u); + }; + }, 7648: (J) => { + var e = Array.prototype.slice, _ = Object.prototype.toString; + J.exports = function(O) { + var A = this; + if (typeof A != "function" || _.call(A) !== "[object Function]") + throw new TypeError("Function.prototype.bind called on incompatible " + A); + for (var k, b = e.call(arguments, 1), a = Math.max(0, A.length - b.length), t = [], u = 0; u < a; u++) + t.push("$" + u); + if (k = Function("binder", "return function (" + t.join(",") + "){ return binder.apply(this,arguments); }")(function() { + if (this instanceof k) { + var s = A.apply(this, b.concat(e.call(arguments))); + return Object(s) === s ? s : this; + } + return A.apply(O, b.concat(e.call(arguments))); + }), A.prototype) { + var d = function() { + }; + d.prototype = A.prototype, k.prototype = new d(), d.prototype = null; + } + return k; + }; + }, 8612: (J, e, _) => { + var O = _(7648); + J.exports = Function.prototype.bind || O; + }, 210: (J, e, _) => { + var O, A = SyntaxError, k = Function, b = TypeError, a = function(w) { + try { + return k('"use strict"; return (' + w + ").constructor;")(); + } catch { + } + }, t = Object.getOwnPropertyDescriptor; + if (t) + try { + t({}, ""); + } catch { + t = null; + } + var u = function() { + throw new b(); + }, d = t ? function() { + try { + return u; + } catch { + try { + return t(arguments, "callee").get; + } catch { + return u; + } + } + }() : u, s = _(1405)(), r = Object.getPrototypeOf || function(w) { + return w.__proto__; + }, n = {}, o = typeof Uint8Array > "u" ? O : r(Uint8Array), i = { "%AggregateError%": typeof AggregateError > "u" ? O : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? O : ArrayBuffer, "%ArrayIteratorPrototype%": s ? r([][Symbol.iterator]()) : O, "%AsyncFromSyncIteratorPrototype%": O, "%AsyncFunction%": n, "%AsyncGenerator%": n, "%AsyncGeneratorFunction%": n, "%AsyncIteratorPrototype%": n, "%Atomics%": typeof Atomics > "u" ? O : Atomics, "%BigInt%": typeof BigInt > "u" ? O : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? O : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? O : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? O : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array > "u" ? O : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? O : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? O : FinalizationRegistry, "%Function%": k, "%GeneratorFunction%": n, "%Int8Array%": typeof Int8Array > "u" ? O : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? O : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? O : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": s ? r(r([][Symbol.iterator]())) : O, "%JSON%": typeof JSON == "object" ? JSON : O, "%Map%": typeof Map > "u" ? O : Map, "%MapIteratorPrototype%": typeof Map < "u" && s ? r((/* @__PURE__ */ new Map())[Symbol.iterator]()) : O, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? O : Promise, "%Proxy%": typeof Proxy > "u" ? O : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect > "u" ? O : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? O : Set, "%SetIteratorPrototype%": typeof Set < "u" && s ? r((/* @__PURE__ */ new Set())[Symbol.iterator]()) : O, "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? O : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": s ? r(""[Symbol.iterator]()) : O, "%Symbol%": s ? Symbol : O, "%SyntaxError%": A, "%ThrowTypeError%": d, "%TypedArray%": o, "%TypeError%": b, "%Uint8Array%": typeof Uint8Array > "u" ? O : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? O : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? O : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? O : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap > "u" ? O : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? O : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? O : WeakSet }; + try { + null.error; + } catch (w) { + var f = r(r(w)); + i["%Error.prototype%"] = f; + } + var c = function w(g) { + var E; + if (g === "%AsyncFunction%") + E = a("async function () {}"); + else if (g === "%GeneratorFunction%") + E = a("function* () {}"); + else if (g === "%AsyncGeneratorFunction%") + E = a("async function* () {}"); + else if (g === "%AsyncGenerator%") { + var U = w("%AsyncGeneratorFunction%"); + U && (E = U.prototype); + } else if (g === "%AsyncIteratorPrototype%") { + var C = w("%AsyncGenerator%"); + C && (E = r(C.prototype)); + } + return i[g] = E, E; + }, h = { "%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"] }, p = _(8612), m = _(7642), M = p.call(Function.call, Array.prototype.concat), l = p.call(Function.apply, Array.prototype.splice), N = p.call(Function.call, String.prototype.replace), j = p.call(Function.call, String.prototype.slice), R = p.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, x = /\\(\\)?/g, P = function(w, g) { + var E, U = w; + if (m(h, U) && (U = "%" + (E = h[U])[0] + "%"), m(i, U)) { + var C = i[U]; + if (C === n && (C = c(U)), C === void 0 && !g) + throw new b("intrinsic " + w + " exists, but is not available. Please file an issue!"); + return { alias: E, name: U, value: C }; + } + throw new A("intrinsic " + w + " does not exist!"); + }; + J.exports = function(w, g) { + if (typeof w != "string" || w.length === 0) + throw new b("intrinsic name must be a non-empty string"); + if (arguments.length > 1 && typeof g != "boolean") + throw new b('"allowMissing" argument must be a boolean'); + if (R(/^%?[^%]*%?$/, w) === null) + throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); + var E = function(L) { + var ae = j(L, 0, 1), ce = j(L, -1); + if (ae === "%" && ce !== "%") + throw new A("invalid intrinsic syntax, expected closing `%`"); + if (ce === "%" && ae !== "%") + throw new A("invalid intrinsic syntax, expected opening `%`"); + var ue = []; + return N(L, I, function(le, be, de, pe) { + ue[ue.length] = de ? N(pe, x, "$1") : be || le; + }), ue; + }(w), U = E.length > 0 ? E[0] : "", C = P("%" + U + "%", g), F = C.name, re = C.value, ee = !1, ne = C.alias; + ne && (U = ne[0], l(E, M([0, 1], ne))); + for (var D = 1, Z = !0; D < E.length; D += 1) { + var $ = E[D], X = j($, 0, 1), K = j($, -1); + if ((X === '"' || X === "'" || X === "`" || K === '"' || K === "'" || K === "`") && X !== K) + throw new A("property names with quotes must have matching quotes"); + if ($ !== "constructor" && Z || (ee = !0), m(i, F = "%" + (U += "." + $) + "%")) + re = i[F]; + else if (re != null) { + if (!($ in re)) { + if (!g) + throw new b("base intrinsic for " + w + " exists, but the property is not available."); + return; + } + if (t && D + 1 >= E.length) { + var Y = t(re, $); + re = (Z = !!Y) && "get" in Y && !("originalValue" in Y.get) ? Y.get : re[$]; + } else + Z = m(re, $), re = re[$]; + Z && !ee && (i[F] = re); + } + } + return re; + }; + }, 7296: (J, e, _) => { + var O = _(210)("%Object.getOwnPropertyDescriptor%", !0); + if (O) + try { + O([], "length"); + } catch { + O = null; + } + J.exports = O; + }, 1044: (J, e, _) => { + var O = _(210)("%Object.defineProperty%", !0), A = function() { + if (O) + try { + return O({}, "a", { value: 1 }), !0; + } catch { + return !1; + } + return !1; + }; + A.hasArrayLengthDefineBug = function() { + if (!A()) + return null; + try { + return O([], "length", { value: 1 }).length !== 1; + } catch { + return !0; + } + }, J.exports = A; + }, 1405: (J, e, _) => { + var O = typeof Symbol < "u" && Symbol, A = _(5419); + J.exports = function() { + return typeof O == "function" && typeof Symbol == "function" && typeof O("foo") == "symbol" && typeof Symbol("bar") == "symbol" && A(); + }; + }, 5419: (J) => { + J.exports = function() { + if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") + return !1; + if (typeof Symbol.iterator == "symbol") + return !0; + var e = {}, _ = Symbol("test"), O = Object(_); + if (typeof _ == "string" || Object.prototype.toString.call(_) !== "[object Symbol]" || Object.prototype.toString.call(O) !== "[object Symbol]") + return !1; + for (_ in e[_] = 42, e) + return !1; + if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) + return !1; + var A = Object.getOwnPropertySymbols(e); + if (A.length !== 1 || A[0] !== _ || !Object.prototype.propertyIsEnumerable.call(e, _)) + return !1; + if (typeof Object.getOwnPropertyDescriptor == "function") { + var k = Object.getOwnPropertyDescriptor(e, _); + if (k.value !== 42 || k.enumerable !== !0) + return !1; + } + return !0; + }; + }, 6410: (J, e, _) => { + var O = _(5419); + J.exports = function() { + return O() && !!Symbol.toStringTag; + }; + }, 7642: (J, e, _) => { + var O = _(8612); + J.exports = O.call(Function.call, Object.prototype.hasOwnProperty); + }, 3349: (J, e, _) => { + var O = _(9509).Buffer, A = _(8473).Transform; + function k(b) { + A.call(this), this._block = O.allocUnsafe(b), this._blockSize = b, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1; + } + _(5717)(k, A), k.prototype._transform = function(b, a, t) { + var u = null; + try { + this.update(b, a); + } catch (d) { + u = d; + } + t(u); + }, k.prototype._flush = function(b) { + var a = null; + try { + this.push(this.digest()); + } catch (t) { + a = t; + } + b(a); + }, k.prototype.update = function(b, a) { + if (function(n, o) { + if (!O.isBuffer(n) && typeof n != "string") + throw new TypeError("Data must be a string or a buffer"); + }(b), this._finalized) + throw new Error("Digest already called"); + O.isBuffer(b) || (b = O.from(b, a)); + for (var t = this._block, u = 0; this._blockOffset + b.length - u >= this._blockSize; ) { + for (var d = this._blockOffset; d < this._blockSize; ) + t[d++] = b[u++]; + this._update(), this._blockOffset = 0; + } + for (; u < b.length; ) + t[this._blockOffset++] = b[u++]; + for (var s = 0, r = 8 * b.length; r > 0; ++s) + this._length[s] += r, (r = this._length[s] / 4294967296 | 0) > 0 && (this._length[s] -= 4294967296 * r); + return this; + }, k.prototype._update = function() { + throw new Error("_update is not implemented"); + }, k.prototype.digest = function(b) { + if (this._finalized) + throw new Error("Digest already called"); + this._finalized = !0; + var a = this._digest(); + b !== void 0 && (a = a.toString(b)), this._block.fill(0), this._blockOffset = 0; + for (var t = 0; t < 4; ++t) + this._length[t] = 0; + return a; + }, k.prototype._digest = function() { + throw new Error("_digest is not implemented"); + }, J.exports = k; + }, 3715: (J, e, _) => { + var O = e; + O.utils = _(6436), O.common = _(5772), O.sha = _(9041), O.ripemd = _(2949), O.hmac = _(2344), O.sha1 = O.sha.sha1, O.sha256 = O.sha.sha256, O.sha224 = O.sha.sha224, O.sha384 = O.sha.sha384, O.sha512 = O.sha.sha512, O.ripemd160 = O.ripemd.ripemd160; + }, 5772: (J, e, _) => { + var O = _(6436), A = _(9746); + function k() { + 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; + } + e.BlockHash = k, k.prototype.update = function(b, a) { + if (b = O.toArray(b, a), this.pending ? this.pending = this.pending.concat(b) : this.pending = b, this.pendingTotal += b.length, this.pending.length >= this._delta8) { + var t = (b = this.pending).length % this._delta8; + this.pending = b.slice(b.length - t, b.length), this.pending.length === 0 && (this.pending = null), b = O.join32(b, 0, b.length - t, this.endian); + for (var u = 0; u < b.length; u += this._delta32) + this._update(b, u, u + this._delta32); + } + return this; + }, k.prototype.digest = function(b) { + return this.update(this._pad()), A(this.pending === null), this._digest(b); + }, k.prototype._pad = function() { + var b = this.pendingTotal, a = this._delta8, t = a - (b + this.padLength) % a, u = new Array(t + this.padLength); + u[0] = 128; + for (var d = 1; d < t; d++) + u[d] = 0; + if (b <<= 3, this.endian === "big") { + for (var s = 8; s < this.padLength; s++) + u[d++] = 0; + u[d++] = 0, u[d++] = 0, u[d++] = 0, u[d++] = 0, u[d++] = b >>> 24 & 255, u[d++] = b >>> 16 & 255, u[d++] = b >>> 8 & 255, u[d++] = 255 & b; + } else + for (u[d++] = 255 & b, u[d++] = b >>> 8 & 255, u[d++] = b >>> 16 & 255, u[d++] = b >>> 24 & 255, u[d++] = 0, u[d++] = 0, u[d++] = 0, u[d++] = 0, s = 8; s < this.padLength; s++) + u[d++] = 0; + return u; + }; + }, 2344: (J, e, _) => { + var O = _(6436), A = _(9746); + function k(b, a, t) { + if (!(this instanceof k)) + return new k(b, a, t); + this.Hash = b, this.blockSize = b.blockSize / 8, this.outSize = b.outSize / 8, this.inner = null, this.outer = null, this._init(O.toArray(a, t)); + } + J.exports = k, k.prototype._init = function(b) { + b.length > this.blockSize && (b = new this.Hash().update(b).digest()), A(b.length <= this.blockSize); + for (var a = b.length; a < this.blockSize; a++) + b.push(0); + for (a = 0; a < b.length; a++) + b[a] ^= 54; + for (this.inner = new this.Hash().update(b), a = 0; a < b.length; a++) + b[a] ^= 106; + this.outer = new this.Hash().update(b); + }, k.prototype.update = function(b, a) { + return this.inner.update(b, a), this; + }, k.prototype.digest = function(b) { + return this.outer.update(this.inner.digest()), this.outer.digest(b); + }; + }, 2949: (J, e, _) => { + var O = _(6436), A = _(5772), k = O.rotl32, b = O.sum32, a = O.sum32_3, t = O.sum32_4, u = A.BlockHash; + function d() { + if (!(this instanceof d)) + return new d(); + u.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"; + } + function s(h, p, m, M) { + return h <= 15 ? p ^ m ^ M : h <= 31 ? p & m | ~p & M : h <= 47 ? (p | ~m) ^ M : h <= 63 ? p & M | m & ~M : p ^ (m | ~M); + } + function r(h) { + return h <= 15 ? 0 : h <= 31 ? 1518500249 : h <= 47 ? 1859775393 : h <= 63 ? 2400959708 : 2840853838; + } + function n(h) { + return h <= 15 ? 1352829926 : h <= 31 ? 1548603684 : h <= 47 ? 1836072691 : h <= 63 ? 2053994217 : 0; + } + O.inherits(d, u), e.ripemd160 = d, d.blockSize = 512, d.outSize = 160, d.hmacStrength = 192, d.padLength = 64, d.prototype._update = function(h, p) { + for (var m = this.h[0], M = this.h[1], l = this.h[2], N = this.h[3], j = this.h[4], R = m, I = M, x = l, P = N, w = j, g = 0; g < 80; g++) { + var E = b(k(t(m, s(g, M, l, N), h[o[g] + p], r(g)), f[g]), j); + m = j, j = N, N = k(l, 10), l = M, M = E, E = b(k(t(R, s(79 - g, I, x, P), h[i[g] + p], n(g)), c[g]), w), R = w, w = P, P = k(x, 10), x = I, I = E; + } + E = a(this.h[1], l, P), this.h[1] = a(this.h[2], N, w), this.h[2] = a(this.h[3], j, R), this.h[3] = a(this.h[4], m, I), this.h[4] = a(this.h[0], M, x), this.h[0] = E; + }, d.prototype._digest = function(h) { + return h === "hex" ? O.toHex32(this.h, "little") : O.split32(this.h, "little"); + }; + var o = [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], i = [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], f = [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], c = [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]; + }, 9041: (J, e, _) => { + e.sha1 = _(4761), e.sha224 = _(799), e.sha256 = _(9344), e.sha384 = _(772), e.sha512 = _(5900); + }, 4761: (J, e, _) => { + var O = _(6436), A = _(5772), k = _(7038), b = O.rotl32, a = O.sum32, t = O.sum32_5, u = k.ft_1, d = A.BlockHash, s = [1518500249, 1859775393, 2400959708, 3395469782]; + function r() { + if (!(this instanceof r)) + return new r(); + d.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80); + } + O.inherits(r, d), J.exports = r, r.blockSize = 512, r.outSize = 160, r.hmacStrength = 80, r.padLength = 64, r.prototype._update = function(n, o) { + for (var i = this.W, f = 0; f < 16; f++) + i[f] = n[o + f]; + for (; f < i.length; f++) + i[f] = b(i[f - 3] ^ i[f - 8] ^ i[f - 14] ^ i[f - 16], 1); + var c = this.h[0], h = this.h[1], p = this.h[2], m = this.h[3], M = this.h[4]; + for (f = 0; f < i.length; f++) { + var l = ~~(f / 20), N = t(b(c, 5), u(l, h, p, m), M, i[f], s[l]); + M = m, m = p, p = b(h, 30), h = c, c = N; + } + this.h[0] = a(this.h[0], c), this.h[1] = a(this.h[1], h), this.h[2] = a(this.h[2], p), this.h[3] = a(this.h[3], m), this.h[4] = a(this.h[4], M); + }, r.prototype._digest = function(n) { + return n === "hex" ? O.toHex32(this.h, "big") : O.split32(this.h, "big"); + }; + }, 799: (J, e, _) => { + var O = _(6436), A = _(9344); + function k() { + if (!(this instanceof k)) + return new k(); + A.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]; + } + O.inherits(k, A), J.exports = k, k.blockSize = 512, k.outSize = 224, k.hmacStrength = 192, k.padLength = 64, k.prototype._digest = function(b) { + return b === "hex" ? O.toHex32(this.h.slice(0, 7), "big") : O.split32(this.h.slice(0, 7), "big"); + }; + }, 9344: (J, e, _) => { + var O = _(6436), A = _(5772), k = _(7038), b = _(9746), a = O.sum32, t = O.sum32_4, u = O.sum32_5, d = k.ch32, s = k.maj32, r = k.s0_256, n = k.s1_256, o = k.g0_256, i = k.g1_256, f = A.BlockHash, c = [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]; + function h() { + if (!(this instanceof h)) + return new h(); + f.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = c, this.W = new Array(64); + } + O.inherits(h, f), J.exports = h, h.blockSize = 512, h.outSize = 256, h.hmacStrength = 192, h.padLength = 64, h.prototype._update = function(p, m) { + for (var M = this.W, l = 0; l < 16; l++) + M[l] = p[m + l]; + for (; l < M.length; l++) + M[l] = t(i(M[l - 2]), M[l - 7], o(M[l - 15]), M[l - 16]); + var N = this.h[0], j = this.h[1], R = this.h[2], I = this.h[3], x = this.h[4], P = this.h[5], w = this.h[6], g = this.h[7]; + for (b(this.k.length === M.length), l = 0; l < M.length; l++) { + var E = u(g, n(x), d(x, P, w), this.k[l], M[l]), U = a(r(N), s(N, j, R)); + g = w, w = P, P = x, x = a(I, E), I = R, R = j, j = N, N = a(E, U); + } + this.h[0] = a(this.h[0], N), this.h[1] = a(this.h[1], j), this.h[2] = a(this.h[2], R), this.h[3] = a(this.h[3], I), this.h[4] = a(this.h[4], x), this.h[5] = a(this.h[5], P), this.h[6] = a(this.h[6], w), this.h[7] = a(this.h[7], g); + }, h.prototype._digest = function(p) { + return p === "hex" ? O.toHex32(this.h, "big") : O.split32(this.h, "big"); + }; + }, 772: (J, e, _) => { + var O = _(6436), A = _(5900); + function k() { + if (!(this instanceof k)) + return new k(); + A.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428]; + } + O.inherits(k, A), J.exports = k, k.blockSize = 1024, k.outSize = 384, k.hmacStrength = 192, k.padLength = 128, k.prototype._digest = function(b) { + return b === "hex" ? O.toHex32(this.h.slice(0, 12), "big") : O.split32(this.h.slice(0, 12), "big"); + }; + }, 5900: (J, e, _) => { + var O = _(6436), A = _(5772), k = _(9746), b = O.rotr64_hi, a = O.rotr64_lo, t = O.shr64_hi, u = O.shr64_lo, d = O.sum64, s = O.sum64_hi, r = O.sum64_lo, n = O.sum64_4_hi, o = O.sum64_4_lo, i = O.sum64_5_hi, f = O.sum64_5_lo, c = A.BlockHash, h = [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]; + function p() { + if (!(this instanceof p)) + return new p(); + c.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = h, this.W = new Array(160); + } + function m(g, E, U, C, F) { + var re = g & U ^ ~g & F; + return re < 0 && (re += 4294967296), re; + } + function M(g, E, U, C, F, re) { + var ee = E & C ^ ~E & re; + return ee < 0 && (ee += 4294967296), ee; + } + function l(g, E, U, C, F) { + var re = g & U ^ g & F ^ U & F; + return re < 0 && (re += 4294967296), re; + } + function N(g, E, U, C, F, re) { + var ee = E & C ^ E & re ^ C & re; + return ee < 0 && (ee += 4294967296), ee; + } + function j(g, E) { + var U = b(g, E, 28) ^ b(E, g, 2) ^ b(E, g, 7); + return U < 0 && (U += 4294967296), U; + } + function R(g, E) { + var U = a(g, E, 28) ^ a(E, g, 2) ^ a(E, g, 7); + return U < 0 && (U += 4294967296), U; + } + function I(g, E) { + var U = a(g, E, 14) ^ a(g, E, 18) ^ a(E, g, 9); + return U < 0 && (U += 4294967296), U; + } + function x(g, E) { + var U = b(g, E, 1) ^ b(g, E, 8) ^ t(g, E, 7); + return U < 0 && (U += 4294967296), U; + } + function P(g, E) { + var U = a(g, E, 1) ^ a(g, E, 8) ^ u(g, E, 7); + return U < 0 && (U += 4294967296), U; + } + function w(g, E) { + var U = a(g, E, 19) ^ a(E, g, 29) ^ u(g, E, 6); + return U < 0 && (U += 4294967296), U; + } + O.inherits(p, c), J.exports = p, p.blockSize = 1024, p.outSize = 512, p.hmacStrength = 192, p.padLength = 128, p.prototype._prepareBlock = function(g, E) { + for (var U = this.W, C = 0; C < 32; C++) + U[C] = g[E + C]; + for (; C < U.length; C += 2) { + var F = (K = U[C - 4], Y = U[C - 3], L = void 0, (L = b(K, Y, 19) ^ b(Y, K, 29) ^ t(K, Y, 6)) < 0 && (L += 4294967296), L), re = w(U[C - 4], U[C - 3]), ee = U[C - 14], ne = U[C - 13], D = x(U[C - 30], U[C - 29]), Z = P(U[C - 30], U[C - 29]), $ = U[C - 32], X = U[C - 31]; + U[C] = n(F, re, ee, ne, D, Z, $, X), U[C + 1] = o(F, re, ee, ne, D, Z, $, X); + } + var K, Y, L; + }, p.prototype._update = function(g, E) { + this._prepareBlock(g, E); + var U, C, F, re = this.W, ee = this.h[0], ne = this.h[1], D = this.h[2], Z = this.h[3], $ = this.h[4], X = this.h[5], K = this.h[6], Y = this.h[7], L = this.h[8], ae = this.h[9], ce = this.h[10], ue = this.h[11], le = this.h[12], be = this.h[13], de = this.h[14], pe = this.h[15]; + k(this.k.length === re.length); + for (var _e = 0; _e < re.length; _e += 2) { + var W = de, v = pe, y = (F = void 0, (F = b(U = L, C = ae, 14) ^ b(U, C, 18) ^ b(C, U, 9)) < 0 && (F += 4294967296), F), S = I(L, ae), T = m(L, 0, ce, 0, le), B = M(0, ae, 0, ue, 0, be), z = this.k[_e], q = this.k[_e + 1], te = re[_e], oe = re[_e + 1], V = i(W, v, y, S, T, B, z, q, te, oe), Q = f(W, v, y, S, T, B, z, q, te, oe); + W = j(ee, ne), v = R(ee, ne), y = l(ee, 0, D, 0, $), S = N(0, ne, 0, Z, 0, X); + var G = s(W, v, y, S), H = r(W, v, y, S); + de = le, pe = be, le = ce, be = ue, ce = L, ue = ae, L = s(K, Y, V, Q), ae = r(Y, Y, V, Q), K = $, Y = X, $ = D, X = Z, D = ee, Z = ne, ee = s(V, Q, G, H), ne = r(V, Q, G, H); + } + d(this.h, 0, ee, ne), d(this.h, 2, D, Z), d(this.h, 4, $, X), d(this.h, 6, K, Y), d(this.h, 8, L, ae), d(this.h, 10, ce, ue), d(this.h, 12, le, be), d(this.h, 14, de, pe); + }, p.prototype._digest = function(g) { + return g === "hex" ? O.toHex32(this.h, "big") : O.split32(this.h, "big"); + }; + }, 7038: (J, e, _) => { + var O = _(6436).rotr32; + function A(a, t, u) { + return a & t ^ ~a & u; + } + function k(a, t, u) { + return a & t ^ a & u ^ t & u; + } + function b(a, t, u) { + return a ^ t ^ u; + } + e.ft_1 = function(a, t, u, d) { + return a === 0 ? A(t, u, d) : a === 1 || a === 3 ? b(t, u, d) : a === 2 ? k(t, u, d) : void 0; + }, e.ch32 = A, e.maj32 = k, e.p32 = b, e.s0_256 = function(a) { + return O(a, 2) ^ O(a, 13) ^ O(a, 22); + }, e.s1_256 = function(a) { + return O(a, 6) ^ O(a, 11) ^ O(a, 25); + }, e.g0_256 = function(a) { + return O(a, 7) ^ O(a, 18) ^ a >>> 3; + }, e.g1_256 = function(a) { + return O(a, 17) ^ O(a, 19) ^ a >>> 10; + }; + }, 6436: (J, e, _) => { + var O = _(9746), A = _(5717); + function k(u, d) { + return (64512 & u.charCodeAt(d)) == 55296 && !(d < 0 || d + 1 >= u.length) && (64512 & u.charCodeAt(d + 1)) == 56320; + } + function b(u) { + return (u >>> 24 | u >>> 8 & 65280 | u << 8 & 16711680 | (255 & u) << 24) >>> 0; + } + function a(u) { + return u.length === 1 ? "0" + u : u; + } + function t(u) { + return u.length === 7 ? "0" + u : u.length === 6 ? "00" + u : u.length === 5 ? "000" + u : u.length === 4 ? "0000" + u : u.length === 3 ? "00000" + u : u.length === 2 ? "000000" + u : u.length === 1 ? "0000000" + u : u; + } + e.inherits = A, e.toArray = function(u, d) { + if (Array.isArray(u)) + return u.slice(); + if (!u) + return []; + var s = []; + if (typeof u == "string") + if (d) { + if (d === "hex") + for ((u = u.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (u = "0" + u), n = 0; n < u.length; n += 2) + s.push(parseInt(u[n] + u[n + 1], 16)); + } else + for (var r = 0, n = 0; n < u.length; n++) { + var o = u.charCodeAt(n); + o < 128 ? s[r++] = o : o < 2048 ? (s[r++] = o >> 6 | 192, s[r++] = 63 & o | 128) : k(u, n) ? (o = 65536 + ((1023 & o) << 10) + (1023 & u.charCodeAt(++n)), s[r++] = o >> 18 | 240, s[r++] = o >> 12 & 63 | 128, s[r++] = o >> 6 & 63 | 128, s[r++] = 63 & o | 128) : (s[r++] = o >> 12 | 224, s[r++] = o >> 6 & 63 | 128, s[r++] = 63 & o | 128); + } + else + for (n = 0; n < u.length; n++) + s[n] = 0 | u[n]; + return s; + }, e.toHex = function(u) { + for (var d = "", s = 0; s < u.length; s++) + d += a(u[s].toString(16)); + return d; + }, e.htonl = b, e.toHex32 = function(u, d) { + for (var s = "", r = 0; r < u.length; r++) { + var n = u[r]; + d === "little" && (n = b(n)), s += t(n.toString(16)); + } + return s; + }, e.zero2 = a, e.zero8 = t, e.join32 = function(u, d, s, r) { + var n = s - d; + O(n % 4 == 0); + for (var o = new Array(n / 4), i = 0, f = d; i < o.length; i++, f += 4) { + var c; + c = r === "big" ? u[f] << 24 | u[f + 1] << 16 | u[f + 2] << 8 | u[f + 3] : u[f + 3] << 24 | u[f + 2] << 16 | u[f + 1] << 8 | u[f], o[i] = c >>> 0; + } + return o; + }, e.split32 = function(u, d) { + for (var s = new Array(4 * u.length), r = 0, n = 0; r < u.length; r++, n += 4) { + var o = u[r]; + d === "big" ? (s[n] = o >>> 24, s[n + 1] = o >>> 16 & 255, s[n + 2] = o >>> 8 & 255, s[n + 3] = 255 & o) : (s[n + 3] = o >>> 24, s[n + 2] = o >>> 16 & 255, s[n + 1] = o >>> 8 & 255, s[n] = 255 & o); + } + return s; + }, e.rotr32 = function(u, d) { + return u >>> d | u << 32 - d; + }, e.rotl32 = function(u, d) { + return u << d | u >>> 32 - d; + }, e.sum32 = function(u, d) { + return u + d >>> 0; + }, e.sum32_3 = function(u, d, s) { + return u + d + s >>> 0; + }, e.sum32_4 = function(u, d, s, r) { + return u + d + s + r >>> 0; + }, e.sum32_5 = function(u, d, s, r, n) { + return u + d + s + r + n >>> 0; + }, e.sum64 = function(u, d, s, r) { + var n = u[d], o = r + u[d + 1] >>> 0, i = (o < r ? 1 : 0) + s + n; + u[d] = i >>> 0, u[d + 1] = o; + }, e.sum64_hi = function(u, d, s, r) { + return (d + r >>> 0 < d ? 1 : 0) + u + s >>> 0; + }, e.sum64_lo = function(u, d, s, r) { + return d + r >>> 0; + }, e.sum64_4_hi = function(u, d, s, r, n, o, i, f) { + var c = 0, h = d; + return c += (h = h + r >>> 0) < d ? 1 : 0, c += (h = h + o >>> 0) < o ? 1 : 0, u + s + n + i + (c += (h = h + f >>> 0) < f ? 1 : 0) >>> 0; + }, e.sum64_4_lo = function(u, d, s, r, n, o, i, f) { + return d + r + o + f >>> 0; + }, e.sum64_5_hi = function(u, d, s, r, n, o, i, f, c, h) { + var p = 0, m = d; + return p += (m = m + r >>> 0) < d ? 1 : 0, p += (m = m + o >>> 0) < o ? 1 : 0, p += (m = m + f >>> 0) < f ? 1 : 0, u + s + n + i + c + (p += (m = m + h >>> 0) < h ? 1 : 0) >>> 0; + }, e.sum64_5_lo = function(u, d, s, r, n, o, i, f, c, h) { + return d + r + o + f + h >>> 0; + }, e.rotr64_hi = function(u, d, s) { + return (d << 32 - s | u >>> s) >>> 0; + }, e.rotr64_lo = function(u, d, s) { + return (u << 32 - s | d >>> s) >>> 0; + }, e.shr64_hi = function(u, d, s) { + return u >>> s; + }, e.shr64_lo = function(u, d, s) { + return (u << 32 - s | d >>> s) >>> 0; + }; + }, 2156: (J, e, _) => { + var O = _(3715), A = _(4504), k = _(9746); + function b(a) { + if (!(this instanceof b)) + return new b(a); + this.hash = a.hash, this.predResist = !!a.predResist, this.outLen = this.hash.outSize, this.minEntropy = a.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null; + var t = A.toArray(a.entropy, a.entropyEnc || "hex"), u = A.toArray(a.nonce, a.nonceEnc || "hex"), d = A.toArray(a.pers, a.persEnc || "hex"); + k(t.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(t, u, d); + } + J.exports = b, b.prototype._init = function(a, t, u) { + var d = a.concat(t).concat(u); + this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8); + for (var s = 0; s < this.V.length; s++) + this.K[s] = 0, this.V[s] = 1; + this._update(d), this._reseed = 1, this.reseedInterval = 281474976710656; + }, b.prototype._hmac = function() { + return new O.hmac(this.hash, this.K); + }, b.prototype._update = function(a) { + var t = this._hmac().update(this.V).update([0]); + a && (t = t.update(a)), this.K = t.digest(), this.V = this._hmac().update(this.V).digest(), a && (this.K = this._hmac().update(this.V).update([1]).update(a).digest(), this.V = this._hmac().update(this.V).digest()); + }, b.prototype.reseed = function(a, t, u, d) { + typeof t != "string" && (d = u, u = t, t = null), a = A.toArray(a, t), u = A.toArray(u, d), k(a.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(a.concat(u || [])), this._reseed = 1; + }, b.prototype.generate = function(a, t, u, d) { + if (this._reseed > this.reseedInterval) + throw new Error("Reseed is required"); + typeof t != "string" && (d = u, u = t, t = null), u && (u = A.toArray(u, d || "hex"), this._update(u)); + for (var s = []; s.length < a; ) + this.V = this._hmac().update(this.V).digest(), s = s.concat(this.V); + var r = s.slice(0, a); + return this._update(u), this._reseed++, A.encode(r, t); + }; + }, 645: (J, e) => { + e.read = function(_, O, A, k, b) { + var a, t, u = 8 * b - k - 1, d = (1 << u) - 1, s = d >> 1, r = -7, n = A ? b - 1 : 0, o = A ? -1 : 1, i = _[O + n]; + for (n += o, a = i & (1 << -r) - 1, i >>= -r, r += u; r > 0; a = 256 * a + _[O + n], n += o, r -= 8) + ; + for (t = a & (1 << -r) - 1, a >>= -r, r += k; r > 0; t = 256 * t + _[O + n], n += o, r -= 8) + ; + if (a === 0) + a = 1 - s; + else { + if (a === d) + return t ? NaN : 1 / 0 * (i ? -1 : 1); + t += Math.pow(2, k), a -= s; + } + return (i ? -1 : 1) * t * Math.pow(2, a - k); + }, e.write = function(_, O, A, k, b, a) { + var t, u, d, s = 8 * a - b - 1, r = (1 << s) - 1, n = r >> 1, o = b === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, i = k ? 0 : a - 1, f = k ? 1 : -1, c = O < 0 || O === 0 && 1 / O < 0 ? 1 : 0; + for (O = Math.abs(O), isNaN(O) || O === 1 / 0 ? (u = isNaN(O) ? 1 : 0, t = r) : (t = Math.floor(Math.log(O) / Math.LN2), O * (d = Math.pow(2, -t)) < 1 && (t--, d *= 2), (O += t + n >= 1 ? o / d : o * Math.pow(2, 1 - n)) * d >= 2 && (t++, d /= 2), t + n >= r ? (u = 0, t = r) : t + n >= 1 ? (u = (O * d - 1) * Math.pow(2, b), t += n) : (u = O * Math.pow(2, n - 1) * Math.pow(2, b), t = 0)); b >= 8; _[A + i] = 255 & u, i += f, u /= 256, b -= 8) + ; + for (t = t << b | u, s += b; s > 0; _[A + i] = 255 & t, i += f, t /= 256, s -= 8) + ; + _[A + i - f] |= 128 * c; + }; + }, 5717: (J) => { + typeof Object.create == "function" ? J.exports = function(e, _) { + _ && (e.super_ = _, e.prototype = Object.create(_.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })); + } : J.exports = function(e, _) { + if (_) { + e.super_ = _; + var O = function() { + }; + O.prototype = _.prototype, e.prototype = new O(), e.prototype.constructor = e; + } + }; + }, 2584: (J, e, _) => { + var O = _(6410)(), A = _(1924)("Object.prototype.toString"), k = function(t) { + return !(O && t && typeof t == "object" && Symbol.toStringTag in t) && A(t) === "[object Arguments]"; + }, b = function(t) { + return !!k(t) || t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && A(t) !== "[object Array]" && A(t.callee) === "[object Function]"; + }, a = function() { + return k(arguments); + }(); + k.isLegacyArguments = b, J.exports = a ? k : b; + }, 5320: (J) => { + var e, _, O = Function.prototype.toString, A = typeof Reflect == "object" && Reflect !== null && Reflect.apply; + if (typeof A == "function" && typeof Object.defineProperty == "function") + try { + e = Object.defineProperty({}, "length", { get: function() { + throw _; + } }), _ = {}, A(function() { + throw 42; + }, null, e); + } catch (n) { + n !== _ && (A = null); + } + else + A = null; + var k = /^\s*class\b/, b = function(n) { + try { + var o = O.call(n); + return k.test(o); + } catch { + return !1; + } + }, a = function(n) { + try { + return !b(n) && (O.call(n), !0); + } catch { + return !1; + } + }, t = Object.prototype.toString, u = typeof Symbol == "function" && !!Symbol.toStringTag, d = !(0 in [,]), s = function() { + return !1; + }; + if (typeof document == "object") { + var r = document.all; + t.call(r) === t.call(document.all) && (s = function(n) { + if ((d || !n) && (n === void 0 || typeof n == "object")) + try { + var o = t.call(n); + return (o === "[object HTMLAllCollection]" || o === "[object HTML document.all class]" || o === "[object HTMLCollection]" || o === "[object Object]") && n("") == null; + } catch { + } + return !1; + }); + } + J.exports = A ? function(n) { + if (s(n)) + return !0; + if (!n || typeof n != "function" && typeof n != "object") + return !1; + try { + A(n, null, e); + } catch (o) { + if (o !== _) + return !1; + } + return !b(n) && a(n); + } : function(n) { + if (s(n)) + return !0; + if (!n || typeof n != "function" && typeof n != "object") + return !1; + if (u) + return a(n); + if (b(n)) + return !1; + var o = t.call(n); + return !(o !== "[object Function]" && o !== "[object GeneratorFunction]" && !/^\[object HTML/.test(o)) && a(n); + }; + }, 8662: (J, e, _) => { + var O, A = Object.prototype.toString, k = Function.prototype.toString, b = /^\s*(?:function)?\*/, a = _(6410)(), t = Object.getPrototypeOf; + J.exports = function(u) { + if (typeof u != "function") + return !1; + if (b.test(k.call(u))) + return !0; + if (!a) + return A.call(u) === "[object GeneratorFunction]"; + if (!t) + return !1; + if (O === void 0) { + var d = function() { + if (!a) + return !1; + try { + return Function("return function*() {}")(); + } catch { + } + }(); + O = !!d && t(d); + } + return t(u) === O; + }; + }, 8611: (J) => { + J.exports = function(e) { + return e != e; + }; + }, 360: (J, e, _) => { + var O = _(5559), A = _(4289), k = _(8611), b = _(9415), a = _(3194), t = O(b(), Number); + A(t, { getPolyfill: b, implementation: k, shim: a }), J.exports = t; + }, 9415: (J, e, _) => { + var O = _(8611); + J.exports = function() { + return Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a") ? Number.isNaN : O; + }; + }, 3194: (J, e, _) => { + var O = _(4289), A = _(9415); + J.exports = function() { + var k = A(); + return O(Number, { isNaN: k }, { isNaN: function() { + return Number.isNaN !== k; + } }), k; + }; + }, 5692: (J, e, _) => { + var O = _(4029), A = _(3083), k = _(1924), b = k("Object.prototype.toString"), a = _(6410)(), t = _(7296), u = typeof globalThis > "u" ? _.g : globalThis, d = A(), s = k("Array.prototype.indexOf", !0) || function(i, f) { + for (var c = 0; c < i.length; c += 1) + if (i[c] === f) + return c; + return -1; + }, r = k("String.prototype.slice"), n = {}, o = Object.getPrototypeOf; + a && t && o && O(d, function(i) { + var f = new u[i](); + if (Symbol.toStringTag in f) { + var c = o(f), h = t(c, Symbol.toStringTag); + if (!h) { + var p = o(c); + h = t(p, Symbol.toStringTag); + } + n[i] = h.get; + } + }), J.exports = function(i) { + if (!i || typeof i != "object") + return !1; + if (!a || !(Symbol.toStringTag in i)) { + var f = r(b(i), 8, -1); + return s(d, f) > -1; + } + return !!t && function(c) { + var h = !1; + return O(n, function(p, m) { + if (!h) + try { + h = p.call(c) === m; + } catch { + } + }), h; + }(i); + }; + }, 3720: (J) => { + J.exports = _; + var e = null; + try { + e = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11])), {}).exports; + } catch { + } + function _(R, I, x) { + this.low = 0 | R, this.high = 0 | I, this.unsigned = !!x; + } + function O(R) { + return (R && R.__isLong__) === !0; + } + _.prototype.__isLong__, Object.defineProperty(_.prototype, "__isLong__", { value: !0 }), _.isLong = O; + var A = {}, k = {}; + function b(R, I) { + var x, P, w; + return I ? (w = 0 <= (R >>>= 0) && R < 256) && (P = k[R]) ? P : (x = t(R, (0 | R) < 0 ? -1 : 0, !0), w && (k[R] = x), x) : (w = -128 <= (R |= 0) && R < 128) && (P = A[R]) ? P : (x = t(R, R < 0 ? -1 : 0, !1), w && (A[R] = x), x); + } + function a(R, I) { + if (isNaN(R)) + return I ? c : f; + if (I) { + if (R < 0) + return c; + if (R >= n) + return l; + } else { + if (R <= -o) + return N; + if (R + 1 >= o) + return M; + } + return R < 0 ? a(-R, I).neg() : t(R % r | 0, R / r | 0, I); + } + function t(R, I, x) { + return new _(R, I, x); + } + _.fromInt = b, _.fromNumber = a, _.fromBits = t; + var u = Math.pow; + function d(R, I, x) { + if (R.length === 0) + throw Error("empty string"); + if (R === "NaN" || R === "Infinity" || R === "+Infinity" || R === "-Infinity") + return f; + if (typeof I == "number" ? (x = I, I = !1) : I = !!I, (x = x || 10) < 2 || 36 < x) + throw RangeError("radix"); + var P; + if ((P = R.indexOf("-")) > 0) + throw Error("interior hyphen"); + if (P === 0) + return d(R.substring(1), I, x).neg(); + for (var w = a(u(x, 8)), g = f, E = 0; E < R.length; E += 8) { + var U = Math.min(8, R.length - E), C = parseInt(R.substring(E, E + U), x); + if (U < 8) { + var F = a(u(x, U)); + g = g.mul(F).add(a(C)); + } else + g = (g = g.mul(w)).add(a(C)); + } + return g.unsigned = I, g; + } + function s(R, I) { + return typeof R == "number" ? a(R, I) : typeof R == "string" ? d(R, I) : t(R.low, R.high, typeof I == "boolean" ? I : R.unsigned); + } + _.fromString = d, _.fromValue = s; + var r = 4294967296, n = r * r, o = n / 2, i = b(1 << 24), f = b(0); + _.ZERO = f; + var c = b(0, !0); + _.UZERO = c; + var h = b(1); + _.ONE = h; + var p = b(1, !0); + _.UONE = p; + var m = b(-1); + _.NEG_ONE = m; + var M = t(-1, 2147483647, !1); + _.MAX_VALUE = M; + var l = t(-1, -1, !0); + _.MAX_UNSIGNED_VALUE = l; + var N = t(0, -2147483648, !1); + _.MIN_VALUE = N; + var j = _.prototype; + j.toInt = function() { + return this.unsigned ? this.low >>> 0 : this.low; + }, j.toNumber = function() { + return this.unsigned ? (this.high >>> 0) * r + (this.low >>> 0) : this.high * r + (this.low >>> 0); + }, j.toString = function(R) { + if ((R = R || 10) < 2 || 36 < R) + throw RangeError("radix"); + if (this.isZero()) + return "0"; + if (this.isNegative()) { + if (this.eq(N)) { + var I = a(R), x = this.div(I), P = x.mul(I).sub(this); + return x.toString(R) + P.toInt().toString(R); + } + return "-" + this.neg().toString(R); + } + for (var w = a(u(R, 6), this.unsigned), g = this, E = ""; ; ) { + var U = g.div(w), C = (g.sub(U.mul(w)).toInt() >>> 0).toString(R); + if ((g = U).isZero()) + return C + E; + for (; C.length < 6; ) + C = "0" + C; + E = "" + C + E; + } + }, j.getHighBits = function() { + return this.high; + }, j.getHighBitsUnsigned = function() { + return this.high >>> 0; + }, j.getLowBits = function() { + return this.low; + }, j.getLowBitsUnsigned = function() { + return this.low >>> 0; + }, j.getNumBitsAbs = function() { + if (this.isNegative()) + return this.eq(N) ? 64 : this.neg().getNumBitsAbs(); + for (var R = this.high != 0 ? this.high : this.low, I = 31; I > 0 && !(R & 1 << I); I--) + ; + return this.high != 0 ? I + 33 : I + 1; + }, j.isZero = function() { + return this.high === 0 && this.low === 0; + }, j.eqz = j.isZero, j.isNegative = function() { + return !this.unsigned && this.high < 0; + }, j.isPositive = function() { + return this.unsigned || this.high >= 0; + }, j.isOdd = function() { + return (1 & this.low) == 1; + }, j.isEven = function() { + return (1 & this.low) == 0; + }, j.equals = function(R) { + return O(R) || (R = s(R)), (this.unsigned === R.unsigned || this.high >>> 31 != 1 || R.high >>> 31 != 1) && this.high === R.high && this.low === R.low; + }, j.eq = j.equals, j.notEquals = function(R) { + return !this.eq(R); + }, j.neq = j.notEquals, j.ne = j.notEquals, j.lessThan = function(R) { + return this.comp(R) < 0; + }, j.lt = j.lessThan, j.lessThanOrEqual = function(R) { + return this.comp(R) <= 0; + }, j.lte = j.lessThanOrEqual, j.le = j.lessThanOrEqual, j.greaterThan = function(R) { + return this.comp(R) > 0; + }, j.gt = j.greaterThan, j.greaterThanOrEqual = function(R) { + return this.comp(R) >= 0; + }, j.gte = j.greaterThanOrEqual, j.ge = j.greaterThanOrEqual, j.compare = function(R) { + if (O(R) || (R = s(R)), this.eq(R)) + return 0; + var I = this.isNegative(), x = R.isNegative(); + return I && !x ? -1 : !I && x ? 1 : this.unsigned ? R.high >>> 0 > this.high >>> 0 || R.high === this.high && R.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(R).isNegative() ? -1 : 1; + }, j.comp = j.compare, j.negate = function() { + return !this.unsigned && this.eq(N) ? N : this.not().add(h); + }, j.neg = j.negate, j.add = function(R) { + O(R) || (R = s(R)); + var I = this.high >>> 16, x = 65535 & this.high, P = this.low >>> 16, w = 65535 & this.low, g = R.high >>> 16, E = 65535 & R.high, U = R.low >>> 16, C = 0, F = 0, re = 0, ee = 0; + return re += (ee += w + (65535 & R.low)) >>> 16, F += (re += P + U) >>> 16, C += (F += x + E) >>> 16, C += I + g, t((re &= 65535) << 16 | (ee &= 65535), (C &= 65535) << 16 | (F &= 65535), this.unsigned); + }, j.subtract = function(R) { + return O(R) || (R = s(R)), this.add(R.neg()); + }, j.sub = j.subtract, j.multiply = function(R) { + if (this.isZero()) + return f; + if (O(R) || (R = s(R)), e) + return t(e.mul(this.low, this.high, R.low, R.high), e.get_high(), this.unsigned); + if (R.isZero()) + return f; + if (this.eq(N)) + return R.isOdd() ? N : f; + if (R.eq(N)) + return this.isOdd() ? N : f; + if (this.isNegative()) + return R.isNegative() ? this.neg().mul(R.neg()) : this.neg().mul(R).neg(); + if (R.isNegative()) + return this.mul(R.neg()).neg(); + if (this.lt(i) && R.lt(i)) + return a(this.toNumber() * R.toNumber(), this.unsigned); + var I = this.high >>> 16, x = 65535 & this.high, P = this.low >>> 16, w = 65535 & this.low, g = R.high >>> 16, E = 65535 & R.high, U = R.low >>> 16, C = 65535 & R.low, F = 0, re = 0, ee = 0, ne = 0; + return ee += (ne += w * C) >>> 16, re += (ee += P * C) >>> 16, ee &= 65535, re += (ee += w * U) >>> 16, F += (re += x * C) >>> 16, re &= 65535, F += (re += P * U) >>> 16, re &= 65535, F += (re += w * E) >>> 16, F += I * C + x * U + P * E + w * g, t((ee &= 65535) << 16 | (ne &= 65535), (F &= 65535) << 16 | (re &= 65535), this.unsigned); + }, j.mul = j.multiply, j.divide = function(R) { + if (O(R) || (R = s(R)), R.isZero()) + throw Error("division by zero"); + var I, x, P; + if (e) + return this.unsigned || this.high !== -2147483648 || R.low !== -1 || R.high !== -1 ? t((this.unsigned ? e.div_u : e.div_s)(this.low, this.high, R.low, R.high), e.get_high(), this.unsigned) : this; + if (this.isZero()) + return this.unsigned ? c : f; + if (this.unsigned) { + if (R.unsigned || (R = R.toUnsigned()), R.gt(this)) + return c; + if (R.gt(this.shru(1))) + return p; + P = c; + } else { + if (this.eq(N)) + return R.eq(h) || R.eq(m) ? N : R.eq(N) ? h : (I = this.shr(1).div(R).shl(1)).eq(f) ? R.isNegative() ? h : m : (x = this.sub(R.mul(I)), P = I.add(x.div(R))); + if (R.eq(N)) + return this.unsigned ? c : f; + if (this.isNegative()) + return R.isNegative() ? this.neg().div(R.neg()) : this.neg().div(R).neg(); + if (R.isNegative()) + return this.div(R.neg()).neg(); + P = f; + } + for (x = this; x.gte(R); ) { + I = Math.max(1, Math.floor(x.toNumber() / R.toNumber())); + for (var w = Math.ceil(Math.log(I) / Math.LN2), g = w <= 48 ? 1 : u(2, w - 48), E = a(I), U = E.mul(R); U.isNegative() || U.gt(x); ) + U = (E = a(I -= g, this.unsigned)).mul(R); + E.isZero() && (E = h), P = P.add(E), x = x.sub(U); + } + return P; + }, j.div = j.divide, j.modulo = function(R) { + return O(R) || (R = s(R)), e ? t((this.unsigned ? e.rem_u : e.rem_s)(this.low, this.high, R.low, R.high), e.get_high(), this.unsigned) : this.sub(this.div(R).mul(R)); + }, j.mod = j.modulo, j.rem = j.modulo, j.not = function() { + return t(~this.low, ~this.high, this.unsigned); + }, j.and = function(R) { + return O(R) || (R = s(R)), t(this.low & R.low, this.high & R.high, this.unsigned); + }, j.or = function(R) { + return O(R) || (R = s(R)), t(this.low | R.low, this.high | R.high, this.unsigned); + }, j.xor = function(R) { + return O(R) || (R = s(R)), t(this.low ^ R.low, this.high ^ R.high, this.unsigned); + }, j.shiftLeft = function(R) { + return O(R) && (R = R.toInt()), (R &= 63) == 0 ? this : R < 32 ? t(this.low << R, this.high << R | this.low >>> 32 - R, this.unsigned) : t(0, this.low << R - 32, this.unsigned); + }, j.shl = j.shiftLeft, j.shiftRight = function(R) { + return O(R) && (R = R.toInt()), (R &= 63) == 0 ? this : R < 32 ? t(this.low >>> R | this.high << 32 - R, this.high >> R, this.unsigned) : t(this.high >> R - 32, this.high >= 0 ? 0 : -1, this.unsigned); + }, j.shr = j.shiftRight, j.shiftRightUnsigned = function(R) { + if (O(R) && (R = R.toInt()), (R &= 63) == 0) + return this; + var I = this.high; + return R < 32 ? t(this.low >>> R | I << 32 - R, I >>> R, this.unsigned) : t(R === 32 ? I : I >>> R - 32, 0, this.unsigned); + }, j.shru = j.shiftRightUnsigned, j.shr_u = j.shiftRightUnsigned, j.toSigned = function() { + return this.unsigned ? t(this.low, this.high, !1) : this; + }, j.toUnsigned = function() { + return this.unsigned ? this : t(this.low, this.high, !0); + }, j.toBytes = function(R) { + return R ? this.toBytesLE() : this.toBytesBE(); + }, j.toBytesLE = function() { + var R = this.high, I = this.low; + return [255 & I, I >>> 8 & 255, I >>> 16 & 255, I >>> 24, 255 & R, R >>> 8 & 255, R >>> 16 & 255, R >>> 24]; + }, j.toBytesBE = function() { + var R = this.high, I = this.low; + return [R >>> 24, R >>> 16 & 255, R >>> 8 & 255, 255 & R, I >>> 24, I >>> 16 & 255, I >>> 8 & 255, 255 & I]; + }, _.fromBytes = function(R, I, x) { + return x ? _.fromBytesLE(R, I) : _.fromBytesBE(R, I); + }, _.fromBytesLE = function(R, I) { + return new _(R[0] | R[1] << 8 | R[2] << 16 | R[3] << 24, R[4] | R[5] << 8 | R[6] << 16 | R[7] << 24, I); + }, _.fromBytesBE = function(R, I) { + return new _(R[4] << 24 | R[5] << 16 | R[6] << 8 | R[7], R[0] << 24 | R[1] << 16 | R[2] << 8 | R[3], I); + }; + }, 2318: (J, e, _) => { + var O = _(5717), A = _(3349), k = _(9509).Buffer, b = new Array(16); + function a() { + A.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878; + } + function t(n, o) { + return n << o | n >>> 32 - o; + } + function u(n, o, i, f, c, h, p) { + return t(n + (o & i | ~o & f) + c + h | 0, p) + o | 0; + } + function d(n, o, i, f, c, h, p) { + return t(n + (o & f | i & ~f) + c + h | 0, p) + o | 0; + } + function s(n, o, i, f, c, h, p) { + return t(n + (o ^ i ^ f) + c + h | 0, p) + o | 0; + } + function r(n, o, i, f, c, h, p) { + return t(n + (i ^ (o | ~f)) + c + h | 0, p) + o | 0; + } + O(a, A), a.prototype._update = function() { + for (var n = b, o = 0; o < 16; ++o) + n[o] = this._block.readInt32LE(4 * o); + var i = this._a, f = this._b, c = this._c, h = this._d; + i = u(i, f, c, h, n[0], 3614090360, 7), h = u(h, i, f, c, n[1], 3905402710, 12), c = u(c, h, i, f, n[2], 606105819, 17), f = u(f, c, h, i, n[3], 3250441966, 22), i = u(i, f, c, h, n[4], 4118548399, 7), h = u(h, i, f, c, n[5], 1200080426, 12), c = u(c, h, i, f, n[6], 2821735955, 17), f = u(f, c, h, i, n[7], 4249261313, 22), i = u(i, f, c, h, n[8], 1770035416, 7), h = u(h, i, f, c, n[9], 2336552879, 12), c = u(c, h, i, f, n[10], 4294925233, 17), f = u(f, c, h, i, n[11], 2304563134, 22), i = u(i, f, c, h, n[12], 1804603682, 7), h = u(h, i, f, c, n[13], 4254626195, 12), c = u(c, h, i, f, n[14], 2792965006, 17), i = d(i, f = u(f, c, h, i, n[15], 1236535329, 22), c, h, n[1], 4129170786, 5), h = d(h, i, f, c, n[6], 3225465664, 9), c = d(c, h, i, f, n[11], 643717713, 14), f = d(f, c, h, i, n[0], 3921069994, 20), i = d(i, f, c, h, n[5], 3593408605, 5), h = d(h, i, f, c, n[10], 38016083, 9), c = d(c, h, i, f, n[15], 3634488961, 14), f = d(f, c, h, i, n[4], 3889429448, 20), i = d(i, f, c, h, n[9], 568446438, 5), h = d(h, i, f, c, n[14], 3275163606, 9), c = d(c, h, i, f, n[3], 4107603335, 14), f = d(f, c, h, i, n[8], 1163531501, 20), i = d(i, f, c, h, n[13], 2850285829, 5), h = d(h, i, f, c, n[2], 4243563512, 9), c = d(c, h, i, f, n[7], 1735328473, 14), i = s(i, f = d(f, c, h, i, n[12], 2368359562, 20), c, h, n[5], 4294588738, 4), h = s(h, i, f, c, n[8], 2272392833, 11), c = s(c, h, i, f, n[11], 1839030562, 16), f = s(f, c, h, i, n[14], 4259657740, 23), i = s(i, f, c, h, n[1], 2763975236, 4), h = s(h, i, f, c, n[4], 1272893353, 11), c = s(c, h, i, f, n[7], 4139469664, 16), f = s(f, c, h, i, n[10], 3200236656, 23), i = s(i, f, c, h, n[13], 681279174, 4), h = s(h, i, f, c, n[0], 3936430074, 11), c = s(c, h, i, f, n[3], 3572445317, 16), f = s(f, c, h, i, n[6], 76029189, 23), i = s(i, f, c, h, n[9], 3654602809, 4), h = s(h, i, f, c, n[12], 3873151461, 11), c = s(c, h, i, f, n[15], 530742520, 16), i = r(i, f = s(f, c, h, i, n[2], 3299628645, 23), c, h, n[0], 4096336452, 6), h = r(h, i, f, c, n[7], 1126891415, 10), c = r(c, h, i, f, n[14], 2878612391, 15), f = r(f, c, h, i, n[5], 4237533241, 21), i = r(i, f, c, h, n[12], 1700485571, 6), h = r(h, i, f, c, n[3], 2399980690, 10), c = r(c, h, i, f, n[10], 4293915773, 15), f = r(f, c, h, i, n[1], 2240044497, 21), i = r(i, f, c, h, n[8], 1873313359, 6), h = r(h, i, f, c, n[15], 4264355552, 10), c = r(c, h, i, f, n[6], 2734768916, 15), f = r(f, c, h, i, n[13], 1309151649, 21), i = r(i, f, c, h, n[4], 4149444226, 6), h = r(h, i, f, c, n[11], 3174756917, 10), c = r(c, h, i, f, n[2], 718787259, 15), f = r(f, c, h, i, n[9], 3951481745, 21), this._a = this._a + i | 0, this._b = this._b + f | 0, this._c = this._c + c | 0, this._d = this._d + h | 0; + }, a.prototype._digest = function() { + 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(); + var n = k.allocUnsafe(16); + return n.writeInt32LE(this._a, 0), n.writeInt32LE(this._b, 4), n.writeInt32LE(this._c, 8), n.writeInt32LE(this._d, 12), n; + }, J.exports = a; + }, 9746: (J) => { + function e(_, O) { + if (!_) + throw new Error(O || "Assertion failed"); + } + J.exports = e, e.equal = function(_, O, A) { + if (_ != O) + throw new Error(A || "Assertion failed: " + _ + " != " + O); + }; + }, 4504: (J, e) => { + var _ = e; + function O(k) { + return k.length === 1 ? "0" + k : k; + } + function A(k) { + for (var b = "", a = 0; a < k.length; a++) + b += O(k[a].toString(16)); + return b; + } + _.toArray = function(k, b) { + if (Array.isArray(k)) + return k.slice(); + if (!k) + return []; + var a = []; + if (typeof k != "string") { + for (var t = 0; t < k.length; t++) + a[t] = 0 | k[t]; + return a; + } + if (b === "hex") + for ((k = k.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (k = "0" + k), t = 0; t < k.length; t += 2) + a.push(parseInt(k[t] + k[t + 1], 16)); + else + for (t = 0; t < k.length; t++) { + var u = k.charCodeAt(t), d = u >> 8, s = 255 & u; + d ? a.push(d, s) : a.push(s); + } + return a; + }, _.zero2 = O, _.toHex = A, _.encode = function(k, b) { + return b === "hex" ? A(k) : k; + }; + }, 45: function(J, e, _) { + var O = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + f.done ? s(f.value) : new u(function(c) { + c(f.value); + }).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3555), k = _(8982); + class b { + static importKey(t, u, d = new A.WebCryptoProvider()) { + return O(this, void 0, void 0, function* () { + return new b(yield k.SIV.importKey(t, u, d)); + }); + } + constructor(t) { + this._siv = t; + } + seal(t, u, d = new Uint8Array(0)) { + return O(this, void 0, void 0, function* () { + return this._siv.seal(t, [d, u]); + }); + } + open(t, u, d = new Uint8Array(0)) { + return O(this, void 0, void 0, function* () { + return this._siv.open(t, [d, u]); + }); + } + clear() { + return this._siv.clear(), this; + } + } + e.AEAD = b; + }, 4870: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + class _ extends Error { + constructor(k) { + super(k), Object.setPrototypeOf(this, _.prototype); + } + } + e.IntegrityError = _; + class O extends Error { + constructor(k) { + super(k), Object.setPrototypeOf(this, O.prototype); + } + } + e.NotImplementedError = O; + }, 9463: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), function(d) { + for (var s in d) + e.hasOwnProperty(s) || (e[s] = d[s]); + }(_(4870)); + var O = _(45); + e.AEAD = O.AEAD; + var A = _(8982); + e.SIV = A.SIV; + var k = _(8711); + e.StreamEncryptor = k.StreamEncryptor, e.StreamDecryptor = k.StreamDecryptor; + var b = _(8572); + e.CMAC = b.CMAC; + var a = _(8462); + e.PMAC = a.PMAC; + var t = _(3511); + e.PolyfillCryptoProvider = t.PolyfillCryptoProvider; + var u = _(3555); + e.WebCryptoProvider = u.WebCryptoProvider; + }, 3618: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + const O = _(8877), A = _(3082); + class k { + constructor() { + this.data = new Uint8Array(k.SIZE); + } + clear() { + A.wipe(this.data); + } + clone() { + const a = new k(); + return a.copy(this), a; + } + copy(a) { + this.data.set(a.data); + } + dbl() { + let a = 0; + for (let t = k.SIZE - 1; t >= 0; t--) { + const u = this.data[t] >>> 7 & 255; + this.data[t] = this.data[t] << 1 | a, a = u; + } + this.data[k.SIZE - 1] ^= O.select(a, k.R, 0), a = 0; + } + } + k.SIZE = 16, k.R = 135, e.default = k; + }, 8877: (J, e) => { + function _(O, A) { + if (O.length !== A.length) + return 0; + let k = 0; + for (let b = 0; b < O.length; b++) + k |= O[b] ^ A[b]; + return 1 & k - 1 >>> 8; + } + Object.defineProperty(e, "__esModule", { value: !0 }), e.select = function(O, A, k) { + return ~(O - 1) & A | O - 1 & k; + }, e.compare = _, e.equal = function(O, A) { + return O.length !== 0 && A.length !== 0 && _(O, A) !== 0; + }; + }, 2104: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + const _ = new Uint8Array([8, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0]); + e.ctz = function(O) { + return _[O]; + }; + }, 3082: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.wipe = function(_) { + for (let O = 0; O < _.length; O++) + _[O] = 0; + return _; + }; + }, 4080: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.xor = function(_, O) { + for (let A = 0; A < O.length; A++) + _[A] ^= O[A]; + }; + }, 8572: function(J, e, _) { + var O = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + f.done ? s(f.value) : new u(function(c) { + c(f.value); + }).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3618), k = _(4080); + class b { + constructor(t, u, d) { + this._cipher = t, this._subkey1 = u, this._subkey2 = d, this._bufferPos = 0, this._finished = !1, this._buffer = new A.default(); + } + static importKey(t, u) { + return O(this, void 0, void 0, function* () { + const d = yield t.importBlockCipherKey(u), s = new A.default(); + yield d.encryptBlock(s), s.dbl(); + const r = s.clone(); + return r.dbl(), new b(d, s, r); + }); + } + reset() { + return this._buffer.clear(), this._bufferPos = 0, this._finished = !1, this; + } + clear() { + this.reset(), this._subkey1.clear(), this._subkey2.clear(); + } + update(t) { + return O(this, void 0, void 0, function* () { + const u = A.default.SIZE - this._bufferPos; + let d = 0, s = t.length; + if (s > u) { + for (let r = 0; r < u; r++) + this._buffer.data[this._bufferPos + r] ^= t[r]; + s -= u, d += u, yield this._cipher.encryptBlock(this._buffer), this._bufferPos = 0; + } + for (; s > A.default.SIZE; ) { + for (let r = 0; r < A.default.SIZE; r++) + this._buffer.data[r] ^= t[d + r]; + s -= A.default.SIZE, d += A.default.SIZE, yield this._cipher.encryptBlock(this._buffer); + } + for (let r = 0; r < s; r++) + this._buffer.data[this._bufferPos++] ^= t[d + r]; + return this; + }); + } + finish() { + return O(this, void 0, void 0, function* () { + if (!this._finished) { + const t = this._bufferPos < A.default.SIZE ? this._subkey2 : this._subkey1; + k.xor(this._buffer.data, t.data), this._bufferPos < A.default.SIZE && (this._buffer.data[this._bufferPos] ^= 128), yield this._cipher.encryptBlock(this._buffer), this._finished = !0; + } + return this._buffer.clone().data; + }); + } + } + e.CMAC = b; + }, 8462: function(J, e, _) { + var O = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + h.done ? n(h.value) : new s(function(p) { + p(h.value); + }).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3618), k = _(8877), b = _(2104), a = _(4080); + class t { + constructor(d, s, r) { + this._finished = !1, this._cipher = d, this._L = s, this._LInv = r, this._buffer = new A.default(), this._bufferPos = 0, this._counter = 0, this._offset = new A.default(), this._tag = new A.default(); + } + static importKey(d, s) { + return O(this, void 0, void 0, function* () { + const r = yield d.importBlockCipherKey(s), n = new A.default(); + yield r.encryptBlock(n); + const o = new Array(31); + for (let c = 0; c < 31; c++) + o[c] = n.clone(), n.dbl(); + const i = o[0].clone(), f = 1 & i.data[A.default.SIZE - 1]; + for (let c = A.default.SIZE - 1; c > 0; c--) { + const h = k.select(1 & i.data[c - 1], 128, 0); + i.data[c] = i.data[c] >>> 1 | h; + } + return i.data[0] >>>= 1, i.data[0] ^= k.select(f, 128, 0), i.data[A.default.SIZE - 1] ^= k.select(f, A.default.R >>> 1, 0), new t(r, o, i); + }); + } + reset() { + return this._buffer.clear(), this._bufferPos = 0, this._counter = 0, this._offset.clear(), this._tag.clear(), this._finished = !1, this; + } + clear() { + this.reset(), this._cipher.clear(); + } + update(d) { + return O(this, void 0, void 0, function* () { + if (this._finished) + throw new Error("pmac: already finished"); + const s = A.default.SIZE - this._bufferPos; + let r = 0, n = d.length; + for (n > s && (this._buffer.data.set(d.slice(0, s), this._bufferPos), r += s, n -= s, yield this._processBuffer()); n > A.default.SIZE; ) + this._buffer.data.set(d.slice(r, r + A.default.SIZE)), r += A.default.SIZE, n -= A.default.SIZE, yield this._processBuffer(); + return n > 0 && (this._buffer.data.set(d.slice(r, r + n), this._bufferPos), this._bufferPos += n), this; + }); + } + finish() { + return O(this, void 0, void 0, function* () { + if (this._finished) + throw new Error("pmac: already finished"); + return this._bufferPos === A.default.SIZE ? (a.xor(this._tag.data, this._buffer.data), a.xor(this._tag.data, this._LInv.data)) : (a.xor(this._tag.data, this._buffer.data.slice(0, this._bufferPos)), this._tag.data[this._bufferPos] ^= 128), yield this._cipher.encryptBlock(this._tag), this._finished = !0, this._tag.clone().data; + }); + } + _processBuffer() { + return O(this, void 0, void 0, function* () { + a.xor(this._offset.data, this._L[b.ctz(this._counter + 1)].data), a.xor(this._buffer.data, this._offset.data), this._counter++, yield this._cipher.encryptBlock(this._buffer), a.xor(this._tag.data, this._buffer.data), this._bufferPos = 0; + }); + } + } + e.PMAC = t; + }, 3511: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + i.done ? d(i.value) : new t(function(f) { + f(i.value); + }).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(4274), k = _(3056); + e.PolyfillCryptoProvider = class { + constructor() { + } + importBlockCipherKey(b) { + return O(this, void 0, void 0, function* () { + return new A.default(b); + }); + } + importCTRKey(b) { + return O(this, void 0, void 0, function* () { + return new k.default(new A.default(b)); + }); + } + }; + }, 4274: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + const O = _(3082), A = new Uint8Array([1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47]), k = new Uint8Array([99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22]), b = new Uint8Array([82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125]); + let a, t, u, d, s, r, n, o, i = !1; + function f(p, m = 0) { + return (p[m] << 24 | p[m + 1] << 16 | p[m + 2] << 8 | p[m + 3]) >>> 0; + } + function c(p, m = new Uint8Array(4), M = 0) { + return m[M + 0] = p >>> 24, m[M + 1] = p >>> 16, m[M + 2] = p >>> 8, m[M + 3] = p >>> 0, m; + } + function h(p) { + return k[p >>> 24 & 255] << 24 | k[p >>> 16 & 255] << 16 | k[p >>> 8 & 255] << 8 | k[255 & p]; + } + e.default = class { + constructor(p) { + if (i || function() { + function m(l, N) { + let j = l, R = N, I = 0; + for (let x = 1; x < 256 && R !== 0; x <<= 1) + R & x && (I ^= j, R ^= x), j <<= 1, 256 & j && (j ^= 283); + return I; + } + const M = (l) => l << 24 | l >>> 8; + a = new Uint32Array(256), t = new Uint32Array(256), u = new Uint32Array(256), d = new Uint32Array(256); + for (let l = 0; l < 256; l++) { + const N = k[l]; + let j = m(N, 2) << 24 | N << 16 | N << 8 | m(N, 3); + a[l] = j, j = M(j), t[l] = j, j = M(j), u[l] = j, j = M(j), d[l] = j, j = M(j); + } + s = new Uint32Array(256), r = new Uint32Array(256), n = new Uint32Array(256), o = new Uint32Array(256); + for (let l = 0; l < 256; l++) { + const N = b[l]; + let j = m(N, 14) << 24 | m(N, 9) << 16 | m(N, 13) << 8 | m(N, 11); + s[l] = j, j = M(j), r[l] = j, j = M(j), n[l] = j, j = M(j), o[l] = j, j = M(j); + } + i = !0; + }(), p.length !== 16 && p.length !== 32) + throw new Error(`Miscreant: invalid key length: ${p.length} (expected 16 or 32 bytes)`); + this._encKey = function(m) { + const M = new Uint32Array(m.length + 28), l = m.length / 4 | 0, N = M.length; + for (let R = 0; R < l; R++) + M[R] = f(m, 4 * R); + for (let R = l; R < N; R++) { + let I = M[R - 1]; + R % l == 0 ? I = h((j = I) << 8 | j >>> 24) ^ A[R / l - 1] << 24 : l > 6 && R % l == 4 && (I = h(I)), M[R] = M[R - l] ^ I; + } + var j; + return M; + }(p), this._emptyPromise = Promise.resolve(this); + } + clear() { + return this._encKey && O.wipe(this._encKey), this; + } + encryptBlock(p) { + const m = p.data, M = p.data; + let l = f(m, 0), N = f(m, 4), j = f(m, 8), R = f(m, 12); + l ^= this._encKey[0], N ^= this._encKey[1], j ^= this._encKey[2], R ^= this._encKey[3]; + let I = 0, x = 0, P = 0, w = 0; + const g = this._encKey.length / 4 - 2; + let E = 4; + for (let U = 0; U < g; U++) + I = this._encKey[E + 0] ^ a[l >>> 24 & 255] ^ t[N >>> 16 & 255] ^ u[j >>> 8 & 255] ^ d[255 & R], x = this._encKey[E + 1] ^ a[N >>> 24 & 255] ^ t[j >>> 16 & 255] ^ u[R >>> 8 & 255] ^ d[255 & l], P = this._encKey[E + 2] ^ a[j >>> 24 & 255] ^ t[R >>> 16 & 255] ^ u[l >>> 8 & 255] ^ d[255 & N], w = this._encKey[E + 3] ^ a[R >>> 24 & 255] ^ t[l >>> 16 & 255] ^ u[N >>> 8 & 255] ^ d[255 & j], E += 4, l = I, N = x, j = P, R = w; + return l = k[I >>> 24] << 24 | k[x >>> 16 & 255] << 16 | k[P >>> 8 & 255] << 8 | k[255 & w], N = k[x >>> 24] << 24 | k[P >>> 16 & 255] << 16 | k[w >>> 8 & 255] << 8 | k[255 & I], j = k[P >>> 24] << 24 | k[w >>> 16 & 255] << 16 | k[I >>> 8 & 255] << 8 | k[255 & x], R = k[w >>> 24] << 24 | k[I >>> 16 & 255] << 16 | k[x >>> 8 & 255] << 8 | k[255 & P], l ^= this._encKey[E + 0], N ^= this._encKey[E + 1], j ^= this._encKey[E + 2], R ^= this._encKey[E + 3], c(l, M, 0), c(N, M, 4), c(j, M, 8), c(R, M, 12), this._emptyPromise; + } + }; + }, 3056: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + i.done ? d(i.value) : new t(function(f) { + f(i.value); + }).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3618); + function k(b) { + let a = 1; + for (let t = A.default.SIZE - 1; t >= 0; t--) + a += 255 & b.data[t] | 0, b.data[t] = 255 & a, a >>>= 8; + } + e.default = class { + constructor(b) { + this._cipher = b, this._counter = new A.default(), this._buffer = new A.default(); + } + clear() { + return this._buffer.clear(), this._counter.clear(), this._cipher.clear(), this; + } + encryptCtr(b, a) { + return O(this, void 0, void 0, function* () { + if (b.length !== A.default.SIZE) + throw new Error("CTR: iv length must be equal to cipher block size"); + this._counter.data.set(b); + let t = A.default.SIZE; + const u = new Uint8Array(a.length); + for (let d = 0; d < a.length; d++) + t === A.default.SIZE && (this._buffer.copy(this._counter), this._cipher.encryptBlock(this._buffer), t = 0, k(this._counter)), u[d] = a[d] ^ this._buffer.data[t++]; + return u; + }); + } + }; + }, 3555: function(J, e, _) { + var O = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + f.done ? s(f.value) : new u(function(c) { + c(f.value); + }).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(4870), k = _(2695), b = _(1530); + e.WebCryptoProvider = class { + constructor(a = window.crypto) { + this.crypto = a; + } + importBlockCipherKey(a) { + return O(this, void 0, void 0, function* () { + return k.default.importKey(this.crypto, a); + }); + } + importCTRKey(a) { + return O(this, void 0, void 0, function* () { + try { + return yield b.default.importKey(this.crypto, a); + } catch (t) { + throw t.message.includes("unsupported") ? new A.NotImplementedError("WebCryptoProvider: AES-CTR unsupported. Use PolyfillCryptoProvider.") : t; + } + }); + } + }; + }, 2695: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + i.done ? d(i.value) : new t(function(f) { + f(i.value); + }).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(3618); + class k { + constructor(a, t) { + this._crypto = a, this._key = t, this._iv = new A.default(), this._emptyPromise = Promise.resolve(this); + } + static importKey(a, t) { + return O(this, void 0, void 0, function* () { + if (t.length !== 16 && t.length !== 32) + throw new Error(`Miscreant: invalid key length: ${t.length} (expected 16 or 32 bytes)`); + const u = yield a.subtle.importKey("raw", t, "AES-CBC", !1, ["encrypt"]); + return new k(a, u); + }); + } + clear() { + return this; + } + encryptBlock(a) { + return O(this, void 0, void 0, function* () { + const t = { name: "AES-CBC", iv: this._iv.data }, u = yield this._crypto.subtle.encrypt(t, this._key, a.data); + return a.data.set(new Uint8Array(u, 0, A.default.SIZE)), this._emptyPromise; + }); + } + } + e.default = k; + }, 1530: function(J, e) { + var _ = this && this.__awaiter || function(A, k, b, a) { + return new (b || (b = Promise))(function(t, u) { + function d(n) { + try { + r(a.next(n)); + } catch (o) { + u(o); + } + } + function s(n) { + try { + r(a.throw(n)); + } catch (o) { + u(o); + } + } + function r(n) { + n.done ? t(n.value) : new b(function(o) { + o(n.value); + }).then(d, s); + } + r((a = a.apply(A, k || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + class O { + constructor(k, b) { + this.key = k, this.crypto = b; + } + static importKey(k, b) { + return _(this, void 0, void 0, function* () { + if (b.length !== 16 && b.length !== 32) + throw new Error(`Miscreant: invalid key length: ${b.length} (expected 16 or 32 bytes)`); + const a = yield k.subtle.importKey("raw", b, "AES-CTR", !1, ["encrypt"]); + return new O(a, k); + }); + } + encryptCtr(k, b) { + return _(this, void 0, void 0, function* () { + const a = yield this.crypto.subtle.encrypt({ name: "AES-CTR", counter: k, length: 16 }, this.key, b); + return new Uint8Array(a); + }); + } + clear() { + return this; + } + } + e.default = O; + }, 8982: function(J, e, _) { + var O = this && this.__awaiter || function(o, i, f, c) { + return new (f || (f = Promise))(function(h, p) { + function m(N) { + try { + l(c.next(N)); + } catch (j) { + p(j); + } + } + function M(N) { + try { + l(c.throw(N)); + } catch (j) { + p(j); + } + } + function l(N) { + N.done ? h(N.value) : new f(function(j) { + j(N.value); + }).then(m, M); + } + l((c = c.apply(o, i || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(8877), k = _(3082), b = _(4080), a = _(4870), t = _(3618), u = _(8572), d = _(8462), s = _(3555); + e.MAX_ASSOCIATED_DATA = 126; + class r { + static importKey(i, f, c = new s.WebCryptoProvider()) { + return O(this, void 0, void 0, function* () { + if (i.length !== 32 && i.length !== 64) + throw new Error(`AES-SIV: key must be 32 or 64-bytes (got ${i.length}`); + const h = i.subarray(0, i.length / 2 | 0), p = i.subarray(i.length / 2 | 0); + let m; + switch (f) { + case "AES-SIV": + case "AES-CMAC-SIV": + m = yield u.CMAC.importKey(c, h); + break; + case "AES-PMAC-SIV": + m = yield d.PMAC.importKey(c, h); + break; + default: + throw new a.NotImplementedError(`Miscreant: algorithm not supported: ${f}`); + } + const M = yield c.importCTRKey(p); + return new r(m, M); + }); + } + constructor(i, f) { + this._mac = i, this._ctr = f, this._tmp1 = new t.default(), this._tmp2 = new t.default(); + } + seal(i, f) { + return O(this, void 0, void 0, function* () { + if (f.length > e.MAX_ASSOCIATED_DATA) + throw new Error("AES-SIV: too many associated data items"); + const c = t.default.SIZE + i.length, h = new Uint8Array(c), p = yield this._s2v(f, i); + return h.set(p), n(p), h.set(yield this._ctr.encryptCtr(p, i), p.length), h; + }); + } + open(i, f) { + return O(this, void 0, void 0, function* () { + if (f.length > e.MAX_ASSOCIATED_DATA) + throw new Error("AES-SIV: too many associated data items"); + if (i.length < t.default.SIZE) + throw new a.IntegrityError("AES-SIV: ciphertext is truncated"); + const c = i.subarray(0, t.default.SIZE), h = this._tmp1.data; + h.set(c), n(h); + const p = yield this._ctr.encryptCtr(h, i.subarray(t.default.SIZE)), m = yield this._s2v(f, p); + if (!A.equal(m, c)) + throw k.wipe(p), new a.IntegrityError("AES-SIV: ciphertext verification failure!"); + return p; + }); + } + clear() { + return this._tmp1.clear(), this._tmp2.clear(), this._ctr.clear(), this._mac.clear(), this; + } + _s2v(i, f) { + return O(this, void 0, void 0, function* () { + this._mac.reset(), this._tmp1.clear(), yield this._mac.update(this._tmp1.data), this._tmp2.clear(), this._tmp2.data.set(yield this._mac.finish()), this._mac.reset(); + for (const c of i) + yield this._mac.update(c), this._tmp1.clear(), this._tmp1.data.set(yield this._mac.finish()), this._mac.reset(), this._tmp2.dbl(), b.xor(this._tmp2.data, this._tmp1.data); + if (this._tmp1.clear(), f.length >= t.default.SIZE) { + const c = f.length - t.default.SIZE; + this._tmp1.data.set(f.subarray(c)), yield this._mac.update(f.subarray(0, c)); + } else + this._tmp1.data.set(f), this._tmp1.data[f.length] = 128, this._tmp2.dbl(); + return b.xor(this._tmp1.data, this._tmp2.data), yield this._mac.update(this._tmp1.data), this._mac.finish(); + }); + } + } + function n(o) { + o[o.length - 8] &= 127, o[o.length - 4] &= 127; + } + e.SIV = r; + }, 8711: function(J, e, _) { + var O = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + h.done ? n(h.value) : new s(function(p) { + p(h.value); + }).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }); + const A = _(45), k = _(3555); + e.NONCE_SIZE = 8, e.LAST_BLOCK_FLAG = 1, e.COUNTER_MAX = 4294967295; + class b { + static importKey(d, s, r, n = new k.WebCryptoProvider()) { + return O(this, void 0, void 0, function* () { + return new b(yield A.AEAD.importKey(d, r, n), s); + }); + } + constructor(d, s) { + this._aead = d, this._nonce_encoder = new t(s); + } + seal(d, s = !1, r = new Uint8Array(0)) { + return O(this, void 0, void 0, function* () { + return this._aead.seal(d, this._nonce_encoder.next(s), r); + }); + } + clear() { + return this._aead.clear(), this; + } + } + e.StreamEncryptor = b; + class a { + static importKey(d, s, r, n = new k.WebCryptoProvider()) { + return O(this, void 0, void 0, function* () { + return new a(yield A.AEAD.importKey(d, r, n), s); + }); + } + constructor(d, s) { + this._aead = d, this._nonce_encoder = new t(s); + } + open(d, s = !1, r = new Uint8Array(0)) { + return O(this, void 0, void 0, function* () { + return this._aead.open(d, this._nonce_encoder.next(s), r); + }); + } + clear() { + return this._aead.clear(), this; + } + } + e.StreamDecryptor = a; + class t { + constructor(d) { + if (d.length !== e.NONCE_SIZE) + throw new Error(`STREAM: nonce must be 8-bits (got ${d.length}`); + this.buffer = new ArrayBuffer(e.NONCE_SIZE + 4 + 1), this.view = new DataView(this.buffer), this.array = new Uint8Array(this.buffer), this.array.set(d), this.counter = 0, this.finished = !1; + } + next(d) { + if (this.finished) + throw new Error("STREAM: already finished"); + if (this.view.setInt32(8, this.counter, !1), d) + this.view.setInt8(12, e.LAST_BLOCK_FLAG), this.finished = !0; + else if (this.counter += 1, this.counter > e.COUNTER_MAX) + throw new Error("STREAM counter overflowed"); + return this.array; + } + } + }, 4244: (J) => { + var e = function(_) { + return _ != _; + }; + J.exports = function(_, O) { + return _ === 0 && O === 0 ? 1 / _ == 1 / O : _ === O || !(!e(_) || !e(O)); + }; + }, 609: (J, e, _) => { + var O = _(4289), A = _(5559), k = _(4244), b = _(5624), a = _(2281), t = A(b(), Object); + O(t, { getPolyfill: b, implementation: k, shim: a }), J.exports = t; + }, 5624: (J, e, _) => { + var O = _(4244); + J.exports = function() { + return typeof Object.is == "function" ? Object.is : O; + }; + }, 2281: (J, e, _) => { + var O = _(5624), A = _(4289); + J.exports = function() { + var k = O(); + return A(Object, { is: k }, { is: function() { + return Object.is !== k; + } }), k; + }; + }, 8987: (J, e, _) => { + var O; + if (!Object.keys) { + var A = Object.prototype.hasOwnProperty, k = Object.prototype.toString, b = _(1414), a = Object.prototype.propertyIsEnumerable, t = !a.call({ toString: null }, "toString"), u = a.call(function() { + }, "prototype"), d = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], s = function(o) { + var i = o.constructor; + return i && i.prototype === o; + }, r = { $applicationCache: !0, $console: !0, $external: !0, $frame: !0, $frameElement: !0, $frames: !0, $innerHeight: !0, $innerWidth: !0, $onmozfullscreenchange: !0, $onmozfullscreenerror: !0, $outerHeight: !0, $outerWidth: !0, $pageXOffset: !0, $pageYOffset: !0, $parent: !0, $scrollLeft: !0, $scrollTop: !0, $scrollX: !0, $scrollY: !0, $self: !0, $webkitIndexedDB: !0, $webkitStorageInfo: !0, $window: !0 }, n = function() { + if (typeof window > "u") + return !1; + for (var o in window) + try { + if (!r["$" + o] && A.call(window, o) && window[o] !== null && typeof window[o] == "object") + try { + s(window[o]); + } catch { + return !0; + } + } catch { + return !0; + } + return !1; + }(); + O = function(o) { + var i = o !== null && typeof o == "object", f = k.call(o) === "[object Function]", c = b(o), h = i && k.call(o) === "[object String]", p = []; + if (!i && !f && !c) + throw new TypeError("Object.keys called on a non-object"); + var m = u && f; + if (h && o.length > 0 && !A.call(o, 0)) + for (var M = 0; M < o.length; ++M) + p.push(String(M)); + if (c && o.length > 0) + for (var l = 0; l < o.length; ++l) + p.push(String(l)); + else + for (var N in o) + m && N === "prototype" || !A.call(o, N) || p.push(String(N)); + if (t) + for (var j = function(I) { + if (typeof window > "u" || !n) + return s(I); + try { + return s(I); + } catch { + return !1; + } + }(o), R = 0; R < d.length; ++R) + j && d[R] === "constructor" || !A.call(o, d[R]) || p.push(d[R]); + return p; + }; + } + J.exports = O; + }, 2215: (J, e, _) => { + var O = Array.prototype.slice, A = _(1414), k = Object.keys, b = k ? function(t) { + return k(t); + } : _(8987), a = Object.keys; + b.shim = function() { + if (Object.keys) { + var t = function() { + var u = Object.keys(arguments); + return u && u.length === arguments.length; + }(1, 2); + t || (Object.keys = function(u) { + return A(u) ? a(O.call(u)) : a(u); + }); + } else + Object.keys = b; + return Object.keys || b; + }, J.exports = b; + }, 1414: (J) => { + var e = Object.prototype.toString; + J.exports = function(_) { + var O = e.call(_), A = O === "[object Arguments]"; + return A || (A = O !== "[object Array]" && _ !== null && typeof _ == "object" && typeof _.length == "number" && _.length >= 0 && e.call(_.callee) === "[object Function]"), A; + }; + }, 9591: (J, e, _) => { + const { Deflate: O, deflate: A, deflateRaw: k, gzip: b } = _(4555), { Inflate: a, inflate: t, inflateRaw: u, ungzip: d } = _(8843), s = _(1619); + J.exports.Deflate = O, J.exports.deflate = A, J.exports.deflateRaw = k, J.exports.gzip = b, J.exports.Inflate = a, J.exports.inflate = t, J.exports.inflateRaw = u, J.exports.ungzip = d, J.exports.constants = s; + }, 4555: (J, e, _) => { + const O = _(405), A = _(4236), k = _(9373), b = _(8898), a = _(2292), t = Object.prototype.toString, { Z_NO_FLUSH: u, Z_SYNC_FLUSH: d, Z_FULL_FLUSH: s, Z_FINISH: r, Z_OK: n, Z_STREAM_END: o, Z_DEFAULT_COMPRESSION: i, Z_DEFAULT_STRATEGY: f, Z_DEFLATED: c } = _(1619); + function h(m) { + this.options = A.assign({ level: i, method: c, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: f }, m || {}); + let M = this.options; + M.raw && M.windowBits > 0 ? M.windowBits = -M.windowBits : M.gzip && M.windowBits > 0 && M.windowBits < 16 && (M.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new a(), this.strm.avail_out = 0; + let l = O.deflateInit2(this.strm, M.level, M.method, M.windowBits, M.memLevel, M.strategy); + if (l !== n) + throw new Error(b[l]); + if (M.header && O.deflateSetHeader(this.strm, M.header), M.dictionary) { + let N; + if (N = typeof M.dictionary == "string" ? k.string2buf(M.dictionary) : t.call(M.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(M.dictionary) : M.dictionary, l = O.deflateSetDictionary(this.strm, N), l !== n) + throw new Error(b[l]); + this._dict_set = !0; + } + } + function p(m, M) { + const l = new h(M); + if (l.push(m, !0), l.err) + throw l.msg || b[l.err]; + return l.result; + } + h.prototype.push = function(m, M) { + const l = this.strm, N = this.options.chunkSize; + let j, R; + if (this.ended) + return !1; + for (R = M === ~~M ? M : M === !0 ? r : u, typeof m == "string" ? l.input = k.string2buf(m) : t.call(m) === "[object ArrayBuffer]" ? l.input = new Uint8Array(m) : l.input = m, l.next_in = 0, l.avail_in = l.input.length; ; ) + if (l.avail_out === 0 && (l.output = new Uint8Array(N), l.next_out = 0, l.avail_out = N), (R === d || R === s) && l.avail_out <= 6) + this.onData(l.output.subarray(0, l.next_out)), l.avail_out = 0; + else { + if (j = O.deflate(l, R), j === o) + return l.next_out > 0 && this.onData(l.output.subarray(0, l.next_out)), j = O.deflateEnd(this.strm), this.onEnd(j), this.ended = !0, j === n; + if (l.avail_out !== 0) { + if (R > 0 && l.next_out > 0) + this.onData(l.output.subarray(0, l.next_out)), l.avail_out = 0; + else if (l.avail_in === 0) + break; + } else + this.onData(l.output); + } + return !0; + }, h.prototype.onData = function(m) { + this.chunks.push(m); + }, h.prototype.onEnd = function(m) { + m === n && (this.result = A.flattenChunks(this.chunks)), this.chunks = [], this.err = m, this.msg = this.strm.msg; + }, J.exports.Deflate = h, J.exports.deflate = p, J.exports.deflateRaw = function(m, M) { + return (M = M || {}).raw = !0, p(m, M); + }, J.exports.gzip = function(m, M) { + return (M = M || {}).gzip = !0, p(m, M); + }, J.exports.constants = _(1619); + }, 8843: (J, e, _) => { + const O = _(6351), A = _(4236), k = _(9373), b = _(8898), a = _(2292), t = _(188), u = Object.prototype.toString, { Z_NO_FLUSH: d, Z_FINISH: s, Z_OK: r, Z_STREAM_END: n, Z_NEED_DICT: o, Z_STREAM_ERROR: i, Z_DATA_ERROR: f, Z_MEM_ERROR: c } = _(1619); + function h(m) { + this.options = A.assign({ chunkSize: 65536, windowBits: 15, to: "" }, m || {}); + const M = this.options; + M.raw && M.windowBits >= 0 && M.windowBits < 16 && (M.windowBits = -M.windowBits, M.windowBits === 0 && (M.windowBits = -15)), !(M.windowBits >= 0 && M.windowBits < 16) || m && m.windowBits || (M.windowBits += 32), M.windowBits > 15 && M.windowBits < 48 && !(15 & M.windowBits) && (M.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new a(), this.strm.avail_out = 0; + let l = O.inflateInit2(this.strm, M.windowBits); + if (l !== r) + throw new Error(b[l]); + if (this.header = new t(), O.inflateGetHeader(this.strm, this.header), M.dictionary && (typeof M.dictionary == "string" ? M.dictionary = k.string2buf(M.dictionary) : u.call(M.dictionary) === "[object ArrayBuffer]" && (M.dictionary = new Uint8Array(M.dictionary)), M.raw && (l = O.inflateSetDictionary(this.strm, M.dictionary), l !== r))) + throw new Error(b[l]); + } + function p(m, M) { + const l = new h(M); + if (l.push(m), l.err) + throw l.msg || b[l.err]; + return l.result; + } + h.prototype.push = function(m, M) { + const l = this.strm, N = this.options.chunkSize, j = this.options.dictionary; + let R, I, x; + if (this.ended) + return !1; + for (I = M === ~~M ? M : M === !0 ? s : d, u.call(m) === "[object ArrayBuffer]" ? l.input = new Uint8Array(m) : l.input = m, l.next_in = 0, l.avail_in = l.input.length; ; ) { + for (l.avail_out === 0 && (l.output = new Uint8Array(N), l.next_out = 0, l.avail_out = N), R = O.inflate(l, I), R === o && j && (R = O.inflateSetDictionary(l, j), R === r ? R = O.inflate(l, I) : R === f && (R = o)); l.avail_in > 0 && R === n && l.state.wrap > 0 && m[l.next_in] !== 0; ) + O.inflateReset(l), R = O.inflate(l, I); + switch (R) { + case i: + case f: + case o: + case c: + return this.onEnd(R), this.ended = !0, !1; + } + if (x = l.avail_out, l.next_out && (l.avail_out === 0 || R === n)) + if (this.options.to === "string") { + let P = k.utf8border(l.output, l.next_out), w = l.next_out - P, g = k.buf2string(l.output, P); + l.next_out = w, l.avail_out = N - w, w && l.output.set(l.output.subarray(P, P + w), 0), this.onData(g); + } else + this.onData(l.output.length === l.next_out ? l.output : l.output.subarray(0, l.next_out)); + if (R !== r || x !== 0) { + if (R === n) + return R = O.inflateEnd(this.strm), this.onEnd(R), this.ended = !0, !0; + if (l.avail_in === 0) + break; + } + } + return !0; + }, h.prototype.onData = function(m) { + this.chunks.push(m); + }, h.prototype.onEnd = function(m) { + m === r && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = A.flattenChunks(this.chunks)), this.chunks = [], this.err = m, this.msg = this.strm.msg; + }, J.exports.Inflate = h, J.exports.inflate = p, J.exports.inflateRaw = function(m, M) { + return (M = M || {}).raw = !0, p(m, M); + }, J.exports.ungzip = p, J.exports.constants = _(1619); + }, 4236: (J) => { + const e = (_, O) => Object.prototype.hasOwnProperty.call(_, O); + J.exports.assign = function(_) { + const O = Array.prototype.slice.call(arguments, 1); + for (; O.length; ) { + const A = O.shift(); + if (A) { + if (typeof A != "object") + throw new TypeError(A + "must be non-object"); + for (const k in A) + e(A, k) && (_[k] = A[k]); + } + } + return _; + }, J.exports.flattenChunks = (_) => { + let O = 0; + for (let k = 0, b = _.length; k < b; k++) + O += _[k].length; + const A = new Uint8Array(O); + for (let k = 0, b = 0, a = _.length; k < a; k++) { + let t = _[k]; + A.set(t, b), b += t.length; + } + return A; + }; + }, 9373: (J) => { + let e = !0; + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch { + e = !1; + } + const _ = new Uint8Array(256); + for (let O = 0; O < 256; O++) + _[O] = O >= 252 ? 6 : O >= 248 ? 5 : O >= 240 ? 4 : O >= 224 ? 3 : O >= 192 ? 2 : 1; + _[254] = _[254] = 1, J.exports.string2buf = (O) => { + if (typeof TextEncoder == "function" && TextEncoder.prototype.encode) + return new TextEncoder().encode(O); + let A, k, b, a, t, u = O.length, d = 0; + for (a = 0; a < u; a++) + k = O.charCodeAt(a), (64512 & k) == 55296 && a + 1 < u && (b = O.charCodeAt(a + 1), (64512 & b) == 56320 && (k = 65536 + (k - 55296 << 10) + (b - 56320), a++)), d += k < 128 ? 1 : k < 2048 ? 2 : k < 65536 ? 3 : 4; + for (A = new Uint8Array(d), t = 0, a = 0; t < d; a++) + k = O.charCodeAt(a), (64512 & k) == 55296 && a + 1 < u && (b = O.charCodeAt(a + 1), (64512 & b) == 56320 && (k = 65536 + (k - 55296 << 10) + (b - 56320), a++)), k < 128 ? A[t++] = k : k < 2048 ? (A[t++] = 192 | k >>> 6, A[t++] = 128 | 63 & k) : k < 65536 ? (A[t++] = 224 | k >>> 12, A[t++] = 128 | k >>> 6 & 63, A[t++] = 128 | 63 & k) : (A[t++] = 240 | k >>> 18, A[t++] = 128 | k >>> 12 & 63, A[t++] = 128 | k >>> 6 & 63, A[t++] = 128 | 63 & k); + return A; + }, J.exports.buf2string = (O, A) => { + const k = A || O.length; + if (typeof TextDecoder == "function" && TextDecoder.prototype.decode) + return new TextDecoder().decode(O.subarray(0, A)); + let b, a; + const t = new Array(2 * k); + for (a = 0, b = 0; b < k; ) { + let u = O[b++]; + if (u < 128) { + t[a++] = u; + continue; + } + let d = _[u]; + if (d > 4) + t[a++] = 65533, b += d - 1; + else { + for (u &= d === 2 ? 31 : d === 3 ? 15 : 7; d > 1 && b < k; ) + u = u << 6 | 63 & O[b++], d--; + d > 1 ? t[a++] = 65533 : u < 65536 ? t[a++] = u : (u -= 65536, t[a++] = 55296 | u >> 10 & 1023, t[a++] = 56320 | 1023 & u); + } + } + return ((u, d) => { + if (d < 65534 && u.subarray && e) + return String.fromCharCode.apply(null, u.length === d ? u : u.subarray(0, d)); + let s = ""; + for (let r = 0; r < d; r++) + s += String.fromCharCode(u[r]); + return s; + })(t, a); + }, J.exports.utf8border = (O, A) => { + (A = A || O.length) > O.length && (A = O.length); + let k = A - 1; + for (; k >= 0 && (192 & O[k]) == 128; ) + k--; + return k < 0 || k === 0 ? A : k + _[O[k]] > A ? k : A; + }; + }, 6069: (J) => { + J.exports = (e, _, O, A) => { + let k = 65535 & e | 0, b = e >>> 16 & 65535 | 0, a = 0; + for (; O !== 0; ) { + a = O > 2e3 ? 2e3 : O, O -= a; + do + k = k + _[A++] | 0, b = b + k | 0; + while (--a); + k %= 65521, b %= 65521; + } + return k | b << 16 | 0; + }; + }, 1619: (J) => { + J.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }; + }, 2869: (J) => { + const e = new Uint32Array((() => { + let _, O = []; + for (var A = 0; A < 256; A++) { + _ = A; + for (var k = 0; k < 8; k++) + _ = 1 & _ ? 3988292384 ^ _ >>> 1 : _ >>> 1; + O[A] = _; + } + return O; + })()); + J.exports = (_, O, A, k) => { + const b = e, a = k + A; + _ ^= -1; + for (let t = k; t < a; t++) + _ = _ >>> 8 ^ b[255 & (_ ^ O[t])]; + return -1 ^ _; + }; + }, 405: (J, e, _) => { + const { _tr_init: O, _tr_stored_block: A, _tr_flush_block: k, _tr_tally: b, _tr_align: a } = _(342), t = _(6069), u = _(2869), d = _(8898), { Z_NO_FLUSH: s, Z_PARTIAL_FLUSH: r, Z_FULL_FLUSH: n, Z_FINISH: o, Z_BLOCK: i, Z_OK: f, Z_STREAM_END: c, Z_STREAM_ERROR: h, Z_DATA_ERROR: p, Z_BUF_ERROR: m, Z_DEFAULT_COMPRESSION: M, Z_FILTERED: l, Z_HUFFMAN_ONLY: N, Z_RLE: j, Z_FIXED: R, Z_DEFAULT_STRATEGY: I, Z_UNKNOWN: x, Z_DEFLATED: P } = _(1619), w = 258, g = 262, E = 103, U = 113, C = 666, F = (W, v) => (W.msg = d[v], v), re = (W) => (W << 1) - (W > 4 ? 9 : 0), ee = (W) => { + let v = W.length; + for (; --v >= 0; ) + W[v] = 0; + }; + let ne = (W, v, y) => (v << W.hash_shift ^ y) & W.hash_mask; + const D = (W) => { + const v = W.state; + let y = v.pending; + y > W.avail_out && (y = W.avail_out), y !== 0 && (W.output.set(v.pending_buf.subarray(v.pending_out, v.pending_out + y), W.next_out), W.next_out += y, v.pending_out += y, W.total_out += y, W.avail_out -= y, v.pending -= y, v.pending === 0 && (v.pending_out = 0)); + }, Z = (W, v) => { + k(W, W.block_start >= 0 ? W.block_start : -1, W.strstart - W.block_start, v), W.block_start = W.strstart, D(W.strm); + }, $ = (W, v) => { + W.pending_buf[W.pending++] = v; + }, X = (W, v) => { + W.pending_buf[W.pending++] = v >>> 8 & 255, W.pending_buf[W.pending++] = 255 & v; + }, K = (W, v, y, S) => { + let T = W.avail_in; + return T > S && (T = S), T === 0 ? 0 : (W.avail_in -= T, v.set(W.input.subarray(W.next_in, W.next_in + T), y), W.state.wrap === 1 ? W.adler = t(W.adler, v, T, y) : W.state.wrap === 2 && (W.adler = u(W.adler, v, T, y)), W.next_in += T, W.total_in += T, T); + }, Y = (W, v) => { + let y, S, T = W.max_chain_length, B = W.strstart, z = W.prev_length, q = W.nice_match; + const te = W.strstart > W.w_size - g ? W.strstart - (W.w_size - g) : 0, oe = W.window, V = W.w_mask, Q = W.prev, G = W.strstart + w; + let H = oe[B + z - 1], ie = oe[B + z]; + W.prev_length >= W.good_match && (T >>= 2), q > W.lookahead && (q = W.lookahead); + do + if (y = v, oe[y + z] === ie && oe[y + z - 1] === H && oe[y] === oe[B] && oe[++y] === oe[B + 1]) { + B += 2, y++; + do + ; + while (oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && oe[++B] === oe[++y] && B < G); + if (S = w - (G - B), B = G - w, S > z) { + if (W.match_start = v, z = S, S >= q) + break; + H = oe[B + z - 1], ie = oe[B + z]; + } + } + while ((v = Q[v & V]) > te && --T != 0); + return z <= W.lookahead ? z : W.lookahead; + }, L = (W) => { + const v = W.w_size; + let y, S, T, B, z; + do { + if (B = W.window_size - W.lookahead - W.strstart, W.strstart >= v + (v - g)) { + W.window.set(W.window.subarray(v, v + v), 0), W.match_start -= v, W.strstart -= v, W.block_start -= v, S = W.hash_size, y = S; + do + T = W.head[--y], W.head[y] = T >= v ? T - v : 0; + while (--S); + S = v, y = S; + do + T = W.prev[--y], W.prev[y] = T >= v ? T - v : 0; + while (--S); + B += v; + } + if (W.strm.avail_in === 0) + break; + if (S = K(W.strm, W.window, W.strstart + W.lookahead, B), W.lookahead += S, W.lookahead + W.insert >= 3) + for (z = W.strstart - W.insert, W.ins_h = W.window[z], W.ins_h = ne(W, W.ins_h, W.window[z + 1]); W.insert && (W.ins_h = ne(W, W.ins_h, W.window[z + 3 - 1]), W.prev[z & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = z, z++, W.insert--, !(W.lookahead + W.insert < 3)); ) + ; + } while (W.lookahead < g && W.strm.avail_in !== 0); + }, ae = (W, v) => { + let y, S; + for (; ; ) { + if (W.lookahead < g) { + if (L(W), W.lookahead < g && v === s) + return 1; + if (W.lookahead === 0) + break; + } + if (y = 0, W.lookahead >= 3 && (W.ins_h = ne(W, W.ins_h, W.window[W.strstart + 3 - 1]), y = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart), y !== 0 && W.strstart - y <= W.w_size - g && (W.match_length = Y(W, y)), W.match_length >= 3) + if (S = b(W, W.strstart - W.match_start, W.match_length - 3), W.lookahead -= W.match_length, W.match_length <= W.max_lazy_match && W.lookahead >= 3) { + W.match_length--; + do + W.strstart++, W.ins_h = ne(W, W.ins_h, W.window[W.strstart + 3 - 1]), y = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart; + while (--W.match_length != 0); + W.strstart++; + } else + W.strstart += W.match_length, W.match_length = 0, W.ins_h = W.window[W.strstart], W.ins_h = ne(W, W.ins_h, W.window[W.strstart + 1]); + else + S = b(W, 0, W.window[W.strstart]), W.lookahead--, W.strstart++; + if (S && (Z(W, !1), W.strm.avail_out === 0)) + return 1; + } + return W.insert = W.strstart < 2 ? W.strstart : 2, v === o ? (Z(W, !0), W.strm.avail_out === 0 ? 3 : 4) : W.last_lit && (Z(W, !1), W.strm.avail_out === 0) ? 1 : 2; + }, ce = (W, v) => { + let y, S, T; + for (; ; ) { + if (W.lookahead < g) { + if (L(W), W.lookahead < g && v === s) + return 1; + if (W.lookahead === 0) + break; + } + if (y = 0, W.lookahead >= 3 && (W.ins_h = ne(W, W.ins_h, W.window[W.strstart + 3 - 1]), y = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart), W.prev_length = W.match_length, W.prev_match = W.match_start, W.match_length = 2, y !== 0 && W.prev_length < W.max_lazy_match && W.strstart - y <= W.w_size - g && (W.match_length = Y(W, y), W.match_length <= 5 && (W.strategy === l || W.match_length === 3 && W.strstart - W.match_start > 4096) && (W.match_length = 2)), W.prev_length >= 3 && W.match_length <= W.prev_length) { + T = W.strstart + W.lookahead - 3, S = b(W, W.strstart - 1 - W.prev_match, W.prev_length - 3), W.lookahead -= W.prev_length - 1, W.prev_length -= 2; + do + ++W.strstart <= T && (W.ins_h = ne(W, W.ins_h, W.window[W.strstart + 3 - 1]), y = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart); + while (--W.prev_length != 0); + if (W.match_available = 0, W.match_length = 2, W.strstart++, S && (Z(W, !1), W.strm.avail_out === 0)) + return 1; + } else if (W.match_available) { + if (S = b(W, 0, W.window[W.strstart - 1]), S && Z(W, !1), W.strstart++, W.lookahead--, W.strm.avail_out === 0) + return 1; + } else + W.match_available = 1, W.strstart++, W.lookahead--; + } + return W.match_available && (S = b(W, 0, W.window[W.strstart - 1]), W.match_available = 0), W.insert = W.strstart < 2 ? W.strstart : 2, v === o ? (Z(W, !0), W.strm.avail_out === 0 ? 3 : 4) : W.last_lit && (Z(W, !1), W.strm.avail_out === 0) ? 1 : 2; + }; + function ue(W, v, y, S, T) { + this.good_length = W, this.max_lazy = v, this.nice_length = y, this.max_chain = S, this.func = T; + } + const le = [new ue(0, 0, 0, 0, (W, v) => { + let y = 65535; + for (y > W.pending_buf_size - 5 && (y = W.pending_buf_size - 5); ; ) { + if (W.lookahead <= 1) { + if (L(W), W.lookahead === 0 && v === s) + return 1; + if (W.lookahead === 0) + break; + } + W.strstart += W.lookahead, W.lookahead = 0; + const S = W.block_start + y; + if ((W.strstart === 0 || W.strstart >= S) && (W.lookahead = W.strstart - S, W.strstart = S, Z(W, !1), W.strm.avail_out === 0) || W.strstart - W.block_start >= W.w_size - g && (Z(W, !1), W.strm.avail_out === 0)) + return 1; + } + return W.insert = 0, v === o ? (Z(W, !0), W.strm.avail_out === 0 ? 3 : 4) : (W.strstart > W.block_start && (Z(W, !1), W.strm.avail_out), 1); + }), new ue(4, 4, 8, 4, ae), new ue(4, 5, 16, 8, ae), new ue(4, 6, 32, 32, ae), new ue(4, 4, 16, 16, ce), new ue(8, 16, 32, 32, ce), new ue(8, 16, 128, 128, ce), new ue(8, 32, 128, 256, ce), new ue(32, 128, 258, 1024, ce), new ue(32, 258, 258, 4096, ce)]; + function be() { + this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = P, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), ee(this.dyn_ltree), ee(this.dyn_dtree), ee(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), ee(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), ee(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; + } + const de = (W) => { + if (!W || !W.state) + return F(W, h); + W.total_in = W.total_out = 0, W.data_type = x; + const v = W.state; + return v.pending = 0, v.pending_out = 0, v.wrap < 0 && (v.wrap = -v.wrap), v.status = v.wrap ? 42 : U, W.adler = v.wrap === 2 ? 0 : 1, v.last_flush = s, O(v), f; + }, pe = (W) => { + const v = de(W); + var y; + return v === f && ((y = W.state).window_size = 2 * y.w_size, ee(y.head), y.max_lazy_match = le[y.level].max_lazy, y.good_match = le[y.level].good_length, y.nice_match = le[y.level].nice_length, y.max_chain_length = le[y.level].max_chain, y.strstart = 0, y.block_start = 0, y.lookahead = 0, y.insert = 0, y.match_length = y.prev_length = 2, y.match_available = 0, y.ins_h = 0), v; + }, _e = (W, v, y, S, T, B) => { + if (!W) + return h; + let z = 1; + if (v === M && (v = 6), S < 0 ? (z = 0, S = -S) : S > 15 && (z = 2, S -= 16), T < 1 || T > 9 || y !== P || S < 8 || S > 15 || v < 0 || v > 9 || B < 0 || B > R) + return F(W, h); + S === 8 && (S = 9); + const q = new be(); + return W.state = q, q.strm = W, q.wrap = z, q.gzhead = null, q.w_bits = S, q.w_size = 1 << q.w_bits, q.w_mask = q.w_size - 1, q.hash_bits = T + 7, q.hash_size = 1 << q.hash_bits, q.hash_mask = q.hash_size - 1, q.hash_shift = ~~((q.hash_bits + 3 - 1) / 3), q.window = new Uint8Array(2 * q.w_size), q.head = new Uint16Array(q.hash_size), q.prev = new Uint16Array(q.w_size), q.lit_bufsize = 1 << T + 6, q.pending_buf_size = 4 * q.lit_bufsize, q.pending_buf = new Uint8Array(q.pending_buf_size), q.d_buf = 1 * q.lit_bufsize, q.l_buf = 3 * q.lit_bufsize, q.level = v, q.strategy = B, q.method = y, pe(W); + }; + J.exports.deflateInit = (W, v) => _e(W, v, P, 15, 8, I), J.exports.deflateInit2 = _e, J.exports.deflateReset = pe, J.exports.deflateResetKeep = de, J.exports.deflateSetHeader = (W, v) => W && W.state ? W.state.wrap !== 2 ? h : (W.state.gzhead = v, f) : h, J.exports.deflate = (W, v) => { + let y, S; + if (!W || !W.state || v > i || v < 0) + return W ? F(W, h) : h; + const T = W.state; + if (!W.output || !W.input && W.avail_in !== 0 || T.status === C && v !== o) + return F(W, W.avail_out === 0 ? m : h); + T.strm = W; + const B = T.last_flush; + if (T.last_flush = v, T.status === 42) + if (T.wrap === 2) + W.adler = 0, $(T, 31), $(T, 139), $(T, 8), T.gzhead ? ($(T, (T.gzhead.text ? 1 : 0) + (T.gzhead.hcrc ? 2 : 0) + (T.gzhead.extra ? 4 : 0) + (T.gzhead.name ? 8 : 0) + (T.gzhead.comment ? 16 : 0)), $(T, 255 & T.gzhead.time), $(T, T.gzhead.time >> 8 & 255), $(T, T.gzhead.time >> 16 & 255), $(T, T.gzhead.time >> 24 & 255), $(T, T.level === 9 ? 2 : T.strategy >= N || T.level < 2 ? 4 : 0), $(T, 255 & T.gzhead.os), T.gzhead.extra && T.gzhead.extra.length && ($(T, 255 & T.gzhead.extra.length), $(T, T.gzhead.extra.length >> 8 & 255)), T.gzhead.hcrc && (W.adler = u(W.adler, T.pending_buf, T.pending, 0)), T.gzindex = 0, T.status = 69) : ($(T, 0), $(T, 0), $(T, 0), $(T, 0), $(T, 0), $(T, T.level === 9 ? 2 : T.strategy >= N || T.level < 2 ? 4 : 0), $(T, 3), T.status = U); + else { + let z = P + (T.w_bits - 8 << 4) << 8, q = -1; + q = T.strategy >= N || T.level < 2 ? 0 : T.level < 6 ? 1 : T.level === 6 ? 2 : 3, z |= q << 6, T.strstart !== 0 && (z |= 32), z += 31 - z % 31, T.status = U, X(T, z), T.strstart !== 0 && (X(T, W.adler >>> 16), X(T, 65535 & W.adler)), W.adler = 1; + } + if (T.status === 69) + if (T.gzhead.extra) { + for (y = T.pending; T.gzindex < (65535 & T.gzhead.extra.length) && (T.pending !== T.pending_buf_size || (T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), D(W), y = T.pending, T.pending !== T.pending_buf_size)); ) + $(T, 255 & T.gzhead.extra[T.gzindex]), T.gzindex++; + T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), T.gzindex === T.gzhead.extra.length && (T.gzindex = 0, T.status = 73); + } else + T.status = 73; + if (T.status === 73) + if (T.gzhead.name) { + y = T.pending; + do { + if (T.pending === T.pending_buf_size && (T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), D(W), y = T.pending, T.pending === T.pending_buf_size)) { + S = 1; + break; + } + S = T.gzindex < T.gzhead.name.length ? 255 & T.gzhead.name.charCodeAt(T.gzindex++) : 0, $(T, S); + } while (S !== 0); + T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), S === 0 && (T.gzindex = 0, T.status = 91); + } else + T.status = 91; + if (T.status === 91) + if (T.gzhead.comment) { + y = T.pending; + do { + if (T.pending === T.pending_buf_size && (T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), D(W), y = T.pending, T.pending === T.pending_buf_size)) { + S = 1; + break; + } + S = T.gzindex < T.gzhead.comment.length ? 255 & T.gzhead.comment.charCodeAt(T.gzindex++) : 0, $(T, S); + } while (S !== 0); + T.gzhead.hcrc && T.pending > y && (W.adler = u(W.adler, T.pending_buf, T.pending - y, y)), S === 0 && (T.status = E); + } else + T.status = E; + if (T.status === E && (T.gzhead.hcrc ? (T.pending + 2 > T.pending_buf_size && D(W), T.pending + 2 <= T.pending_buf_size && ($(T, 255 & W.adler), $(T, W.adler >> 8 & 255), W.adler = 0, T.status = U)) : T.status = U), T.pending !== 0) { + if (D(W), W.avail_out === 0) + return T.last_flush = -1, f; + } else if (W.avail_in === 0 && re(v) <= re(B) && v !== o) + return F(W, m); + if (T.status === C && W.avail_in !== 0) + return F(W, m); + if (W.avail_in !== 0 || T.lookahead !== 0 || v !== s && T.status !== C) { + let z = T.strategy === N ? ((q, te) => { + let oe; + for (; ; ) { + if (q.lookahead === 0 && (L(q), q.lookahead === 0)) { + if (te === s) + return 1; + break; + } + if (q.match_length = 0, oe = b(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++, oe && (Z(q, !1), q.strm.avail_out === 0)) + return 1; + } + return q.insert = 0, te === o ? (Z(q, !0), q.strm.avail_out === 0 ? 3 : 4) : q.last_lit && (Z(q, !1), q.strm.avail_out === 0) ? 1 : 2; + })(T, v) : T.strategy === j ? ((q, te) => { + let oe, V, Q, G; + const H = q.window; + for (; ; ) { + if (q.lookahead <= w) { + if (L(q), q.lookahead <= w && te === s) + return 1; + if (q.lookahead === 0) + break; + } + if (q.match_length = 0, q.lookahead >= 3 && q.strstart > 0 && (Q = q.strstart - 1, V = H[Q], V === H[++Q] && V === H[++Q] && V === H[++Q])) { + G = q.strstart + w; + do + ; + while (V === H[++Q] && V === H[++Q] && V === H[++Q] && V === H[++Q] && V === H[++Q] && V === H[++Q] && V === H[++Q] && V === H[++Q] && Q < G); + q.match_length = w - (G - Q), q.match_length > q.lookahead && (q.match_length = q.lookahead); + } + if (q.match_length >= 3 ? (oe = b(q, 1, q.match_length - 3), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (oe = b(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), oe && (Z(q, !1), q.strm.avail_out === 0)) + return 1; + } + return q.insert = 0, te === o ? (Z(q, !0), q.strm.avail_out === 0 ? 3 : 4) : q.last_lit && (Z(q, !1), q.strm.avail_out === 0) ? 1 : 2; + })(T, v) : le[T.level].func(T, v); + if (z !== 3 && z !== 4 || (T.status = C), z === 1 || z === 3) + return W.avail_out === 0 && (T.last_flush = -1), f; + if (z === 2 && (v === r ? a(T) : v !== i && (A(T, 0, 0, !1), v === n && (ee(T.head), T.lookahead === 0 && (T.strstart = 0, T.block_start = 0, T.insert = 0))), D(W), W.avail_out === 0)) + return T.last_flush = -1, f; + } + return v !== o ? f : T.wrap <= 0 ? c : (T.wrap === 2 ? ($(T, 255 & W.adler), $(T, W.adler >> 8 & 255), $(T, W.adler >> 16 & 255), $(T, W.adler >> 24 & 255), $(T, 255 & W.total_in), $(T, W.total_in >> 8 & 255), $(T, W.total_in >> 16 & 255), $(T, W.total_in >> 24 & 255)) : (X(T, W.adler >>> 16), X(T, 65535 & W.adler)), D(W), T.wrap > 0 && (T.wrap = -T.wrap), T.pending !== 0 ? f : c); + }, J.exports.deflateEnd = (W) => { + if (!W || !W.state) + return h; + const v = W.state.status; + return v !== 42 && v !== 69 && v !== 73 && v !== 91 && v !== E && v !== U && v !== C ? F(W, h) : (W.state = null, v === U ? F(W, p) : f); + }, J.exports.deflateSetDictionary = (W, v) => { + let y = v.length; + if (!W || !W.state) + return h; + const S = W.state, T = S.wrap; + if (T === 2 || T === 1 && S.status !== 42 || S.lookahead) + return h; + if (T === 1 && (W.adler = t(W.adler, v, y, 0)), S.wrap = 0, y >= S.w_size) { + T === 0 && (ee(S.head), S.strstart = 0, S.block_start = 0, S.insert = 0); + let te = new Uint8Array(S.w_size); + te.set(v.subarray(y - S.w_size, y), 0), v = te, y = S.w_size; + } + const B = W.avail_in, z = W.next_in, q = W.input; + for (W.avail_in = y, W.next_in = 0, W.input = v, L(S); S.lookahead >= 3; ) { + let te = S.strstart, oe = S.lookahead - 2; + do + S.ins_h = ne(S, S.ins_h, S.window[te + 3 - 1]), S.prev[te & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = te, te++; + while (--oe); + S.strstart = te, S.lookahead = 2, L(S); + } + return S.strstart += S.lookahead, S.block_start = S.strstart, S.insert = S.lookahead, S.lookahead = 0, S.match_length = S.prev_length = 2, S.match_available = 0, W.next_in = z, W.input = q, W.avail_in = B, S.wrap = T, f; + }, J.exports.deflateInfo = "pako deflate (from Nodeca project)"; + }, 188: (J) => { + J.exports = function() { + this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1; + }; + }, 4264: (J) => { + J.exports = function(e, _) { + let O, A, k, b, a, t, u, d, s, r, n, o, i, f, c, h, p, m, M, l, N, j, R, I; + const x = e.state; + O = e.next_in, R = e.input, A = O + (e.avail_in - 5), k = e.next_out, I = e.output, b = k - (_ - e.avail_out), a = k + (e.avail_out - 257), t = x.dmax, u = x.wsize, d = x.whave, s = x.wnext, r = x.window, n = x.hold, o = x.bits, i = x.lencode, f = x.distcode, c = (1 << x.lenbits) - 1, h = (1 << x.distbits) - 1; + e: + do { + o < 15 && (n += R[O++] << o, o += 8, n += R[O++] << o, o += 8), p = i[n & c]; + t: + for (; ; ) { + if (m = p >>> 24, n >>>= m, o -= m, m = p >>> 16 & 255, m === 0) + I[k++] = 65535 & p; + else { + if (!(16 & m)) { + if (!(64 & m)) { + p = i[(65535 & p) + (n & (1 << m) - 1)]; + continue t; + } + if (32 & m) { + x.mode = 12; + break e; + } + e.msg = "invalid literal/length code", x.mode = 30; + break e; + } + M = 65535 & p, m &= 15, m && (o < m && (n += R[O++] << o, o += 8), M += n & (1 << m) - 1, n >>>= m, o -= m), o < 15 && (n += R[O++] << o, o += 8, n += R[O++] << o, o += 8), p = f[n & h]; + r: + for (; ; ) { + if (m = p >>> 24, n >>>= m, o -= m, m = p >>> 16 & 255, !(16 & m)) { + if (!(64 & m)) { + p = f[(65535 & p) + (n & (1 << m) - 1)]; + continue r; + } + e.msg = "invalid distance code", x.mode = 30; + break e; + } + if (l = 65535 & p, m &= 15, o < m && (n += R[O++] << o, o += 8, o < m && (n += R[O++] << o, o += 8)), l += n & (1 << m) - 1, l > t) { + e.msg = "invalid distance too far back", x.mode = 30; + break e; + } + if (n >>>= m, o -= m, m = k - b, l > m) { + if (m = l - m, m > d && x.sane) { + e.msg = "invalid distance too far back", x.mode = 30; + break e; + } + if (N = 0, j = r, s === 0) { + if (N += u - m, m < M) { + M -= m; + do + I[k++] = r[N++]; + while (--m); + N = k - l, j = I; + } + } else if (s < m) { + if (N += u + s - m, m -= s, m < M) { + M -= m; + do + I[k++] = r[N++]; + while (--m); + if (N = 0, s < M) { + m = s, M -= m; + do + I[k++] = r[N++]; + while (--m); + N = k - l, j = I; + } + } + } else if (N += s - m, m < M) { + M -= m; + do + I[k++] = r[N++]; + while (--m); + N = k - l, j = I; + } + for (; M > 2; ) + I[k++] = j[N++], I[k++] = j[N++], I[k++] = j[N++], M -= 3; + M && (I[k++] = j[N++], M > 1 && (I[k++] = j[N++])); + } else { + N = k - l; + do + I[k++] = I[N++], I[k++] = I[N++], I[k++] = I[N++], M -= 3; + while (M > 2); + M && (I[k++] = I[N++], M > 1 && (I[k++] = I[N++])); + } + break; + } + } + break; + } + } while (O < A && k < a); + M = o >> 3, O -= M, o -= M << 3, n &= (1 << o) - 1, e.next_in = O, e.next_out = k, e.avail_in = O < A ? A - O + 5 : 5 - (O - A), e.avail_out = k < a ? a - k + 257 : 257 - (k - a), x.hold = n, x.bits = o; + }; + }, 6351: (J, e, _) => { + const O = _(6069), A = _(2869), k = _(4264), b = _(9241), { Z_FINISH: a, Z_BLOCK: t, Z_TREES: u, Z_OK: d, Z_STREAM_END: s, Z_NEED_DICT: r, Z_STREAM_ERROR: n, Z_DATA_ERROR: o, Z_MEM_ERROR: i, Z_BUF_ERROR: f, Z_DEFLATED: c } = _(1619), h = 12, p = 30, m = (E) => (E >>> 24 & 255) + (E >>> 8 & 65280) + ((65280 & E) << 8) + ((255 & E) << 24); + function M() { + this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; + } + const l = (E) => { + if (!E || !E.state) + return n; + const U = E.state; + return E.total_in = E.total_out = U.total = 0, E.msg = "", U.wrap && (E.adler = 1 & U.wrap), U.mode = 1, U.last = 0, U.havedict = 0, U.dmax = 32768, U.head = null, U.hold = 0, U.bits = 0, U.lencode = U.lendyn = new Int32Array(852), U.distcode = U.distdyn = new Int32Array(592), U.sane = 1, U.back = -1, d; + }, N = (E) => { + if (!E || !E.state) + return n; + const U = E.state; + return U.wsize = 0, U.whave = 0, U.wnext = 0, l(E); + }, j = (E, U) => { + let C; + if (!E || !E.state) + return n; + const F = E.state; + return U < 0 ? (C = 0, U = -U) : (C = 1 + (U >> 4), U < 48 && (U &= 15)), U && (U < 8 || U > 15) ? n : (F.window !== null && F.wbits !== U && (F.window = null), F.wrap = C, F.wbits = U, N(E)); + }, R = (E, U) => { + if (!E) + return n; + const C = new M(); + E.state = C, C.window = null; + const F = j(E, U); + return F !== d && (E.state = null), F; + }; + let I, x, P = !0; + const w = (E) => { + if (P) { + I = new Int32Array(512), x = new Int32Array(32); + let U = 0; + for (; U < 144; ) + E.lens[U++] = 8; + for (; U < 256; ) + E.lens[U++] = 9; + for (; U < 280; ) + E.lens[U++] = 7; + for (; U < 288; ) + E.lens[U++] = 8; + for (b(1, E.lens, 0, 288, I, 0, E.work, { bits: 9 }), U = 0; U < 32; ) + E.lens[U++] = 5; + b(2, E.lens, 0, 32, x, 0, E.work, { bits: 5 }), P = !1; + } + E.lencode = I, E.lenbits = 9, E.distcode = x, E.distbits = 5; + }, g = (E, U, C, F) => { + let re; + const ee = E.state; + return ee.window === null && (ee.wsize = 1 << ee.wbits, ee.wnext = 0, ee.whave = 0, ee.window = new Uint8Array(ee.wsize)), F >= ee.wsize ? (ee.window.set(U.subarray(C - ee.wsize, C), 0), ee.wnext = 0, ee.whave = ee.wsize) : (re = ee.wsize - ee.wnext, re > F && (re = F), ee.window.set(U.subarray(C - F, C - F + re), ee.wnext), (F -= re) ? (ee.window.set(U.subarray(C - F, C), 0), ee.wnext = F, ee.whave = ee.wsize) : (ee.wnext += re, ee.wnext === ee.wsize && (ee.wnext = 0), ee.whave < ee.wsize && (ee.whave += re))), 0; + }; + J.exports.inflateReset = N, J.exports.inflateReset2 = j, J.exports.inflateResetKeep = l, J.exports.inflateInit = (E) => R(E, 15), J.exports.inflateInit2 = R, J.exports.inflate = (E, U) => { + let C, F, re, ee, ne, D, Z, $, X, K, Y, L, ae, ce, ue, le, be, de, pe, _e, W, v, y = 0; + const S = new Uint8Array(4); + let T, B; + const z = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); + if (!E || !E.state || !E.output || !E.input && E.avail_in !== 0) + return n; + C = E.state, C.mode === h && (C.mode = 13), ne = E.next_out, re = E.output, Z = E.avail_out, ee = E.next_in, F = E.input, D = E.avail_in, $ = C.hold, X = C.bits, K = D, Y = Z, v = d; + e: + for (; ; ) + switch (C.mode) { + case 1: + if (C.wrap === 0) { + C.mode = 13; + break; + } + for (; X < 16; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (2 & C.wrap && $ === 35615) { + C.check = 0, S[0] = 255 & $, S[1] = $ >>> 8 & 255, C.check = A(C.check, S, 2, 0), $ = 0, X = 0, C.mode = 2; + break; + } + if (C.flags = 0, C.head && (C.head.done = !1), !(1 & C.wrap) || (((255 & $) << 8) + ($ >> 8)) % 31) { + E.msg = "incorrect header check", C.mode = p; + break; + } + if ((15 & $) !== c) { + E.msg = "unknown compression method", C.mode = p; + break; + } + if ($ >>>= 4, X -= 4, W = 8 + (15 & $), C.wbits === 0) + C.wbits = W; + else if (W > C.wbits) { + E.msg = "invalid window size", C.mode = p; + break; + } + C.dmax = 1 << C.wbits, E.adler = C.check = 1, C.mode = 512 & $ ? 10 : h, $ = 0, X = 0; + break; + case 2: + for (; X < 16; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (C.flags = $, (255 & C.flags) !== c) { + E.msg = "unknown compression method", C.mode = p; + break; + } + if (57344 & C.flags) { + E.msg = "unknown header flags set", C.mode = p; + break; + } + C.head && (C.head.text = $ >> 8 & 1), 512 & C.flags && (S[0] = 255 & $, S[1] = $ >>> 8 & 255, C.check = A(C.check, S, 2, 0)), $ = 0, X = 0, C.mode = 3; + case 3: + for (; X < 32; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.head && (C.head.time = $), 512 & C.flags && (S[0] = 255 & $, S[1] = $ >>> 8 & 255, S[2] = $ >>> 16 & 255, S[3] = $ >>> 24 & 255, C.check = A(C.check, S, 4, 0)), $ = 0, X = 0, C.mode = 4; + case 4: + for (; X < 16; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.head && (C.head.xflags = 255 & $, C.head.os = $ >> 8), 512 & C.flags && (S[0] = 255 & $, S[1] = $ >>> 8 & 255, C.check = A(C.check, S, 2, 0)), $ = 0, X = 0, C.mode = 5; + case 5: + if (1024 & C.flags) { + for (; X < 16; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.length = $, C.head && (C.head.extra_len = $), 512 & C.flags && (S[0] = 255 & $, S[1] = $ >>> 8 & 255, C.check = A(C.check, S, 2, 0)), $ = 0, X = 0; + } else + C.head && (C.head.extra = null); + C.mode = 6; + case 6: + if (1024 & C.flags && (L = C.length, L > D && (L = D), L && (C.head && (W = C.head.extra_len - C.length, C.head.extra || (C.head.extra = new Uint8Array(C.head.extra_len)), C.head.extra.set(F.subarray(ee, ee + L), W)), 512 & C.flags && (C.check = A(C.check, F, L, ee)), D -= L, ee += L, C.length -= L), C.length)) + break e; + C.length = 0, C.mode = 7; + case 7: + if (2048 & C.flags) { + if (D === 0) + break e; + L = 0; + do + W = F[ee + L++], C.head && W && C.length < 65536 && (C.head.name += String.fromCharCode(W)); + while (W && L < D); + if (512 & C.flags && (C.check = A(C.check, F, L, ee)), D -= L, ee += L, W) + break e; + } else + C.head && (C.head.name = null); + C.length = 0, C.mode = 8; + case 8: + if (4096 & C.flags) { + if (D === 0) + break e; + L = 0; + do + W = F[ee + L++], C.head && W && C.length < 65536 && (C.head.comment += String.fromCharCode(W)); + while (W && L < D); + if (512 & C.flags && (C.check = A(C.check, F, L, ee)), D -= L, ee += L, W) + break e; + } else + C.head && (C.head.comment = null); + C.mode = 9; + case 9: + if (512 & C.flags) { + for (; X < 16; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if ($ !== (65535 & C.check)) { + E.msg = "header crc mismatch", C.mode = p; + break; + } + $ = 0, X = 0; + } + C.head && (C.head.hcrc = C.flags >> 9 & 1, C.head.done = !0), E.adler = C.check = 0, C.mode = h; + break; + case 10: + for (; X < 32; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + E.adler = C.check = m($), $ = 0, X = 0, C.mode = 11; + case 11: + if (C.havedict === 0) + return E.next_out = ne, E.avail_out = Z, E.next_in = ee, E.avail_in = D, C.hold = $, C.bits = X, r; + E.adler = C.check = 1, C.mode = h; + case h: + if (U === t || U === u) + break e; + case 13: + if (C.last) { + $ >>>= 7 & X, X -= 7 & X, C.mode = 27; + break; + } + for (; X < 3; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + switch (C.last = 1 & $, $ >>>= 1, X -= 1, 3 & $) { + case 0: + C.mode = 14; + break; + case 1: + if (w(C), C.mode = 20, U === u) { + $ >>>= 2, X -= 2; + break e; + } + break; + case 2: + C.mode = 17; + break; + case 3: + E.msg = "invalid block type", C.mode = p; + } + $ >>>= 2, X -= 2; + break; + case 14: + for ($ >>>= 7 & X, X -= 7 & X; X < 32; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if ((65535 & $) != ($ >>> 16 ^ 65535)) { + E.msg = "invalid stored block lengths", C.mode = p; + break; + } + if (C.length = 65535 & $, $ = 0, X = 0, C.mode = 15, U === u) + break e; + case 15: + C.mode = 16; + case 16: + if (L = C.length, L) { + if (L > D && (L = D), L > Z && (L = Z), L === 0) + break e; + re.set(F.subarray(ee, ee + L), ne), D -= L, ee += L, Z -= L, ne += L, C.length -= L; + break; + } + C.mode = h; + break; + case 17: + for (; X < 14; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (C.nlen = 257 + (31 & $), $ >>>= 5, X -= 5, C.ndist = 1 + (31 & $), $ >>>= 5, X -= 5, C.ncode = 4 + (15 & $), $ >>>= 4, X -= 4, C.nlen > 286 || C.ndist > 30) { + E.msg = "too many length or distance symbols", C.mode = p; + break; + } + C.have = 0, C.mode = 18; + case 18: + for (; C.have < C.ncode; ) { + for (; X < 3; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.lens[z[C.have++]] = 7 & $, $ >>>= 3, X -= 3; + } + for (; C.have < 19; ) + C.lens[z[C.have++]] = 0; + if (C.lencode = C.lendyn, C.lenbits = 7, T = { bits: C.lenbits }, v = b(0, C.lens, 0, 19, C.lencode, 0, C.work, T), C.lenbits = T.bits, v) { + E.msg = "invalid code lengths set", C.mode = p; + break; + } + C.have = 0, C.mode = 19; + case 19: + for (; C.have < C.nlen + C.ndist; ) { + for (; y = C.lencode[$ & (1 << C.lenbits) - 1], ue = y >>> 24, le = y >>> 16 & 255, be = 65535 & y, !(ue <= X); ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (be < 16) + $ >>>= ue, X -= ue, C.lens[C.have++] = be; + else { + if (be === 16) { + for (B = ue + 2; X < B; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if ($ >>>= ue, X -= ue, C.have === 0) { + E.msg = "invalid bit length repeat", C.mode = p; + break; + } + W = C.lens[C.have - 1], L = 3 + (3 & $), $ >>>= 2, X -= 2; + } else if (be === 17) { + for (B = ue + 3; X < B; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + $ >>>= ue, X -= ue, W = 0, L = 3 + (7 & $), $ >>>= 3, X -= 3; + } else { + for (B = ue + 7; X < B; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + $ >>>= ue, X -= ue, W = 0, L = 11 + (127 & $), $ >>>= 7, X -= 7; + } + if (C.have + L > C.nlen + C.ndist) { + E.msg = "invalid bit length repeat", C.mode = p; + break; + } + for (; L--; ) + C.lens[C.have++] = W; + } + } + if (C.mode === p) + break; + if (C.lens[256] === 0) { + E.msg = "invalid code -- missing end-of-block", C.mode = p; + break; + } + if (C.lenbits = 9, T = { bits: C.lenbits }, v = b(1, C.lens, 0, C.nlen, C.lencode, 0, C.work, T), C.lenbits = T.bits, v) { + E.msg = "invalid literal/lengths set", C.mode = p; + break; + } + if (C.distbits = 6, C.distcode = C.distdyn, T = { bits: C.distbits }, v = b(2, C.lens, C.nlen, C.ndist, C.distcode, 0, C.work, T), C.distbits = T.bits, v) { + E.msg = "invalid distances set", C.mode = p; + break; + } + if (C.mode = 20, U === u) + break e; + case 20: + C.mode = 21; + case 21: + if (D >= 6 && Z >= 258) { + E.next_out = ne, E.avail_out = Z, E.next_in = ee, E.avail_in = D, C.hold = $, C.bits = X, k(E, Y), ne = E.next_out, re = E.output, Z = E.avail_out, ee = E.next_in, F = E.input, D = E.avail_in, $ = C.hold, X = C.bits, C.mode === h && (C.back = -1); + break; + } + for (C.back = 0; y = C.lencode[$ & (1 << C.lenbits) - 1], ue = y >>> 24, le = y >>> 16 & 255, be = 65535 & y, !(ue <= X); ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (le && !(240 & le)) { + for (de = ue, pe = le, _e = be; y = C.lencode[_e + (($ & (1 << de + pe) - 1) >> de)], ue = y >>> 24, le = y >>> 16 & 255, be = 65535 & y, !(de + ue <= X); ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + $ >>>= de, X -= de, C.back += de; + } + if ($ >>>= ue, X -= ue, C.back += ue, C.length = be, le === 0) { + C.mode = 26; + break; + } + if (32 & le) { + C.back = -1, C.mode = h; + break; + } + if (64 & le) { + E.msg = "invalid literal/length code", C.mode = p; + break; + } + C.extra = 15 & le, C.mode = 22; + case 22: + if (C.extra) { + for (B = C.extra; X < B; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.length += $ & (1 << C.extra) - 1, $ >>>= C.extra, X -= C.extra, C.back += C.extra; + } + C.was = C.length, C.mode = 23; + case 23: + for (; y = C.distcode[$ & (1 << C.distbits) - 1], ue = y >>> 24, le = y >>> 16 & 255, be = 65535 & y, !(ue <= X); ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if (!(240 & le)) { + for (de = ue, pe = le, _e = be; y = C.distcode[_e + (($ & (1 << de + pe) - 1) >> de)], ue = y >>> 24, le = y >>> 16 & 255, be = 65535 & y, !(de + ue <= X); ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + $ >>>= de, X -= de, C.back += de; + } + if ($ >>>= ue, X -= ue, C.back += ue, 64 & le) { + E.msg = "invalid distance code", C.mode = p; + break; + } + C.offset = be, C.extra = 15 & le, C.mode = 24; + case 24: + if (C.extra) { + for (B = C.extra; X < B; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + C.offset += $ & (1 << C.extra) - 1, $ >>>= C.extra, X -= C.extra, C.back += C.extra; + } + if (C.offset > C.dmax) { + E.msg = "invalid distance too far back", C.mode = p; + break; + } + C.mode = 25; + case 25: + if (Z === 0) + break e; + if (L = Y - Z, C.offset > L) { + if (L = C.offset - L, L > C.whave && C.sane) { + E.msg = "invalid distance too far back", C.mode = p; + break; + } + L > C.wnext ? (L -= C.wnext, ae = C.wsize - L) : ae = C.wnext - L, L > C.length && (L = C.length), ce = C.window; + } else + ce = re, ae = ne - C.offset, L = C.length; + L > Z && (L = Z), Z -= L, C.length -= L; + do + re[ne++] = ce[ae++]; + while (--L); + C.length === 0 && (C.mode = 21); + break; + case 26: + if (Z === 0) + break e; + re[ne++] = C.length, Z--, C.mode = 21; + break; + case 27: + if (C.wrap) { + for (; X < 32; ) { + if (D === 0) + break e; + D--, $ |= F[ee++] << X, X += 8; + } + if (Y -= Z, E.total_out += Y, C.total += Y, Y && (E.adler = C.check = C.flags ? A(C.check, re, Y, ne - Y) : O(C.check, re, Y, ne - Y)), Y = Z, (C.flags ? $ : m($)) !== C.check) { + E.msg = "incorrect data check", C.mode = p; + break; + } + $ = 0, X = 0; + } + C.mode = 28; + case 28: + if (C.wrap && C.flags) { + for (; X < 32; ) { + if (D === 0) + break e; + D--, $ += F[ee++] << X, X += 8; + } + if ($ !== (4294967295 & C.total)) { + E.msg = "incorrect length check", C.mode = p; + break; + } + $ = 0, X = 0; + } + C.mode = 29; + case 29: + v = s; + break e; + case p: + v = o; + break e; + case 31: + return i; + default: + return n; + } + return E.next_out = ne, E.avail_out = Z, E.next_in = ee, E.avail_in = D, C.hold = $, C.bits = X, (C.wsize || Y !== E.avail_out && C.mode < p && (C.mode < 27 || U !== a)) && g(E, E.output, E.next_out, Y - E.avail_out) ? (C.mode = 31, i) : (K -= E.avail_in, Y -= E.avail_out, E.total_in += K, E.total_out += Y, C.total += Y, C.wrap && Y && (E.adler = C.check = C.flags ? A(C.check, re, Y, E.next_out - Y) : O(C.check, re, Y, E.next_out - Y)), E.data_type = C.bits + (C.last ? 64 : 0) + (C.mode === h ? 128 : 0) + (C.mode === 20 || C.mode === 15 ? 256 : 0), (K === 0 && Y === 0 || U === a) && v === d && (v = f), v); + }, J.exports.inflateEnd = (E) => { + if (!E || !E.state) + return n; + let U = E.state; + return U.window && (U.window = null), E.state = null, d; + }, J.exports.inflateGetHeader = (E, U) => { + if (!E || !E.state) + return n; + const C = E.state; + return 2 & C.wrap ? (C.head = U, U.done = !1, d) : n; + }, J.exports.inflateSetDictionary = (E, U) => { + const C = U.length; + let F, re, ee; + return E && E.state ? (F = E.state, F.wrap !== 0 && F.mode !== 11 ? n : F.mode === 11 && (re = 1, re = O(re, U, C, 0), re !== F.check) ? o : (ee = g(E, U, C, C), ee ? (F.mode = 31, i) : (F.havedict = 1, d))) : n; + }, J.exports.inflateInfo = "pako inflate (from Nodeca project)"; + }, 9241: (J) => { + const e = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), _ = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), O = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), A = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]); + J.exports = (k, b, a, t, u, d, s, r) => { + const n = r.bits; + let o, i, f, c, h, p, m = 0, M = 0, l = 0, N = 0, j = 0, R = 0, I = 0, x = 0, P = 0, w = 0, g = null, E = 0; + const U = new Uint16Array(16), C = new Uint16Array(16); + let F, re, ee, ne = null, D = 0; + for (m = 0; m <= 15; m++) + U[m] = 0; + for (M = 0; M < t; M++) + U[b[a + M]]++; + for (j = n, N = 15; N >= 1 && U[N] === 0; N--) + ; + if (j > N && (j = N), N === 0) + return u[d++] = 20971520, u[d++] = 20971520, r.bits = 1, 0; + for (l = 1; l < N && U[l] === 0; l++) + ; + for (j < l && (j = l), x = 1, m = 1; m <= 15; m++) + if (x <<= 1, x -= U[m], x < 0) + return -1; + if (x > 0 && (k === 0 || N !== 1)) + return -1; + for (C[1] = 0, m = 1; m < 15; m++) + C[m + 1] = C[m] + U[m]; + for (M = 0; M < t; M++) + b[a + M] !== 0 && (s[C[b[a + M]]++] = M); + if (k === 0 ? (g = ne = s, p = 19) : k === 1 ? (g = e, E -= 257, ne = _, D -= 257, p = 256) : (g = O, ne = A, p = -1), w = 0, M = 0, m = l, h = d, R = j, I = 0, f = -1, P = 1 << j, c = P - 1, k === 1 && P > 852 || k === 2 && P > 592) + return 1; + for (; ; ) { + F = m - I, s[M] < p ? (re = 0, ee = s[M]) : s[M] > p ? (re = ne[D + s[M]], ee = g[E + s[M]]) : (re = 96, ee = 0), o = 1 << m - I, i = 1 << R, l = i; + do + i -= o, u[h + (w >> I) + i] = F << 24 | re << 16 | ee | 0; + while (i !== 0); + for (o = 1 << m - 1; w & o; ) + o >>= 1; + if (o !== 0 ? (w &= o - 1, w += o) : w = 0, M++, --U[m] == 0) { + if (m === N) + break; + m = b[a + s[M]]; + } + if (m > j && (w & c) !== f) { + for (I === 0 && (I = j), h += l, R = m - I, x = 1 << R; R + I < N && (x -= U[R + I], !(x <= 0)); ) + R++, x <<= 1; + if (P += 1 << R, k === 1 && P > 852 || k === 2 && P > 592) + return 1; + f = w & c, u[f] = j << 24 | R << 16 | h - d | 0; + } + } + return w !== 0 && (u[h + w] = m - I << 24 | 4194304 | 0), r.bits = j, 0; + }; + }, 8898: (J) => { + J.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }; + }, 342: (J) => { + function e(C) { + let F = C.length; + for (; --F >= 0; ) + C[F] = 0; + } + const _ = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), O = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), A = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), k = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), b = new Array(576); + e(b); + const a = new Array(60); + e(a); + const t = new Array(512); + e(t); + const u = new Array(256); + e(u); + const d = new Array(29); + e(d); + const s = new Array(30); + function r(C, F, re, ee, ne) { + this.static_tree = C, this.extra_bits = F, this.extra_base = re, this.elems = ee, this.max_length = ne, this.has_stree = C && C.length; + } + let n, o, i; + function f(C, F) { + this.dyn_tree = C, this.max_code = 0, this.stat_desc = F; + } + e(s); + const c = (C) => C < 256 ? t[C] : t[256 + (C >>> 7)], h = (C, F) => { + C.pending_buf[C.pending++] = 255 & F, C.pending_buf[C.pending++] = F >>> 8 & 255; + }, p = (C, F, re) => { + C.bi_valid > 16 - re ? (C.bi_buf |= F << C.bi_valid & 65535, h(C, C.bi_buf), C.bi_buf = F >> 16 - C.bi_valid, C.bi_valid += re - 16) : (C.bi_buf |= F << C.bi_valid & 65535, C.bi_valid += re); + }, m = (C, F, re) => { + p(C, re[2 * F], re[2 * F + 1]); + }, M = (C, F) => { + let re = 0; + do + re |= 1 & C, C >>>= 1, re <<= 1; + while (--F > 0); + return re >>> 1; + }, l = (C, F, re) => { + const ee = new Array(16); + let ne, D, Z = 0; + for (ne = 1; ne <= 15; ne++) + ee[ne] = Z = Z + re[ne - 1] << 1; + for (D = 0; D <= F; D++) { + let $ = C[2 * D + 1]; + $ !== 0 && (C[2 * D] = M(ee[$]++, $)); + } + }, N = (C) => { + let F; + for (F = 0; F < 286; F++) + C.dyn_ltree[2 * F] = 0; + for (F = 0; F < 30; F++) + C.dyn_dtree[2 * F] = 0; + for (F = 0; F < 19; F++) + C.bl_tree[2 * F] = 0; + C.dyn_ltree[512] = 1, C.opt_len = C.static_len = 0, C.last_lit = C.matches = 0; + }, j = (C) => { + C.bi_valid > 8 ? h(C, C.bi_buf) : C.bi_valid > 0 && (C.pending_buf[C.pending++] = C.bi_buf), C.bi_buf = 0, C.bi_valid = 0; + }, R = (C, F, re, ee) => { + const ne = 2 * F, D = 2 * re; + return C[ne] < C[D] || C[ne] === C[D] && ee[F] <= ee[re]; + }, I = (C, F, re) => { + const ee = C.heap[re]; + let ne = re << 1; + for (; ne <= C.heap_len && (ne < C.heap_len && R(F, C.heap[ne + 1], C.heap[ne], C.depth) && ne++, !R(F, ee, C.heap[ne], C.depth)); ) + C.heap[re] = C.heap[ne], re = ne, ne <<= 1; + C.heap[re] = ee; + }, x = (C, F, re) => { + let ee, ne, D, Z, $ = 0; + if (C.last_lit !== 0) + do + ee = C.pending_buf[C.d_buf + 2 * $] << 8 | C.pending_buf[C.d_buf + 2 * $ + 1], ne = C.pending_buf[C.l_buf + $], $++, ee === 0 ? m(C, ne, F) : (D = u[ne], m(C, D + 256 + 1, F), Z = _[D], Z !== 0 && (ne -= d[D], p(C, ne, Z)), ee--, D = c(ee), m(C, D, re), Z = O[D], Z !== 0 && (ee -= s[D], p(C, ee, Z))); + while ($ < C.last_lit); + m(C, 256, F); + }, P = (C, F) => { + const re = F.dyn_tree, ee = F.stat_desc.static_tree, ne = F.stat_desc.has_stree, D = F.stat_desc.elems; + let Z, $, X, K = -1; + for (C.heap_len = 0, C.heap_max = 573, Z = 0; Z < D; Z++) + re[2 * Z] !== 0 ? (C.heap[++C.heap_len] = K = Z, C.depth[Z] = 0) : re[2 * Z + 1] = 0; + for (; C.heap_len < 2; ) + X = C.heap[++C.heap_len] = K < 2 ? ++K : 0, re[2 * X] = 1, C.depth[X] = 0, C.opt_len--, ne && (C.static_len -= ee[2 * X + 1]); + for (F.max_code = K, Z = C.heap_len >> 1; Z >= 1; Z--) + I(C, re, Z); + X = D; + do + Z = C.heap[1], C.heap[1] = C.heap[C.heap_len--], I(C, re, 1), $ = C.heap[1], C.heap[--C.heap_max] = Z, C.heap[--C.heap_max] = $, re[2 * X] = re[2 * Z] + re[2 * $], C.depth[X] = (C.depth[Z] >= C.depth[$] ? C.depth[Z] : C.depth[$]) + 1, re[2 * Z + 1] = re[2 * $ + 1] = X, C.heap[1] = X++, I(C, re, 1); + while (C.heap_len >= 2); + C.heap[--C.heap_max] = C.heap[1], ((Y, L) => { + const ae = L.dyn_tree, ce = L.max_code, ue = L.stat_desc.static_tree, le = L.stat_desc.has_stree, be = L.stat_desc.extra_bits, de = L.stat_desc.extra_base, pe = L.stat_desc.max_length; + let _e, W, v, y, S, T, B = 0; + for (y = 0; y <= 15; y++) + Y.bl_count[y] = 0; + for (ae[2 * Y.heap[Y.heap_max] + 1] = 0, _e = Y.heap_max + 1; _e < 573; _e++) + W = Y.heap[_e], y = ae[2 * ae[2 * W + 1] + 1] + 1, y > pe && (y = pe, B++), ae[2 * W + 1] = y, W > ce || (Y.bl_count[y]++, S = 0, W >= de && (S = be[W - de]), T = ae[2 * W], Y.opt_len += T * (y + S), le && (Y.static_len += T * (ue[2 * W + 1] + S))); + if (B !== 0) { + do { + for (y = pe - 1; Y.bl_count[y] === 0; ) + y--; + Y.bl_count[y]--, Y.bl_count[y + 1] += 2, Y.bl_count[pe]--, B -= 2; + } while (B > 0); + for (y = pe; y !== 0; y--) + for (W = Y.bl_count[y]; W !== 0; ) + v = Y.heap[--_e], v > ce || (ae[2 * v + 1] !== y && (Y.opt_len += (y - ae[2 * v + 1]) * ae[2 * v], ae[2 * v + 1] = y), W--); + } + })(C, F), l(re, K, C.bl_count); + }, w = (C, F, re) => { + let ee, ne, D = -1, Z = F[1], $ = 0, X = 7, K = 4; + for (Z === 0 && (X = 138, K = 3), F[2 * (re + 1) + 1] = 65535, ee = 0; ee <= re; ee++) + ne = Z, Z = F[2 * (ee + 1) + 1], ++$ < X && ne === Z || ($ < K ? C.bl_tree[2 * ne] += $ : ne !== 0 ? (ne !== D && C.bl_tree[2 * ne]++, C.bl_tree[32]++) : $ <= 10 ? C.bl_tree[34]++ : C.bl_tree[36]++, $ = 0, D = ne, Z === 0 ? (X = 138, K = 3) : ne === Z ? (X = 6, K = 3) : (X = 7, K = 4)); + }, g = (C, F, re) => { + let ee, ne, D = -1, Z = F[1], $ = 0, X = 7, K = 4; + for (Z === 0 && (X = 138, K = 3), ee = 0; ee <= re; ee++) + if (ne = Z, Z = F[2 * (ee + 1) + 1], !(++$ < X && ne === Z)) { + if ($ < K) + do + m(C, ne, C.bl_tree); + while (--$ != 0); + else + ne !== 0 ? (ne !== D && (m(C, ne, C.bl_tree), $--), m(C, 16, C.bl_tree), p(C, $ - 3, 2)) : $ <= 10 ? (m(C, 17, C.bl_tree), p(C, $ - 3, 3)) : (m(C, 18, C.bl_tree), p(C, $ - 11, 7)); + $ = 0, D = ne, Z === 0 ? (X = 138, K = 3) : ne === Z ? (X = 6, K = 3) : (X = 7, K = 4); + } + }; + let E = !1; + const U = (C, F, re, ee) => { + p(C, 0 + (ee ? 1 : 0), 3), ((ne, D, Z, $) => { + j(ne), h(ne, Z), h(ne, ~Z), ne.pending_buf.set(ne.window.subarray(D, D + Z), ne.pending), ne.pending += Z; + })(C, F, re); + }; + J.exports._tr_init = (C) => { + E || ((() => { + let F, re, ee, ne, D; + const Z = new Array(16); + for (ee = 0, ne = 0; ne < 28; ne++) + for (d[ne] = ee, F = 0; F < 1 << _[ne]; F++) + u[ee++] = ne; + for (u[ee - 1] = ne, D = 0, ne = 0; ne < 16; ne++) + for (s[ne] = D, F = 0; F < 1 << O[ne]; F++) + t[D++] = ne; + for (D >>= 7; ne < 30; ne++) + for (s[ne] = D << 7, F = 0; F < 1 << O[ne] - 7; F++) + t[256 + D++] = ne; + for (re = 0; re <= 15; re++) + Z[re] = 0; + for (F = 0; F <= 143; ) + b[2 * F + 1] = 8, F++, Z[8]++; + for (; F <= 255; ) + b[2 * F + 1] = 9, F++, Z[9]++; + for (; F <= 279; ) + b[2 * F + 1] = 7, F++, Z[7]++; + for (; F <= 287; ) + b[2 * F + 1] = 8, F++, Z[8]++; + for (l(b, 287, Z), F = 0; F < 30; F++) + a[2 * F + 1] = 5, a[2 * F] = M(F, 5); + n = new r(b, _, 257, 286, 15), o = new r(a, O, 0, 30, 15), i = new r(new Array(0), A, 0, 19, 7); + })(), E = !0), C.l_desc = new f(C.dyn_ltree, n), C.d_desc = new f(C.dyn_dtree, o), C.bl_desc = new f(C.bl_tree, i), C.bi_buf = 0, C.bi_valid = 0, N(C); + }, J.exports._tr_stored_block = U, J.exports._tr_flush_block = (C, F, re, ee) => { + let ne, D, Z = 0; + C.level > 0 ? (C.strm.data_type === 2 && (C.strm.data_type = (($) => { + let X, K = 4093624447; + for (X = 0; X <= 31; X++, K >>>= 1) + if (1 & K && $.dyn_ltree[2 * X] !== 0) + return 0; + if ($.dyn_ltree[18] !== 0 || $.dyn_ltree[20] !== 0 || $.dyn_ltree[26] !== 0) + return 1; + for (X = 32; X < 256; X++) + if ($.dyn_ltree[2 * X] !== 0) + return 1; + return 0; + })(C)), P(C, C.l_desc), P(C, C.d_desc), Z = (($) => { + let X; + for (w($, $.dyn_ltree, $.l_desc.max_code), w($, $.dyn_dtree, $.d_desc.max_code), P($, $.bl_desc), X = 18; X >= 3 && $.bl_tree[2 * k[X] + 1] === 0; X--) + ; + return $.opt_len += 3 * (X + 1) + 5 + 5 + 4, X; + })(C), ne = C.opt_len + 3 + 7 >>> 3, D = C.static_len + 3 + 7 >>> 3, D <= ne && (ne = D)) : ne = D = re + 5, re + 4 <= ne && F !== -1 ? U(C, F, re, ee) : C.strategy === 4 || D === ne ? (p(C, 2 + (ee ? 1 : 0), 3), x(C, b, a)) : (p(C, 4 + (ee ? 1 : 0), 3), (($, X, K, Y) => { + let L; + for (p($, X - 257, 5), p($, K - 1, 5), p($, Y - 4, 4), L = 0; L < Y; L++) + p($, $.bl_tree[2 * k[L] + 1], 3); + g($, $.dyn_ltree, X - 1), g($, $.dyn_dtree, K - 1); + })(C, C.l_desc.max_code + 1, C.d_desc.max_code + 1, Z + 1), x(C, C.dyn_ltree, C.dyn_dtree)), N(C), ee && j(C); + }, J.exports._tr_tally = (C, F, re) => (C.pending_buf[C.d_buf + 2 * C.last_lit] = F >>> 8 & 255, C.pending_buf[C.d_buf + 2 * C.last_lit + 1] = 255 & F, C.pending_buf[C.l_buf + C.last_lit] = 255 & re, C.last_lit++, F === 0 ? C.dyn_ltree[2 * re]++ : (C.matches++, F--, C.dyn_ltree[2 * (u[re] + 256 + 1)]++, C.dyn_dtree[2 * c(F)]++), C.last_lit === C.lit_bufsize - 1), J.exports._tr_align = (C) => { + p(C, 2, 3), m(C, 256, b), ((F) => { + F.bi_valid === 16 ? (h(F, F.bi_buf), F.bi_buf = 0, F.bi_valid = 0) : F.bi_valid >= 8 && (F.pending_buf[F.pending++] = 255 & F.bi_buf, F.bi_buf >>= 8, F.bi_valid -= 8); + })(C); + }; + }, 2292: (J) => { + J.exports = function() { + this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; + }; + }, 5632: (J, e, _) => { + e.pbkdf2 = _(8638), e.pbkdf2Sync = _(1257); + }, 8638: (J, e, _) => { + var O, A, k = _(9509).Buffer, b = _(7357), a = _(2368), t = _(1257), u = _(7777), d = _.g.crypto && _.g.crypto.subtle, s = { 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" }, r = []; + function n() { + return A || (A = _.g.process && _.g.process.nextTick ? _.g.process.nextTick : _.g.queueMicrotask ? _.g.queueMicrotask : _.g.setImmediate ? _.g.setImmediate : _.g.setTimeout); + } + function o(i, f, c, h, p) { + return d.importKey("raw", i, { name: "PBKDF2" }, !1, ["deriveBits"]).then(function(m) { + return d.deriveBits({ name: "PBKDF2", salt: f, iterations: c, hash: { name: p } }, m, h << 3); + }).then(function(m) { + return k.from(m); + }); + } + J.exports = function(i, f, c, h, p, m) { + typeof p == "function" && (m = p, p = void 0); + var M = s[(p = p || "sha1").toLowerCase()]; + if (M && typeof _.g.Promise == "function") { + if (b(c, h), i = u(i, a, "Password"), f = u(f, a, "Salt"), typeof m != "function") + throw new Error("No callback provided to pbkdf2"); + (function(l, N) { + l.then(function(j) { + n()(function() { + N(null, j); + }); + }, function(j) { + n()(function() { + N(j); + }); + }); + })(function(l) { + if (_.g.process && !_.g.process.browser || !d || !d.importKey || !d.deriveBits) + return Promise.resolve(!1); + if (r[l] !== void 0) + return r[l]; + var N = o(O = O || k.alloc(8), O, 10, 128, l).then(function() { + return !0; + }).catch(function() { + return !1; + }); + return r[l] = N, N; + }(M).then(function(l) { + return l ? o(i, f, c, h, M) : t(i, f, c, h, p); + }), m); + } else + n()(function() { + var l; + try { + l = t(i, f, c, h, p); + } catch (N) { + return m(N); + } + m(null, l); + }); + }; + }, 2368: (J, e, _) => { + var O, A = _(4155); + O = _.g.process && _.g.process.browser ? "utf-8" : _.g.process && _.g.process.version ? parseInt(A.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary" : "utf-8", J.exports = O; + }, 7357: (J) => { + var e = Math.pow(2, 30) - 1; + J.exports = function(_, O) { + if (typeof _ != "number") + throw new TypeError("Iterations not a number"); + if (_ < 0) + throw new TypeError("Bad iterations"); + if (typeof O != "number") + throw new TypeError("Key length not a number"); + if (O < 0 || O > e || O != O) + throw new TypeError("Bad key length"); + }; + }, 1257: (J, e, _) => { + var O = _(8028), A = _(9785), k = _(9072), b = _(9509).Buffer, a = _(7357), t = _(2368), u = _(7777), d = b.alloc(128), s = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 }; + function r(n, o, i) { + var f = function(l) { + return l === "rmd160" || l === "ripemd160" ? function(N) { + return new A().update(N).digest(); + } : l === "md5" ? O : function(N) { + return k(l).update(N).digest(); + }; + }(n), c = n === "sha512" || n === "sha384" ? 128 : 64; + o.length > c ? o = f(o) : o.length < c && (o = b.concat([o, d], c)); + for (var h = b.allocUnsafe(c + s[n]), p = b.allocUnsafe(c + s[n]), m = 0; m < c; m++) + h[m] = 54 ^ o[m], p[m] = 92 ^ o[m]; + var M = b.allocUnsafe(c + i + 4); + h.copy(M, 0, 0, c), this.ipad1 = M, this.ipad2 = h, this.opad = p, this.alg = n, this.blocksize = c, this.hash = f, this.size = s[n]; + } + r.prototype.run = function(n, o) { + return n.copy(o, this.blocksize), this.hash(o).copy(this.opad, this.blocksize), this.hash(this.opad); + }, J.exports = function(n, o, i, f, c) { + a(i, f); + var h = new r(c = c || "sha1", n = u(n, t, "Password"), (o = u(o, t, "Salt")).length), p = b.allocUnsafe(f), m = b.allocUnsafe(o.length + 4); + o.copy(m, 0, 0, o.length); + for (var M = 0, l = s[c], N = Math.ceil(f / l), j = 1; j <= N; j++) { + m.writeUInt32BE(j, o.length); + for (var R = h.run(m, h.ipad1), I = R, x = 1; x < i; x++) { + I = h.run(I, h.ipad2); + for (var P = 0; P < l; P++) + R[P] ^= I[P]; + } + R.copy(p, M), M += l; + } + return p; + }; + }, 7777: (J, e, _) => { + var O = _(9509).Buffer; + J.exports = function(A, k, b) { + if (O.isBuffer(A)) + return A; + if (typeof A == "string") + return O.from(A, k); + if (ArrayBuffer.isView(A)) + return O.from(A.buffer); + throw new TypeError(b + " must be a string, a Buffer, a typed array or a DataView"); + }; + }, 4155: (J) => { + var e, _, O = J.exports = {}; + function A() { + throw new Error("setTimeout has not been defined"); + } + function k() { + throw new Error("clearTimeout has not been defined"); + } + function b(i) { + if (e === setTimeout) + return setTimeout(i, 0); + if ((e === A || !e) && setTimeout) + return e = setTimeout, setTimeout(i, 0); + try { + return e(i, 0); + } catch { + try { + return e.call(null, i, 0); + } catch { + return e.call(this, i, 0); + } + } + } + (function() { + try { + e = typeof setTimeout == "function" ? setTimeout : A; + } catch { + e = A; + } + try { + _ = typeof clearTimeout == "function" ? clearTimeout : k; + } catch { + _ = k; + } + })(); + var a, t = [], u = !1, d = -1; + function s() { + u && a && (u = !1, a.length ? t = a.concat(t) : d = -1, t.length && r()); + } + function r() { + if (!u) { + var i = b(s); + u = !0; + for (var f = t.length; f; ) { + for (a = t, t = []; ++d < f; ) + a && a[d].run(); + d = -1, f = t.length; + } + a = null, u = !1, function(c) { + if (_ === clearTimeout) + return clearTimeout(c); + if ((_ === k || !_) && clearTimeout) + return _ = clearTimeout, clearTimeout(c); + try { + return _(c); + } catch { + try { + return _.call(null, c); + } catch { + return _.call(this, c); + } + } + }(i); + } + } + function n(i, f) { + this.fun = i, this.array = f; + } + function o() { + } + O.nextTick = function(i) { + var f = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var c = 1; c < arguments.length; c++) + f[c - 1] = arguments[c]; + t.push(new n(i, f)), t.length !== 1 || u || b(r); + }, n.prototype.run = function() { + this.fun.apply(null, this.array); + }, O.title = "browser", O.browser = !0, O.env = {}, O.argv = [], O.version = "", O.versions = {}, O.on = o, O.addListener = o, O.once = o, O.off = o, O.removeListener = o, O.removeAllListeners = o, O.emit = o, O.prependListener = o, O.prependOnceListener = o, O.listeners = function(i) { + return []; + }, O.binding = function(i) { + throw new Error("process.binding is not supported"); + }, O.cwd = function() { + return "/"; + }, O.chdir = function(i) { + throw new Error("process.chdir is not supported"); + }, O.umask = function() { + return 0; + }; + }, 2100: (J, e, _) => { + J.exports = _(9482); + }, 9482: (J, e, _) => { + var O = e; + function A() { + O.util._configure(), O.Writer._configure(O.BufferWriter), O.Reader._configure(O.BufferReader); + } + O.build = "minimal", O.Writer = _(1173), O.BufferWriter = _(3155), O.Reader = _(1408), O.BufferReader = _(593), O.util = _(9693), O.rpc = _(5994), O.roots = _(5054), O.configure = A, A(); + }, 1408: (J, e, _) => { + J.exports = t; + var O, A = _(9693), k = A.LongBits, b = A.utf8; + function a(i, f) { + return RangeError("index out of range: " + i.pos + " + " + (f || 1) + " > " + i.len); + } + function t(i) { + this.buf = i, this.pos = 0, this.len = i.length; + } + var u, d = typeof Uint8Array < "u" ? function(i) { + if (i instanceof Uint8Array || Array.isArray(i)) + return new t(i); + throw Error("illegal buffer"); + } : function(i) { + if (Array.isArray(i)) + return new t(i); + throw Error("illegal buffer"); + }, s = function() { + return A.Buffer ? function(i) { + return (t.create = function(f) { + return A.Buffer.isBuffer(f) ? new O(f) : d(f); + })(i); + } : d; + }; + function r() { + var i = new k(0, 0), f = 0; + if (!(this.len - this.pos > 4)) { + for (; f < 3; ++f) { + if (this.pos >= this.len) + throw a(this); + if (i.lo = (i.lo | (127 & this.buf[this.pos]) << 7 * f) >>> 0, this.buf[this.pos++] < 128) + return i; + } + return i.lo = (i.lo | (127 & this.buf[this.pos++]) << 7 * f) >>> 0, i; + } + for (; f < 4; ++f) + if (i.lo = (i.lo | (127 & this.buf[this.pos]) << 7 * f) >>> 0, this.buf[this.pos++] < 128) + return i; + if (i.lo = (i.lo | (127 & this.buf[this.pos]) << 28) >>> 0, i.hi = (i.hi | (127 & this.buf[this.pos]) >> 4) >>> 0, this.buf[this.pos++] < 128) + return i; + if (f = 0, this.len - this.pos > 4) { + for (; f < 5; ++f) + if (i.hi = (i.hi | (127 & this.buf[this.pos]) << 7 * f + 3) >>> 0, this.buf[this.pos++] < 128) + return i; + } else + for (; f < 5; ++f) { + if (this.pos >= this.len) + throw a(this); + if (i.hi = (i.hi | (127 & this.buf[this.pos]) << 7 * f + 3) >>> 0, this.buf[this.pos++] < 128) + return i; + } + throw Error("invalid varint encoding"); + } + function n(i, f) { + return (i[f - 4] | i[f - 3] << 8 | i[f - 2] << 16 | i[f - 1] << 24) >>> 0; + } + function o() { + if (this.pos + 8 > this.len) + throw a(this, 8); + return new k(n(this.buf, this.pos += 4), n(this.buf, this.pos += 4)); + } + t.create = s(), t.prototype._slice = A.Array.prototype.subarray || A.Array.prototype.slice, t.prototype.uint32 = (u = 4294967295, function() { + if (u = (127 & this.buf[this.pos]) >>> 0, this.buf[this.pos++] < 128 || (u = (u | (127 & this.buf[this.pos]) << 7) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (127 & this.buf[this.pos]) << 14) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (127 & this.buf[this.pos]) << 21) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (15 & this.buf[this.pos]) << 28) >>> 0, this.buf[this.pos++] < 128)) + return u; + if ((this.pos += 5) > this.len) + throw this.pos = this.len, a(this, 10); + return u; + }), t.prototype.int32 = function() { + return 0 | this.uint32(); + }, t.prototype.sint32 = function() { + var i = this.uint32(); + return i >>> 1 ^ -(1 & i) | 0; + }, t.prototype.bool = function() { + return this.uint32() !== 0; + }, t.prototype.fixed32 = function() { + if (this.pos + 4 > this.len) + throw a(this, 4); + return n(this.buf, this.pos += 4); + }, t.prototype.sfixed32 = function() { + if (this.pos + 4 > this.len) + throw a(this, 4); + return 0 | n(this.buf, this.pos += 4); + }, t.prototype.float = function() { + if (this.pos + 4 > this.len) + throw a(this, 4); + var i = A.float.readFloatLE(this.buf, this.pos); + return this.pos += 4, i; + }, t.prototype.double = function() { + if (this.pos + 8 > this.len) + throw a(this, 4); + var i = A.float.readDoubleLE(this.buf, this.pos); + return this.pos += 8, i; + }, t.prototype.bytes = function() { + var i = this.uint32(), f = this.pos, c = this.pos + i; + if (c > this.len) + throw a(this, i); + return this.pos += i, Array.isArray(this.buf) ? this.buf.slice(f, c) : f === c ? new this.buf.constructor(0) : this._slice.call(this.buf, f, c); + }, t.prototype.string = function() { + var i = this.bytes(); + return b.read(i, 0, i.length); + }, t.prototype.skip = function(i) { + if (typeof i == "number") { + if (this.pos + i > this.len) + throw a(this, i); + this.pos += i; + } else + do + if (this.pos >= this.len) + throw a(this); + while (128 & this.buf[this.pos++]); + return this; + }, t.prototype.skipType = function(i) { + switch (i) { + case 0: + this.skip(); + break; + case 1: + this.skip(8); + break; + case 2: + this.skip(this.uint32()); + break; + case 3: + for (; (i = 7 & this.uint32()) != 4; ) + this.skipType(i); + break; + case 5: + this.skip(4); + break; + default: + throw Error("invalid wire type " + i + " at offset " + this.pos); + } + return this; + }, t._configure = function(i) { + O = i, t.create = s(), O._configure(); + var f = A.Long ? "toLong" : "toNumber"; + A.merge(t.prototype, { int64: function() { + return r.call(this)[f](!1); + }, uint64: function() { + return r.call(this)[f](!0); + }, sint64: function() { + return r.call(this).zzDecode()[f](!1); + }, fixed64: function() { + return o.call(this)[f](!0); + }, sfixed64: function() { + return o.call(this)[f](!1); + } }); + }; + }, 593: (J, e, _) => { + J.exports = k; + var O = _(1408); + (k.prototype = Object.create(O.prototype)).constructor = k; + var A = _(9693); + function k(b) { + O.call(this, b); + } + k._configure = function() { + A.Buffer && (k.prototype._slice = A.Buffer.prototype.slice); + }, k.prototype.string = function() { + var b = this.uint32(); + return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + b, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + b, this.len)); + }, k._configure(); + }, 5054: (J) => { + J.exports = {}; + }, 5994: (J, e, _) => { + e.Service = _(7948); + }, 7948: (J, e, _) => { + J.exports = A; + var O = _(9693); + function A(k, b, a) { + if (typeof k != "function") + throw TypeError("rpcImpl must be a function"); + O.EventEmitter.call(this), this.rpcImpl = k, this.requestDelimited = !!b, this.responseDelimited = !!a; + } + (A.prototype = Object.create(O.EventEmitter.prototype)).constructor = A, A.prototype.rpcCall = function k(b, a, t, u, d) { + if (!u) + throw TypeError("request must be specified"); + var s = this; + if (!d) + return O.asPromise(k, s, b, a, t, u); + if (s.rpcImpl) + try { + return s.rpcImpl(b, a[s.requestDelimited ? "encodeDelimited" : "encode"](u).finish(), function(r, n) { + if (r) + return s.emit("error", r, b), d(r); + if (n !== null) { + if (!(n instanceof t)) + try { + n = t[s.responseDelimited ? "decodeDelimited" : "decode"](n); + } catch (o) { + return s.emit("error", o, b), d(o); + } + return s.emit("data", n, b), d(null, n); + } + s.end(!0); + }); + } catch (r) { + return s.emit("error", r, b), void setTimeout(function() { + d(r); + }, 0); + } + else + setTimeout(function() { + d(Error("already ended")); + }, 0); + }, A.prototype.end = function(k) { + return this.rpcImpl && (k || this.rpcImpl(null, null, null), this.rpcImpl = null, this.emit("end").off()), this; + }; + }, 2630: (J, e, _) => { + J.exports = A; + var O = _(9693); + function A(t, u) { + this.lo = t >>> 0, this.hi = u >>> 0; + } + var k = A.zero = new A(0, 0); + k.toNumber = function() { + return 0; + }, k.zzEncode = k.zzDecode = function() { + return this; + }, k.length = function() { + return 1; + }; + var b = A.zeroHash = "\0\0\0\0\0\0\0\0"; + A.fromNumber = function(t) { + if (t === 0) + return k; + var u = t < 0; + u && (t = -t); + var d = t >>> 0, s = (t - d) / 4294967296 >>> 0; + return u && (s = ~s >>> 0, d = ~d >>> 0, ++d > 4294967295 && (d = 0, ++s > 4294967295 && (s = 0))), new A(d, s); + }, A.from = function(t) { + if (typeof t == "number") + return A.fromNumber(t); + if (O.isString(t)) { + if (!O.Long) + return A.fromNumber(parseInt(t, 10)); + t = O.Long.fromString(t); + } + return t.low || t.high ? new A(t.low >>> 0, t.high >>> 0) : k; + }, A.prototype.toNumber = function(t) { + if (!t && this.hi >>> 31) { + var u = 1 + ~this.lo >>> 0, d = ~this.hi >>> 0; + return u || (d = d + 1 >>> 0), -(u + 4294967296 * d); + } + return this.lo + 4294967296 * this.hi; + }, A.prototype.toLong = function(t) { + return O.Long ? new O.Long(0 | this.lo, 0 | this.hi, !!t) : { low: 0 | this.lo, high: 0 | this.hi, unsigned: !!t }; + }; + var a = String.prototype.charCodeAt; + A.fromHash = function(t) { + return t === b ? k : new A((a.call(t, 0) | a.call(t, 1) << 8 | a.call(t, 2) << 16 | a.call(t, 3) << 24) >>> 0, (a.call(t, 4) | a.call(t, 5) << 8 | a.call(t, 6) << 16 | a.call(t, 7) << 24) >>> 0); + }, A.prototype.toHash = function() { + return String.fromCharCode(255 & this.lo, this.lo >>> 8 & 255, this.lo >>> 16 & 255, this.lo >>> 24, 255 & this.hi, this.hi >>> 8 & 255, this.hi >>> 16 & 255, this.hi >>> 24); + }, A.prototype.zzEncode = function() { + var t = this.hi >> 31; + return this.hi = ((this.hi << 1 | this.lo >>> 31) ^ t) >>> 0, this.lo = (this.lo << 1 ^ t) >>> 0, this; + }, A.prototype.zzDecode = function() { + var t = -(1 & this.lo); + return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ t) >>> 0, this.hi = (this.hi >>> 1 ^ t) >>> 0, this; + }, A.prototype.length = function() { + var t = this.lo, u = (this.lo >>> 28 | this.hi << 4) >>> 0, d = this.hi >>> 24; + return d === 0 ? u === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : u < 16384 ? u < 128 ? 5 : 6 : u < 2097152 ? 7 : 8 : d < 128 ? 9 : 10; + }; + }, 9693: function(J, e, _) { + var O = e; + function A(b, a, t) { + for (var u = Object.keys(a), d = 0; d < u.length; ++d) + b[u[d]] !== void 0 && t || (b[u[d]] = a[u[d]]); + return b; + } + function k(b) { + function a(t, u) { + if (!(this instanceof a)) + return new a(t, u); + Object.defineProperty(this, "message", { get: function() { + return t; + } }), Error.captureStackTrace ? Error.captureStackTrace(this, a) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), u && A(this, u); + } + return (a.prototype = Object.create(Error.prototype)).constructor = a, Object.defineProperty(a.prototype, "name", { get: function() { + return b; + } }), a.prototype.toString = function() { + return this.name + ": " + this.message; + }, a; + } + O.asPromise = _(4537), O.base64 = _(7419), O.EventEmitter = _(9211), O.float = _(945), O.inquire = _(7199), O.utf8 = _(4997), O.pool = _(6662), O.LongBits = _(2630), O.isNode = !!(_.g !== void 0 && _.g && _.g.process && _.g.process.versions && _.g.process.versions.node), O.global = O.isNode && _.g || typeof window < "u" && window || typeof self < "u" && self || this, O.emptyArray = Object.freeze ? Object.freeze([]) : [], O.emptyObject = Object.freeze ? Object.freeze({}) : {}, O.isInteger = Number.isInteger || function(b) { + return typeof b == "number" && isFinite(b) && Math.floor(b) === b; + }, O.isString = function(b) { + return typeof b == "string" || b instanceof String; + }, O.isObject = function(b) { + return b && typeof b == "object"; + }, O.isset = O.isSet = function(b, a) { + var t = b[a]; + return !(t == null || !b.hasOwnProperty(a)) && (typeof t != "object" || (Array.isArray(t) ? t.length : Object.keys(t).length) > 0); + }, O.Buffer = function() { + try { + var b = O.inquire("buffer").Buffer; + return b.prototype.utf8Write ? b : null; + } catch { + return null; + } + }(), O._Buffer_from = null, O._Buffer_allocUnsafe = null, O.newBuffer = function(b) { + return typeof b == "number" ? O.Buffer ? O._Buffer_allocUnsafe(b) : new O.Array(b) : O.Buffer ? O._Buffer_from(b) : typeof Uint8Array > "u" ? b : new Uint8Array(b); + }, O.Array = typeof Uint8Array < "u" ? Uint8Array : Array, O.Long = O.global.dcodeIO && O.global.dcodeIO.Long || O.global.Long || O.inquire("long"), O.key2Re = /^true|false|0|1$/, O.key32Re = /^-?(?:0|[1-9][0-9]*)$/, O.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, O.longToHash = function(b) { + return b ? O.LongBits.from(b).toHash() : O.LongBits.zeroHash; + }, O.longFromHash = function(b, a) { + var t = O.LongBits.fromHash(b); + return O.Long ? O.Long.fromBits(t.lo, t.hi, a) : t.toNumber(!!a); + }, O.merge = A, O.lcFirst = function(b) { + return b.charAt(0).toLowerCase() + b.substring(1); + }, O.newError = k, O.ProtocolError = k("ProtocolError"), O.oneOfGetter = function(b) { + for (var a = {}, t = 0; t < b.length; ++t) + a[b[t]] = 1; + return function() { + for (var u = Object.keys(this), d = u.length - 1; d > -1; --d) + if (a[u[d]] === 1 && this[u[d]] !== void 0 && this[u[d]] !== null) + return u[d]; + }; + }, O.oneOfSetter = function(b) { + return function(a) { + for (var t = 0; t < b.length; ++t) + b[t] !== a && delete this[b[t]]; + }; + }, O.toJSONOptions = { longs: String, enums: String, bytes: String, json: !0 }, O._configure = function() { + var b = O.Buffer; + b ? (O._Buffer_from = b.from !== Uint8Array.from && b.from || function(a, t) { + return new b(a, t); + }, O._Buffer_allocUnsafe = b.allocUnsafe || function(a) { + return new b(a); + }) : O._Buffer_from = O._Buffer_allocUnsafe = null; + }; + }, 1173: (J, e, _) => { + J.exports = s; + var O, A = _(9693), k = A.LongBits, b = A.base64, a = A.utf8; + function t(h, p, m) { + this.fn = h, this.len = p, this.next = void 0, this.val = m; + } + function u() { + } + function d(h) { + this.head = h.head, this.tail = h.tail, this.len = h.len, this.next = h.states; + } + function s() { + this.len = 0, this.head = new t(u, 0, 0), this.tail = this.head, this.states = null; + } + var r = function() { + return A.Buffer ? function() { + return (s.create = function() { + return new O(); + })(); + } : function() { + return new s(); + }; + }; + function n(h, p, m) { + p[m] = 255 & h; + } + function o(h, p) { + this.len = h, this.next = void 0, this.val = p; + } + function i(h, p, m) { + for (; h.hi; ) + p[m++] = 127 & h.lo | 128, h.lo = (h.lo >>> 7 | h.hi << 25) >>> 0, h.hi >>>= 7; + for (; h.lo > 127; ) + p[m++] = 127 & h.lo | 128, h.lo = h.lo >>> 7; + p[m++] = h.lo; + } + function f(h, p, m) { + p[m] = 255 & h, p[m + 1] = h >>> 8 & 255, p[m + 2] = h >>> 16 & 255, p[m + 3] = h >>> 24; + } + s.create = r(), s.alloc = function(h) { + return new A.Array(h); + }, A.Array !== Array && (s.alloc = A.pool(s.alloc, A.Array.prototype.subarray)), s.prototype._push = function(h, p, m) { + return this.tail = this.tail.next = new t(h, p, m), this.len += p, this; + }, o.prototype = Object.create(t.prototype), o.prototype.fn = function(h, p, m) { + for (; h > 127; ) + p[m++] = 127 & h | 128, h >>>= 7; + p[m] = h; + }, s.prototype.uint32 = function(h) { + return this.len += (this.tail = this.tail.next = new o((h >>>= 0) < 128 ? 1 : h < 16384 ? 2 : h < 2097152 ? 3 : h < 268435456 ? 4 : 5, h)).len, this; + }, s.prototype.int32 = function(h) { + return h < 0 ? this._push(i, 10, k.fromNumber(h)) : this.uint32(h); + }, s.prototype.sint32 = function(h) { + return this.uint32((h << 1 ^ h >> 31) >>> 0); + }, s.prototype.uint64 = function(h) { + var p = k.from(h); + return this._push(i, p.length(), p); + }, s.prototype.int64 = s.prototype.uint64, s.prototype.sint64 = function(h) { + var p = k.from(h).zzEncode(); + return this._push(i, p.length(), p); + }, s.prototype.bool = function(h) { + return this._push(n, 1, h ? 1 : 0); + }, s.prototype.fixed32 = function(h) { + return this._push(f, 4, h >>> 0); + }, s.prototype.sfixed32 = s.prototype.fixed32, s.prototype.fixed64 = function(h) { + var p = k.from(h); + return this._push(f, 4, p.lo)._push(f, 4, p.hi); + }, s.prototype.sfixed64 = s.prototype.fixed64, s.prototype.float = function(h) { + return this._push(A.float.writeFloatLE, 4, h); + }, s.prototype.double = function(h) { + return this._push(A.float.writeDoubleLE, 8, h); + }; + var c = A.Array.prototype.set ? function(h, p, m) { + p.set(h, m); + } : function(h, p, m) { + for (var M = 0; M < h.length; ++M) + p[m + M] = h[M]; + }; + s.prototype.bytes = function(h) { + var p = h.length >>> 0; + if (!p) + return this._push(n, 1, 0); + if (A.isString(h)) { + var m = s.alloc(p = b.length(h)); + b.decode(h, m, 0), h = m; + } + return this.uint32(p)._push(c, p, h); + }, s.prototype.string = function(h) { + var p = a.length(h); + return p ? this.uint32(p)._push(a.write, p, h) : this._push(n, 1, 0); + }, s.prototype.fork = function() { + return this.states = new d(this), this.head = this.tail = new t(u, 0, 0), this.len = 0, this; + }, s.prototype.reset = function() { + return this.states ? (this.head = this.states.head, this.tail = this.states.tail, this.len = this.states.len, this.states = this.states.next) : (this.head = this.tail = new t(u, 0, 0), this.len = 0), this; + }, s.prototype.ldelim = function() { + var h = this.head, p = this.tail, m = this.len; + return this.reset().uint32(m), m && (this.tail.next = h.next, this.tail = p, this.len += m), this; + }, s.prototype.finish = function() { + for (var h = this.head.next, p = this.constructor.alloc(this.len), m = 0; h; ) + h.fn(h.val, p, m), m += h.len, h = h.next; + return p; + }, s._configure = function(h) { + O = h, s.create = r(), O._configure(); + }; + }, 3155: (J, e, _) => { + J.exports = k; + var O = _(1173); + (k.prototype = Object.create(O.prototype)).constructor = k; + var A = _(9693); + function k() { + O.call(this); + } + function b(a, t, u) { + a.length < 40 ? A.utf8.write(a, t, u) : t.utf8Write ? t.utf8Write(a, u) : t.write(a, u); + } + k._configure = function() { + k.alloc = A._Buffer_allocUnsafe, k.writeBytesBuffer = A.Buffer && A.Buffer.prototype instanceof Uint8Array && A.Buffer.prototype.set.name === "set" ? function(a, t, u) { + t.set(a, u); + } : function(a, t, u) { + if (a.copy) + a.copy(t, u, 0, a.length); + else + for (var d = 0; d < a.length; ) + t[u++] = a[d++]; + }; + }, k.prototype.bytes = function(a) { + A.isString(a) && (a = A._Buffer_from(a, "base64")); + var t = a.length >>> 0; + return this.uint32(t), t && this._push(k.writeBytesBuffer, t, a), this; + }, k.prototype.string = function(a) { + var t = A.Buffer.byteLength(a); + return this.uint32(t), t && this._push(b, t, a), this; + }, k._configure(); + }, 1798: (J, e, _) => { + var O = _(4155), A = 65536, k = _(9509).Buffer, b = _.g.crypto || _.g.msCrypto; + b && b.getRandomValues ? J.exports = function(a, t) { + if (a > 4294967295) + throw new RangeError("requested too many random bytes"); + var u = k.allocUnsafe(a); + if (a > 0) + if (a > A) + for (var d = 0; d < a; d += A) + b.getRandomValues(u.slice(d, d + A)); + else + b.getRandomValues(u); + return typeof t == "function" ? O.nextTick(function() { + t(null, u); + }) : u; + } : J.exports = function() { + throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`); + }; + }, 4281: (J) => { + var e = {}; + function _(A, k, b) { + b || (b = Error); + var a = function(t) { + var u, d; + function s(r, n, o) { + return t.call(this, function(i, f, c) { + return typeof k == "string" ? k : k(i, f, c); + }(r, n, o)) || this; + } + return d = t, (u = s).prototype = Object.create(d.prototype), u.prototype.constructor = u, u.__proto__ = d, s; + }(b); + a.prototype.name = b.name, a.prototype.code = A, e[A] = a; + } + function O(A, k) { + if (Array.isArray(A)) { + var b = A.length; + return A = A.map(function(a) { + return String(a); + }), b > 2 ? "one of ".concat(k, " ").concat(A.slice(0, b - 1).join(", "), ", or ") + A[b - 1] : b === 2 ? "one of ".concat(k, " ").concat(A[0], " or ").concat(A[1]) : "of ".concat(k, " ").concat(A[0]); + } + return "of ".concat(k, " ").concat(String(A)); + } + _("ERR_INVALID_OPT_VALUE", function(A, k) { + return 'The value "' + k + '" is invalid for option "' + A + '"'; + }, TypeError), _("ERR_INVALID_ARG_TYPE", function(A, k, b) { + var a, t, u, d, s; + if (typeof k == "string" && (t = "not ", k.substr(0, 4) === t) ? (a = "must not be", k = k.replace(/^not /, "")) : a = "must be", function(n, o, i) { + return (i === void 0 || i > n.length) && (i = n.length), n.substring(i - 9, i) === o; + }(A, " argument")) + u = "The ".concat(A, " ").concat(a, " ").concat(O(k, "type")); + else { + var r = (typeof s != "number" && (s = 0), s + 1 > (d = A).length || d.indexOf(".", s) === -1 ? "argument" : "property"); + u = 'The "'.concat(A, '" ').concat(r, " ").concat(a, " ").concat(O(k, "type")); + } + return u + ". Received type ".concat(typeof b); + }, TypeError), _("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), _("ERR_METHOD_NOT_IMPLEMENTED", function(A) { + return "The " + A + " method is not implemented"; + }), _("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), _("ERR_STREAM_DESTROYED", function(A) { + return "Cannot call " + A + " after a stream was destroyed"; + }), _("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), _("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), _("ERR_STREAM_WRITE_AFTER_END", "write after end"), _("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), _("ERR_UNKNOWN_ENCODING", function(A) { + return "Unknown encoding: " + A; + }, TypeError), _("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), J.exports.q = e; + }, 6753: (J, e, _) => { + var O = _(4155), A = Object.keys || function(n) { + var o = []; + for (var i in n) + o.push(i); + return o; + }; + J.exports = d; + var k = _(9481), b = _(4229); + _(5717)(d, k); + for (var a = A(b.prototype), t = 0; t < a.length; t++) { + var u = a[t]; + d.prototype[u] || (d.prototype[u] = b.prototype[u]); + } + function d(n) { + if (!(this instanceof d)) + return new d(n); + k.call(this, n), b.call(this, n), this.allowHalfOpen = !0, n && (n.readable === !1 && (this.readable = !1), n.writable === !1 && (this.writable = !1), n.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", s))); + } + function s() { + this._writableState.ended || O.nextTick(r, this); + } + function r(n) { + n.end(); + } + Object.defineProperty(d.prototype, "writableHighWaterMark", { enumerable: !1, get: function() { + return this._writableState.highWaterMark; + } }), Object.defineProperty(d.prototype, "writableBuffer", { enumerable: !1, get: function() { + return this._writableState && this._writableState.getBuffer(); + } }), Object.defineProperty(d.prototype, "writableLength", { enumerable: !1, get: function() { + return this._writableState.length; + } }), Object.defineProperty(d.prototype, "destroyed", { enumerable: !1, get: function() { + return this._readableState !== void 0 && this._writableState !== void 0 && this._readableState.destroyed && this._writableState.destroyed; + }, set: function(n) { + this._readableState !== void 0 && this._writableState !== void 0 && (this._readableState.destroyed = n, this._writableState.destroyed = n); + } }); + }, 2725: (J, e, _) => { + J.exports = A; + var O = _(4605); + function A(k) { + if (!(this instanceof A)) + return new A(k); + O.call(this, k); + } + _(5717)(A, O), A.prototype._transform = function(k, b, a) { + a(null, k); + }; + }, 9481: (J, e, _) => { + var O, A = _(4155); + J.exports = R, R.ReadableState = j, _(7187).EventEmitter; + var k, b = function(K, Y) { + return K.listeners(Y).length; + }, a = _(2503), t = _(8764).Buffer, u = (_.g !== void 0 ? _.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { + }, d = _(4616); + k = d && d.debuglog ? d.debuglog("stream") : function() { + }; + var s, r, n, o = _(7327), i = _(1195), f = _(2457).getHighWaterMark, c = _(4281).q, h = c.ERR_INVALID_ARG_TYPE, p = c.ERR_STREAM_PUSH_AFTER_EOF, m = c.ERR_METHOD_NOT_IMPLEMENTED, M = c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; + _(5717)(R, a); + var l = i.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"]; + function j(K, Y, L) { + O = O || _(6753), K = K || {}, typeof L != "boolean" && (L = Y instanceof O), this.objectMode = !!K.objectMode, L && (this.objectMode = this.objectMode || !!K.readableObjectMode), this.highWaterMark = f(this, K, "readableHighWaterMark", L), this.buffer = new o(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = K.emitClose !== !1, this.autoDestroy = !!K.autoDestroy, this.destroyed = !1, this.defaultEncoding = K.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, K.encoding && (s || (s = _(2553).s), this.decoder = new s(K.encoding), this.encoding = K.encoding); + } + function R(K) { + if (O = O || _(6753), !(this instanceof R)) + return new R(K); + var Y = this instanceof O; + this._readableState = new j(K, this, Y), this.readable = !0, K && (typeof K.read == "function" && (this._read = K.read), typeof K.destroy == "function" && (this._destroy = K.destroy)), a.call(this); + } + function I(K, Y, L, ae, ce) { + k("readableAddChunk", Y); + var ue, le = K._readableState; + if (Y === null) + le.reading = !1, function(be, de) { + if (k("onEofChunk"), !de.ended) { + if (de.decoder) { + var pe = de.decoder.end(); + pe && pe.length && (de.buffer.push(pe), de.length += de.objectMode ? 1 : pe.length); + } + de.ended = !0, de.sync ? g(be) : (de.needReadable = !1, de.emittedReadable || (de.emittedReadable = !0, E(be))); + } + }(K, le); + else if (ce || (ue = function(be, de) { + var pe, _e; + return _e = de, t.isBuffer(_e) || _e instanceof u || typeof de == "string" || de === void 0 || be.objectMode || (pe = new h("chunk", ["string", "Buffer", "Uint8Array"], de)), pe; + }(le, Y)), ue) + l(K, ue); + else if (le.objectMode || Y && Y.length > 0) + if (typeof Y == "string" || le.objectMode || Object.getPrototypeOf(Y) === t.prototype || (Y = function(be) { + return t.from(be); + }(Y)), ae) + le.endEmitted ? l(K, new M()) : x(K, le, Y, !0); + else if (le.ended) + l(K, new p()); + else { + if (le.destroyed) + return !1; + le.reading = !1, le.decoder && !L ? (Y = le.decoder.write(Y), le.objectMode || Y.length !== 0 ? x(K, le, Y, !1) : U(K, le)) : x(K, le, Y, !1); + } + else + ae || (le.reading = !1, U(K, le)); + return !le.ended && (le.length < le.highWaterMark || le.length === 0); + } + function x(K, Y, L, ae) { + Y.flowing && Y.length === 0 && !Y.sync ? (Y.awaitDrain = 0, K.emit("data", L)) : (Y.length += Y.objectMode ? 1 : L.length, ae ? Y.buffer.unshift(L) : Y.buffer.push(L), Y.needReadable && g(K)), U(K, Y); + } + Object.defineProperty(R.prototype, "destroyed", { enumerable: !1, get: function() { + return this._readableState !== void 0 && this._readableState.destroyed; + }, set: function(K) { + this._readableState && (this._readableState.destroyed = K); + } }), R.prototype.destroy = i.destroy, R.prototype._undestroy = i.undestroy, R.prototype._destroy = function(K, Y) { + Y(K); + }, R.prototype.push = function(K, Y) { + var L, ae = this._readableState; + return ae.objectMode ? L = !0 : typeof K == "string" && ((Y = Y || ae.defaultEncoding) !== ae.encoding && (K = t.from(K, Y), Y = ""), L = !0), I(this, K, Y, !1, L); + }, R.prototype.unshift = function(K) { + return I(this, K, null, !0, !1); + }, R.prototype.isPaused = function() { + return this._readableState.flowing === !1; + }, R.prototype.setEncoding = function(K) { + s || (s = _(2553).s); + var Y = new s(K); + this._readableState.decoder = Y, this._readableState.encoding = this._readableState.decoder.encoding; + for (var L = this._readableState.buffer.head, ae = ""; L !== null; ) + ae += Y.write(L.data), L = L.next; + return this._readableState.buffer.clear(), ae !== "" && this._readableState.buffer.push(ae), this._readableState.length = ae.length, this; + }; + var P = 1073741824; + function w(K, Y) { + return K <= 0 || Y.length === 0 && Y.ended ? 0 : Y.objectMode ? 1 : K != K ? Y.flowing && Y.length ? Y.buffer.head.data.length : Y.length : (K > Y.highWaterMark && (Y.highWaterMark = function(L) { + return L >= P ? L = P : (L--, L |= L >>> 1, L |= L >>> 2, L |= L >>> 4, L |= L >>> 8, L |= L >>> 16, L++), L; + }(K)), K <= Y.length ? K : Y.ended ? Y.length : (Y.needReadable = !0, 0)); + } + function g(K) { + var Y = K._readableState; + k("emitReadable", Y.needReadable, Y.emittedReadable), Y.needReadable = !1, Y.emittedReadable || (k("emitReadable", Y.flowing), Y.emittedReadable = !0, A.nextTick(E, K)); + } + function E(K) { + var Y = K._readableState; + k("emitReadable_", Y.destroyed, Y.length, Y.ended), Y.destroyed || !Y.length && !Y.ended || (K.emit("readable"), Y.emittedReadable = !1), Y.needReadable = !Y.flowing && !Y.ended && Y.length <= Y.highWaterMark, ne(K); + } + function U(K, Y) { + Y.readingMore || (Y.readingMore = !0, A.nextTick(C, K, Y)); + } + function C(K, Y) { + for (; !Y.reading && !Y.ended && (Y.length < Y.highWaterMark || Y.flowing && Y.length === 0); ) { + var L = Y.length; + if (k("maybeReadMore read 0"), K.read(0), L === Y.length) + break; + } + Y.readingMore = !1; + } + function F(K) { + var Y = K._readableState; + Y.readableListening = K.listenerCount("readable") > 0, Y.resumeScheduled && !Y.paused ? Y.flowing = !0 : K.listenerCount("data") > 0 && K.resume(); + } + function re(K) { + k("readable nexttick read 0"), K.read(0); + } + function ee(K, Y) { + k("resume", Y.reading), Y.reading || K.read(0), Y.resumeScheduled = !1, K.emit("resume"), ne(K), Y.flowing && !Y.reading && K.read(0); + } + function ne(K) { + var Y = K._readableState; + for (k("flow", Y.flowing); Y.flowing && K.read() !== null; ) + ; + } + function D(K, Y) { + return Y.length === 0 ? null : (Y.objectMode ? L = Y.buffer.shift() : !K || K >= Y.length ? (L = Y.decoder ? Y.buffer.join("") : Y.buffer.length === 1 ? Y.buffer.first() : Y.buffer.concat(Y.length), Y.buffer.clear()) : L = Y.buffer.consume(K, Y.decoder), L); + var L; + } + function Z(K) { + var Y = K._readableState; + k("endReadable", Y.endEmitted), Y.endEmitted || (Y.ended = !0, A.nextTick($, Y, K)); + } + function $(K, Y) { + if (k("endReadableNT", K.endEmitted, K.length), !K.endEmitted && K.length === 0 && (K.endEmitted = !0, Y.readable = !1, Y.emit("end"), K.autoDestroy)) { + var L = Y._writableState; + (!L || L.autoDestroy && L.finished) && Y.destroy(); + } + } + function X(K, Y) { + for (var L = 0, ae = K.length; L < ae; L++) + if (K[L] === Y) + return L; + return -1; + } + R.prototype.read = function(K) { + k("read", K), K = parseInt(K, 10); + var Y = this._readableState, L = K; + if (K !== 0 && (Y.emittedReadable = !1), K === 0 && Y.needReadable && ((Y.highWaterMark !== 0 ? Y.length >= Y.highWaterMark : Y.length > 0) || Y.ended)) + return k("read: emitReadable", Y.length, Y.ended), Y.length === 0 && Y.ended ? Z(this) : g(this), null; + if ((K = w(K, Y)) === 0 && Y.ended) + return Y.length === 0 && Z(this), null; + var ae, ce = Y.needReadable; + return k("need readable", ce), (Y.length === 0 || Y.length - K < Y.highWaterMark) && k("length less than watermark", ce = !0), Y.ended || Y.reading ? k("reading or ended", ce = !1) : ce && (k("do read"), Y.reading = !0, Y.sync = !0, Y.length === 0 && (Y.needReadable = !0), this._read(Y.highWaterMark), Y.sync = !1, Y.reading || (K = w(L, Y))), (ae = K > 0 ? D(K, Y) : null) === null ? (Y.needReadable = Y.length <= Y.highWaterMark, K = 0) : (Y.length -= K, Y.awaitDrain = 0), Y.length === 0 && (Y.ended || (Y.needReadable = !0), L !== K && Y.ended && Z(this)), ae !== null && this.emit("data", ae), ae; + }, R.prototype._read = function(K) { + l(this, new m("_read()")); + }, R.prototype.pipe = function(K, Y) { + var L = this, ae = this._readableState; + switch (ae.pipesCount) { + case 0: + ae.pipes = K; + break; + case 1: + ae.pipes = [ae.pipes, K]; + break; + default: + ae.pipes.push(K); + } + ae.pipesCount += 1, k("pipe count=%d opts=%j", ae.pipesCount, Y); + var ce = Y && Y.end === !1 || K === A.stdout || K === A.stderr ? v : ue; + function ue() { + k("onend"), K.end(); + } + ae.endEmitted ? A.nextTick(ce) : L.once("end", ce), K.on("unpipe", function y(S, T) { + k("onunpipe"), S === L && T && T.hasUnpiped === !1 && (T.hasUnpiped = !0, k("cleanup"), K.removeListener("close", _e), K.removeListener("finish", W), K.removeListener("drain", le), K.removeListener("error", pe), K.removeListener("unpipe", y), L.removeListener("end", ue), L.removeListener("end", v), L.removeListener("data", de), be = !0, !ae.awaitDrain || K._writableState && !K._writableState.needDrain || le()); + }); + var le = function(y) { + return function() { + var S = y._readableState; + k("pipeOnDrain", S.awaitDrain), S.awaitDrain && S.awaitDrain--, S.awaitDrain === 0 && b(y, "data") && (S.flowing = !0, ne(y)); + }; + }(L); + K.on("drain", le); + var be = !1; + function de(y) { + k("ondata"); + var S = K.write(y); + k("dest.write", S), S === !1 && ((ae.pipesCount === 1 && ae.pipes === K || ae.pipesCount > 1 && X(ae.pipes, K) !== -1) && !be && (k("false write response, pause", ae.awaitDrain), ae.awaitDrain++), L.pause()); + } + function pe(y) { + k("onerror", y), v(), K.removeListener("error", pe), b(K, "error") === 0 && l(K, y); + } + function _e() { + K.removeListener("finish", W), v(); + } + function W() { + k("onfinish"), K.removeListener("close", _e), v(); + } + function v() { + k("unpipe"), L.unpipe(K); + } + return L.on("data", de), function(y, S, T) { + if (typeof y.prependListener == "function") + return y.prependListener(S, T); + y._events && y._events[S] ? Array.isArray(y._events[S]) ? y._events[S].unshift(T) : y._events[S] = [T, y._events[S]] : y.on(S, T); + }(K, "error", pe), K.once("close", _e), K.once("finish", W), K.emit("pipe", L), ae.flowing || (k("pipe resume"), L.resume()), K; + }, R.prototype.unpipe = function(K) { + var Y = this._readableState, L = { hasUnpiped: !1 }; + if (Y.pipesCount === 0) + return this; + if (Y.pipesCount === 1) + return K && K !== Y.pipes || (K || (K = Y.pipes), Y.pipes = null, Y.pipesCount = 0, Y.flowing = !1, K && K.emit("unpipe", this, L)), this; + if (!K) { + var ae = Y.pipes, ce = Y.pipesCount; + Y.pipes = null, Y.pipesCount = 0, Y.flowing = !1; + for (var ue = 0; ue < ce; ue++) + ae[ue].emit("unpipe", this, { hasUnpiped: !1 }); + return this; + } + var le = X(Y.pipes, K); + return le === -1 || (Y.pipes.splice(le, 1), Y.pipesCount -= 1, Y.pipesCount === 1 && (Y.pipes = Y.pipes[0]), K.emit("unpipe", this, L)), this; + }, R.prototype.on = function(K, Y) { + var L = a.prototype.on.call(this, K, Y), ae = this._readableState; + return K === "data" ? (ae.readableListening = this.listenerCount("readable") > 0, ae.flowing !== !1 && this.resume()) : K === "readable" && (ae.endEmitted || ae.readableListening || (ae.readableListening = ae.needReadable = !0, ae.flowing = !1, ae.emittedReadable = !1, k("on readable", ae.length, ae.reading), ae.length ? g(this) : ae.reading || A.nextTick(re, this))), L; + }, R.prototype.addListener = R.prototype.on, R.prototype.removeListener = function(K, Y) { + var L = a.prototype.removeListener.call(this, K, Y); + return K === "readable" && A.nextTick(F, this), L; + }, R.prototype.removeAllListeners = function(K) { + var Y = a.prototype.removeAllListeners.apply(this, arguments); + return K !== "readable" && K !== void 0 || A.nextTick(F, this), Y; + }, R.prototype.resume = function() { + var K = this._readableState; + return K.flowing || (k("resume"), K.flowing = !K.readableListening, function(Y, L) { + L.resumeScheduled || (L.resumeScheduled = !0, A.nextTick(ee, Y, L)); + }(this, K)), K.paused = !1, this; + }, R.prototype.pause = function() { + return k("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (k("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this; + }, R.prototype.wrap = function(K) { + var Y = this, L = this._readableState, ae = !1; + for (var ce in K.on("end", function() { + if (k("wrapped end"), L.decoder && !L.ended) { + var le = L.decoder.end(); + le && le.length && Y.push(le); + } + Y.push(null); + }), K.on("data", function(le) { + k("wrapped data"), L.decoder && (le = L.decoder.write(le)), L.objectMode && le == null || (L.objectMode || le && le.length) && (Y.push(le) || (ae = !0, K.pause())); + }), K) + this[ce] === void 0 && typeof K[ce] == "function" && (this[ce] = function(le) { + return function() { + return K[le].apply(K, arguments); + }; + }(ce)); + for (var ue = 0; ue < N.length; ue++) + K.on(N[ue], this.emit.bind(this, N[ue])); + return this._read = function(le) { + k("wrapped _read", le), ae && (ae = !1, K.resume()); + }, this; + }, typeof Symbol == "function" && (R.prototype[Symbol.asyncIterator] = function() { + return r === void 0 && (r = _(5850)), r(this); + }), Object.defineProperty(R.prototype, "readableHighWaterMark", { enumerable: !1, get: function() { + return this._readableState.highWaterMark; + } }), Object.defineProperty(R.prototype, "readableBuffer", { enumerable: !1, get: function() { + return this._readableState && this._readableState.buffer; + } }), Object.defineProperty(R.prototype, "readableFlowing", { enumerable: !1, get: function() { + return this._readableState.flowing; + }, set: function(K) { + this._readableState && (this._readableState.flowing = K); + } }), R._fromList = D, Object.defineProperty(R.prototype, "readableLength", { enumerable: !1, get: function() { + return this._readableState.length; + } }), typeof Symbol == "function" && (R.from = function(K, Y) { + return n === void 0 && (n = _(5167)), n(R, K, Y); + }); + }, 4605: (J, e, _) => { + J.exports = d; + var O = _(4281).q, A = O.ERR_METHOD_NOT_IMPLEMENTED, k = O.ERR_MULTIPLE_CALLBACK, b = O.ERR_TRANSFORM_ALREADY_TRANSFORMING, a = O.ERR_TRANSFORM_WITH_LENGTH_0, t = _(6753); + function u(n, o) { + var i = this._transformState; + i.transforming = !1; + var f = i.writecb; + if (f === null) + return this.emit("error", new k()); + i.writechunk = null, i.writecb = null, o != null && this.push(o), f(n); + var c = this._readableState; + c.reading = !1, (c.needReadable || c.length < c.highWaterMark) && this._read(c.highWaterMark); + } + function d(n) { + if (!(this instanceof d)) + return new d(n); + t.call(this, n), this._transformState = { afterTransform: u.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, n && (typeof n.transform == "function" && (this._transform = n.transform), typeof n.flush == "function" && (this._flush = n.flush)), this.on("prefinish", s); + } + function s() { + var n = this; + typeof this._flush != "function" || this._readableState.destroyed ? r(this, null, null) : this._flush(function(o, i) { + r(n, o, i); + }); + } + function r(n, o, i) { + if (o) + return n.emit("error", o); + if (i != null && n.push(i), n._writableState.length) + throw new a(); + if (n._transformState.transforming) + throw new b(); + return n.push(null); + } + _(5717)(d, t), d.prototype.push = function(n, o) { + return this._transformState.needTransform = !1, t.prototype.push.call(this, n, o); + }, d.prototype._transform = function(n, o, i) { + i(new A("_transform()")); + }, d.prototype._write = function(n, o, i) { + var f = this._transformState; + if (f.writecb = i, f.writechunk = n, f.writeencoding = o, !f.transforming) { + var c = this._readableState; + (f.needTransform || c.needReadable || c.length < c.highWaterMark) && this._read(c.highWaterMark); + } + }, d.prototype._read = function(n) { + var o = this._transformState; + o.writechunk === null || o.transforming ? o.needTransform = !0 : (o.transforming = !0, this._transform(o.writechunk, o.writeencoding, o.afterTransform)); + }, d.prototype._destroy = function(n, o) { + t.prototype._destroy.call(this, n, function(i) { + o(i); + }); + }; + }, 4229: (J, e, _) => { + var O, A = _(4155); + function k(U) { + var C = this; + this.next = null, this.entry = null, this.finish = function() { + (function(F, re, ee) { + var ne = F.entry; + for (F.entry = null; ne; ) { + var D = ne.callback; + re.pendingcb--, D(void 0), ne = ne.next; + } + re.corkedRequestsFree.next = F; + })(C, U); + }; + } + J.exports = R, R.WritableState = j; + var b, a = { deprecate: _(4927) }, t = _(2503), u = _(8764).Buffer, d = (_.g !== void 0 ? _.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { + }, s = _(1195), r = _(2457).getHighWaterMark, n = _(4281).q, o = n.ERR_INVALID_ARG_TYPE, i = n.ERR_METHOD_NOT_IMPLEMENTED, f = n.ERR_MULTIPLE_CALLBACK, c = n.ERR_STREAM_CANNOT_PIPE, h = n.ERR_STREAM_DESTROYED, p = n.ERR_STREAM_NULL_VALUES, m = n.ERR_STREAM_WRITE_AFTER_END, M = n.ERR_UNKNOWN_ENCODING, l = s.errorOrDestroy; + function N() { + } + function j(U, C, F) { + O = O || _(6753), U = U || {}, typeof F != "boolean" && (F = C instanceof O), this.objectMode = !!U.objectMode, F && (this.objectMode = this.objectMode || !!U.writableObjectMode), this.highWaterMark = r(this, U, "writableHighWaterMark", F), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; + var re = U.decodeStrings === !1; + this.decodeStrings = !re, this.defaultEncoding = U.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ee) { + (function(ne, D) { + var Z = ne._writableState, $ = Z.sync, X = Z.writecb; + if (typeof X != "function") + throw new f(); + if (function(Y) { + Y.writing = !1, Y.writecb = null, Y.length -= Y.writelen, Y.writelen = 0; + }(Z), D) + (function(Y, L, ae, ce, ue) { + --L.pendingcb, ae ? (A.nextTick(ue, ce), A.nextTick(E, Y, L), Y._writableState.errorEmitted = !0, l(Y, ce)) : (ue(ce), Y._writableState.errorEmitted = !0, l(Y, ce), E(Y, L)); + })(ne, Z, $, D, X); + else { + var K = w(Z) || ne.destroyed; + K || Z.corked || Z.bufferProcessing || !Z.bufferedRequest || P(ne, Z), $ ? A.nextTick(x, ne, Z, K, X) : x(ne, Z, K, X); + } + })(C, ee); + }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = U.emitClose !== !1, this.autoDestroy = !!U.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new k(this); + } + function R(U) { + var C = this instanceof (O = O || _(6753)); + if (!C && !b.call(R, this)) + return new R(U); + this._writableState = new j(U, this, C), this.writable = !0, U && (typeof U.write == "function" && (this._write = U.write), typeof U.writev == "function" && (this._writev = U.writev), typeof U.destroy == "function" && (this._destroy = U.destroy), typeof U.final == "function" && (this._final = U.final)), t.call(this); + } + function I(U, C, F, re, ee, ne, D) { + C.writelen = re, C.writecb = D, C.writing = !0, C.sync = !0, C.destroyed ? C.onwrite(new h("write")) : F ? U._writev(ee, C.onwrite) : U._write(ee, ne, C.onwrite), C.sync = !1; + } + function x(U, C, F, re) { + F || function(ee, ne) { + ne.length === 0 && ne.needDrain && (ne.needDrain = !1, ee.emit("drain")); + }(U, C), C.pendingcb--, re(), E(U, C); + } + function P(U, C) { + C.bufferProcessing = !0; + var F = C.bufferedRequest; + if (U._writev && F && F.next) { + var re = C.bufferedRequestCount, ee = new Array(re), ne = C.corkedRequestsFree; + ne.entry = F; + for (var D = 0, Z = !0; F; ) + ee[D] = F, F.isBuf || (Z = !1), F = F.next, D += 1; + ee.allBuffers = Z, I(U, C, !0, C.length, ee, "", ne.finish), C.pendingcb++, C.lastBufferedRequest = null, ne.next ? (C.corkedRequestsFree = ne.next, ne.next = null) : C.corkedRequestsFree = new k(C), C.bufferedRequestCount = 0; + } else { + for (; F; ) { + var $ = F.chunk, X = F.encoding, K = F.callback; + if (I(U, C, !1, C.objectMode ? 1 : $.length, $, X, K), F = F.next, C.bufferedRequestCount--, C.writing) + break; + } + F === null && (C.lastBufferedRequest = null); + } + C.bufferedRequest = F, C.bufferProcessing = !1; + } + function w(U) { + return U.ending && U.length === 0 && U.bufferedRequest === null && !U.finished && !U.writing; + } + function g(U, C) { + U._final(function(F) { + C.pendingcb--, F && l(U, F), C.prefinished = !0, U.emit("prefinish"), E(U, C); + }); + } + function E(U, C) { + var F = w(C); + if (F && (function(ee, ne) { + ne.prefinished || ne.finalCalled || (typeof ee._final != "function" || ne.destroyed ? (ne.prefinished = !0, ee.emit("prefinish")) : (ne.pendingcb++, ne.finalCalled = !0, A.nextTick(g, ee, ne))); + }(U, C), C.pendingcb === 0 && (C.finished = !0, U.emit("finish"), C.autoDestroy))) { + var re = U._readableState; + (!re || re.autoDestroy && re.endEmitted) && U.destroy(); + } + return F; + } + _(5717)(R, t), j.prototype.getBuffer = function() { + for (var U = this.bufferedRequest, C = []; U; ) + C.push(U), U = U.next; + return C; + }, function() { + try { + Object.defineProperty(j.prototype, "buffer", { get: a.deprecate(function() { + return this.getBuffer(); + }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") }); + } catch { + } + }(), typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (b = Function.prototype[Symbol.hasInstance], Object.defineProperty(R, Symbol.hasInstance, { value: function(U) { + return !!b.call(this, U) || this === R && U && U._writableState instanceof j; + } })) : b = function(U) { + return U instanceof this; + }, R.prototype.pipe = function() { + l(this, new c()); + }, R.prototype.write = function(U, C, F) { + var re, ee = this._writableState, ne = !1, D = !ee.objectMode && (re = U, u.isBuffer(re) || re instanceof d); + return D && !u.isBuffer(U) && (U = function(Z) { + return u.from(Z); + }(U)), typeof C == "function" && (F = C, C = null), D ? C = "buffer" : C || (C = ee.defaultEncoding), typeof F != "function" && (F = N), ee.ending ? function(Z, $) { + var X = new m(); + l(Z, X), A.nextTick($, X); + }(this, F) : (D || function(Z, $, X, K) { + var Y; + return X === null ? Y = new p() : typeof X == "string" || $.objectMode || (Y = new o("chunk", ["string", "Buffer"], X)), !Y || (l(Z, Y), A.nextTick(K, Y), !1); + }(this, ee, U, F)) && (ee.pendingcb++, ne = function(Z, $, X, K, Y, L) { + if (!X) { + var ae = function(be, de, pe) { + return be.objectMode || be.decodeStrings === !1 || typeof de != "string" || (de = u.from(de, pe)), de; + }($, K, Y); + K !== ae && (X = !0, Y = "buffer", K = ae); + } + var ce = $.objectMode ? 1 : K.length; + $.length += ce; + var ue = $.length < $.highWaterMark; + if (ue || ($.needDrain = !0), $.writing || $.corked) { + var le = $.lastBufferedRequest; + $.lastBufferedRequest = { chunk: K, encoding: Y, isBuf: X, callback: L, next: null }, le ? le.next = $.lastBufferedRequest : $.bufferedRequest = $.lastBufferedRequest, $.bufferedRequestCount += 1; + } else + I(Z, $, !1, ce, K, Y, L); + return ue; + }(this, ee, D, U, C, F)), ne; + }, R.prototype.cork = function() { + this._writableState.corked++; + }, R.prototype.uncork = function() { + var U = this._writableState; + U.corked && (U.corked--, U.writing || U.corked || U.bufferProcessing || !U.bufferedRequest || P(this, U)); + }, R.prototype.setDefaultEncoding = function(U) { + if (typeof U == "string" && (U = U.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((U + "").toLowerCase()) > -1)) + throw new M(U); + return this._writableState.defaultEncoding = U, this; + }, Object.defineProperty(R.prototype, "writableBuffer", { enumerable: !1, get: function() { + return this._writableState && this._writableState.getBuffer(); + } }), Object.defineProperty(R.prototype, "writableHighWaterMark", { enumerable: !1, get: function() { + return this._writableState.highWaterMark; + } }), R.prototype._write = function(U, C, F) { + F(new i("_write()")); + }, R.prototype._writev = null, R.prototype.end = function(U, C, F) { + var re = this._writableState; + return typeof U == "function" ? (F = U, U = null, C = null) : typeof C == "function" && (F = C, C = null), U != null && this.write(U, C), re.corked && (re.corked = 1, this.uncork()), re.ending || function(ee, ne, D) { + ne.ending = !0, E(ee, ne), D && (ne.finished ? A.nextTick(D) : ee.once("finish", D)), ne.ended = !0, ee.writable = !1; + }(this, re, F), this; + }, Object.defineProperty(R.prototype, "writableLength", { enumerable: !1, get: function() { + return this._writableState.length; + } }), Object.defineProperty(R.prototype, "destroyed", { enumerable: !1, get: function() { + return this._writableState !== void 0 && this._writableState.destroyed; + }, set: function(U) { + this._writableState && (this._writableState.destroyed = U); + } }), R.prototype.destroy = s.destroy, R.prototype._undestroy = s.undestroy, R.prototype._destroy = function(U, C) { + C(U); + }; + }, 5850: (J, e, _) => { + var O, A = _(4155); + function k(p, m, M) { + return (m = function(l) { + var N = function(j, R) { + if (typeof j != "object" || j === null) + return j; + var I = j[Symbol.toPrimitive]; + if (I !== void 0) { + var x = I.call(j, "string"); + if (typeof x != "object") + return x; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return String(j); + }(l); + return typeof N == "symbol" ? N : String(N); + }(m)) in p ? Object.defineProperty(p, m, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : p[m] = M, p; + } + var b = _(8610), a = Symbol("lastResolve"), t = Symbol("lastReject"), u = Symbol("error"), d = Symbol("ended"), s = Symbol("lastPromise"), r = Symbol("handlePromise"), n = Symbol("stream"); + function o(p, m) { + return { value: p, done: m }; + } + function i(p) { + var m = p[a]; + if (m !== null) { + var M = p[n].read(); + M !== null && (p[s] = null, p[a] = null, p[t] = null, m(o(M, !1))); + } + } + function f(p) { + A.nextTick(i, p); + } + var c = Object.getPrototypeOf(function() { + }), h = Object.setPrototypeOf((k(O = { get stream() { + return this[n]; + }, next: function() { + var p = this, m = this[u]; + if (m !== null) + return Promise.reject(m); + if (this[d]) + return Promise.resolve(o(void 0, !0)); + if (this[n].destroyed) + return new Promise(function(j, R) { + A.nextTick(function() { + p[u] ? R(p[u]) : j(o(void 0, !0)); + }); + }); + var M, l = this[s]; + if (l) + M = new Promise(function(j, R) { + return function(I, x) { + j.then(function() { + R[d] ? I(o(void 0, !0)) : R[r](I, x); + }, x); + }; + }(l, this)); + else { + var N = this[n].read(); + if (N !== null) + return Promise.resolve(o(N, !1)); + M = new Promise(this[r]); + } + return this[s] = M, M; + } }, Symbol.asyncIterator, function() { + return this; + }), k(O, "return", function() { + var p = this; + return new Promise(function(m, M) { + p[n].destroy(null, function(l) { + l ? M(l) : m(o(void 0, !0)); + }); + }); + }), O), c); + J.exports = function(p) { + var m, M = Object.create(h, (k(m = {}, n, { value: p, writable: !0 }), k(m, a, { value: null, writable: !0 }), k(m, t, { value: null, writable: !0 }), k(m, u, { value: null, writable: !0 }), k(m, d, { value: p._readableState.endEmitted, writable: !0 }), k(m, r, { value: function(l, N) { + var j = M[n].read(); + j ? (M[s] = null, M[a] = null, M[t] = null, l(o(j, !1))) : (M[a] = l, M[t] = N); + }, writable: !0 }), m)); + return M[s] = null, b(p, function(l) { + if (l && l.code !== "ERR_STREAM_PREMATURE_CLOSE") { + var N = M[t]; + return N !== null && (M[s] = null, M[a] = null, M[t] = null, N(l)), void (M[u] = l); + } + var j = M[a]; + j !== null && (M[s] = null, M[a] = null, M[t] = null, j(o(void 0, !0))), M[d] = !0; + }), p.on("readable", f.bind(null, M)), M; + }; + }, 7327: (J, e, _) => { + function O(s, r) { + var n = Object.keys(s); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(s); + r && (o = o.filter(function(i) { + return Object.getOwnPropertyDescriptor(s, i).enumerable; + })), n.push.apply(n, o); + } + return n; + } + function A(s) { + for (var r = 1; r < arguments.length; r++) { + var n = arguments[r] != null ? arguments[r] : {}; + r % 2 ? O(Object(n), !0).forEach(function(o) { + k(s, o, n[o]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(n)) : O(Object(n)).forEach(function(o) { + Object.defineProperty(s, o, Object.getOwnPropertyDescriptor(n, o)); + }); + } + return s; + } + function k(s, r, n) { + return (r = a(r)) in s ? Object.defineProperty(s, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : s[r] = n, s; + } + function b(s, r) { + for (var n = 0; n < r.length; n++) { + var o = r[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(s, a(o.key), o); + } + } + function a(s) { + var r = function(n, o) { + if (typeof n != "object" || n === null) + return n; + var i = n[Symbol.toPrimitive]; + if (i !== void 0) { + var f = i.call(n, "string"); + if (typeof f != "object") + return f; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return String(n); + }(s); + return typeof r == "symbol" ? r : String(r); + } + var t = _(8764).Buffer, u = _(2361).inspect, d = u && u.custom || "inspect"; + J.exports = function() { + function s() { + (function(o, i) { + if (!(o instanceof i)) + throw new TypeError("Cannot call a class as a function"); + })(this, s), this.head = null, this.tail = null, this.length = 0; + } + var r, n; + return r = s, (n = [{ key: "push", value: function(o) { + var i = { data: o, next: null }; + this.length > 0 ? this.tail.next = i : this.head = i, this.tail = i, ++this.length; + } }, { key: "unshift", value: function(o) { + var i = { data: o, next: this.head }; + this.length === 0 && (this.tail = i), this.head = i, ++this.length; + } }, { key: "shift", value: function() { + if (this.length !== 0) { + var o = this.head.data; + return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, o; + } + } }, { key: "clear", value: function() { + this.head = this.tail = null, this.length = 0; + } }, { key: "join", value: function(o) { + if (this.length === 0) + return ""; + for (var i = this.head, f = "" + i.data; i = i.next; ) + f += o + i.data; + return f; + } }, { key: "concat", value: function(o) { + if (this.length === 0) + return t.alloc(0); + for (var i, f, c, h = t.allocUnsafe(o >>> 0), p = this.head, m = 0; p; ) + i = p.data, f = h, c = m, t.prototype.copy.call(i, f, c), m += p.data.length, p = p.next; + return h; + } }, { key: "consume", value: function(o, i) { + var f; + return o < this.head.data.length ? (f = this.head.data.slice(0, o), this.head.data = this.head.data.slice(o)) : f = o === this.head.data.length ? this.shift() : i ? this._getString(o) : this._getBuffer(o), f; + } }, { key: "first", value: function() { + return this.head.data; + } }, { key: "_getString", value: function(o) { + var i = this.head, f = 1, c = i.data; + for (o -= c.length; i = i.next; ) { + var h = i.data, p = o > h.length ? h.length : o; + if (p === h.length ? c += h : c += h.slice(0, o), (o -= p) == 0) { + p === h.length ? (++f, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = h.slice(p)); + break; + } + ++f; + } + return this.length -= f, c; + } }, { key: "_getBuffer", value: function(o) { + var i = t.allocUnsafe(o), f = this.head, c = 1; + for (f.data.copy(i), o -= f.data.length; f = f.next; ) { + var h = f.data, p = o > h.length ? h.length : o; + if (h.copy(i, i.length - o, 0, p), (o -= p) == 0) { + p === h.length ? (++c, f.next ? this.head = f.next : this.head = this.tail = null) : (this.head = f, f.data = h.slice(p)); + break; + } + ++c; + } + return this.length -= c, i; + } }, { key: d, value: function(o, i) { + return u(this, A(A({}, i), {}, { depth: 0, customInspect: !1 })); + } }]) && b(r.prototype, n), Object.defineProperty(r, "prototype", { writable: !1 }), s; + }(); + }, 1195: (J, e, _) => { + var O = _(4155); + function A(a, t) { + b(a, t), k(a); + } + function k(a) { + a._writableState && !a._writableState.emitClose || a._readableState && !a._readableState.emitClose || a.emit("close"); + } + function b(a, t) { + a.emit("error", t); + } + J.exports = { destroy: function(a, t) { + var u = this, d = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; + return d || s ? (t ? t(a) : a && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, O.nextTick(b, this, a)) : O.nextTick(b, this, a)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(a || null, function(r) { + !t && r ? u._writableState ? u._writableState.errorEmitted ? O.nextTick(k, u) : (u._writableState.errorEmitted = !0, O.nextTick(A, u, r)) : O.nextTick(A, u, r) : t ? (O.nextTick(k, u), t(r)) : O.nextTick(k, u); + }), this); + }, undestroy: function() { + this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); + }, errorOrDestroy: function(a, t) { + var u = a._readableState, d = a._writableState; + u && u.autoDestroy || d && d.autoDestroy ? a.destroy(t) : a.emit("error", t); + } }; + }, 8610: (J, e, _) => { + var O = _(4281).q.ERR_STREAM_PREMATURE_CLOSE; + function A() { + } + J.exports = function k(b, a, t) { + if (typeof a == "function") + return k(b, null, a); + a || (a = {}), t = function(p) { + var m = !1; + return function() { + if (!m) { + m = !0; + for (var M = arguments.length, l = new Array(M), N = 0; N < M; N++) + l[N] = arguments[N]; + p.apply(this, l); + } + }; + }(t || A); + var u = a.readable || a.readable !== !1 && b.readable, d = a.writable || a.writable !== !1 && b.writable, s = function() { + b.writable || n(); + }, r = b._writableState && b._writableState.finished, n = function() { + d = !1, r = !0, u || t.call(b); + }, o = b._readableState && b._readableState.endEmitted, i = function() { + u = !1, o = !0, d || t.call(b); + }, f = function(p) { + t.call(b, p); + }, c = function() { + var p; + return u && !o ? (b._readableState && b._readableState.ended || (p = new O()), t.call(b, p)) : d && !r ? (b._writableState && b._writableState.ended || (p = new O()), t.call(b, p)) : void 0; + }, h = function() { + b.req.on("finish", n); + }; + return function(p) { + return p.setHeader && typeof p.abort == "function"; + }(b) ? (b.on("complete", n), b.on("abort", c), b.req ? h() : b.on("request", h)) : d && !b._writableState && (b.on("end", s), b.on("close", s)), b.on("end", i), b.on("finish", n), a.error !== !1 && b.on("error", f), b.on("close", c), function() { + b.removeListener("complete", n), b.removeListener("abort", c), b.removeListener("request", h), b.req && b.req.removeListener("finish", n), b.removeListener("end", s), b.removeListener("close", s), b.removeListener("finish", n), b.removeListener("end", i), b.removeListener("error", f), b.removeListener("close", c); + }; + }; + }, 5167: (J) => { + J.exports = function() { + throw new Error("Readable.from is not available in the browser"); + }; + }, 9946: (J, e, _) => { + var O, A = _(4281).q, k = A.ERR_MISSING_ARGS, b = A.ERR_STREAM_DESTROYED; + function a(d) { + if (d) + throw d; + } + function t(d) { + d(); + } + function u(d, s) { + return d.pipe(s); + } + J.exports = function() { + for (var d = arguments.length, s = new Array(d), r = 0; r < d; r++) + s[r] = arguments[r]; + var n, o = function(f) { + return f.length ? typeof f[f.length - 1] != "function" ? a : f.pop() : a; + }(s); + if (Array.isArray(s[0]) && (s = s[0]), s.length < 2) + throw new k("streams"); + var i = s.map(function(f, c) { + var h = c < s.length - 1; + return function(p, m, M, l) { + l = function(R) { + var I = !1; + return function() { + I || (I = !0, R.apply(void 0, arguments)); + }; + }(l); + var N = !1; + p.on("close", function() { + N = !0; + }), O === void 0 && (O = _(8610)), O(p, { readable: m, writable: M }, function(R) { + if (R) + return l(R); + N = !0, l(); + }); + var j = !1; + return function(R) { + if (!N && !j) + return j = !0, function(I) { + return I.setHeader && typeof I.abort == "function"; + }(p) ? p.abort() : typeof p.destroy == "function" ? p.destroy() : void l(R || new b("pipe")); + }; + }(f, h, c > 0, function(p) { + n || (n = p), p && i.forEach(t), h || (i.forEach(t), o(n)); + }); + }); + return s.reduce(u); + }; + }, 2457: (J, e, _) => { + var O = _(4281).q.ERR_INVALID_OPT_VALUE; + J.exports = { getHighWaterMark: function(A, k, b, a) { + var t = function(u, d, s) { + return u.highWaterMark != null ? u.highWaterMark : d ? u[s] : null; + }(k, a, b); + if (t != null) { + if (!isFinite(t) || Math.floor(t) !== t || t < 0) + throw new O(a ? b : "highWaterMark", t); + return Math.floor(t); + } + return A.objectMode ? 16 : 16384; + } }; + }, 2503: (J, e, _) => { + J.exports = _(7187).EventEmitter; + }, 8473: (J, e, _) => { + (e = J.exports = _(9481)).Stream = e, e.Readable = e, e.Writable = _(4229), e.Duplex = _(6753), e.Transform = _(4605), e.PassThrough = _(2725), e.finished = _(8610), e.pipeline = _(9946); + }, 9785: (J, e, _) => { + var O = _(8764).Buffer, A = _(5717), k = _(3349), b = new Array(16), a = [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], t = [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], u = [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], d = [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], s = [0, 1518500249, 1859775393, 2400959708, 2840853838], r = [1352829926, 1548603684, 1836072691, 2053994217, 0]; + function n() { + k.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520; + } + function o(m, M) { + return m << M | m >>> 32 - M; + } + function i(m, M, l, N, j, R, I, x) { + return o(m + (M ^ l ^ N) + R + I | 0, x) + j | 0; + } + function f(m, M, l, N, j, R, I, x) { + return o(m + (M & l | ~M & N) + R + I | 0, x) + j | 0; + } + function c(m, M, l, N, j, R, I, x) { + return o(m + ((M | ~l) ^ N) + R + I | 0, x) + j | 0; + } + function h(m, M, l, N, j, R, I, x) { + return o(m + (M & N | l & ~N) + R + I | 0, x) + j | 0; + } + function p(m, M, l, N, j, R, I, x) { + return o(m + (M ^ (l | ~N)) + R + I | 0, x) + j | 0; + } + A(n, k), n.prototype._update = function() { + for (var m = b, M = 0; M < 16; ++M) + m[M] = this._block.readInt32LE(4 * M); + for (var l = 0 | this._a, N = 0 | this._b, j = 0 | this._c, R = 0 | this._d, I = 0 | this._e, x = 0 | this._a, P = 0 | this._b, w = 0 | this._c, g = 0 | this._d, E = 0 | this._e, U = 0; U < 80; U += 1) { + var C, F; + U < 16 ? (C = i(l, N, j, R, I, m[a[U]], s[0], u[U]), F = p(x, P, w, g, E, m[t[U]], r[0], d[U])) : U < 32 ? (C = f(l, N, j, R, I, m[a[U]], s[1], u[U]), F = h(x, P, w, g, E, m[t[U]], r[1], d[U])) : U < 48 ? (C = c(l, N, j, R, I, m[a[U]], s[2], u[U]), F = c(x, P, w, g, E, m[t[U]], r[2], d[U])) : U < 64 ? (C = h(l, N, j, R, I, m[a[U]], s[3], u[U]), F = f(x, P, w, g, E, m[t[U]], r[3], d[U])) : (C = p(l, N, j, R, I, m[a[U]], s[4], u[U]), F = i(x, P, w, g, E, m[t[U]], r[4], d[U])), l = I, I = R, R = o(j, 10), j = N, N = C, x = E, E = g, g = o(w, 10), w = P, P = F; + } + var re = this._b + j + g | 0; + this._b = this._c + R + E | 0, this._c = this._d + I + x | 0, this._d = this._e + l + P | 0, this._e = this._a + N + w | 0, this._a = re; + }, n.prototype._digest = function() { + 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(); + var m = O.alloc ? O.alloc(20) : new O(20); + return m.writeInt32LE(this._a, 0), m.writeInt32LE(this._b, 4), m.writeInt32LE(this._c, 8), m.writeInt32LE(this._d, 12), m.writeInt32LE(this._e, 16), m; + }, J.exports = n; + }, 9509: (J, e, _) => { + var O = _(8764), A = O.Buffer; + function k(a, t) { + for (var u in a) + t[u] = a[u]; + } + function b(a, t, u) { + return A(a, t, u); + } + A.from && A.alloc && A.allocUnsafe && A.allocUnsafeSlow ? J.exports = O : (k(O, e), e.Buffer = b), b.prototype = Object.create(A.prototype), k(A, b), b.from = function(a, t, u) { + if (typeof a == "number") + throw new TypeError("Argument must not be a number"); + return A(a, t, u); + }, b.alloc = function(a, t, u) { + if (typeof a != "number") + throw new TypeError("Argument must be a number"); + var d = A(a); + return t !== void 0 ? typeof u == "string" ? d.fill(t, u) : d.fill(t) : d.fill(0), d; + }, b.allocUnsafe = function(a) { + if (typeof a != "number") + throw new TypeError("Argument must be a number"); + return A(a); + }, b.allocUnsafeSlow = function(a) { + if (typeof a != "number") + throw new TypeError("Argument must be a number"); + return O.SlowBuffer(a); + }; + }, 64: function(J, e, _) { + var O, A = _(4155), k = _(8764).Buffer; + (function(b) { + function a(t, u) { + if (u = u || { type: "Array" }, A !== void 0 && typeof A.pid == "number" && A.versions && A.versions.node) + return function(d, s) { + var r = _(3954).randomBytes(d); + switch (s.type) { + case "Array": + return [].slice.call(r); + case "Buffer": + return r; + case "Uint8Array": + for (var n = new Uint8Array(d), o = 0; o < d; ++o) + n[o] = r.readUInt8(o); + return n; + default: + throw new Error(s.type + " is unsupported."); + } + }(t, u); + if (!window.crypto && !window.msCrypto) + throw new Error("Your browser does not support window.crypto."); + return function(d, s) { + var r = new Uint8Array(d); + switch ((window.crypto || window.msCrypto).getRandomValues(r), s.type) { + case "Array": + return [].slice.call(r); + case "Buffer": + try { + new k(1); + } catch { + throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support."); + } + return new k(r); + case "Uint8Array": + return r; + default: + throw new Error(s.type + " is unsupported."); + } + }(t, u); + } + (O = (function() { + return a; + }).apply(e, [])) === void 0 || (J.exports = O), a.randomArray = function(t) { + return a(t, { type: "Array" }); + }, a.randomUint8Array = function(t) { + return a(t, { type: "Uint8Array" }); + }, a.randomBuffer = function(t) { + return a(t, { type: "Buffer" }); + }; + })(); + }, 4189: (J, e, _) => { + var O = _(9509).Buffer; + function A(k, b) { + this._block = O.alloc(k), this._finalSize = b, this._blockSize = k, this._len = 0; + } + A.prototype.update = function(k, b) { + typeof k == "string" && (b = b || "utf8", k = O.from(k, b)); + for (var a = this._block, t = this._blockSize, u = k.length, d = this._len, s = 0; s < u; ) { + for (var r = d % t, n = Math.min(u - s, t - r), o = 0; o < n; o++) + a[r + o] = k[s + o]; + s += n, (d += n) % t == 0 && this._update(a); + } + return this._len += u, this; + }, A.prototype.digest = function(k) { + var b = this._len % this._blockSize; + this._block[b] = 128, this._block.fill(0, b + 1), b >= this._finalSize && (this._update(this._block), this._block.fill(0)); + var a = 8 * this._len; + if (a <= 4294967295) + this._block.writeUInt32BE(a, this._blockSize - 4); + else { + var t = (4294967295 & a) >>> 0, u = (a - t) / 4294967296; + this._block.writeUInt32BE(u, this._blockSize - 8), this._block.writeUInt32BE(t, this._blockSize - 4); + } + this._update(this._block); + var d = this._hash(); + return k ? d.toString(k) : d; + }, A.prototype._update = function() { + throw new Error("_update must be implemented by subclass"); + }, J.exports = A; + }, 9072: (J, e, _) => { + var O = J.exports = function(A) { + A = A.toLowerCase(); + var k = O[A]; + if (!k) + throw new Error(A + " is not supported (we accept pull requests)"); + return new k(); + }; + O.sha = _(4448), O.sha1 = _(8336), O.sha224 = _(8432), O.sha256 = _(7499), O.sha384 = _(1686), O.sha512 = _(7816); + }, 4448: (J, e, _) => { + var O = _(5717), A = _(4189), k = _(9509).Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); + function t() { + this.init(), this._w = a, A.call(this, 64, 56); + } + function u(s) { + return s << 30 | s >>> 2; + } + function d(s, r, n, o) { + return s === 0 ? r & n | ~r & o : s === 2 ? r & n | r & o | n & o : r ^ n ^ o; + } + O(t, A), t.prototype.init = function() { + return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; + }, t.prototype._update = function(s) { + for (var r, n = this._w, o = 0 | this._a, i = 0 | this._b, f = 0 | this._c, c = 0 | this._d, h = 0 | this._e, p = 0; p < 16; ++p) + n[p] = s.readInt32BE(4 * p); + for (; p < 80; ++p) + n[p] = n[p - 3] ^ n[p - 8] ^ n[p - 14] ^ n[p - 16]; + for (var m = 0; m < 80; ++m) { + var M = ~~(m / 20), l = 0 | ((r = o) << 5 | r >>> 27) + d(M, i, f, c) + h + n[m] + b[M]; + h = c, c = f, f = u(i), i = o, o = l; + } + this._a = o + this._a | 0, this._b = i + this._b | 0, this._c = f + this._c | 0, this._d = c + this._d | 0, this._e = h + this._e | 0; + }, t.prototype._hash = function() { + var s = k.allocUnsafe(20); + return s.writeInt32BE(0 | this._a, 0), s.writeInt32BE(0 | this._b, 4), s.writeInt32BE(0 | this._c, 8), s.writeInt32BE(0 | this._d, 12), s.writeInt32BE(0 | this._e, 16), s; + }, J.exports = t; + }, 8336: (J, e, _) => { + var O = _(5717), A = _(4189), k = _(9509).Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); + function t() { + this.init(), this._w = a, A.call(this, 64, 56); + } + function u(r) { + return r << 5 | r >>> 27; + } + function d(r) { + return r << 30 | r >>> 2; + } + function s(r, n, o, i) { + return r === 0 ? n & o | ~n & i : r === 2 ? n & o | n & i | o & i : n ^ o ^ i; + } + O(t, A), t.prototype.init = function() { + return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; + }, t.prototype._update = function(r) { + for (var n, o = this._w, i = 0 | this._a, f = 0 | this._b, c = 0 | this._c, h = 0 | this._d, p = 0 | this._e, m = 0; m < 16; ++m) + o[m] = r.readInt32BE(4 * m); + for (; m < 80; ++m) + o[m] = (n = o[m - 3] ^ o[m - 8] ^ o[m - 14] ^ o[m - 16]) << 1 | n >>> 31; + for (var M = 0; M < 80; ++M) { + var l = ~~(M / 20), N = u(i) + s(l, f, c, h) + p + o[M] + b[l] | 0; + p = h, h = c, c = d(f), f = i, i = N; + } + this._a = i + this._a | 0, this._b = f + this._b | 0, this._c = c + this._c | 0, this._d = h + this._d | 0, this._e = p + this._e | 0; + }, t.prototype._hash = function() { + var r = k.allocUnsafe(20); + return r.writeInt32BE(0 | this._a, 0), r.writeInt32BE(0 | this._b, 4), r.writeInt32BE(0 | this._c, 8), r.writeInt32BE(0 | this._d, 12), r.writeInt32BE(0 | this._e, 16), r; + }, J.exports = t; + }, 8432: (J, e, _) => { + var O = _(5717), A = _(7499), k = _(4189), b = _(9509).Buffer, a = new Array(64); + function t() { + this.init(), this._w = a, k.call(this, 64, 56); + } + O(t, A), t.prototype.init = function() { + return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this; + }, t.prototype._hash = function() { + var u = b.allocUnsafe(28); + return u.writeInt32BE(this._a, 0), u.writeInt32BE(this._b, 4), u.writeInt32BE(this._c, 8), u.writeInt32BE(this._d, 12), u.writeInt32BE(this._e, 16), u.writeInt32BE(this._f, 20), u.writeInt32BE(this._g, 24), u; + }, J.exports = t; + }, 7499: (J, e, _) => { + var O = _(5717), A = _(4189), k = _(9509).Buffer, b = [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], a = new Array(64); + function t() { + this.init(), this._w = a, A.call(this, 64, 56); + } + function u(o, i, f) { + return f ^ o & (i ^ f); + } + function d(o, i, f) { + return o & i | f & (o | i); + } + function s(o) { + return (o >>> 2 | o << 30) ^ (o >>> 13 | o << 19) ^ (o >>> 22 | o << 10); + } + function r(o) { + return (o >>> 6 | o << 26) ^ (o >>> 11 | o << 21) ^ (o >>> 25 | o << 7); + } + function n(o) { + return (o >>> 7 | o << 25) ^ (o >>> 18 | o << 14) ^ o >>> 3; + } + O(t, A), t.prototype.init = function() { + return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this; + }, t.prototype._update = function(o) { + for (var i, f = this._w, c = 0 | this._a, h = 0 | this._b, p = 0 | this._c, m = 0 | this._d, M = 0 | this._e, l = 0 | this._f, N = 0 | this._g, j = 0 | this._h, R = 0; R < 16; ++R) + f[R] = o.readInt32BE(4 * R); + for (; R < 64; ++R) + f[R] = 0 | (((i = f[R - 2]) >>> 17 | i << 15) ^ (i >>> 19 | i << 13) ^ i >>> 10) + f[R - 7] + n(f[R - 15]) + f[R - 16]; + for (var I = 0; I < 64; ++I) { + var x = j + r(M) + u(M, l, N) + b[I] + f[I] | 0, P = s(c) + d(c, h, p) | 0; + j = N, N = l, l = M, M = m + x | 0, m = p, p = h, h = c, c = x + P | 0; + } + this._a = c + this._a | 0, this._b = h + this._b | 0, this._c = p + this._c | 0, this._d = m + this._d | 0, this._e = M + this._e | 0, this._f = l + this._f | 0, this._g = N + this._g | 0, this._h = j + this._h | 0; + }, t.prototype._hash = function() { + var o = k.allocUnsafe(32); + return o.writeInt32BE(this._a, 0), o.writeInt32BE(this._b, 4), o.writeInt32BE(this._c, 8), o.writeInt32BE(this._d, 12), o.writeInt32BE(this._e, 16), o.writeInt32BE(this._f, 20), o.writeInt32BE(this._g, 24), o.writeInt32BE(this._h, 28), o; + }, J.exports = t; + }, 1686: (J, e, _) => { + var O = _(5717), A = _(7816), k = _(4189), b = _(9509).Buffer, a = new Array(160); + function t() { + this.init(), this._w = a, k.call(this, 128, 112); + } + O(t, A), t.prototype.init = function() { + return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this; + }, t.prototype._hash = function() { + var u = b.allocUnsafe(48); + function d(s, r, n) { + u.writeInt32BE(s, n), u.writeInt32BE(r, n + 4); + } + return d(this._ah, this._al, 0), d(this._bh, this._bl, 8), d(this._ch, this._cl, 16), d(this._dh, this._dl, 24), d(this._eh, this._el, 32), d(this._fh, this._fl, 40), u; + }, J.exports = t; + }, 7816: (J, e, _) => { + var O = _(5717), A = _(4189), k = _(9509).Buffer, b = [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], a = new Array(160); + function t() { + this.init(), this._w = a, A.call(this, 128, 112); + } + function u(h, p, m) { + return m ^ h & (p ^ m); + } + function d(h, p, m) { + return h & p | m & (h | p); + } + function s(h, p) { + return (h >>> 28 | p << 4) ^ (p >>> 2 | h << 30) ^ (p >>> 7 | h << 25); + } + function r(h, p) { + return (h >>> 14 | p << 18) ^ (h >>> 18 | p << 14) ^ (p >>> 9 | h << 23); + } + function n(h, p) { + return (h >>> 1 | p << 31) ^ (h >>> 8 | p << 24) ^ h >>> 7; + } + function o(h, p) { + return (h >>> 1 | p << 31) ^ (h >>> 8 | p << 24) ^ (h >>> 7 | p << 25); + } + function i(h, p) { + return (h >>> 19 | p << 13) ^ (p >>> 29 | h << 3) ^ h >>> 6; + } + function f(h, p) { + return (h >>> 19 | p << 13) ^ (p >>> 29 | h << 3) ^ (h >>> 6 | p << 26); + } + function c(h, p) { + return h >>> 0 < p >>> 0 ? 1 : 0; + } + O(t, A), t.prototype.init = function() { + return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this; + }, t.prototype._update = function(h) { + for (var p = this._w, m = 0 | this._ah, M = 0 | this._bh, l = 0 | this._ch, N = 0 | this._dh, j = 0 | this._eh, R = 0 | this._fh, I = 0 | this._gh, x = 0 | this._hh, P = 0 | this._al, w = 0 | this._bl, g = 0 | this._cl, E = 0 | this._dl, U = 0 | this._el, C = 0 | this._fl, F = 0 | this._gl, re = 0 | this._hl, ee = 0; ee < 32; ee += 2) + p[ee] = h.readInt32BE(4 * ee), p[ee + 1] = h.readInt32BE(4 * ee + 4); + for (; ee < 160; ee += 2) { + var ne = p[ee - 30], D = p[ee - 30 + 1], Z = n(ne, D), $ = o(D, ne), X = i(ne = p[ee - 4], D = p[ee - 4 + 1]), K = f(D, ne), Y = p[ee - 14], L = p[ee - 14 + 1], ae = p[ee - 32], ce = p[ee - 32 + 1], ue = $ + L | 0, le = Z + Y + c(ue, $) | 0; + le = (le = le + X + c(ue = ue + K | 0, K) | 0) + ae + c(ue = ue + ce | 0, ce) | 0, p[ee] = le, p[ee + 1] = ue; + } + for (var be = 0; be < 160; be += 2) { + le = p[be], ue = p[be + 1]; + var de = d(m, M, l), pe = d(P, w, g), _e = s(m, P), W = s(P, m), v = r(j, U), y = r(U, j), S = b[be], T = b[be + 1], B = u(j, R, I), z = u(U, C, F), q = re + y | 0, te = x + v + c(q, re) | 0; + te = (te = (te = te + B + c(q = q + z | 0, z) | 0) + S + c(q = q + T | 0, T) | 0) + le + c(q = q + ue | 0, ue) | 0; + var oe = W + pe | 0, V = _e + de + c(oe, W) | 0; + x = I, re = F, I = R, F = C, R = j, C = U, j = N + te + c(U = E + q | 0, E) | 0, N = l, E = g, l = M, g = w, M = m, w = P, m = te + V + c(P = q + oe | 0, q) | 0; + } + this._al = this._al + P | 0, this._bl = this._bl + w | 0, this._cl = this._cl + g | 0, this._dl = this._dl + E | 0, this._el = this._el + U | 0, this._fl = this._fl + C | 0, this._gl = this._gl + F | 0, this._hl = this._hl + re | 0, this._ah = this._ah + m + c(this._al, P) | 0, this._bh = this._bh + M + c(this._bl, w) | 0, this._ch = this._ch + l + c(this._cl, g) | 0, this._dh = this._dh + N + c(this._dl, E) | 0, this._eh = this._eh + j + c(this._el, U) | 0, this._fh = this._fh + R + c(this._fl, C) | 0, this._gh = this._gh + I + c(this._gl, F) | 0, this._hh = this._hh + x + c(this._hl, re) | 0; + }, t.prototype._hash = function() { + var h = k.allocUnsafe(64); + function p(m, M, l) { + h.writeInt32BE(m, l), h.writeInt32BE(M, l + 4); + } + return p(this._ah, this._al, 0), p(this._bh, this._bl, 8), p(this._ch, this._cl, 16), p(this._dh, this._dl, 24), p(this._eh, this._el, 32), p(this._fh, this._fl, 40), p(this._gh, this._gl, 48), p(this._hh, this._hl, 56), h; + }, J.exports = t; + }, 2830: (J, e, _) => { + J.exports = A; + var O = _(7187).EventEmitter; + function A() { + O.call(this); + } + _(5717)(A, O), A.Readable = _(9481), A.Writable = _(4229), A.Duplex = _(6753), A.Transform = _(4605), A.PassThrough = _(2725), A.finished = _(8610), A.pipeline = _(9946), A.Stream = A, A.prototype.pipe = function(k, b) { + var a = this; + function t(i) { + k.writable && k.write(i) === !1 && a.pause && a.pause(); + } + function u() { + a.readable && a.resume && a.resume(); + } + a.on("data", t), k.on("drain", u), k._isStdio || b && b.end === !1 || (a.on("end", s), a.on("close", r)); + var d = !1; + function s() { + d || (d = !0, k.end()); + } + function r() { + d || (d = !0, typeof k.destroy == "function" && k.destroy()); + } + function n(i) { + if (o(), O.listenerCount(this, "error") === 0) + throw i; + } + function o() { + a.removeListener("data", t), k.removeListener("drain", u), a.removeListener("end", s), a.removeListener("close", r), a.removeListener("error", n), k.removeListener("error", n), a.removeListener("end", o), a.removeListener("close", o), k.removeListener("close", o); + } + return a.on("error", n), k.on("error", n), a.on("end", o), a.on("close", o), k.on("close", o), k.emit("pipe", a), k; + }; + }, 2553: (J, e, _) => { + var O = _(9509).Buffer, A = O.isEncoding || function(o) { + switch ((o = "" + o) && o.toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return !0; + default: + return !1; + } + }; + function k(o) { + var i; + switch (this.encoding = function(f) { + var c = function(h) { + if (!h) + return "utf8"; + for (var p; ; ) + switch (h) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return h; + default: + if (p) + return; + h = ("" + h).toLowerCase(), p = !0; + } + }(f); + if (typeof c != "string" && (O.isEncoding === A || !A(f))) + throw new Error("Unknown encoding: " + f); + return c || f; + }(o), this.encoding) { + case "utf16le": + this.text = t, this.end = u, i = 4; + break; + case "utf8": + this.fillLast = a, i = 4; + break; + case "base64": + this.text = d, this.end = s, i = 3; + break; + default: + return this.write = r, void (this.end = n); + } + this.lastNeed = 0, this.lastTotal = 0, this.lastChar = O.allocUnsafe(i); + } + function b(o) { + return o <= 127 ? 0 : o >> 5 == 6 ? 2 : o >> 4 == 14 ? 3 : o >> 3 == 30 ? 4 : o >> 6 == 2 ? -1 : -2; + } + function a(o) { + var i = this.lastTotal - this.lastNeed, f = function(c, h, p) { + if ((192 & h[0]) != 128) + return c.lastNeed = 0, "�"; + if (c.lastNeed > 1 && h.length > 1) { + if ((192 & h[1]) != 128) + return c.lastNeed = 1, "�"; + if (c.lastNeed > 2 && h.length > 2 && (192 & h[2]) != 128) + return c.lastNeed = 2, "�"; + } + }(this, o); + return f !== void 0 ? f : this.lastNeed <= o.length ? (o.copy(this.lastChar, i, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (o.copy(this.lastChar, i, 0, o.length), void (this.lastNeed -= o.length)); + } + function t(o, i) { + if ((o.length - i) % 2 == 0) { + var f = o.toString("utf16le", i); + if (f) { + var c = f.charCodeAt(f.length - 1); + if (c >= 55296 && c <= 56319) + return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = o[o.length - 2], this.lastChar[1] = o[o.length - 1], f.slice(0, -1); + } + return f; + } + return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = o[o.length - 1], o.toString("utf16le", i, o.length - 1); + } + function u(o) { + var i = o && o.length ? this.write(o) : ""; + if (this.lastNeed) { + var f = this.lastTotal - this.lastNeed; + return i + this.lastChar.toString("utf16le", 0, f); + } + return i; + } + function d(o, i) { + var f = (o.length - i) % 3; + return f === 0 ? o.toString("base64", i) : (this.lastNeed = 3 - f, this.lastTotal = 3, f === 1 ? this.lastChar[0] = o[o.length - 1] : (this.lastChar[0] = o[o.length - 2], this.lastChar[1] = o[o.length - 1]), o.toString("base64", i, o.length - f)); + } + function s(o) { + var i = o && o.length ? this.write(o) : ""; + return this.lastNeed ? i + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : i; + } + function r(o) { + return o.toString(this.encoding); + } + function n(o) { + return o && o.length ? this.write(o) : ""; + } + e.s = k, k.prototype.write = function(o) { + if (o.length === 0) + return ""; + var i, f; + if (this.lastNeed) { + if ((i = this.fillLast(o)) === void 0) + return ""; + f = this.lastNeed, this.lastNeed = 0; + } else + f = 0; + return f < o.length ? i ? i + this.text(o, f) : this.text(o, f) : i || ""; + }, k.prototype.end = function(o) { + var i = o && o.length ? this.write(o) : ""; + return this.lastNeed ? i + "�" : i; + }, k.prototype.text = function(o, i) { + var f = function(h, p, m) { + var M = p.length - 1; + if (M < m) + return 0; + var l = b(p[M]); + return l >= 0 ? (l > 0 && (h.lastNeed = l - 1), l) : --M < m || l === -2 ? 0 : (l = b(p[M])) >= 0 ? (l > 0 && (h.lastNeed = l - 2), l) : --M < m || l === -2 ? 0 : (l = b(p[M])) >= 0 ? (l > 0 && (l === 2 ? l = 0 : h.lastNeed = l - 3), l) : 0; + }(this, o, i); + if (!this.lastNeed) + return o.toString("utf8", i); + this.lastTotal = f; + var c = o.length - (f - this.lastNeed); + return o.copy(this.lastChar, 0, c), o.toString("utf8", i, c); + }, k.prototype.fillLast = function(o) { + if (this.lastNeed <= o.length) + return o.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + o.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, o.length), this.lastNeed -= o.length; + }; + }, 5892: (J, e, _) => { + var O = _(8764).Buffer; + const A = _(3550), k = new (_(6266)).ec("secp256k1"), b = _(4142), a = O.alloc(32, 0), t = O.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", "hex"), u = O.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", "hex"), d = k.curve.n, s = d.shrn(1), r = k.curve.g, n = "Expected Private", o = "Expected Point", i = "Expected Tweak", f = "Expected Hash"; + function c(P) { + return O.isBuffer(P) && P.length === 32; + } + function h(P) { + return !!c(P) && P.compare(t) < 0; + } + function p(P) { + if (!O.isBuffer(P) || P.length < 33) + return !1; + const w = P[0], g = P.slice(1, 33); + if (g.compare(a) === 0 || g.compare(u) >= 0) + return !1; + if ((w === 2 || w === 3) && P.length === 33) { + try { + R(P); + } catch { + return !1; + } + return !0; + } + const E = P.slice(33); + return E.compare(a) !== 0 && !(E.compare(u) >= 0) && w === 4 && P.length === 65; + } + function m(P) { + return P[0] !== 4; + } + function M(P) { + return !!c(P) && P.compare(a) > 0 && P.compare(t) < 0; + } + function l(P, w) { + return P === void 0 && w !== void 0 ? m(w) : P === void 0 || P; + } + function N(P) { + return new A(P); + } + function j(P) { + return P.toArrayLike(O, "be", 32); + } + function R(P) { + return k.curve.decodePoint(P); + } + function I(P, w) { + return O.from(P._encode(w)); + } + function x(P, w, g) { + if (!c(P)) + throw new TypeError(f); + if (!M(w)) + throw new TypeError(n); + if (g !== void 0 && !c(g)) + throw new TypeError("Expected Extra Data (32 bytes)"); + const E = N(w), U = N(P); + let C, F; + b(P, w, function(ee) { + const ne = N(ee), D = r.mul(ne); + return !D.isInfinity() && (C = D.x.umod(d), C.isZero() !== 0 && (F = ne.invm(d).mul(U.add(E.mul(C))).umod(d), F.isZero() !== 0)); + }, M, g), F.cmp(s) > 0 && (F = d.sub(F)); + const re = O.allocUnsafe(64); + return j(C).copy(re, 0), j(F).copy(re, 32), re; + } + J.exports = { isPoint: p, isPointCompressed: function(P) { + return !!p(P) && m(P); + }, isPrivate: M, pointAdd: function(P, w, g) { + if (!p(P)) + throw new TypeError(o); + if (!p(w)) + throw new TypeError(o); + const E = R(P), U = R(w), C = E.add(U); + return C.isInfinity() ? null : I(C, l(g, P)); + }, pointAddScalar: function(P, w, g) { + if (!p(P)) + throw new TypeError(o); + if (!h(w)) + throw new TypeError(i); + const E = l(g, P), U = R(P); + if (w.compare(a) === 0) + return I(U, E); + const C = N(w), F = r.mul(C), re = U.add(F); + return re.isInfinity() ? null : I(re, E); + }, pointCompress: function(P, w) { + if (!p(P)) + throw new TypeError(o); + const g = R(P); + if (g.isInfinity()) + throw new TypeError(o); + return I(g, l(w, P)); + }, pointFromScalar: function(P, w) { + if (!M(P)) + throw new TypeError(n); + const g = N(P), E = r.mul(g); + return E.isInfinity() ? null : I(E, l(w)); + }, pointMultiply: function(P, w, g) { + if (!p(P)) + throw new TypeError(o); + if (!h(w)) + throw new TypeError(i); + const E = l(g, P), U = R(P), C = N(w), F = U.mul(C); + return F.isInfinity() ? null : I(F, E); + }, privateAdd: function(P, w) { + if (!M(P)) + throw new TypeError(n); + if (!h(w)) + throw new TypeError(i); + const g = N(P), E = N(w), U = j(g.add(E).umod(d)); + return M(U) ? U : null; + }, privateSub: function(P, w) { + if (!M(P)) + throw new TypeError(n); + if (!h(w)) + throw new TypeError(i); + const g = N(P), E = N(w), U = j(g.sub(E).umod(d)); + return M(U) ? U : null; + }, sign: function(P, w) { + return x(P, w); + }, signWithEntropy: function(P, w, g) { + return x(P, w, g); + }, verify: function(P, w, g, E) { + if (!c(P)) + throw new TypeError(f); + if (!p(w)) + throw new TypeError(o); + if (!function($) { + const X = $.slice(0, 32), K = $.slice(32, 64); + return O.isBuffer($) && $.length === 64 && X.compare(t) < 0 && K.compare(t) < 0; + }(g)) + throw new TypeError("Expected Signature"); + const U = R(w), C = N(g.slice(0, 32)), F = N(g.slice(32, 64)); + if (E && F.cmp(s) > 0 || C.gtn(0) <= 0 || F.gtn(0) <= 0) + return !1; + const re = N(P), ee = F.invm(d), ne = re.mul(ee).umod(d), D = C.mul(ee).umod(d), Z = r.mulAdd(ne, U, D); + return !Z.isInfinity() && Z.x.umod(d).eq(C); + } }; + }, 4142: (J, e, _) => { + var O = _(8764).Buffer; + const A = _(8355), k = O.alloc(1, 1), b = O.alloc(1, 0); + J.exports = function(a, t, u, d, s) { + let r = O.alloc(32, 0), n = O.alloc(32, 1); + r = A("sha256", r).update(n).update(b).update(t).update(a).update(s || "").digest(), n = A("sha256", r).update(n).digest(), r = A("sha256", r).update(n).update(k).update(t).update(a).update(s || "").digest(), n = A("sha256", r).update(n).digest(), n = A("sha256", r).update(n).digest(); + let o = n; + for (; !d(o) || !u(o); ) + r = A("sha256", r).update(n).update(b).digest(), n = A("sha256", r).update(n).digest(), n = A("sha256", r).update(n).digest(), o = n; + return o; + }; + }, 8136: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(m, M, l, N) { + N === void 0 && (N = l), Object.defineProperty(m, N, { enumerable: !0, get: function() { + return M[l]; + } }); + } : function(m, M, l, N) { + N === void 0 && (N = l), m[N] = M[l]; + }), A = this && this.__setModuleDefault || (Object.create ? function(m, M) { + Object.defineProperty(m, "default", { enumerable: !0, value: M }); + } : function(m, M) { + m.default = M; + }), k = this && this.__importStar || function(m) { + if (m && m.__esModule) + return m; + var M = {}; + if (m != null) + for (var l in m) + l !== "default" && Object.prototype.hasOwnProperty.call(m, l) && O(M, m, l); + return A(M, m), M; + }, b = this && this.__awaiter || function(m, M, l, N) { + return new (l || (l = Promise))(function(j, R) { + function I(w) { + try { + P(N.next(w)); + } catch (g) { + R(g); + } + } + function x(w) { + try { + P(N.throw(w)); + } catch (g) { + R(g); + } + } + function P(w) { + var g; + w.done ? j(w.value) : (g = w.value, g instanceof l ? g : new l(function(E) { + E(g); + })).then(I, x); + } + P((N = N.apply(m, M || [])).next()); + }); + }, a = this && this.__importDefault || function(m) { + return m && m.__esModule ? m : { default: m }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.EncryptionUtilsImpl = void 0; + const t = _(8972), u = _(4330), d = _(3061), s = _(4063), r = k(_(9463)), n = a(_(64)), o = _(6402), i = new r.PolyfillCryptoProvider(), f = (0, t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"), c = (0, t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="), h = /* @__PURE__ */ new Set(["secret-2", "secret-3", "secret-4"]); + class p { + constructor(M, l, N) { + if (this.url = M, this.consensusIoPubKey = new Uint8Array(), l) { + if (l.length !== 32) + throw new Error("encryptionSeed must be a Uint8Array of length 32"); + this.seed = l; + } else + this.seed = p.GenerateNewSeed(); + const { privkey: j, pubkey: R } = p.GenerateNewKeyPairFromSeed(this.seed); + this.privkey = j, this.pubkey = R, N && h.has(N) && (this.consensusIoPubKey = c); + } + static GenerateNewKeyPair() { + return p.GenerateNewKeyPairFromSeed(p.GenerateNewSeed()); + } + static GenerateNewSeed() { + return (0, n.default)(32, { type: "Uint8Array" }); + } + static GenerateNewKeyPairFromSeed(M) { + const { private: l, public: N } = (0, s.generateKeyPair)(M); + return { privkey: l, pubkey: N }; + } + getConsensusIoPubKey() { + return b(this, void 0, void 0, function* () { + if (this.consensusIoPubKey.length === 32) + return this.consensusIoPubKey; + const { key: M } = yield o.Query.TxKey({}, { pathPrefix: this.url }); + return this.consensusIoPubKey = (0, t.fromBase64)(M), this.consensusIoPubKey; + }); + } + getTxEncryptionKey(M) { + return b(this, void 0, void 0, function* () { + const l = yield this.getConsensusIoPubKey(), N = (0, s.sharedKey)(this.privkey, l); + return (0, u.hkdf)(d.sha256, Uint8Array.from([...N, ...M]), f, "", 32); + }); + } + encrypt(M, l) { + return b(this, void 0, void 0, function* () { + const N = (0, n.default)(32, { type: "Uint8Array" }), j = yield this.getTxEncryptionKey(N), R = yield r.SIV.importKey(j, "AES-SIV", i), I = (0, t.toUtf8)(M + JSON.stringify(l)), x = yield R.seal(I, [new Uint8Array()]); + return Uint8Array.from([...N, ...this.pubkey, ...x]); + }); + } + decrypt(M, l) { + return b(this, void 0, void 0, function* () { + if (!(M != null && M.length)) + return new Uint8Array(); + const N = yield this.getTxEncryptionKey(l); + return yield (yield r.SIV.importKey(N, "AES-SIV", i)).open(M, [new Uint8Array()]); + }); + } + getPubkey() { + return Promise.resolve(this.pubkey); + } + } + e.EncryptionUtilsImpl = p; + }, 7061: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(k, b, a, t) { + t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { + return b[a]; + } }); + } : function(k, b, a, t) { + t === void 0 && (t = a), k[t] = b[a]; + }), A = this && this.__exportStar || function(k, b) { + for (var a in k) + a === "default" || Object.prototype.hasOwnProperty.call(b, a) || O(b, k, a); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), A(_(7131), e), A(_(8680), e); + }, 7131: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(p, m, M, l) { + l === void 0 && (l = M), Object.defineProperty(p, l, { enumerable: !0, get: function() { + return m[M]; + } }); + } : function(p, m, M, l) { + l === void 0 && (l = M), p[l] = m[M]; + }), A = this && this.__setModuleDefault || (Object.create ? function(p, m) { + Object.defineProperty(p, "default", { enumerable: !0, value: m }); + } : function(p, m) { + p.default = m; + }), k = this && this.__importStar || function(p) { + if (p && p.__esModule) + return p; + var m = {}; + if (p != null) + for (var M in p) + M !== "default" && Object.prototype.hasOwnProperty.call(p, M) && O(m, p, M); + return A(m, p), m; + }, b = this && this.__awaiter || function(p, m, M, l) { + return new (M || (M = Promise))(function(N, j) { + function R(P) { + try { + x(l.next(P)); + } catch (w) { + j(w); + } + } + function I(P) { + try { + x(l.throw(P)); + } catch (w) { + j(w); + } + } + function x(P) { + var w; + P.done ? N(P.value) : (w = P.value, w instanceof M ? w : new M(function(g) { + g(w); + })).then(R, I); + } + x((l = l.apply(p, m || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.validatePermit = e.newPermit = e.newSignDoc = e.PermissionNotInPermit = e.SignerIsNotAddress = e.SignatureInvalid = e.ContractNotInPermit = e.PermitError = void 0; + const a = _(8972), t = _(3061), u = k(_(9656)), d = _(7715), s = _(3607), r = _(5360); + class n extends Error { + constructor(m) { + super(m), this.type = "PermitError", this.name = "PermitError"; + } + } + e.PermitError = n; + class o extends n { + constructor(m, M) { + super(`Contract ${m} is not allowed for this permit`), this.name = "ContractNotInPermit", this.contract = m, this.allowed_contracts = M; + } + } + e.ContractNotInPermit = o; + class i extends n { + constructor(m, M) { + super("Signature invalid"), this.name = "SignatureInvalid", this.key = M, this.signature = m; + } + } + e.SignatureInvalid = i; + class f extends n { + constructor(m, M) { + super(`Address ${M} is not the permit signer`), this.name = "SignerIsNotAddress", this.address = M, this.publicKey = m; + } + } + e.SignerIsNotAddress = f; + class c extends n { + constructor(m, M) { + super("Permit does not contain required the permissions"), this.name = "PermissionNotInPermit", this.permission = m, this.permissionsInContract = M; + } + } + e.PermissionNotInPermit = c, e.newSignDoc = (p, m, M, l) => ({ chain_id: p, account_number: "0", sequence: "0", fee: { amount: (0, s.stringToCoins)("0uscrt"), gas: "1" }, msgs: [{ type: "query_permit", value: { permit_name: m, allowed_tokens: M, permissions: l } }], memo: "" }), e.newPermit = (p, m, M, l, N, j, R) => b(void 0, void 0, void 0, function* () { + let I; + if (R) { + if (!(window != null && window.keplr)) + throw new Error("Cannot sign with Keplr - extension not enabled; enable Keplr or change signing mode"); + ({ signature: I } = yield window.keplr.signAmino(M, m, { chain_id: M, account_number: "0", sequence: "0", fee: { amount: (0, s.stringToCoins)("0uscrt"), gas: "1" }, msgs: [{ type: "query_permit", value: { permit_name: l, allowed_tokens: N, permissions: j } }], memo: "" }, { preferNoSetFee: !0, preferNoSetMemo: !0 })); + } else + I = typeof p.signPermit == "function" ? (yield p.signPermit(m, (0, e.newSignDoc)(M, l, N, j))).signature : (yield p.signAmino(m, (0, e.newSignDoc)(M, l, N, j))).signature; + return { params: { chain_id: M, permit_name: l, allowed_tokens: N, permissions: j }, signature: I }; + }), e.validatePermit = (p, m, M, l, N = !0) => { + if (!p.params.allowed_tokens.includes(M)) { + if (!N) + return !1; + throw new o(M, p.params.allowed_tokens); + } + if (!p.params.permissions.find((x) => l.includes(x))) { + if (!N) + return !1; + throw new c(l, p.params.permissions); + } + let j = ""; + try { + j = d.bech32.decode(m).prefix; + } catch { + throw new Error(`Address address=${m} must be a valid bech32 address`); + } + let R = ""; + try { + R = (0, s.base64PubkeyToAddress)(p.signature.pub_key.value, j); + } catch { + throw new n("Pubkey invalid"); + } + if (R !== m) { + if (!N) + return !1; + throw new f(p.signature.pub_key, m); + } + let I = !1; + try { + I = h(p); + } catch { + if (!N) + return !1; + throw new i(p.signature.signature, p.signature.pub_key.value); + } + if (!I) { + if (!N) + return !1; + throw new i(p.signature.signature, p.signature.pub_key.value); + } + return !0; + }; + const h = (p) => { + let m = (0, e.newSignDoc)(p.params.chain_id, p.params.permit_name, p.params.allowed_tokens, p.params.permissions); + const M = (0, t.sha256)((0, r.serializeStdSignDoc)(m)); + let l = u.Signature.fromCompact((0, a.fromBase64)(p.signature.signature)); + return u.verify(l, M, (0, a.fromBase64)(p.signature.pub_key.value)); + }; + }, 3117: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.PermitSigner = e.DirectSignerUnsupported = void 0; + const O = _(7131); + class A extends O.PermitError { + constructor() { + super("Only amino signer is supported for permits"); + } + } + e.DirectSignerUnsupported = A, e.PermitSigner = class { + constructor(k) { + this.isAminoSigner = (b) => "signAmino" in b, this.signer = k; + } + _checkSigner() { + if (!this.isAminoSigner(this.signer)) + throw new A(); + } + sign(k, b, a, t, u, d = !0) { + return this._checkSigner(), (0, O.newPermit)(this.signer, k, b, a, t, u, d); + } + verify(k, b, a, t) { + return (0, O.validatePermit)(k, b, a, t); + } + verifyNoExcept(k, b, a, t) { + return (0, O.validatePermit)(k, b, a, t, !1); + } + }; + }, 8680: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + }, 1610: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgCreateViewingKey = e.MsgSetViewingKey = void 0; + const O = _(3745); + class A extends O.MsgExecuteContract { + } + e.MsgSetViewingKey = A; + class k extends O.MsgExecuteContract { + } + e.MsgCreateViewingKey = k; + }, 4447: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + var f; + i.done ? d(i.value) : (f = i.value, f instanceof t ? f : new t(function(c) { + c(f); + })).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip1155Querier = void 0; + const A = _(9150); + class k extends A.ComputeQuerier { + constructor() { + super(...arguments), this.getBalance = ({ contract: a, token_id: t, owner: u, auth: d }) => O(this, void 0, void 0, function* () { + if (d.viewer) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { balance: { token_id: t, owner: u, viewer: d.viewer.address, key: d.viewer.viewing_key } } }); + if (d.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: d.permit, query: { balance: { token_id: t, owner: u } } } } }); + throw new Error("Empty auth parameter for authenticated query: GetBalance"); + }), this.getAllBalances = ({ contract: a, auth: t, owner: u, tx_history_page: d, tx_history_page_size: s }) => O(this, void 0, void 0, function* () { + if (t.viewer && u) { + if (t.viewer.address !== u) + throw new Error("only owner can query all balances"); + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { all_balances: { owner: u, key: t.viewer.viewing_key, tx_history_page: d, tx_history_page_size: s } } }); + } + if (t.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: t.permit, query: { all_balances: { tx_history_page: d, tx_history_page_size: s } } } } }); + throw new Error("Empty auth parameter for authenticated query: GetAllBalances"); + }), this.getTransactionHistory = ({ contract: a, auth: t, page_size: u, page: d }) => O(this, void 0, void 0, function* () { + if (t.viewer) + return this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { transaction_history: { key: t.viewer.viewing_key, address: t.viewer.address, page_size: u, page: d } } }); + if (t.permit) + return this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: t.permit, query: { transaction_history: { page_size: u, page: d } } } } }); + throw new Error("Empty auth parameter for authenticated query: getTransactionHistory"); + }), this.getPublicTokenInfo = ({ contract: a, token_id: t }) => O(this, void 0, void 0, function* () { + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { token_id_public_info: { token_id: t } } }); + }), this.getPrivateTokenInfo = ({ contract: a, token_id: t, auth: u }) => O(this, void 0, void 0, function* () { + if (u.viewer) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { token_id_private_info: { token_id: t, address: u.viewer.address, key: u.viewer.viewing_key } } }); + if (u.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: u.permit, query: { token_id_private_info: { token_id: t } } } } }); + throw new Error("Empty auth parameter for authenticated query: getTransactionHistory"); + }); + } + } + e.Snip1155Querier = k; + }, 7350: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip1155ChangeMetadata = e.MsgSnip1155RemoveMinter = e.MsgSnipAddMinter = e.MsgSnip1155BatchTransfer = e.MsgSnip1155Transfer = e.MsgSnip1155Burn = e.MsgSnip1155Mint = e.MsgSnip1155BatchSend = e.MsgSnip1155Send = e.MsgSnip1155RemoveCurator = e.MsgSnip1155AddCurator = e.MsgSnip1155CurateTokens = e.MsgSnip1155RemoveAdmin = e.MsgSnip1155ChangeAdmin = void 0; + const O = _(3745); + class A extends O.MsgExecuteContract { + } + e.MsgSnip1155ChangeAdmin = A; + class k extends O.MsgExecuteContract { + } + e.MsgSnip1155RemoveAdmin = k; + class b extends O.MsgExecuteContract { + } + e.MsgSnip1155CurateTokens = b; + class a extends O.MsgExecuteContract { + } + e.MsgSnip1155AddCurator = a; + class t extends O.MsgExecuteContract { + } + e.MsgSnip1155RemoveCurator = t; + class u extends O.MsgExecuteContract { + } + e.MsgSnip1155Send = u; + class d extends O.MsgExecuteContract { + } + e.MsgSnip1155BatchSend = d; + class s extends O.MsgExecuteContract { + } + e.MsgSnip1155Mint = s; + class r extends O.MsgExecuteContract { + } + e.MsgSnip1155Burn = r; + class n extends O.MsgExecuteContract { + } + e.MsgSnip1155Transfer = n; + class o extends O.MsgExecuteContract { + } + e.MsgSnip1155BatchTransfer = o; + class i extends O.MsgExecuteContract { + } + e.MsgSnipAddMinter = i; + class f extends O.MsgExecuteContract { + } + e.MsgSnip1155RemoveMinter = f; + class c extends O.MsgExecuteContract { + } + e.MsgSnip1155ChangeMetadata = c; + }, 8471: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(k, b, a, t) { + t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { + return b[a]; + } }); + } : function(k, b, a, t) { + t === void 0 && (t = a), k[t] = b[a]; + }), A = this && this.__exportStar || function(k, b) { + for (var a in k) + a === "default" || Object.prototype.hasOwnProperty.call(b, a) || O(b, k, a); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), A(_(3655), e), A(_(1047), e); + }, 3655: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + var f; + i.done ? d(i.value) : (f = i.value, f instanceof t ? f : new t(function(c) { + c(f); + })).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip20Querier = void 0; + const A = _(3607); + class k extends A.ComputeQuerier { + constructor() { + super(...arguments), this.getSnip20Params = ({ contract: a }) => O(this, void 0, void 0, function* () { + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { token_info: {} } }); + }), this.getBalance = ({ contract: a, address: t, auth: u }) => O(this, void 0, void 0, function* () { + if (u.key) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { balance: { address: t, key: u.key } } }); + if (u.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: u.permit, query: { balance: {} } } } }); + throw new Error("Empty auth parameter for authenticated query: GetBalance"); + }), this.getTransferHistory = ({ contract: a, address: t, auth: u, page: d, page_size: s, should_filter_decoys: r }) => O(this, void 0, void 0, function* () { + if (u.key) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { transfer_history: { address: t, key: u.key, page: d, page_size: s, should_filter_decoys: r } } }); + if (u.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: u.permit, query: { transfer_history: { page: d, page_size: s, should_filter_decoys: r } } } } }); + throw new Error("Empty auth parameter for authenticated query: getTransferHistory"); + }), this.getTransactionHistory = ({ contract: a, address: t, auth: u, page: d, page_size: s, should_filter_decoys: r }) => O(this, void 0, void 0, function* () { + if (u.key) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { transaction_history: { address: t, key: u.key, page: d, page_size: s, should_filter_decoys: r } } }); + if (u.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: u.permit, query: { transaction_history: { page: d, page_size: s, should_filter_decoys: r } } } } }); + throw new Error("Empty auth parameter for authenticated query: getTransactionHistory"); + }), this.GetAllowance = ({ contract: a, owner: t, spender: u, auth: d }) => O(this, void 0, void 0, function* () { + if (d.key) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { allowance: { owner: t, spender: u, key: d.key } } }); + if (d.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.code_hash, query: { with_permit: { permit: d.permit, query: { allowance: { owner: t, spender: u } } } } }); + throw new Error("Empty auth parameter for authenticated query: GetAllowance"); + }); + } + } + e.Snip20Querier = k; + }, 1047: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip20SetViewingKey = e.MsgSnip20DecreaseAllowance = e.MsgSnip20IncreaseAllowance = e.MsgSnip20Transfer = e.MsgSnip20Send = void 0; + const O = _(3745); + class A extends O.MsgExecuteContract { + } + e.MsgSnip20Send = A; + class k extends O.MsgExecuteContract { + } + e.MsgSnip20Transfer = k; + class b extends O.MsgExecuteContract { + } + e.MsgSnip20IncreaseAllowance = b; + class a extends O.MsgExecuteContract { + } + e.MsgSnip20DecreaseAllowance = a; + class t extends O.MsgExecuteContract { + } + e.MsgSnip20SetViewingKey = t; + }, 2412: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(k, b, a, t) { + t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { + return b[a]; + } }); + } : function(k, b, a, t) { + t === void 0 && (t = a), k[t] = b[a]; + }), A = this && this.__exportStar || function(k, b) { + for (var a in k) + a === "default" || Object.prototype.hasOwnProperty.call(b, a) || O(b, k, a); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), A(_(3449), e), A(_(4539), e); + }, 3449: function(J, e, _) { + var O = this && this.__awaiter || function(b, a, t, u) { + return new (t || (t = Promise))(function(d, s) { + function r(i) { + try { + o(u.next(i)); + } catch (f) { + s(f); + } + } + function n(i) { + try { + o(u.throw(i)); + } catch (f) { + s(f); + } + } + function o(i) { + var f; + i.done ? d(i.value) : (f = i.value, f instanceof t ? f : new t(function(c) { + c(f); + })).then(r, n); + } + o((u = u.apply(b, a || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip721Querier = void 0; + const A = _(9150); + class k extends A.ComputeQuerier { + constructor() { + super(...arguments), this.GetTokenInfo = ({ contract: a, auth: t, token_id: u }) => O(this, void 0, void 0, function* () { + if (t.viewer) + return yield this.queryContract({ contract_address: a.address, code_hash: a.codeHash, query: { all_nft_info: { token_id: u, viewer: t.viewer } } }); + if (t.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.codeHash, query: { with_permit: { permit: t.permit, query: { all_nft_info: { token_id: u } } } } }); + throw new Error("Empty auth parameter for authenticated query: GetTokenInfo"); + }), this.GetOwnedTokens = ({ contract: a, auth: t, owner: u }) => O(this, void 0, void 0, function* () { + if (t.viewer) + return yield this.queryContract({ contract_address: a.address, code_hash: a.codeHash, query: { tokens: { owner: u, viewing_key: t.viewer.viewing_key } } }); + if (t.permit) + return yield this.queryContract({ contract_address: a.address, code_hash: a.codeHash, query: { with_permit: { permit: t.permit, query: { tokens: { owner: u } } } } }); + throw new Error("Empty auth parameter for authenticated query: GetOwnedTokens"); + }); + } + } + e.Snip721Querier = k; + }, 4539: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip721Mint = e.MsgSnip721AddMinter = e.MsgSnip721Send = void 0; + const O = _(3745); + class A extends O.MsgExecuteContract { + } + e.MsgSnip721Send = A; + class k extends O.MsgExecuteContract { + } + e.MsgSnip721AddMinter = k; + class b extends O.MsgExecuteContract { + } + e.MsgSnip721Mint = b; + }, 3004: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Accounts(a, t) { + return b.fetchReq(`/cosmos/auth/v1beta1/accounts?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Account(a, t) { + return b.fetchReq(`/cosmos/auth/v1beta1/accounts/${a.address}?${b.renderURLSearchParams(a, ["address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/cosmos/auth/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ModuleAccountByName(a, t) { + return b.fetchReq(`/cosmos/auth/v1beta1/module_accounts/${a.name}?${b.renderURLSearchParams(a, ["name"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 3704: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Grants(a, t) { + return b.fetchReq(`/cosmos/authz/v1beta1/grants?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GranterGrants(a, t) { + return b.fetchReq(`/cosmos/authz/v1beta1/grants/granter/${a.granter}?${b.renderURLSearchParams(a, ["granter"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GranteeGrants(a, t) { + return b.fetchReq(`/cosmos/authz/v1beta1/grants/grantee/${a.grantee}?${b.renderURLSearchParams(a, ["grantee"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 1926: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Balance(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}/by_denom?${b.renderURLSearchParams(a, ["address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AllBalances(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}?${b.renderURLSearchParams(a, ["address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static SpendableBalances(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/spendable_balances/${a.address}?${b.renderURLSearchParams(a, ["address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static TotalSupply(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/supply?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static SupplyOf(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/supply/${a.denom}?${b.renderURLSearchParams(a, ["denom"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DenomMetadata(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata/${a.denom}?${b.renderURLSearchParams(a, ["denom"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DenomsMetadata(a, t) { + return b.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 4210: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = void 0; + const b = k(_(1704)); + e.Service = class { + static Config(a, t) { + return b.fetchReq(`/cosmos/base/node/v1beta1/config?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 2390: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = void 0; + const b = k(_(1704)); + e.Service = class { + static GetNodeInfo(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/node_info?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GetSyncing(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/syncing?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GetLatestBlock(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/latest?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GetBlockByHeight(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/${a.height}?${b.renderURLSearchParams(a, ["height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GetLatestValidatorSet(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/latest?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static GetValidatorSetByHeight(a, t) { + return b.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/${a.height}?${b.renderURLSearchParams(a, ["height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 406: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ValidatorOutstandingRewards(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/outstanding_rewards?${b.renderURLSearchParams(a, ["validator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ValidatorCommission(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/commission?${b.renderURLSearchParams(a, ["validator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ValidatorSlashes(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/slashes?${b.renderURLSearchParams(a, ["validator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegationRewards(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards/${a.validator_address}?${b.renderURLSearchParams(a, ["delegator_address", "validator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegationTotalRewards(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards?${b.renderURLSearchParams(a, ["delegator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorValidators(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/validators?${b.renderURLSearchParams(a, ["delegator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorWithdrawAddress(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/withdraw_address?${b.renderURLSearchParams(a, ["delegator_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static CommunityPool(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/community_pool?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static FoundationTax(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/foundation_tax?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static RestakeThreshold(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/restake_threshold?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static RestakingEntries(a, t) { + return b.fetchReq(`/cosmos/distribution/v1beta1/restake_entries?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 6898: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Evidence(a, t) { + return b.fetchReq(`/cosmos/evidence/v1beta1/evidence/${a.evidence_hash}?${b.renderURLSearchParams(a, ["evidence_hash"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AllEvidence(a, t) { + return b.fetchReq(`/cosmos/evidence/v1beta1/evidence?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 876: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Allowance(a, t) { + return b.fetchReq(`/cosmos/feegrant/v1beta1/allowance/${a.granter}/${a.grantee}?${b.renderURLSearchParams(a, ["granter", "grantee"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Allowances(a, t) { + return b.fetchReq(`/cosmos/feegrant/v1beta1/allowances/${a.grantee}?${b.renderURLSearchParams(a, ["grantee"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AllowancesByGranter(a, t) { + return b.fetchReq(`/cosmos/feegrant/v1beta1/issued/${a.granter}?${b.renderURLSearchParams(a, ["granter"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 7331: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Proposal(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}?${b.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Proposals(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Vote(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes/${a.voter}?${b.renderURLSearchParams(a, ["proposal_id", "voter"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Votes(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes?${b.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/params/${a.params_type}?${b.renderURLSearchParams(a, ["params_type"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Deposit(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits/${a.depositor}?${b.renderURLSearchParams(a, ["proposal_id", "depositor"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Deposits(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits?${b.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static TallyResult(a, t) { + return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/tally?${b.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 468: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/cosmos/mint/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Inflation(a, t) { + return b.fetchReq(`/cosmos/mint/v1beta1/inflation?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AnnualProvisions(a, t) { + return b.fetchReq(`/cosmos/mint/v1beta1/annual_provisions?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 5440: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/cosmos/params/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 1575: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/cosmos/slashing/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static SigningInfo(a, t) { + return b.fetchReq(`/cosmos/slashing/v1beta1/signing_infos/${a.cons_address}?${b.renderURLSearchParams(a, ["cons_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static SigningInfos(a, t) { + return b.fetchReq(`/cosmos/slashing/v1beta1/signing_infos?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 4066: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Validators(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Validator(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}?${b.renderURLSearchParams(a, ["validator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ValidatorDelegations(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations?${b.renderURLSearchParams(a, ["validator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ValidatorUnbondingDelegations(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/unbonding_delegations?${b.renderURLSearchParams(a, ["validator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Delegation(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}?${b.renderURLSearchParams(a, ["validator_addr", "delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UnbondingDelegation(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}/unbonding_delegation?${b.renderURLSearchParams(a, ["validator_addr", "delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorDelegations(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/delegations/${a.delegator_addr}?${b.renderURLSearchParams(a, ["delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorUnbondingDelegations(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/unbonding_delegations?${b.renderURLSearchParams(a, ["delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Redelegations(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/redelegations?${b.renderURLSearchParams(a, ["delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorValidators(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators?${b.renderURLSearchParams(a, ["delegator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DelegatorValidator(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators/${a.validator_addr}?${b.renderURLSearchParams(a, ["delegator_addr", "validator_addr"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static HistoricalInfo(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/historical_info/${a.height}?${b.renderURLSearchParams(a, ["height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Pool(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/pool?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/cosmos/staking/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 6519: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(u, d, s, r) { + r === void 0 && (r = s), Object.defineProperty(u, r, { enumerable: !0, get: function() { + return d[s]; + } }); + } : function(u, d, s, r) { + r === void 0 && (r = s), u[r] = d[s]; + }), A = this && this.__setModuleDefault || (Object.create ? function(u, d) { + Object.defineProperty(u, "default", { enumerable: !0, value: d }); + } : function(u, d) { + u.default = d; + }), k = this && this.__importStar || function(u) { + if (u && u.__esModule) + return u; + var d = {}; + if (u != null) + for (var s in u) + s !== "default" && Object.prototype.hasOwnProperty.call(u, s) && O(d, u, s); + return A(d, u), d; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = e.BroadcastMode = e.OrderBy = void 0; + const b = k(_(1704)); + var a, t; + (t = e.OrderBy || (e.OrderBy = {})).ORDER_BY_UNSPECIFIED = "ORDER_BY_UNSPECIFIED", t.ORDER_BY_ASC = "ORDER_BY_ASC", t.ORDER_BY_DESC = "ORDER_BY_DESC", (a = e.BroadcastMode || (e.BroadcastMode = {})).BROADCAST_MODE_UNSPECIFIED = "BROADCAST_MODE_UNSPECIFIED", a.BROADCAST_MODE_BLOCK = "BROADCAST_MODE_BLOCK", a.BROADCAST_MODE_SYNC = "BROADCAST_MODE_SYNC", a.BROADCAST_MODE_ASYNC = "BROADCAST_MODE_ASYNC", e.Service = class { + static Simulate(u, d) { + return b.fetchReq("/cosmos/tx/v1beta1/simulate", Object.assign(Object.assign({}, d), { method: "POST", body: JSON.stringify(u, b.replacer) })); + } + static GetTx(u, d) { + return b.fetchReq(`/cosmos/tx/v1beta1/txs/${u.hash}?${b.renderURLSearchParams(u, ["hash"])}`, Object.assign(Object.assign({}, d), { method: "GET" })); + } + static BroadcastTx(u, d) { + return b.fetchReq("/cosmos/tx/v1beta1/txs", Object.assign(Object.assign({}, d), { method: "POST", body: JSON.stringify(u, b.replacer) })); + } + static GetTxsEvent(u, d) { + return b.fetchReq(`/cosmos/tx/v1beta1/txs?${b.renderURLSearchParams(u, [])}`, Object.assign(Object.assign({}, d), { method: "GET" })); + } + static GetBlockWithTxs(u, d) { + return b.fetchReq(`/cosmos/tx/v1beta1/txs/block/${u.height}?${b.renderURLSearchParams(u, ["height"])}`, Object.assign(Object.assign({}, d), { method: "GET" })); + } + }; + }, 2265: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static CurrentPlan(a, t) { + return b.fetchReq(`/cosmos/upgrade/v1beta1/current_plan?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AppliedPlan(a, t) { + return b.fetchReq(`/cosmos/upgrade/v1beta1/applied_plan/${a.name}?${b.renderURLSearchParams(a, ["name"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UpgradedConsensusState(a, t) { + return b.fetchReq(`/cosmos/upgrade/v1beta1/upgraded_consensus_state/${a.last_height}?${b.renderURLSearchParams(a, ["last_height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ModuleVersions(a, t) { + return b.fetchReq(`/cosmos/upgrade/v1beta1/module_versions?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 1704: function(J, e) { + var _ = this && this.__awaiter || function(d, s, r, n) { + return new (r || (r = Promise))(function(o, i) { + function f(p) { + try { + h(n.next(p)); + } catch (m) { + i(m); + } + } + function c(p) { + try { + h(n.throw(p)); + } catch (m) { + i(m); + } + } + function h(p) { + var m; + p.done ? o(p.value) : (m = p.value, m instanceof r ? m : new r(function(M) { + M(m); + })).then(f, c); + } + h((n = n.apply(d, s || [])).next()); + }); + }, O = this && this.__rest || function(d, s) { + var r = {}; + for (var n in d) + Object.prototype.hasOwnProperty.call(d, n) && s.indexOf(n) < 0 && (r[n] = d[n]); + if (d != null && typeof Object.getOwnPropertySymbols == "function") { + var o = 0; + for (n = Object.getOwnPropertySymbols(d); o < n.length; o++) + s.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(d, n[o]) && (r[n[o]] = d[n[o]]); + } + return r; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.renderURLSearchParams = e.fetchStreamingRequest = e.fetchReq = e.replacer = e.b64Decode = e.b64Encode = void 0; + const A = new Array(64), k = new Array(123); + for (let d = 0; d < 64; ) + k[A[d] = d < 26 ? d + 65 : d < 52 ? d + 71 : d < 62 ? d - 4 : d - 59 | 43] = d++; + function b(d, s, r) { + let n = null; + const o = []; + let i, f = 0, c = 0; + for (; s < r; ) { + const h = d[s++]; + switch (c) { + case 0: + o[f++] = A[h >> 2], i = (3 & h) << 4, c = 1; + break; + case 1: + o[f++] = A[i | h >> 4], i = (15 & h) << 2, c = 2; + break; + case 2: + o[f++] = A[i | h >> 6], o[f++] = A[63 & h], c = 0; + } + f > 8191 && ((n || (n = [])).push(String.fromCharCode.apply(String, o)), f = 0); + } + return c && (o[f++] = A[i], o[f++] = 61, c === 1 && (o[f++] = 61)), n ? (f && n.push(String.fromCharCode.apply(String, o.slice(0, f))), n.join("")) : String.fromCharCode.apply(String, o.slice(0, f)); + } + e.b64Encode = b; + const a = "invalid encoding"; + function t(d) { + return ["string", "number", "boolean"].some((s) => typeof d === s); + } + function u(d, s = "") { + return Object.keys(d).reduce((r, n) => { + const o = d[n], i = s ? [s, n].join(".") : n, f = Array.isArray(o) && o.every((p) => t(p)) && o.length > 0, c = t(o) && !function(p) { + return p === !1 || p === 0 || p === ""; + }(o); + let h = {}; + return function(p) { + const m = Object.prototype.toString.call(p).slice(8, -1) === "Object"; + if (p === null || !m || !m) + return !1; + const M = Object.getPrototypeOf(p); + return typeof M == "object" && M.constructor === Object.prototype.constructor; + }(o) ? h = u(o, i) : o && o.constructor === Uint8Array ? h = { [i]: b(o, 0, o.length) } : (c || f) && (h = { [i]: o }), Object.assign(Object.assign({}, r), h); + }, {}); + } + e.b64Decode = function(d) { + const s = []; + let r, n = 0, o = 0; + for (let i = 0; i < d.length; ) { + let f = d.charCodeAt(i++); + if (f === 61 && o > 1) + break; + if ((f = k[f]) === void 0) + throw Error(a); + switch (o) { + case 0: + r = f, o = 1; + break; + case 1: + s[n++] = r << 2 | (48 & f) >> 4, r = f, o = 2; + break; + case 2: + s[n++] = (15 & r) << 4 | (60 & f) >> 2, r = f, o = 3; + break; + case 3: + s[n++] = (3 & r) << 6 | f, o = 0; + } + } + if (o === 1) + throw Error(a); + return new Uint8Array(s); + }, e.replacer = function(d, s) { + return s && s.constructor === Uint8Array ? b(s, 0, s.length) : s; + }, e.fetchReq = function(d, s) { + const r = s || {}, { pathPrefix: n } = r, o = O(r, ["pathPrefix"]); + return fetch(n ? `${n}${d}` : d, o).then((i) => i.json().then((f) => { + if (!i.ok) + throw f; + return f; + })); + }, e.fetchStreamingRequest = function(d, s, r) { + return _(this, void 0, void 0, function* () { + const n = r || {}, { pathPrefix: o } = n, i = O(n, ["pathPrefix"]), f = o ? `${o}${d}` : d, c = yield fetch(f, i); + if (!c.ok) { + const p = yield c.json(), m = p.error && p.error.message ? p.error.message : ""; + throw new Error(m); + } + if (!c.body) + throw new Error("response doesnt have a body"); + var h; + yield c.body.pipeThrough(new TextDecoderStream()).pipeThrough(new TransformStream({ start(p) { + p.buf = "", p.pos = 0; + }, transform(p, m) { + for (m.buf === void 0 && (m.buf = ""), m.pos === void 0 && (m.pos = 0), m.buf += p; m.pos < m.buf.length; ) + if (m.buf[m.pos] === ` +`) { + const M = m.buf.substring(0, m.pos), l = JSON.parse(M); + m.enqueue(l.result), m.buf = m.buf.substring(m.pos + 1), m.pos = 0; + } else + ++m.pos; + } })).pipeTo((h = (p) => { + s && s(p); + }, new WritableStream({ write(p) { + h(p); + } }))); + }); + }, e.renderURLSearchParams = function(d, s = []) { + const r = u(d); + return Object.keys(r).reduce((n, o) => { + const i = r[o]; + return s.find((f) => f === o) ? n : Array.isArray(i) ? [...n, ...i.map((f) => [o, f.toString()])] : n = [...n, [o, i.toString()]]; + }, []).map((n) => new URLSearchParams({ [n[0]]: n[1] }).toString()).join("&"); + }; + }, 187: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static IncentivizedPackets(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/incentivized_packets?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static IncentivizedPacket(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/incentivized_packet?${b.renderURLSearchParams(a, ["packet_id.channel_id", "packet_id.port_id", "packet_id.sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static IncentivizedPacketsForChannel(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/incentivized_packets?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static TotalRecvFees(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_recv_fees?${b.renderURLSearchParams(a, ["packet_id.channel_id", "packet_id.port_id", "packet_id.sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static TotalAckFees(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_ack_fees?${b.renderURLSearchParams(a, ["packet_id.channel_id", "packet_id.port_id", "packet_id.sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static TotalTimeoutFees(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_timeout_fees?${b.renderURLSearchParams(a, ["packet_id.channel_id", "packet_id.port_id", "packet_id.sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Payee(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/payee?${b.renderURLSearchParams(a, ["channel_id", "relayer"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static CounterpartyPayee(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/counterparty_payee?${b.renderURLSearchParams(a, ["channel_id", "relayer"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static FeeEnabledChannels(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/fee_enabled?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static FeeEnabledChannel(a, t) { + return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/fee_enabled?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 2847: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static InterchainAccount(a, t) { + return b.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/owners/${a.owner}/connections/${a.connection_id}?${b.renderURLSearchParams(a, ["owner", "connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 1154: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/ibc/apps/interchain_accounts/host/v1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 1692: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/ibc/apps/router/v1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 4921: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static DenomTrace(a, t) { + return b.fetchReq(`/ibc/apps/transfer/v1/denom_traces/${a.hash}?${b.renderURLSearchParams(a, ["hash"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DenomTraces(a, t) { + return b.fetchReq(`/ibc/apps/transfer/v1/denom_traces?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Params(a, t) { + return b.fetchReq(`/ibc/apps/transfer/v1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static DenomHash(a, t) { + return b.fetchReq(`/ibc/apps/transfer/v1/denom_hashes/${a.trace}?${b.renderURLSearchParams(a, ["trace"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static EscrowAddress(a, t) { + return b.fetchReq(`/ibc/apps/transfer/v1/channels/${a.channel_id}/ports/${a.port_id}/escrow_address?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 6409: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Channel(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Channels(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConnectionChannels(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/connections/${a.connection}/channels?${b.renderURLSearchParams(a, ["connection"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ChannelClientState(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/client_state?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ChannelConsensusState(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a, ["channel_id", "port_id", "revision_number", "revision_height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static PacketCommitment(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.sequence}?${b.renderURLSearchParams(a, ["channel_id", "port_id", "sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static PacketCommitments(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static PacketReceipt(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_receipts/${a.sequence}?${b.renderURLSearchParams(a, ["channel_id", "port_id", "sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static PacketAcknowledgement(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acks/${a.sequence}?${b.renderURLSearchParams(a, ["channel_id", "port_id", "sequence"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static PacketAcknowledgements(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acknowledgements?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UnreceivedPackets(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_commitment_sequences}/unreceived_packets?${b.renderURLSearchParams(a, ["channel_id", "port_id", "packet_commitment_sequences"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UnreceivedAcks(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_ack_sequences}/unreceived_acks?${b.renderURLSearchParams(a, ["channel_id", "port_id", "packet_ack_sequences"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static NextSequenceReceive(a, t) { + return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/next_sequence?${b.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 301: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static ClientState(a, t) { + return b.fetchReq(`/ibc/core/client/v1/client_states/${a.client_id}?${b.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ClientStates(a, t) { + return b.fetchReq(`/ibc/core/client/v1/client_states?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConsensusState(a, t) { + return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a, ["client_id", "revision_number", "revision_height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConsensusStates(a, t) { + return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}?${b.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConsensusStateHeights(a, t) { + return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/heights?${b.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ClientStatus(a, t) { + return b.fetchReq(`/ibc/core/client/v1/client_status/${a.client_id}?${b.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ClientParams(a, t) { + return b.fetchReq(`/ibc/client/v1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UpgradedClientState(a, t) { + return b.fetchReq(`/ibc/core/client/v1/upgraded_client_states?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static UpgradedConsensusState(a, t) { + return b.fetchReq(`/ibc/core/client/v1/upgraded_consensus_states?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 5258: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Connection(a, t) { + return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}?${b.renderURLSearchParams(a, ["connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Connections(a, t) { + return b.fetchReq(`/ibc/core/connection/v1/connections?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ClientConnections(a, t) { + return b.fetchReq(`/ibc/core/connection/v1/client_connections/${a.client_id}?${b.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConnectionClientState(a, t) { + return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/client_state?${b.renderURLSearchParams(a, ["connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ConnectionConsensusState(a, t) { + return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a, ["connection_id", "revision_number", "revision_height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 5250: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static ContractInfo(a, t) { + return b.fetchReq(`/compute/v1beta1/info/${a.contract_address}?${b.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ContractsByCodeId(a, t) { + return b.fetchReq(`/compute/v1beta1/contracts/${a.code_id}?${b.renderURLSearchParams(a, ["code_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static QuerySecretContract(a, t) { + return b.fetchReq(`/compute/v1beta1/query/${a.contract_address}?${b.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Code(a, t) { + return b.fetchReq(`/compute/v1beta1/code/${a.code_id}?${b.renderURLSearchParams(a, ["code_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static Codes(a, t) { + return b.fetchReq(`/compute/v1beta1/codes?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static CodeHashByContractAddress(a, t) { + return b.fetchReq(`/compute/v1beta1/code_hash/by_contract_address/${a.contract_address}?${b.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static CodeHashByCodeId(a, t) { + return b.fetchReq(`/compute/v1beta1/code_hash/by_code_id/${a.code_id}?${b.renderURLSearchParams(a, ["code_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static LabelByAddress(a, t) { + return b.fetchReq(`/compute/v1beta1/label/${a.contract_address}?${b.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static AddressByLabel(a, t) { + return b.fetchReq(`/compute/v1beta1/contract_address/${a.label}?${b.renderURLSearchParams(a, ["label"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static ContractHistory(a, t) { + return b.fetchReq(`/compute/v1beta1/contract_history/${a.contract_address}?${b.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 71: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static Params(a, t) { + return b.fetchReq(`/emergencybutton/v1beta1/params?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 9743: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static InterchainAccountFromAddress(a, t) { + return b.fetchReq(`/mauth/interchain_account/owner/${a.owner}/connection/${a.connection_id}?${b.renderURLSearchParams(a, ["owner", "connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 6402: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; + const b = k(_(1704)); + e.Query = class { + static TxKey(a, t) { + return b.fetchReq(`/registration/v1beta1/tx-key?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static RegistrationKey(a, t) { + return b.fetchReq(`/registration/v1beta1/registration-key?${b.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + static EncryptedSeed(a, t) { + return b.fetchReq(`/registration/v1beta1/encrypted-seed/${a.pub_key}?${b.renderURLSearchParams(a, ["pub_key"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); + } + }; + }, 3607: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(t, u, d, s) { + s === void 0 && (s = d), Object.defineProperty(t, s, { enumerable: !0, get: function() { + return u[d]; + } }); + } : function(t, u, d, s) { + s === void 0 && (s = d), t[s] = u[d]; + }), A = this && this.__exportStar || function(t, u) { + for (var d in t) + d === "default" || Object.prototype.hasOwnProperty.call(u, d) || O(u, t, d); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgExecuteContractResponse = e.MsgInstantiateContractResponse = e.MsgStoreCodeResponse = e.MetaMaskWallet = e.Wallet = void 0, typeof BigInt > "u" && (_.g.BigInt = _(4736)), A(_(8972), e), A(_(8136), e), A(_(9150), e), A(_(1972), e), A(_(3745), e), A(_(8593), e); + var k = _(1049); + Object.defineProperty(e, "Wallet", { enumerable: !0, get: function() { + return k.Wallet; + } }); + var b = _(1444); + Object.defineProperty(e, "MetaMaskWallet", { enumerable: !0, get: function() { + return b.MetaMaskWallet; + } }), A(_(8471), e), A(_(2412), e), A(_(7061), e); + var a = _(2896); + Object.defineProperty(e, "MsgStoreCodeResponse", { enumerable: !0, get: function() { + return a.MsgStoreCodeResponse; + } }), Object.defineProperty(e, "MsgInstantiateContractResponse", { enumerable: !0, get: function() { + return a.MsgInstantiateContractResponse; + } }), Object.defineProperty(e, "MsgExecuteContractResponse", { enumerable: !0, get: function() { + return a.MsgExecuteContractResponse; + } }); + }, 6578: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(P, w, g, E) { + E === void 0 && (E = g), Object.defineProperty(P, E, { enumerable: !0, get: function() { + return w[g]; + } }); + } : function(P, w, g, E) { + E === void 0 && (E = g), P[E] = w[g]; + }), A = this && this.__setModuleDefault || (Object.create ? function(P, w) { + Object.defineProperty(P, "default", { enumerable: !0, value: w }); + } : function(P, w) { + P.default = w; + }), k = this && this.__importStar || function(P) { + if (P && P.__esModule) + return P; + var w = {}; + if (P != null) + for (var g in P) + g !== "default" && Object.prototype.hasOwnProperty.call(P, g) && O(w, P, g); + return A(w, P), w; + }, b = this && this.__importDefault || function(P) { + return P && P.__esModule ? P : { default: P }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.CompressedNonExistenceProof = e.CompressedExistenceProof = e.CompressedBatchEntry = e.CompressedBatchProof = e.BatchEntry = e.BatchProof = e.InnerSpec = e.ProofSpec = e.InnerOp = e.LeafOp = e.CommitmentProof = e.NonExistenceProof = e.ExistenceProof = e.lengthOpToJSON = e.lengthOpFromJSON = e.LengthOp = e.hashOpToJSON = e.hashOpFromJSON = e.HashOp = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + var u, d; + function s(P) { + switch (P) { + case 0: + case "NO_HASH": + return u.NO_HASH; + case 1: + case "SHA256": + return u.SHA256; + case 2: + case "SHA512": + return u.SHA512; + case 3: + case "KECCAK": + return u.KECCAK; + case 4: + case "RIPEMD160": + return u.RIPEMD160; + case 5: + case "BITCOIN": + return u.BITCOIN; + default: + return u.UNRECOGNIZED; + } + } + function r(P) { + switch (P) { + case u.NO_HASH: + return "NO_HASH"; + case u.SHA256: + return "SHA256"; + case u.SHA512: + return "SHA512"; + case u.KECCAK: + return "KECCAK"; + case u.RIPEMD160: + return "RIPEMD160"; + case u.BITCOIN: + return "BITCOIN"; + default: + return "UNKNOWN"; + } + } + function n(P) { + switch (P) { + case 0: + case "NO_PREFIX": + return d.NO_PREFIX; + case 1: + case "VAR_PROTO": + return d.VAR_PROTO; + case 2: + case "VAR_RLP": + return d.VAR_RLP; + case 3: + case "FIXED32_BIG": + return d.FIXED32_BIG; + case 4: + case "FIXED32_LITTLE": + return d.FIXED32_LITTLE; + case 5: + case "FIXED64_BIG": + return d.FIXED64_BIG; + case 6: + case "FIXED64_LITTLE": + return d.FIXED64_LITTLE; + case 7: + case "REQUIRE_32_BYTES": + return d.REQUIRE_32_BYTES; + case 8: + case "REQUIRE_64_BYTES": + return d.REQUIRE_64_BYTES; + default: + return d.UNRECOGNIZED; + } + } + function o(P) { + switch (P) { + case d.NO_PREFIX: + return "NO_PREFIX"; + case d.VAR_PROTO: + return "VAR_PROTO"; + case d.VAR_RLP: + return "VAR_RLP"; + case d.FIXED32_BIG: + return "FIXED32_BIG"; + case d.FIXED32_LITTLE: + return "FIXED32_LITTLE"; + case d.FIXED64_BIG: + return "FIXED64_BIG"; + case d.FIXED64_LITTLE: + return "FIXED64_LITTLE"; + case d.REQUIRE_32_BYTES: + return "REQUIRE_32_BYTES"; + case d.REQUIRE_64_BYTES: + return "REQUIRE_64_BYTES"; + default: + return "UNKNOWN"; + } + } + function i() { + return { key: new Uint8Array(), value: new Uint8Array(), leaf: void 0, path: [] }; + } + function f() { + return { key: new Uint8Array(), left: void 0, right: void 0 }; + } + function c() { + return { hash: 0, prehash_key: 0, prehash_value: 0, length: 0, prefix: new Uint8Array() }; + } + function h() { + return { hash: 0, prefix: new Uint8Array(), suffix: new Uint8Array() }; + } + function p() { + return { child_order: [], child_size: 0, min_prefix_length: 0, max_prefix_length: 0, empty_child: new Uint8Array(), hash: 0 }; + } + function m() { + return { key: new Uint8Array(), value: new Uint8Array(), leaf: void 0, path: [] }; + } + function M() { + return { key: new Uint8Array(), left: void 0, right: void 0 }; + } + e.protobufPackage = "ics23", function(P) { + P[P.NO_HASH = 0] = "NO_HASH", P[P.SHA256 = 1] = "SHA256", P[P.SHA512 = 2] = "SHA512", P[P.KECCAK = 3] = "KECCAK", P[P.RIPEMD160 = 4] = "RIPEMD160", P[P.BITCOIN = 5] = "BITCOIN", P[P.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(u = e.HashOp || (e.HashOp = {})), e.hashOpFromJSON = s, e.hashOpToJSON = r, function(P) { + P[P.NO_PREFIX = 0] = "NO_PREFIX", P[P.VAR_PROTO = 1] = "VAR_PROTO", P[P.VAR_RLP = 2] = "VAR_RLP", P[P.FIXED32_BIG = 3] = "FIXED32_BIG", P[P.FIXED32_LITTLE = 4] = "FIXED32_LITTLE", P[P.FIXED64_BIG = 5] = "FIXED64_BIG", P[P.FIXED64_LITTLE = 6] = "FIXED64_LITTLE", P[P.REQUIRE_32_BYTES = 7] = "REQUIRE_32_BYTES", P[P.REQUIRE_64_BYTES = 8] = "REQUIRE_64_BYTES", P[P.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(d = e.LengthOp || (e.LengthOp = {})), e.lengthOpFromJSON = n, e.lengthOpToJSON = o, e.ExistenceProof = { encode(P, w = t.Writer.create()) { + P.key.length !== 0 && w.uint32(10).bytes(P.key), P.value.length !== 0 && w.uint32(18).bytes(P.value), P.leaf !== void 0 && e.LeafOp.encode(P.leaf, w.uint32(26).fork()).ldelim(); + for (const g of P.path) + e.InnerOp.encode(g, w.uint32(34).fork()).ldelim(); + return w; + }, decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = i(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.key = g.bytes(); + break; + case 2: + U.value = g.bytes(); + break; + case 3: + U.leaf = e.LeafOp.decode(g, g.uint32()); + break; + case 4: + U.path.push(e.InnerOp.decode(g, g.uint32())); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ key: x(P.key) ? j(P.key) : new Uint8Array(), value: x(P.value) ? j(P.value) : new Uint8Array(), leaf: x(P.leaf) ? e.LeafOp.fromJSON(P.leaf) : void 0, path: Array.isArray(P == null ? void 0 : P.path) ? P.path.map((w) => e.InnerOp.fromJSON(w)) : [] }), toJSON(P) { + const w = {}; + return P.key !== void 0 && (w.key = I(P.key !== void 0 ? P.key : new Uint8Array())), P.value !== void 0 && (w.value = I(P.value !== void 0 ? P.value : new Uint8Array())), P.leaf !== void 0 && (w.leaf = P.leaf ? e.LeafOp.toJSON(P.leaf) : void 0), P.path ? w.path = P.path.map((g) => g ? e.InnerOp.toJSON(g) : void 0) : w.path = [], w; + }, fromPartial(P) { + var w, g, E; + const U = i(); + return U.key = (w = P.key) !== null && w !== void 0 ? w : new Uint8Array(), U.value = (g = P.value) !== null && g !== void 0 ? g : new Uint8Array(), U.leaf = P.leaf !== void 0 && P.leaf !== null ? e.LeafOp.fromPartial(P.leaf) : void 0, U.path = ((E = P.path) === null || E === void 0 ? void 0 : E.map((C) => e.InnerOp.fromPartial(C))) || [], U; + } }, e.NonExistenceProof = { encode: (P, w = t.Writer.create()) => (P.key.length !== 0 && w.uint32(10).bytes(P.key), P.left !== void 0 && e.ExistenceProof.encode(P.left, w.uint32(18).fork()).ldelim(), P.right !== void 0 && e.ExistenceProof.encode(P.right, w.uint32(26).fork()).ldelim(), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = f(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.key = g.bytes(); + break; + case 2: + U.left = e.ExistenceProof.decode(g, g.uint32()); + break; + case 3: + U.right = e.ExistenceProof.decode(g, g.uint32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ key: x(P.key) ? j(P.key) : new Uint8Array(), left: x(P.left) ? e.ExistenceProof.fromJSON(P.left) : void 0, right: x(P.right) ? e.ExistenceProof.fromJSON(P.right) : void 0 }), toJSON(P) { + const w = {}; + return P.key !== void 0 && (w.key = I(P.key !== void 0 ? P.key : new Uint8Array())), P.left !== void 0 && (w.left = P.left ? e.ExistenceProof.toJSON(P.left) : void 0), P.right !== void 0 && (w.right = P.right ? e.ExistenceProof.toJSON(P.right) : void 0), w; + }, fromPartial(P) { + var w; + const g = f(); + return g.key = (w = P.key) !== null && w !== void 0 ? w : new Uint8Array(), g.left = P.left !== void 0 && P.left !== null ? e.ExistenceProof.fromPartial(P.left) : void 0, g.right = P.right !== void 0 && P.right !== null ? e.ExistenceProof.fromPartial(P.right) : void 0, g; + } }, e.CommitmentProof = { encode: (P, w = t.Writer.create()) => (P.exist !== void 0 && e.ExistenceProof.encode(P.exist, w.uint32(10).fork()).ldelim(), P.nonexist !== void 0 && e.NonExistenceProof.encode(P.nonexist, w.uint32(18).fork()).ldelim(), P.batch !== void 0 && e.BatchProof.encode(P.batch, w.uint32(26).fork()).ldelim(), P.compressed !== void 0 && e.CompressedBatchProof.encode(P.compressed, w.uint32(34).fork()).ldelim(), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { exist: void 0, nonexist: void 0, batch: void 0, compressed: void 0 }; + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.exist = e.ExistenceProof.decode(g, g.uint32()); + break; + case 2: + U.nonexist = e.NonExistenceProof.decode(g, g.uint32()); + break; + case 3: + U.batch = e.BatchProof.decode(g, g.uint32()); + break; + case 4: + U.compressed = e.CompressedBatchProof.decode(g, g.uint32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ exist: x(P.exist) ? e.ExistenceProof.fromJSON(P.exist) : void 0, nonexist: x(P.nonexist) ? e.NonExistenceProof.fromJSON(P.nonexist) : void 0, batch: x(P.batch) ? e.BatchProof.fromJSON(P.batch) : void 0, compressed: x(P.compressed) ? e.CompressedBatchProof.fromJSON(P.compressed) : void 0 }), toJSON(P) { + const w = {}; + return P.exist !== void 0 && (w.exist = P.exist ? e.ExistenceProof.toJSON(P.exist) : void 0), P.nonexist !== void 0 && (w.nonexist = P.nonexist ? e.NonExistenceProof.toJSON(P.nonexist) : void 0), P.batch !== void 0 && (w.batch = P.batch ? e.BatchProof.toJSON(P.batch) : void 0), P.compressed !== void 0 && (w.compressed = P.compressed ? e.CompressedBatchProof.toJSON(P.compressed) : void 0), w; + }, fromPartial(P) { + const w = { exist: void 0, nonexist: void 0, batch: void 0, compressed: void 0 }; + return w.exist = P.exist !== void 0 && P.exist !== null ? e.ExistenceProof.fromPartial(P.exist) : void 0, w.nonexist = P.nonexist !== void 0 && P.nonexist !== null ? e.NonExistenceProof.fromPartial(P.nonexist) : void 0, w.batch = P.batch !== void 0 && P.batch !== null ? e.BatchProof.fromPartial(P.batch) : void 0, w.compressed = P.compressed !== void 0 && P.compressed !== null ? e.CompressedBatchProof.fromPartial(P.compressed) : void 0, w; + } }, e.LeafOp = { encode: (P, w = t.Writer.create()) => (P.hash !== 0 && w.uint32(8).int32(P.hash), P.prehash_key !== 0 && w.uint32(16).int32(P.prehash_key), P.prehash_value !== 0 && w.uint32(24).int32(P.prehash_value), P.length !== 0 && w.uint32(32).int32(P.length), P.prefix.length !== 0 && w.uint32(42).bytes(P.prefix), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = c(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.hash = g.int32(); + break; + case 2: + U.prehash_key = g.int32(); + break; + case 3: + U.prehash_value = g.int32(); + break; + case 4: + U.length = g.int32(); + break; + case 5: + U.prefix = g.bytes(); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ hash: x(P.hash) ? s(P.hash) : 0, prehash_key: x(P.prehash_key) ? s(P.prehash_key) : 0, prehash_value: x(P.prehash_value) ? s(P.prehash_value) : 0, length: x(P.length) ? n(P.length) : 0, prefix: x(P.prefix) ? j(P.prefix) : new Uint8Array() }), toJSON(P) { + const w = {}; + return P.hash !== void 0 && (w.hash = r(P.hash)), P.prehash_key !== void 0 && (w.prehash_key = r(P.prehash_key)), P.prehash_value !== void 0 && (w.prehash_value = r(P.prehash_value)), P.length !== void 0 && (w.length = o(P.length)), P.prefix !== void 0 && (w.prefix = I(P.prefix !== void 0 ? P.prefix : new Uint8Array())), w; + }, fromPartial(P) { + var w, g, E, U, C; + const F = c(); + return F.hash = (w = P.hash) !== null && w !== void 0 ? w : 0, F.prehash_key = (g = P.prehash_key) !== null && g !== void 0 ? g : 0, F.prehash_value = (E = P.prehash_value) !== null && E !== void 0 ? E : 0, F.length = (U = P.length) !== null && U !== void 0 ? U : 0, F.prefix = (C = P.prefix) !== null && C !== void 0 ? C : new Uint8Array(), F; + } }, e.InnerOp = { encode: (P, w = t.Writer.create()) => (P.hash !== 0 && w.uint32(8).int32(P.hash), P.prefix.length !== 0 && w.uint32(18).bytes(P.prefix), P.suffix.length !== 0 && w.uint32(26).bytes(P.suffix), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = h(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.hash = g.int32(); + break; + case 2: + U.prefix = g.bytes(); + break; + case 3: + U.suffix = g.bytes(); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ hash: x(P.hash) ? s(P.hash) : 0, prefix: x(P.prefix) ? j(P.prefix) : new Uint8Array(), suffix: x(P.suffix) ? j(P.suffix) : new Uint8Array() }), toJSON(P) { + const w = {}; + return P.hash !== void 0 && (w.hash = r(P.hash)), P.prefix !== void 0 && (w.prefix = I(P.prefix !== void 0 ? P.prefix : new Uint8Array())), P.suffix !== void 0 && (w.suffix = I(P.suffix !== void 0 ? P.suffix : new Uint8Array())), w; + }, fromPartial(P) { + var w, g, E; + const U = h(); + return U.hash = (w = P.hash) !== null && w !== void 0 ? w : 0, U.prefix = (g = P.prefix) !== null && g !== void 0 ? g : new Uint8Array(), U.suffix = (E = P.suffix) !== null && E !== void 0 ? E : new Uint8Array(), U; + } }, e.ProofSpec = { encode: (P, w = t.Writer.create()) => (P.leaf_spec !== void 0 && e.LeafOp.encode(P.leaf_spec, w.uint32(10).fork()).ldelim(), P.inner_spec !== void 0 && e.InnerSpec.encode(P.inner_spec, w.uint32(18).fork()).ldelim(), P.max_depth !== 0 && w.uint32(24).int32(P.max_depth), P.min_depth !== 0 && w.uint32(32).int32(P.min_depth), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { leaf_spec: void 0, inner_spec: void 0, max_depth: 0, min_depth: 0 }; + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.leaf_spec = e.LeafOp.decode(g, g.uint32()); + break; + case 2: + U.inner_spec = e.InnerSpec.decode(g, g.uint32()); + break; + case 3: + U.max_depth = g.int32(); + break; + case 4: + U.min_depth = g.int32(); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ leaf_spec: x(P.leaf_spec) ? e.LeafOp.fromJSON(P.leaf_spec) : void 0, inner_spec: x(P.inner_spec) ? e.InnerSpec.fromJSON(P.inner_spec) : void 0, max_depth: x(P.max_depth) ? Number(P.max_depth) : 0, min_depth: x(P.min_depth) ? Number(P.min_depth) : 0 }), toJSON(P) { + const w = {}; + return P.leaf_spec !== void 0 && (w.leaf_spec = P.leaf_spec ? e.LeafOp.toJSON(P.leaf_spec) : void 0), P.inner_spec !== void 0 && (w.inner_spec = P.inner_spec ? e.InnerSpec.toJSON(P.inner_spec) : void 0), P.max_depth !== void 0 && (w.max_depth = Math.round(P.max_depth)), P.min_depth !== void 0 && (w.min_depth = Math.round(P.min_depth)), w; + }, fromPartial(P) { + var w, g; + const E = { leaf_spec: void 0, inner_spec: void 0, max_depth: 0, min_depth: 0 }; + return E.leaf_spec = P.leaf_spec !== void 0 && P.leaf_spec !== null ? e.LeafOp.fromPartial(P.leaf_spec) : void 0, E.inner_spec = P.inner_spec !== void 0 && P.inner_spec !== null ? e.InnerSpec.fromPartial(P.inner_spec) : void 0, E.max_depth = (w = P.max_depth) !== null && w !== void 0 ? w : 0, E.min_depth = (g = P.min_depth) !== null && g !== void 0 ? g : 0, E; + } }, e.InnerSpec = { encode(P, w = t.Writer.create()) { + w.uint32(10).fork(); + for (const g of P.child_order) + w.int32(g); + return w.ldelim(), P.child_size !== 0 && w.uint32(16).int32(P.child_size), P.min_prefix_length !== 0 && w.uint32(24).int32(P.min_prefix_length), P.max_prefix_length !== 0 && w.uint32(32).int32(P.max_prefix_length), P.empty_child.length !== 0 && w.uint32(42).bytes(P.empty_child), P.hash !== 0 && w.uint32(48).int32(P.hash), w; + }, decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = p(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + if ((7 & C) == 2) { + const F = g.uint32() + g.pos; + for (; g.pos < F; ) + U.child_order.push(g.int32()); + } else + U.child_order.push(g.int32()); + break; + case 2: + U.child_size = g.int32(); + break; + case 3: + U.min_prefix_length = g.int32(); + break; + case 4: + U.max_prefix_length = g.int32(); + break; + case 5: + U.empty_child = g.bytes(); + break; + case 6: + U.hash = g.int32(); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ child_order: Array.isArray(P == null ? void 0 : P.child_order) ? P.child_order.map((w) => Number(w)) : [], child_size: x(P.child_size) ? Number(P.child_size) : 0, min_prefix_length: x(P.min_prefix_length) ? Number(P.min_prefix_length) : 0, max_prefix_length: x(P.max_prefix_length) ? Number(P.max_prefix_length) : 0, empty_child: x(P.empty_child) ? j(P.empty_child) : new Uint8Array(), hash: x(P.hash) ? s(P.hash) : 0 }), toJSON(P) { + const w = {}; + return P.child_order ? w.child_order = P.child_order.map((g) => Math.round(g)) : w.child_order = [], P.child_size !== void 0 && (w.child_size = Math.round(P.child_size)), P.min_prefix_length !== void 0 && (w.min_prefix_length = Math.round(P.min_prefix_length)), P.max_prefix_length !== void 0 && (w.max_prefix_length = Math.round(P.max_prefix_length)), P.empty_child !== void 0 && (w.empty_child = I(P.empty_child !== void 0 ? P.empty_child : new Uint8Array())), P.hash !== void 0 && (w.hash = r(P.hash)), w; + }, fromPartial(P) { + var w, g, E, U, C, F; + const re = p(); + return re.child_order = ((w = P.child_order) === null || w === void 0 ? void 0 : w.map((ee) => ee)) || [], re.child_size = (g = P.child_size) !== null && g !== void 0 ? g : 0, re.min_prefix_length = (E = P.min_prefix_length) !== null && E !== void 0 ? E : 0, re.max_prefix_length = (U = P.max_prefix_length) !== null && U !== void 0 ? U : 0, re.empty_child = (C = P.empty_child) !== null && C !== void 0 ? C : new Uint8Array(), re.hash = (F = P.hash) !== null && F !== void 0 ? F : 0, re; + } }, e.BatchProof = { encode(P, w = t.Writer.create()) { + for (const g of P.entries) + e.BatchEntry.encode(g, w.uint32(10).fork()).ldelim(); + return w; + }, decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { entries: [] }; + for (; g.pos < E; ) { + const C = g.uint32(); + C >>> 3 == 1 ? U.entries.push(e.BatchEntry.decode(g, g.uint32())) : g.skipType(7 & C); + } + return U; + }, fromJSON: (P) => ({ entries: Array.isArray(P == null ? void 0 : P.entries) ? P.entries.map((w) => e.BatchEntry.fromJSON(w)) : [] }), toJSON(P) { + const w = {}; + return P.entries ? w.entries = P.entries.map((g) => g ? e.BatchEntry.toJSON(g) : void 0) : w.entries = [], w; + }, fromPartial(P) { + var w; + const g = { entries: [] }; + return g.entries = ((w = P.entries) === null || w === void 0 ? void 0 : w.map((E) => e.BatchEntry.fromPartial(E))) || [], g; + } }, e.BatchEntry = { encode: (P, w = t.Writer.create()) => (P.exist !== void 0 && e.ExistenceProof.encode(P.exist, w.uint32(10).fork()).ldelim(), P.nonexist !== void 0 && e.NonExistenceProof.encode(P.nonexist, w.uint32(18).fork()).ldelim(), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { exist: void 0, nonexist: void 0 }; + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.exist = e.ExistenceProof.decode(g, g.uint32()); + break; + case 2: + U.nonexist = e.NonExistenceProof.decode(g, g.uint32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ exist: x(P.exist) ? e.ExistenceProof.fromJSON(P.exist) : void 0, nonexist: x(P.nonexist) ? e.NonExistenceProof.fromJSON(P.nonexist) : void 0 }), toJSON(P) { + const w = {}; + return P.exist !== void 0 && (w.exist = P.exist ? e.ExistenceProof.toJSON(P.exist) : void 0), P.nonexist !== void 0 && (w.nonexist = P.nonexist ? e.NonExistenceProof.toJSON(P.nonexist) : void 0), w; + }, fromPartial(P) { + const w = { exist: void 0, nonexist: void 0 }; + return w.exist = P.exist !== void 0 && P.exist !== null ? e.ExistenceProof.fromPartial(P.exist) : void 0, w.nonexist = P.nonexist !== void 0 && P.nonexist !== null ? e.NonExistenceProof.fromPartial(P.nonexist) : void 0, w; + } }, e.CompressedBatchProof = { encode(P, w = t.Writer.create()) { + for (const g of P.entries) + e.CompressedBatchEntry.encode(g, w.uint32(10).fork()).ldelim(); + for (const g of P.lookup_inners) + e.InnerOp.encode(g, w.uint32(18).fork()).ldelim(); + return w; + }, decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { entries: [], lookup_inners: [] }; + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.entries.push(e.CompressedBatchEntry.decode(g, g.uint32())); + break; + case 2: + U.lookup_inners.push(e.InnerOp.decode(g, g.uint32())); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ entries: Array.isArray(P == null ? void 0 : P.entries) ? P.entries.map((w) => e.CompressedBatchEntry.fromJSON(w)) : [], lookup_inners: Array.isArray(P == null ? void 0 : P.lookup_inners) ? P.lookup_inners.map((w) => e.InnerOp.fromJSON(w)) : [] }), toJSON(P) { + const w = {}; + return P.entries ? w.entries = P.entries.map((g) => g ? e.CompressedBatchEntry.toJSON(g) : void 0) : w.entries = [], P.lookup_inners ? w.lookup_inners = P.lookup_inners.map((g) => g ? e.InnerOp.toJSON(g) : void 0) : w.lookup_inners = [], w; + }, fromPartial(P) { + var w, g; + const E = { entries: [], lookup_inners: [] }; + return E.entries = ((w = P.entries) === null || w === void 0 ? void 0 : w.map((U) => e.CompressedBatchEntry.fromPartial(U))) || [], E.lookup_inners = ((g = P.lookup_inners) === null || g === void 0 ? void 0 : g.map((U) => e.InnerOp.fromPartial(U))) || [], E; + } }, e.CompressedBatchEntry = { encode: (P, w = t.Writer.create()) => (P.exist !== void 0 && e.CompressedExistenceProof.encode(P.exist, w.uint32(10).fork()).ldelim(), P.nonexist !== void 0 && e.CompressedNonExistenceProof.encode(P.nonexist, w.uint32(18).fork()).ldelim(), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = { exist: void 0, nonexist: void 0 }; + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.exist = e.CompressedExistenceProof.decode(g, g.uint32()); + break; + case 2: + U.nonexist = e.CompressedNonExistenceProof.decode(g, g.uint32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ exist: x(P.exist) ? e.CompressedExistenceProof.fromJSON(P.exist) : void 0, nonexist: x(P.nonexist) ? e.CompressedNonExistenceProof.fromJSON(P.nonexist) : void 0 }), toJSON(P) { + const w = {}; + return P.exist !== void 0 && (w.exist = P.exist ? e.CompressedExistenceProof.toJSON(P.exist) : void 0), P.nonexist !== void 0 && (w.nonexist = P.nonexist ? e.CompressedNonExistenceProof.toJSON(P.nonexist) : void 0), w; + }, fromPartial(P) { + const w = { exist: void 0, nonexist: void 0 }; + return w.exist = P.exist !== void 0 && P.exist !== null ? e.CompressedExistenceProof.fromPartial(P.exist) : void 0, w.nonexist = P.nonexist !== void 0 && P.nonexist !== null ? e.CompressedNonExistenceProof.fromPartial(P.nonexist) : void 0, w; + } }, e.CompressedExistenceProof = { encode(P, w = t.Writer.create()) { + P.key.length !== 0 && w.uint32(10).bytes(P.key), P.value.length !== 0 && w.uint32(18).bytes(P.value), P.leaf !== void 0 && e.LeafOp.encode(P.leaf, w.uint32(26).fork()).ldelim(), w.uint32(34).fork(); + for (const g of P.path) + w.int32(g); + return w.ldelim(), w; + }, decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = m(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.key = g.bytes(); + break; + case 2: + U.value = g.bytes(); + break; + case 3: + U.leaf = e.LeafOp.decode(g, g.uint32()); + break; + case 4: + if ((7 & C) == 2) { + const F = g.uint32() + g.pos; + for (; g.pos < F; ) + U.path.push(g.int32()); + } else + U.path.push(g.int32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ key: x(P.key) ? j(P.key) : new Uint8Array(), value: x(P.value) ? j(P.value) : new Uint8Array(), leaf: x(P.leaf) ? e.LeafOp.fromJSON(P.leaf) : void 0, path: Array.isArray(P == null ? void 0 : P.path) ? P.path.map((w) => Number(w)) : [] }), toJSON(P) { + const w = {}; + return P.key !== void 0 && (w.key = I(P.key !== void 0 ? P.key : new Uint8Array())), P.value !== void 0 && (w.value = I(P.value !== void 0 ? P.value : new Uint8Array())), P.leaf !== void 0 && (w.leaf = P.leaf ? e.LeafOp.toJSON(P.leaf) : void 0), P.path ? w.path = P.path.map((g) => Math.round(g)) : w.path = [], w; + }, fromPartial(P) { + var w, g, E; + const U = m(); + return U.key = (w = P.key) !== null && w !== void 0 ? w : new Uint8Array(), U.value = (g = P.value) !== null && g !== void 0 ? g : new Uint8Array(), U.leaf = P.leaf !== void 0 && P.leaf !== null ? e.LeafOp.fromPartial(P.leaf) : void 0, U.path = ((E = P.path) === null || E === void 0 ? void 0 : E.map((C) => C)) || [], U; + } }, e.CompressedNonExistenceProof = { encode: (P, w = t.Writer.create()) => (P.key.length !== 0 && w.uint32(10).bytes(P.key), P.left !== void 0 && e.CompressedExistenceProof.encode(P.left, w.uint32(18).fork()).ldelim(), P.right !== void 0 && e.CompressedExistenceProof.encode(P.right, w.uint32(26).fork()).ldelim(), w), decode(P, w) { + const g = P instanceof t.Reader ? P : new t.Reader(P); + let E = w === void 0 ? g.len : g.pos + w; + const U = M(); + for (; g.pos < E; ) { + const C = g.uint32(); + switch (C >>> 3) { + case 1: + U.key = g.bytes(); + break; + case 2: + U.left = e.CompressedExistenceProof.decode(g, g.uint32()); + break; + case 3: + U.right = e.CompressedExistenceProof.decode(g, g.uint32()); + break; + default: + g.skipType(7 & C); + } + } + return U; + }, fromJSON: (P) => ({ key: x(P.key) ? j(P.key) : new Uint8Array(), left: x(P.left) ? e.CompressedExistenceProof.fromJSON(P.left) : void 0, right: x(P.right) ? e.CompressedExistenceProof.fromJSON(P.right) : void 0 }), toJSON(P) { + const w = {}; + return P.key !== void 0 && (w.key = I(P.key !== void 0 ? P.key : new Uint8Array())), P.left !== void 0 && (w.left = P.left ? e.CompressedExistenceProof.toJSON(P.left) : void 0), P.right !== void 0 && (w.right = P.right ? e.CompressedExistenceProof.toJSON(P.right) : void 0), w; + }, fromPartial(P) { + var w; + const g = M(); + return g.key = (w = P.key) !== null && w !== void 0 ? w : new Uint8Array(), g.left = P.left !== void 0 && P.left !== null ? e.CompressedExistenceProof.fromPartial(P.left) : void 0, g.right = P.right !== void 0 && P.right !== null ? e.CompressedExistenceProof.fromPartial(P.right) : void 0, g; + } }; + var l = (() => { + if (l !== void 0) + return l; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const N = l.atob || ((P) => l.Buffer.from(P, "base64").toString("binary")); + function j(P) { + const w = N(P), g = new Uint8Array(w.length); + for (let E = 0; E < w.length; ++E) + g[E] = w.charCodeAt(E); + return g; + } + const R = l.btoa || ((P) => l.Buffer.from(P, "binary").toString("base64")); + function I(P) { + const w = []; + for (const g of P) + w.push(String.fromCharCode(g)); + return R(w.join("")); + } + function x(P) { + return P != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 9094: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(i, f, c, h) { + h === void 0 && (h = c), Object.defineProperty(i, h, { enumerable: !0, get: function() { + return f[c]; + } }); + } : function(i, f, c, h) { + h === void 0 && (h = c), i[h] = f[c]; + }), A = this && this.__setModuleDefault || (Object.create ? function(i, f) { + Object.defineProperty(i, "default", { enumerable: !0, value: f }); + } : function(i, f) { + i.default = f; + }), k = this && this.__importStar || function(i) { + if (i && i.__esModule) + return i; + var f = {}; + if (i != null) + for (var c in i) + c !== "default" && Object.prototype.hasOwnProperty.call(i, c) && O(f, i, c); + return A(f, i), f; + }, b = this && this.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.GrantAuthorization = e.Grant = e.GenericAuthorization = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(5090); + function s(i) { + return { seconds: Math.trunc(i.getTime() / 1e3).toString(), nanos: i.getTime() % 1e3 * 1e6 }; + } + function r(i) { + let f = 1e3 * Number(i.seconds); + return f += i.nanos / 1e6, new Date(f); + } + function n(i) { + return i instanceof Date ? s(i) : typeof i == "string" ? s(new Date(i)) : d.Timestamp.fromJSON(i); + } + function o(i) { + return i != null; + } + e.protobufPackage = "cosmos.authz.v1beta1", e.GenericAuthorization = { encode: (i, f = t.Writer.create()) => (i.msg !== "" && f.uint32(10).string(i.msg), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { msg: "" }; + for (; c.pos < h; ) { + const m = c.uint32(); + m >>> 3 == 1 ? p.msg = c.string() : c.skipType(7 & m); + } + return p; + }, fromJSON: (i) => ({ msg: o(i.msg) ? String(i.msg) : "" }), toJSON(i) { + const f = {}; + return i.msg !== void 0 && (f.msg = i.msg), f; + }, fromPartial(i) { + var f; + const c = { msg: "" }; + return c.msg = (f = i.msg) !== null && f !== void 0 ? f : "", c; + } }, e.Grant = { encode: (i, f = t.Writer.create()) => (i.authorization !== void 0 && u.Any.encode(i.authorization, f.uint32(10).fork()).ldelim(), i.expiration !== void 0 && d.Timestamp.encode(i.expiration, f.uint32(18).fork()).ldelim(), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { authorization: void 0, expiration: void 0 }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.authorization = u.Any.decode(c, c.uint32()); + break; + case 2: + p.expiration = d.Timestamp.decode(c, c.uint32()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ authorization: o(i.authorization) ? u.Any.fromJSON(i.authorization) : void 0, expiration: o(i.expiration) ? n(i.expiration) : void 0 }), toJSON(i) { + const f = {}; + return i.authorization !== void 0 && (f.authorization = i.authorization ? u.Any.toJSON(i.authorization) : void 0), i.expiration !== void 0 && (f.expiration = r(i.expiration).toISOString()), f; + }, fromPartial(i) { + const f = { authorization: void 0, expiration: void 0 }; + return f.authorization = i.authorization !== void 0 && i.authorization !== null ? u.Any.fromPartial(i.authorization) : void 0, f.expiration = i.expiration !== void 0 && i.expiration !== null ? d.Timestamp.fromPartial(i.expiration) : void 0, f; + } }, e.GrantAuthorization = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.authorization !== void 0 && u.Any.encode(i.authorization, f.uint32(26).fork()).ldelim(), i.expiration !== void 0 && d.Timestamp.encode(i.expiration, f.uint32(34).fork()).ldelim(), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { granter: "", grantee: "", authorization: void 0, expiration: void 0 }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.granter = c.string(); + break; + case 2: + p.grantee = c.string(); + break; + case 3: + p.authorization = u.Any.decode(c, c.uint32()); + break; + case 4: + p.expiration = d.Timestamp.decode(c, c.uint32()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ granter: o(i.granter) ? String(i.granter) : "", grantee: o(i.grantee) ? String(i.grantee) : "", authorization: o(i.authorization) ? u.Any.fromJSON(i.authorization) : void 0, expiration: o(i.expiration) ? n(i.expiration) : void 0 }), toJSON(i) { + const f = {}; + return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.authorization !== void 0 && (f.authorization = i.authorization ? u.Any.toJSON(i.authorization) : void 0), i.expiration !== void 0 && (f.expiration = r(i.expiration).toISOString()), f; + }, fromPartial(i) { + var f, c; + const h = { granter: "", grantee: "", authorization: void 0, expiration: void 0 }; + return h.granter = (f = i.granter) !== null && f !== void 0 ? f : "", h.grantee = (c = i.grantee) !== null && c !== void 0 ? c : "", h.authorization = i.authorization !== void 0 && i.authorization !== null ? u.Any.fromPartial(i.authorization) : void 0, h.expiration = i.expiration !== void 0 && i.expiration !== null ? d.Timestamp.fromPartial(i.expiration) : void 0, h; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5635: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(i, f, c, h) { + h === void 0 && (h = c), Object.defineProperty(i, h, { enumerable: !0, get: function() { + return f[c]; + } }); + } : function(i, f, c, h) { + h === void 0 && (h = c), i[h] = f[c]; + }), A = this && this.__setModuleDefault || (Object.create ? function(i, f) { + Object.defineProperty(i, "default", { enumerable: !0, value: f }); + } : function(i, f) { + i.default = f; + }), k = this && this.__importStar || function(i) { + if (i && i.__esModule) + return i; + var f = {}; + if (i != null) + for (var c in i) + c !== "default" && Object.prototype.hasOwnProperty.call(i, c) && O(f, i, c); + return A(f, i), f; + }, b = this && this.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgRevokeResponse = e.MsgRevoke = e.MsgGrantResponse = e.MsgExec = e.MsgExecResponse = e.MsgGrant = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(9094), d = _(4191); + e.protobufPackage = "cosmos.authz.v1beta1", e.MsgGrant = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.grant !== void 0 && u.Grant.encode(i.grant, f.uint32(26).fork()).ldelim(), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { granter: "", grantee: "", grant: void 0 }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.granter = c.string(); + break; + case 2: + p.grantee = c.string(); + break; + case 3: + p.grant = u.Grant.decode(c, c.uint32()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ granter: o(i.granter) ? String(i.granter) : "", grantee: o(i.grantee) ? String(i.grantee) : "", grant: o(i.grant) ? u.Grant.fromJSON(i.grant) : void 0 }), toJSON(i) { + const f = {}; + return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.grant !== void 0 && (f.grant = i.grant ? u.Grant.toJSON(i.grant) : void 0), f; + }, fromPartial(i) { + var f, c; + const h = { granter: "", grantee: "", grant: void 0 }; + return h.granter = (f = i.granter) !== null && f !== void 0 ? f : "", h.grantee = (c = i.grantee) !== null && c !== void 0 ? c : "", h.grant = i.grant !== void 0 && i.grant !== null ? u.Grant.fromPartial(i.grant) : void 0, h; + } }, e.MsgExecResponse = { encode(i, f = t.Writer.create()) { + for (const c of i.results) + f.uint32(10).bytes(c); + return f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { results: [] }; + for (; c.pos < h; ) { + const m = c.uint32(); + m >>> 3 == 1 ? p.results.push(c.bytes()) : c.skipType(7 & m); + } + return p; + }, fromJSON: (i) => ({ results: Array.isArray(i == null ? void 0 : i.results) ? i.results.map((f) => function(c) { + const h = r(c), p = new Uint8Array(h.length); + for (let m = 0; m < h.length; ++m) + p[m] = h.charCodeAt(m); + return p; + }(f)) : [] }), toJSON(i) { + const f = {}; + return i.results ? f.results = i.results.map((c) => function(h) { + const p = []; + for (const m of h) + p.push(String.fromCharCode(m)); + return n(p.join("")); + }(c !== void 0 ? c : new Uint8Array())) : f.results = [], f; + }, fromPartial(i) { + var f; + const c = { results: [] }; + return c.results = ((f = i.results) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], c; + } }, e.MsgExec = { encode(i, f = t.Writer.create()) { + i.grantee !== "" && f.uint32(10).string(i.grantee); + for (const c of i.msgs) + d.Any.encode(c, f.uint32(18).fork()).ldelim(); + return f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { grantee: "", msgs: [] }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.grantee = c.string(); + break; + case 2: + p.msgs.push(d.Any.decode(c, c.uint32())); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ grantee: o(i.grantee) ? String(i.grantee) : "", msgs: Array.isArray(i == null ? void 0 : i.msgs) ? i.msgs.map((f) => d.Any.fromJSON(f)) : [] }), toJSON(i) { + const f = {}; + return i.grantee !== void 0 && (f.grantee = i.grantee), i.msgs ? f.msgs = i.msgs.map((c) => c ? d.Any.toJSON(c) : void 0) : f.msgs = [], f; + }, fromPartial(i) { + var f, c; + const h = { grantee: "", msgs: [] }; + return h.grantee = (f = i.grantee) !== null && f !== void 0 ? f : "", h.msgs = ((c = i.msgs) === null || c === void 0 ? void 0 : c.map((p) => d.Any.fromPartial(p))) || [], h; + } }, e.MsgGrantResponse = { encode: (i, f = t.Writer.create()) => f, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + for (; c.pos < h; ) { + const p = c.uint32(); + c.skipType(7 & p); + } + return {}; + }, fromJSON: (i) => ({}), toJSON: (i) => ({}), fromPartial: (i) => ({}) }, e.MsgRevoke = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.msg_type_url !== "" && f.uint32(26).string(i.msg_type_url), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { granter: "", grantee: "", msg_type_url: "" }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.granter = c.string(); + break; + case 2: + p.grantee = c.string(); + break; + case 3: + p.msg_type_url = c.string(); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ granter: o(i.granter) ? String(i.granter) : "", grantee: o(i.grantee) ? String(i.grantee) : "", msg_type_url: o(i.msg_type_url) ? String(i.msg_type_url) : "" }), toJSON(i) { + const f = {}; + return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.msg_type_url !== void 0 && (f.msg_type_url = i.msg_type_url), f; + }, fromPartial(i) { + var f, c, h; + const p = { granter: "", grantee: "", msg_type_url: "" }; + return p.granter = (f = i.granter) !== null && f !== void 0 ? f : "", p.grantee = (c = i.grantee) !== null && c !== void 0 ? c : "", p.msg_type_url = (h = i.msg_type_url) !== null && h !== void 0 ? h : "", p; + } }, e.MsgRevokeResponse = { encode: (i, f = t.Writer.create()) => f, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + for (; c.pos < h; ) { + const p = c.uint32(); + c.skipType(7 & p); + } + return {}; + }, fromJSON: (i) => ({}), toJSON: (i) => ({}), fromPartial: (i) => ({}) }, e.MsgClientImpl = class { + constructor(i) { + this.rpc = i, this.Grant = this.Grant.bind(this), this.Exec = this.Exec.bind(this), this.Revoke = this.Revoke.bind(this); + } + Grant(i) { + const f = e.MsgGrant.encode(i).finish(); + return this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", f).then((c) => e.MsgGrantResponse.decode(new t.Reader(c))); + } + Exec(i) { + const f = e.MsgExec.encode(i).finish(); + return this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", f).then((c) => e.MsgExecResponse.decode(new t.Reader(c))); + } + Revoke(i) { + const f = e.MsgRevoke.encode(i).finish(); + return this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", f).then((c) => e.MsgRevokeResponse.decode(new t.Reader(c))); + } + }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((i) => s.Buffer.from(i, "base64").toString("binary")), n = s.btoa || ((i) => s.Buffer.from(i, "binary").toString("base64")); + function o(i) { + return i != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5939: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.SendAuthorization = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + e.protobufPackage = "cosmos.bank.v1beta1", e.SendAuthorization = { encode(d, s = t.Writer.create()) { + for (const r of d.spend_limit) + u.Coin.encode(r, s.uint32(10).fork()).ldelim(); + return s; + }, decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { spend_limit: [] }; + for (; r.pos < n; ) { + const i = r.uint32(); + i >>> 3 == 1 ? o.spend_limit.push(u.Coin.decode(r, r.uint32())) : r.skipType(7 & i); + } + return o; + }, fromJSON: (d) => ({ spend_limit: Array.isArray(d == null ? void 0 : d.spend_limit) ? d.spend_limit.map((s) => u.Coin.fromJSON(s)) : [] }), toJSON(d) { + const s = {}; + return d.spend_limit ? s.spend_limit = d.spend_limit.map((r) => r ? u.Coin.toJSON(r) : void 0) : s.spend_limit = [], s; + }, fromPartial(d) { + var s; + const r = { spend_limit: [] }; + return r.spend_limit = ((s = d.spend_limit) === null || s === void 0 ? void 0 : s.map((n) => u.Coin.fromPartial(n))) || [], r; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 7725: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__importDefault || function(s) { + return s && s.__esModule ? s : { default: s }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Metadata = e.DenomUnit = e.Supply = e.Output = e.Input = e.SendEnabled = e.Params = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + function d(s) { + return s != null; + } + e.protobufPackage = "cosmos.bank.v1beta1", e.Params = { encode(s, r = t.Writer.create()) { + for (const n of s.send_enabled) + e.SendEnabled.encode(n, r.uint32(10).fork()).ldelim(); + return s.default_send_enabled === !0 && r.uint32(16).bool(s.default_send_enabled), r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { send_enabled: [], default_send_enabled: !1 }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.send_enabled.push(e.SendEnabled.decode(n, n.uint32())); + break; + case 2: + i.default_send_enabled = n.bool(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ send_enabled: Array.isArray(s == null ? void 0 : s.send_enabled) ? s.send_enabled.map((r) => e.SendEnabled.fromJSON(r)) : [], default_send_enabled: !!d(s.default_send_enabled) && !!s.default_send_enabled }), toJSON(s) { + const r = {}; + return s.send_enabled ? r.send_enabled = s.send_enabled.map((n) => n ? e.SendEnabled.toJSON(n) : void 0) : r.send_enabled = [], s.default_send_enabled !== void 0 && (r.default_send_enabled = s.default_send_enabled), r; + }, fromPartial(s) { + var r, n; + const o = { send_enabled: [], default_send_enabled: !1 }; + return o.send_enabled = ((r = s.send_enabled) === null || r === void 0 ? void 0 : r.map((i) => e.SendEnabled.fromPartial(i))) || [], o.default_send_enabled = (n = s.default_send_enabled) !== null && n !== void 0 && n, o; + } }, e.SendEnabled = { encode: (s, r = t.Writer.create()) => (s.denom !== "" && r.uint32(10).string(s.denom), s.enabled === !0 && r.uint32(16).bool(s.enabled), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { denom: "", enabled: !1 }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.denom = n.string(); + break; + case 2: + i.enabled = n.bool(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ denom: d(s.denom) ? String(s.denom) : "", enabled: !!d(s.enabled) && !!s.enabled }), toJSON(s) { + const r = {}; + return s.denom !== void 0 && (r.denom = s.denom), s.enabled !== void 0 && (r.enabled = s.enabled), r; + }, fromPartial(s) { + var r, n; + const o = { denom: "", enabled: !1 }; + return o.denom = (r = s.denom) !== null && r !== void 0 ? r : "", o.enabled = (n = s.enabled) !== null && n !== void 0 && n, o; + } }, e.Input = { encode(s, r = t.Writer.create()) { + s.address !== "" && r.uint32(10).string(s.address); + for (const n of s.coins) + u.Coin.encode(n, r.uint32(18).fork()).ldelim(); + return r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { address: "", coins: [] }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.address = n.string(); + break; + case 2: + i.coins.push(u.Coin.decode(n, n.uint32())); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ address: d(s.address) ? String(s.address) : "", coins: Array.isArray(s == null ? void 0 : s.coins) ? s.coins.map((r) => u.Coin.fromJSON(r)) : [] }), toJSON(s) { + const r = {}; + return s.address !== void 0 && (r.address = s.address), s.coins ? r.coins = s.coins.map((n) => n ? u.Coin.toJSON(n) : void 0) : r.coins = [], r; + }, fromPartial(s) { + var r, n; + const o = { address: "", coins: [] }; + return o.address = (r = s.address) !== null && r !== void 0 ? r : "", o.coins = ((n = s.coins) === null || n === void 0 ? void 0 : n.map((i) => u.Coin.fromPartial(i))) || [], o; + } }, e.Output = { encode(s, r = t.Writer.create()) { + s.address !== "" && r.uint32(10).string(s.address); + for (const n of s.coins) + u.Coin.encode(n, r.uint32(18).fork()).ldelim(); + return r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { address: "", coins: [] }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.address = n.string(); + break; + case 2: + i.coins.push(u.Coin.decode(n, n.uint32())); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ address: d(s.address) ? String(s.address) : "", coins: Array.isArray(s == null ? void 0 : s.coins) ? s.coins.map((r) => u.Coin.fromJSON(r)) : [] }), toJSON(s) { + const r = {}; + return s.address !== void 0 && (r.address = s.address), s.coins ? r.coins = s.coins.map((n) => n ? u.Coin.toJSON(n) : void 0) : r.coins = [], r; + }, fromPartial(s) { + var r, n; + const o = { address: "", coins: [] }; + return o.address = (r = s.address) !== null && r !== void 0 ? r : "", o.coins = ((n = s.coins) === null || n === void 0 ? void 0 : n.map((i) => u.Coin.fromPartial(i))) || [], o; + } }, e.Supply = { encode(s, r = t.Writer.create()) { + for (const n of s.total) + u.Coin.encode(n, r.uint32(10).fork()).ldelim(); + return r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { total: [] }; + for (; n.pos < o; ) { + const f = n.uint32(); + f >>> 3 == 1 ? i.total.push(u.Coin.decode(n, n.uint32())) : n.skipType(7 & f); + } + return i; + }, fromJSON: (s) => ({ total: Array.isArray(s == null ? void 0 : s.total) ? s.total.map((r) => u.Coin.fromJSON(r)) : [] }), toJSON(s) { + const r = {}; + return s.total ? r.total = s.total.map((n) => n ? u.Coin.toJSON(n) : void 0) : r.total = [], r; + }, fromPartial(s) { + var r; + const n = { total: [] }; + return n.total = ((r = s.total) === null || r === void 0 ? void 0 : r.map((o) => u.Coin.fromPartial(o))) || [], n; + } }, e.DenomUnit = { encode(s, r = t.Writer.create()) { + s.denom !== "" && r.uint32(10).string(s.denom), s.exponent !== 0 && r.uint32(16).uint32(s.exponent); + for (const n of s.aliases) + r.uint32(26).string(n); + return r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { denom: "", exponent: 0, aliases: [] }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.denom = n.string(); + break; + case 2: + i.exponent = n.uint32(); + break; + case 3: + i.aliases.push(n.string()); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ denom: d(s.denom) ? String(s.denom) : "", exponent: d(s.exponent) ? Number(s.exponent) : 0, aliases: Array.isArray(s == null ? void 0 : s.aliases) ? s.aliases.map((r) => String(r)) : [] }), toJSON(s) { + const r = {}; + return s.denom !== void 0 && (r.denom = s.denom), s.exponent !== void 0 && (r.exponent = Math.round(s.exponent)), s.aliases ? r.aliases = s.aliases.map((n) => n) : r.aliases = [], r; + }, fromPartial(s) { + var r, n, o; + const i = { denom: "", exponent: 0, aliases: [] }; + return i.denom = (r = s.denom) !== null && r !== void 0 ? r : "", i.exponent = (n = s.exponent) !== null && n !== void 0 ? n : 0, i.aliases = ((o = s.aliases) === null || o === void 0 ? void 0 : o.map((f) => f)) || [], i; + } }, e.Metadata = { encode(s, r = t.Writer.create()) { + s.description !== "" && r.uint32(10).string(s.description); + for (const n of s.denom_units) + e.DenomUnit.encode(n, r.uint32(18).fork()).ldelim(); + return s.base !== "" && r.uint32(26).string(s.base), s.display !== "" && r.uint32(34).string(s.display), s.name !== "" && r.uint32(42).string(s.name), s.symbol !== "" && r.uint32(50).string(s.symbol), r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { description: "", denom_units: [], base: "", display: "", name: "", symbol: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.description = n.string(); + break; + case 2: + i.denom_units.push(e.DenomUnit.decode(n, n.uint32())); + break; + case 3: + i.base = n.string(); + break; + case 4: + i.display = n.string(); + break; + case 5: + i.name = n.string(); + break; + case 6: + i.symbol = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ description: d(s.description) ? String(s.description) : "", denom_units: Array.isArray(s == null ? void 0 : s.denom_units) ? s.denom_units.map((r) => e.DenomUnit.fromJSON(r)) : [], base: d(s.base) ? String(s.base) : "", display: d(s.display) ? String(s.display) : "", name: d(s.name) ? String(s.name) : "", symbol: d(s.symbol) ? String(s.symbol) : "" }), toJSON(s) { + const r = {}; + return s.description !== void 0 && (r.description = s.description), s.denom_units ? r.denom_units = s.denom_units.map((n) => n ? e.DenomUnit.toJSON(n) : void 0) : r.denom_units = [], s.base !== void 0 && (r.base = s.base), s.display !== void 0 && (r.display = s.display), s.name !== void 0 && (r.name = s.name), s.symbol !== void 0 && (r.symbol = s.symbol), r; + }, fromPartial(s) { + var r, n, o, i, f, c; + const h = { description: "", denom_units: [], base: "", display: "", name: "", symbol: "" }; + return h.description = (r = s.description) !== null && r !== void 0 ? r : "", h.denom_units = ((n = s.denom_units) === null || n === void 0 ? void 0 : n.map((p) => e.DenomUnit.fromPartial(p))) || [], h.base = (o = s.base) !== null && o !== void 0 ? o : "", h.display = (i = s.display) !== null && i !== void 0 ? i : "", h.name = (f = s.name) !== null && f !== void 0 ? f : "", h.symbol = (c = s.symbol) !== null && c !== void 0 ? c : "", h; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 810: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(r, n, o, i) { + i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { + return n[o]; + } }); + } : function(r, n, o, i) { + i === void 0 && (i = o), r[i] = n[o]; + }), A = this && this.__setModuleDefault || (Object.create ? function(r, n) { + Object.defineProperty(r, "default", { enumerable: !0, value: n }); + } : function(r, n) { + r.default = n; + }), k = this && this.__importStar || function(r) { + if (r && r.__esModule) + return r; + var n = {}; + if (r != null) + for (var o in r) + o !== "default" && Object.prototype.hasOwnProperty.call(r, o) && O(n, r, o); + return A(n, r), n; + }, b = this && this.__importDefault || function(r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgMultiSendResponse = e.MsgMultiSend = e.MsgSendResponse = e.MsgSend = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976), d = _(7725); + function s(r) { + return r != null; + } + e.protobufPackage = "cosmos.bank.v1beta1", e.MsgSend = { encode(r, n = t.Writer.create()) { + r.from_address !== "" && n.uint32(10).string(r.from_address), r.to_address !== "" && n.uint32(18).string(r.to_address); + for (const o of r.amount) + u.Coin.encode(o, n.uint32(26).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { from_address: "", to_address: "", amount: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.from_address = o.string(); + break; + case 2: + f.to_address = o.string(); + break; + case 3: + f.amount.push(u.Coin.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ from_address: s(r.from_address) ? String(r.from_address) : "", to_address: s(r.to_address) ? String(r.to_address) : "", amount: Array.isArray(r == null ? void 0 : r.amount) ? r.amount.map((n) => u.Coin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.from_address !== void 0 && (n.from_address = r.from_address), r.to_address !== void 0 && (n.to_address = r.to_address), r.amount ? n.amount = r.amount.map((o) => o ? u.Coin.toJSON(o) : void 0) : n.amount = [], n; + }, fromPartial(r) { + var n, o, i; + const f = { from_address: "", to_address: "", amount: [] }; + return f.from_address = (n = r.from_address) !== null && n !== void 0 ? n : "", f.to_address = (o = r.to_address) !== null && o !== void 0 ? o : "", f.amount = ((i = r.amount) === null || i === void 0 ? void 0 : i.map((c) => u.Coin.fromPartial(c))) || [], f; + } }, e.MsgSendResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgMultiSend = { encode(r, n = t.Writer.create()) { + for (const o of r.inputs) + d.Input.encode(o, n.uint32(10).fork()).ldelim(); + for (const o of r.outputs) + d.Output.encode(o, n.uint32(18).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { inputs: [], outputs: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.inputs.push(d.Input.decode(o, o.uint32())); + break; + case 2: + f.outputs.push(d.Output.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ inputs: Array.isArray(r == null ? void 0 : r.inputs) ? r.inputs.map((n) => d.Input.fromJSON(n)) : [], outputs: Array.isArray(r == null ? void 0 : r.outputs) ? r.outputs.map((n) => d.Output.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.inputs ? n.inputs = r.inputs.map((o) => o ? d.Input.toJSON(o) : void 0) : n.inputs = [], r.outputs ? n.outputs = r.outputs.map((o) => o ? d.Output.toJSON(o) : void 0) : n.outputs = [], n; + }, fromPartial(r) { + var n, o; + const i = { inputs: [], outputs: [] }; + return i.inputs = ((n = r.inputs) === null || n === void 0 ? void 0 : n.map((f) => d.Input.fromPartial(f))) || [], i.outputs = ((o = r.outputs) === null || o === void 0 ? void 0 : o.map((f) => d.Output.fromPartial(f))) || [], i; + } }, e.MsgMultiSendResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgClientImpl = class { + constructor(r) { + this.rpc = r, this.Send = this.Send.bind(this), this.MultiSend = this.MultiSend.bind(this); + } + Send(r) { + const n = e.MsgSend.encode(r).finish(); + return this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", n).then((o) => e.MsgSendResponse.decode(new t.Reader(o))); + } + MultiSend(r) { + const n = e.MsgMultiSend.encode(r).finish(); + return this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", n).then((o) => e.MsgMultiSendResponse.decode(new t.Reader(o))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 9849: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(m, M, l, N) { + N === void 0 && (N = l), Object.defineProperty(m, N, { enumerable: !0, get: function() { + return M[l]; + } }); + } : function(m, M, l, N) { + N === void 0 && (N = l), m[N] = M[l]; + }), A = this && this.__setModuleDefault || (Object.create ? function(m, M) { + Object.defineProperty(m, "default", { enumerable: !0, value: M }); + } : function(m, M) { + m.default = M; + }), k = this && this.__importStar || function(m) { + if (m && m.__esModule) + return m; + var M = {}; + if (m != null) + for (var l in m) + l !== "default" && Object.prototype.hasOwnProperty.call(m, l) && O(M, m, l); + return A(M, m), M; + }, b = this && this.__importDefault || function(m) { + return m && m.__esModule ? m : { default: m }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.SearchTxsResult = e.TxMsgData = e.MsgData = e.SimulationResponse = e.Result = e.GasInfo = e.Attribute = e.StringEvent = e.ABCIMessageLog = e.TxResponse = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(2093); + function s() { + return { data: new Uint8Array(), log: "", events: [] }; + } + function r() { + return { msg_type: "", data: new Uint8Array() }; + } + e.protobufPackage = "cosmos.base.abci.v1beta1", e.TxResponse = { encode(m, M = t.Writer.create()) { + m.height !== "0" && M.uint32(8).int64(m.height), m.txhash !== "" && M.uint32(18).string(m.txhash), m.codespace !== "" && M.uint32(26).string(m.codespace), m.code !== 0 && M.uint32(32).uint32(m.code), m.data !== "" && M.uint32(42).string(m.data), m.raw_log !== "" && M.uint32(50).string(m.raw_log); + for (const l of m.logs) + e.ABCIMessageLog.encode(l, M.uint32(58).fork()).ldelim(); + m.info !== "" && M.uint32(66).string(m.info), m.gas_wanted !== "0" && M.uint32(72).int64(m.gas_wanted), m.gas_used !== "0" && M.uint32(80).int64(m.gas_used), m.tx !== void 0 && u.Any.encode(m.tx, M.uint32(90).fork()).ldelim(), m.timestamp !== "" && M.uint32(98).string(m.timestamp); + for (const l of m.events) + d.Event.encode(l, M.uint32(106).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { height: "0", txhash: "", codespace: "", code: 0, data: "", raw_log: "", logs: [], info: "", gas_wanted: "0", gas_used: "0", tx: void 0, timestamp: "", events: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.height = h(l.int64()); + break; + case 2: + j.txhash = l.string(); + break; + case 3: + j.codespace = l.string(); + break; + case 4: + j.code = l.uint32(); + break; + case 5: + j.data = l.string(); + break; + case 6: + j.raw_log = l.string(); + break; + case 7: + j.logs.push(e.ABCIMessageLog.decode(l, l.uint32())); + break; + case 8: + j.info = l.string(); + break; + case 9: + j.gas_wanted = h(l.int64()); + break; + case 10: + j.gas_used = h(l.int64()); + break; + case 11: + j.tx = u.Any.decode(l, l.uint32()); + break; + case 12: + j.timestamp = l.string(); + break; + case 13: + j.events.push(d.Event.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ height: p(m.height) ? String(m.height) : "0", txhash: p(m.txhash) ? String(m.txhash) : "", codespace: p(m.codespace) ? String(m.codespace) : "", code: p(m.code) ? Number(m.code) : 0, data: p(m.data) ? String(m.data) : "", raw_log: p(m.raw_log) ? String(m.raw_log) : "", logs: Array.isArray(m == null ? void 0 : m.logs) ? m.logs.map((M) => e.ABCIMessageLog.fromJSON(M)) : [], info: p(m.info) ? String(m.info) : "", gas_wanted: p(m.gas_wanted) ? String(m.gas_wanted) : "0", gas_used: p(m.gas_used) ? String(m.gas_used) : "0", tx: p(m.tx) ? u.Any.fromJSON(m.tx) : void 0, timestamp: p(m.timestamp) ? String(m.timestamp) : "", events: Array.isArray(m == null ? void 0 : m.events) ? m.events.map((M) => d.Event.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.height !== void 0 && (M.height = m.height), m.txhash !== void 0 && (M.txhash = m.txhash), m.codespace !== void 0 && (M.codespace = m.codespace), m.code !== void 0 && (M.code = Math.round(m.code)), m.data !== void 0 && (M.data = m.data), m.raw_log !== void 0 && (M.raw_log = m.raw_log), m.logs ? M.logs = m.logs.map((l) => l ? e.ABCIMessageLog.toJSON(l) : void 0) : M.logs = [], m.info !== void 0 && (M.info = m.info), m.gas_wanted !== void 0 && (M.gas_wanted = m.gas_wanted), m.gas_used !== void 0 && (M.gas_used = m.gas_used), m.tx !== void 0 && (M.tx = m.tx ? u.Any.toJSON(m.tx) : void 0), m.timestamp !== void 0 && (M.timestamp = m.timestamp), m.events ? M.events = m.events.map((l) => l ? d.Event.toJSON(l) : void 0) : M.events = [], M; + }, fromPartial(m) { + var M, l, N, j, R, I, x, P, w, g, E, U; + const C = { height: "0", txhash: "", codespace: "", code: 0, data: "", raw_log: "", logs: [], info: "", gas_wanted: "0", gas_used: "0", tx: void 0, timestamp: "", events: [] }; + return C.height = (M = m.height) !== null && M !== void 0 ? M : "0", C.txhash = (l = m.txhash) !== null && l !== void 0 ? l : "", C.codespace = (N = m.codespace) !== null && N !== void 0 ? N : "", C.code = (j = m.code) !== null && j !== void 0 ? j : 0, C.data = (R = m.data) !== null && R !== void 0 ? R : "", C.raw_log = (I = m.raw_log) !== null && I !== void 0 ? I : "", C.logs = ((x = m.logs) === null || x === void 0 ? void 0 : x.map((F) => e.ABCIMessageLog.fromPartial(F))) || [], C.info = (P = m.info) !== null && P !== void 0 ? P : "", C.gas_wanted = (w = m.gas_wanted) !== null && w !== void 0 ? w : "0", C.gas_used = (g = m.gas_used) !== null && g !== void 0 ? g : "0", C.tx = m.tx !== void 0 && m.tx !== null ? u.Any.fromPartial(m.tx) : void 0, C.timestamp = (E = m.timestamp) !== null && E !== void 0 ? E : "", C.events = ((U = m.events) === null || U === void 0 ? void 0 : U.map((F) => d.Event.fromPartial(F))) || [], C; + } }, e.ABCIMessageLog = { encode(m, M = t.Writer.create()) { + m.msg_index !== 0 && M.uint32(8).uint32(m.msg_index), m.log !== "" && M.uint32(18).string(m.log); + for (const l of m.events) + e.StringEvent.encode(l, M.uint32(26).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { msg_index: 0, log: "", events: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.msg_index = l.uint32(); + break; + case 2: + j.log = l.string(); + break; + case 3: + j.events.push(e.StringEvent.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ msg_index: p(m.msg_index) ? Number(m.msg_index) : 0, log: p(m.log) ? String(m.log) : "", events: Array.isArray(m == null ? void 0 : m.events) ? m.events.map((M) => e.StringEvent.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.msg_index !== void 0 && (M.msg_index = Math.round(m.msg_index)), m.log !== void 0 && (M.log = m.log), m.events ? M.events = m.events.map((l) => l ? e.StringEvent.toJSON(l) : void 0) : M.events = [], M; + }, fromPartial(m) { + var M, l, N; + const j = { msg_index: 0, log: "", events: [] }; + return j.msg_index = (M = m.msg_index) !== null && M !== void 0 ? M : 0, j.log = (l = m.log) !== null && l !== void 0 ? l : "", j.events = ((N = m.events) === null || N === void 0 ? void 0 : N.map((R) => e.StringEvent.fromPartial(R))) || [], j; + } }, e.StringEvent = { encode(m, M = t.Writer.create()) { + m.type !== "" && M.uint32(10).string(m.type); + for (const l of m.attributes) + e.Attribute.encode(l, M.uint32(18).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { type: "", attributes: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.type = l.string(); + break; + case 2: + j.attributes.push(e.Attribute.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ type: p(m.type) ? String(m.type) : "", attributes: Array.isArray(m == null ? void 0 : m.attributes) ? m.attributes.map((M) => e.Attribute.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.type !== void 0 && (M.type = m.type), m.attributes ? M.attributes = m.attributes.map((l) => l ? e.Attribute.toJSON(l) : void 0) : M.attributes = [], M; + }, fromPartial(m) { + var M, l; + const N = { type: "", attributes: [] }; + return N.type = (M = m.type) !== null && M !== void 0 ? M : "", N.attributes = ((l = m.attributes) === null || l === void 0 ? void 0 : l.map((j) => e.Attribute.fromPartial(j))) || [], N; + } }, e.Attribute = { encode: (m, M = t.Writer.create()) => (m.key !== "" && M.uint32(10).string(m.key), m.value !== "" && M.uint32(18).string(m.value), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { key: "", value: "" }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.key = l.string(); + break; + case 2: + j.value = l.string(); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ key: p(m.key) ? String(m.key) : "", value: p(m.value) ? String(m.value) : "" }), toJSON(m) { + const M = {}; + return m.key !== void 0 && (M.key = m.key), m.value !== void 0 && (M.value = m.value), M; + }, fromPartial(m) { + var M, l; + const N = { key: "", value: "" }; + return N.key = (M = m.key) !== null && M !== void 0 ? M : "", N.value = (l = m.value) !== null && l !== void 0 ? l : "", N; + } }, e.GasInfo = { encode: (m, M = t.Writer.create()) => (m.gas_wanted !== "0" && M.uint32(8).uint64(m.gas_wanted), m.gas_used !== "0" && M.uint32(16).uint64(m.gas_used), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { gas_wanted: "0", gas_used: "0" }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.gas_wanted = h(l.uint64()); + break; + case 2: + j.gas_used = h(l.uint64()); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ gas_wanted: p(m.gas_wanted) ? String(m.gas_wanted) : "0", gas_used: p(m.gas_used) ? String(m.gas_used) : "0" }), toJSON(m) { + const M = {}; + return m.gas_wanted !== void 0 && (M.gas_wanted = m.gas_wanted), m.gas_used !== void 0 && (M.gas_used = m.gas_used), M; + }, fromPartial(m) { + var M, l; + const N = { gas_wanted: "0", gas_used: "0" }; + return N.gas_wanted = (M = m.gas_wanted) !== null && M !== void 0 ? M : "0", N.gas_used = (l = m.gas_used) !== null && l !== void 0 ? l : "0", N; + } }, e.Result = { encode(m, M = t.Writer.create()) { + m.data.length !== 0 && M.uint32(10).bytes(m.data), m.log !== "" && M.uint32(18).string(m.log); + for (const l of m.events) + d.Event.encode(l, M.uint32(26).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = s(); + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.data = l.bytes(); + break; + case 2: + j.log = l.string(); + break; + case 3: + j.events.push(d.Event.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ data: p(m.data) ? i(m.data) : new Uint8Array(), log: p(m.log) ? String(m.log) : "", events: Array.isArray(m == null ? void 0 : m.events) ? m.events.map((M) => d.Event.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.data !== void 0 && (M.data = c(m.data !== void 0 ? m.data : new Uint8Array())), m.log !== void 0 && (M.log = m.log), m.events ? M.events = m.events.map((l) => l ? d.Event.toJSON(l) : void 0) : M.events = [], M; + }, fromPartial(m) { + var M, l, N; + const j = s(); + return j.data = (M = m.data) !== null && M !== void 0 ? M : new Uint8Array(), j.log = (l = m.log) !== null && l !== void 0 ? l : "", j.events = ((N = m.events) === null || N === void 0 ? void 0 : N.map((R) => d.Event.fromPartial(R))) || [], j; + } }, e.SimulationResponse = { encode: (m, M = t.Writer.create()) => (m.gas_info !== void 0 && e.GasInfo.encode(m.gas_info, M.uint32(10).fork()).ldelim(), m.result !== void 0 && e.Result.encode(m.result, M.uint32(18).fork()).ldelim(), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { gas_info: void 0, result: void 0 }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.gas_info = e.GasInfo.decode(l, l.uint32()); + break; + case 2: + j.result = e.Result.decode(l, l.uint32()); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ gas_info: p(m.gas_info) ? e.GasInfo.fromJSON(m.gas_info) : void 0, result: p(m.result) ? e.Result.fromJSON(m.result) : void 0 }), toJSON(m) { + const M = {}; + return m.gas_info !== void 0 && (M.gas_info = m.gas_info ? e.GasInfo.toJSON(m.gas_info) : void 0), m.result !== void 0 && (M.result = m.result ? e.Result.toJSON(m.result) : void 0), M; + }, fromPartial(m) { + const M = { gas_info: void 0, result: void 0 }; + return M.gas_info = m.gas_info !== void 0 && m.gas_info !== null ? e.GasInfo.fromPartial(m.gas_info) : void 0, M.result = m.result !== void 0 && m.result !== null ? e.Result.fromPartial(m.result) : void 0, M; + } }, e.MsgData = { encode: (m, M = t.Writer.create()) => (m.msg_type !== "" && M.uint32(10).string(m.msg_type), m.data.length !== 0 && M.uint32(18).bytes(m.data), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = r(); + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.msg_type = l.string(); + break; + case 2: + j.data = l.bytes(); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ msg_type: p(m.msg_type) ? String(m.msg_type) : "", data: p(m.data) ? i(m.data) : new Uint8Array() }), toJSON(m) { + const M = {}; + return m.msg_type !== void 0 && (M.msg_type = m.msg_type), m.data !== void 0 && (M.data = c(m.data !== void 0 ? m.data : new Uint8Array())), M; + }, fromPartial(m) { + var M, l; + const N = r(); + return N.msg_type = (M = m.msg_type) !== null && M !== void 0 ? M : "", N.data = (l = m.data) !== null && l !== void 0 ? l : new Uint8Array(), N; + } }, e.TxMsgData = { encode(m, M = t.Writer.create()) { + for (const l of m.data) + e.MsgData.encode(l, M.uint32(10).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { data: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + R >>> 3 == 1 ? j.data.push(e.MsgData.decode(l, l.uint32())) : l.skipType(7 & R); + } + return j; + }, fromJSON: (m) => ({ data: Array.isArray(m == null ? void 0 : m.data) ? m.data.map((M) => e.MsgData.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.data ? M.data = m.data.map((l) => l ? e.MsgData.toJSON(l) : void 0) : M.data = [], M; + }, fromPartial(m) { + var M; + const l = { data: [] }; + return l.data = ((M = m.data) === null || M === void 0 ? void 0 : M.map((N) => e.MsgData.fromPartial(N))) || [], l; + } }, e.SearchTxsResult = { encode(m, M = t.Writer.create()) { + m.total_count !== "0" && M.uint32(8).uint64(m.total_count), m.count !== "0" && M.uint32(16).uint64(m.count), m.page_number !== "0" && M.uint32(24).uint64(m.page_number), m.page_total !== "0" && M.uint32(32).uint64(m.page_total), m.limit !== "0" && M.uint32(40).uint64(m.limit); + for (const l of m.txs) + e.TxResponse.encode(l, M.uint32(50).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { total_count: "0", count: "0", page_number: "0", page_total: "0", limit: "0", txs: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.total_count = h(l.uint64()); + break; + case 2: + j.count = h(l.uint64()); + break; + case 3: + j.page_number = h(l.uint64()); + break; + case 4: + j.page_total = h(l.uint64()); + break; + case 5: + j.limit = h(l.uint64()); + break; + case 6: + j.txs.push(e.TxResponse.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ total_count: p(m.total_count) ? String(m.total_count) : "0", count: p(m.count) ? String(m.count) : "0", page_number: p(m.page_number) ? String(m.page_number) : "0", page_total: p(m.page_total) ? String(m.page_total) : "0", limit: p(m.limit) ? String(m.limit) : "0", txs: Array.isArray(m == null ? void 0 : m.txs) ? m.txs.map((M) => e.TxResponse.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.total_count !== void 0 && (M.total_count = m.total_count), m.count !== void 0 && (M.count = m.count), m.page_number !== void 0 && (M.page_number = m.page_number), m.page_total !== void 0 && (M.page_total = m.page_total), m.limit !== void 0 && (M.limit = m.limit), m.txs ? M.txs = m.txs.map((l) => l ? e.TxResponse.toJSON(l) : void 0) : M.txs = [], M; + }, fromPartial(m) { + var M, l, N, j, R, I; + const x = { total_count: "0", count: "0", page_number: "0", page_total: "0", limit: "0", txs: [] }; + return x.total_count = (M = m.total_count) !== null && M !== void 0 ? M : "0", x.count = (l = m.count) !== null && l !== void 0 ? l : "0", x.page_number = (N = m.page_number) !== null && N !== void 0 ? N : "0", x.page_total = (j = m.page_total) !== null && j !== void 0 ? j : "0", x.limit = (R = m.limit) !== null && R !== void 0 ? R : "0", x.txs = ((I = m.txs) === null || I === void 0 ? void 0 : I.map((P) => e.TxResponse.fromPartial(P))) || [], x; + } }; + var n = (() => { + if (n !== void 0) + return n; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const o = n.atob || ((m) => n.Buffer.from(m, "base64").toString("binary")); + function i(m) { + const M = o(m), l = new Uint8Array(M.length); + for (let N = 0; N < M.length; ++N) + l[N] = M.charCodeAt(N); + return l; + } + const f = n.btoa || ((m) => n.Buffer.from(m, "binary").toString("base64")); + function c(m) { + const M = []; + for (const l of m) + M.push(String.fromCharCode(l)); + return f(M.join("")); + } + function h(m) { + return m.toString(); + } + function p(m) { + return m != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2976: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.DecProto = e.IntProto = e.DecCoin = e.Coin = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(d) { + return d != null; + } + e.protobufPackage = "cosmos.base.v1beta1", e.Coin = { encode: (d, s = t.Writer.create()) => (d.denom !== "" && s.uint32(10).string(d.denom), d.amount !== "" && s.uint32(18).string(d.amount), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { denom: "", amount: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.denom = r.string(); + break; + case 2: + o.amount = r.string(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ denom: u(d.denom) ? String(d.denom) : "", amount: u(d.amount) ? String(d.amount) : "" }), toJSON(d) { + const s = {}; + return d.denom !== void 0 && (s.denom = d.denom), d.amount !== void 0 && (s.amount = d.amount), s; + }, fromPartial(d) { + var s, r; + const n = { denom: "", amount: "" }; + return n.denom = (s = d.denom) !== null && s !== void 0 ? s : "", n.amount = (r = d.amount) !== null && r !== void 0 ? r : "", n; + } }, e.DecCoin = { encode: (d, s = t.Writer.create()) => (d.denom !== "" && s.uint32(10).string(d.denom), d.amount !== "" && s.uint32(18).string(d.amount), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { denom: "", amount: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.denom = r.string(); + break; + case 2: + o.amount = r.string(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ denom: u(d.denom) ? String(d.denom) : "", amount: u(d.amount) ? String(d.amount) : "" }), toJSON(d) { + const s = {}; + return d.denom !== void 0 && (s.denom = d.denom), d.amount !== void 0 && (s.amount = d.amount), s; + }, fromPartial(d) { + var s, r; + const n = { denom: "", amount: "" }; + return n.denom = (s = d.denom) !== null && s !== void 0 ? s : "", n.amount = (r = d.amount) !== null && r !== void 0 ? r : "", n; + } }, e.IntProto = { encode: (d, s = t.Writer.create()) => (d.int !== "" && s.uint32(10).string(d.int), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { int: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + i >>> 3 == 1 ? o.int = r.string() : r.skipType(7 & i); + } + return o; + }, fromJSON: (d) => ({ int: u(d.int) ? String(d.int) : "" }), toJSON(d) { + const s = {}; + return d.int !== void 0 && (s.int = d.int), s; + }, fromPartial(d) { + var s; + const r = { int: "" }; + return r.int = (s = d.int) !== null && s !== void 0 ? s : "", r; + } }, e.DecProto = { encode: (d, s = t.Writer.create()) => (d.dec !== "" && s.uint32(10).string(d.dec), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { dec: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + i >>> 3 == 1 ? o.dec = r.string() : r.skipType(7 & i); + } + return o; + }, fromJSON: (d) => ({ dec: u(d.dec) ? String(d.dec) : "" }), toJSON(d) { + const s = {}; + return d.dec !== void 0 && (s.dec = d.dec), s; + }, fromPartial(d) { + var s; + const r = { dec: "" }; + return r.dec = (s = d.dec) !== null && s !== void 0 ? s : "", r; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4489: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgVerifyInvariantResponse = e.MsgVerifyInvariant = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(d) { + return d != null; + } + e.protobufPackage = "cosmos.crisis.v1beta1", e.MsgVerifyInvariant = { encode: (d, s = t.Writer.create()) => (d.sender !== "" && s.uint32(10).string(d.sender), d.invariant_module_name !== "" && s.uint32(18).string(d.invariant_module_name), d.invariant_route !== "" && s.uint32(26).string(d.invariant_route), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { sender: "", invariant_module_name: "", invariant_route: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.sender = r.string(); + break; + case 2: + o.invariant_module_name = r.string(); + break; + case 3: + o.invariant_route = r.string(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ sender: u(d.sender) ? String(d.sender) : "", invariant_module_name: u(d.invariant_module_name) ? String(d.invariant_module_name) : "", invariant_route: u(d.invariant_route) ? String(d.invariant_route) : "" }), toJSON(d) { + const s = {}; + return d.sender !== void 0 && (s.sender = d.sender), d.invariant_module_name !== void 0 && (s.invariant_module_name = d.invariant_module_name), d.invariant_route !== void 0 && (s.invariant_route = d.invariant_route), s; + }, fromPartial(d) { + var s, r, n; + const o = { sender: "", invariant_module_name: "", invariant_route: "" }; + return o.sender = (s = d.sender) !== null && s !== void 0 ? s : "", o.invariant_module_name = (r = d.invariant_module_name) !== null && r !== void 0 ? r : "", o.invariant_route = (n = d.invariant_route) !== null && n !== void 0 ? n : "", o; + } }, e.MsgVerifyInvariantResponse = { encode: (d, s = t.Writer.create()) => s, decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + for (; r.pos < n; ) { + const o = r.uint32(); + r.skipType(7 & o); + } + return {}; + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgClientImpl = class { + constructor(d) { + this.rpc = d, this.VerifyInvariant = this.VerifyInvariant.bind(this); + } + VerifyInvariant(d) { + const s = e.MsgVerifyInvariant.encode(d).finish(); + return this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", s).then((r) => e.MsgVerifyInvariantResponse.decode(new t.Reader(r))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 7776: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.PrivKey = e.PubKey = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { key: new Uint8Array() }; + } + function d() { + return { key: new Uint8Array() }; + } + e.protobufPackage = "cosmos.crypto.ed25519", e.PubKey = { encode: (c, h = t.Writer.create()) => (c.key.length !== 0 && h.uint32(10).bytes(c.key), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = u(); + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.key = p.bytes() : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ key: f(c.key) ? n(c.key) : new Uint8Array() }), toJSON(c) { + const h = {}; + return c.key !== void 0 && (h.key = i(c.key !== void 0 ? c.key : new Uint8Array())), h; + }, fromPartial(c) { + var h; + const p = u(); + return p.key = (h = c.key) !== null && h !== void 0 ? h : new Uint8Array(), p; + } }, e.PrivKey = { encode: (c, h = t.Writer.create()) => (c.key.length !== 0 && h.uint32(10).bytes(c.key), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = d(); + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.key = p.bytes() : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ key: f(c.key) ? n(c.key) : new Uint8Array() }), toJSON(c) { + const h = {}; + return c.key !== void 0 && (h.key = i(c.key !== void 0 ? c.key : new Uint8Array())), h; + }, fromPartial(c) { + var h; + const p = d(); + return p.key = (h = c.key) !== null && h !== void 0 ? h : new Uint8Array(), p; + } }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((c) => s.Buffer.from(c, "base64").toString("binary")); + function n(c) { + const h = r(c), p = new Uint8Array(h.length); + for (let m = 0; m < h.length; ++m) + p[m] = h.charCodeAt(m); + return p; + } + const o = s.btoa || ((c) => s.Buffer.from(c, "binary").toString("base64")); + function i(c) { + const h = []; + for (const p of c) + h.push(String.fromCharCode(p)); + return o(h.join("")); + } + function f(c) { + return c != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5818: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.LegacyAminoPubKey = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191); + e.protobufPackage = "cosmos.crypto.multisig", e.LegacyAminoPubKey = { encode(d, s = t.Writer.create()) { + d.threshold !== 0 && s.uint32(8).uint32(d.threshold); + for (const r of d.public_keys) + u.Any.encode(r, s.uint32(18).fork()).ldelim(); + return s; + }, decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { threshold: 0, public_keys: [] }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.threshold = r.uint32(); + break; + case 2: + o.public_keys.push(u.Any.decode(r, r.uint32())); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON(d) { + return { threshold: (s = d.threshold, s != null ? Number(d.threshold) : 0), public_keys: Array.isArray(d == null ? void 0 : d.public_keys) ? d.public_keys.map((r) => u.Any.fromJSON(r)) : [] }; + var s; + }, toJSON(d) { + const s = {}; + return d.threshold !== void 0 && (s.threshold = Math.round(d.threshold)), d.public_keys ? s.public_keys = d.public_keys.map((r) => r ? u.Any.toJSON(r) : void 0) : s.public_keys = [], s; + }, fromPartial(d) { + var s, r; + const n = { threshold: 0, public_keys: [] }; + return n.threshold = (s = d.threshold) !== null && s !== void 0 ? s : 0, n.public_keys = ((r = d.public_keys) === null || r === void 0 ? void 0 : r.map((o) => u.Any.fromPartial(o))) || [], n; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4271: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(f, c, h, p) { + p === void 0 && (p = h), Object.defineProperty(f, p, { enumerable: !0, get: function() { + return c[h]; + } }); + } : function(f, c, h, p) { + p === void 0 && (p = h), f[p] = c[h]; + }), A = this && this.__setModuleDefault || (Object.create ? function(f, c) { + Object.defineProperty(f, "default", { enumerable: !0, value: c }); + } : function(f, c) { + f.default = c; + }), k = this && this.__importStar || function(f) { + if (f && f.__esModule) + return f; + var c = {}; + if (f != null) + for (var h in f) + h !== "default" && Object.prototype.hasOwnProperty.call(f, h) && O(c, f, h); + return A(c, f), c; + }, b = this && this.__importDefault || function(f) { + return f && f.__esModule ? f : { default: f }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.CompactBitArray = e.MultiSignature = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { extra_bits_stored: 0, elems: new Uint8Array() }; + } + e.protobufPackage = "cosmos.crypto.multisig.v1beta1", e.MultiSignature = { encode(f, c = t.Writer.create()) { + for (const h of f.signatures) + c.uint32(10).bytes(h); + return c; + }, decode(f, c) { + const h = f instanceof t.Reader ? f : new t.Reader(f); + let p = c === void 0 ? h.len : h.pos + c; + const m = { signatures: [] }; + for (; h.pos < p; ) { + const M = h.uint32(); + M >>> 3 == 1 ? m.signatures.push(h.bytes()) : h.skipType(7 & M); + } + return m; + }, fromJSON: (f) => ({ signatures: Array.isArray(f == null ? void 0 : f.signatures) ? f.signatures.map((c) => r(c)) : [] }), toJSON(f) { + const c = {}; + return f.signatures ? c.signatures = f.signatures.map((h) => o(h !== void 0 ? h : new Uint8Array())) : c.signatures = [], c; + }, fromPartial(f) { + var c; + const h = { signatures: [] }; + return h.signatures = ((c = f.signatures) === null || c === void 0 ? void 0 : c.map((p) => p)) || [], h; + } }, e.CompactBitArray = { encode: (f, c = t.Writer.create()) => (f.extra_bits_stored !== 0 && c.uint32(8).uint32(f.extra_bits_stored), f.elems.length !== 0 && c.uint32(18).bytes(f.elems), c), decode(f, c) { + const h = f instanceof t.Reader ? f : new t.Reader(f); + let p = c === void 0 ? h.len : h.pos + c; + const m = u(); + for (; h.pos < p; ) { + const M = h.uint32(); + switch (M >>> 3) { + case 1: + m.extra_bits_stored = h.uint32(); + break; + case 2: + m.elems = h.bytes(); + break; + default: + h.skipType(7 & M); + } + } + return m; + }, fromJSON: (f) => ({ extra_bits_stored: i(f.extra_bits_stored) ? Number(f.extra_bits_stored) : 0, elems: i(f.elems) ? r(f.elems) : new Uint8Array() }), toJSON(f) { + const c = {}; + return f.extra_bits_stored !== void 0 && (c.extra_bits_stored = Math.round(f.extra_bits_stored)), f.elems !== void 0 && (c.elems = o(f.elems !== void 0 ? f.elems : new Uint8Array())), c; + }, fromPartial(f) { + var c, h; + const p = u(); + return p.extra_bits_stored = (c = f.extra_bits_stored) !== null && c !== void 0 ? c : 0, p.elems = (h = f.elems) !== null && h !== void 0 ? h : new Uint8Array(), p; + } }; + var d = (() => { + if (d !== void 0) + return d; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const s = d.atob || ((f) => d.Buffer.from(f, "base64").toString("binary")); + function r(f) { + const c = s(f), h = new Uint8Array(c.length); + for (let p = 0; p < c.length; ++p) + h[p] = c.charCodeAt(p); + return h; + } + const n = d.btoa || ((f) => d.Buffer.from(f, "binary").toString("base64")); + function o(f) { + const c = []; + for (const h of f) + c.push(String.fromCharCode(h)); + return n(c.join("")); + } + function i(f) { + return f != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6010: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.PrivKey = e.PubKey = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { key: new Uint8Array() }; + } + function d() { + return { key: new Uint8Array() }; + } + e.protobufPackage = "cosmos.crypto.secp256k1", e.PubKey = { encode: (c, h = t.Writer.create()) => (c.key.length !== 0 && h.uint32(10).bytes(c.key), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = u(); + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.key = p.bytes() : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ key: f(c.key) ? n(c.key) : new Uint8Array() }), toJSON(c) { + const h = {}; + return c.key !== void 0 && (h.key = i(c.key !== void 0 ? c.key : new Uint8Array())), h; + }, fromPartial(c) { + var h; + const p = u(); + return p.key = (h = c.key) !== null && h !== void 0 ? h : new Uint8Array(), p; + } }, e.PrivKey = { encode: (c, h = t.Writer.create()) => (c.key.length !== 0 && h.uint32(10).bytes(c.key), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = d(); + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.key = p.bytes() : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ key: f(c.key) ? n(c.key) : new Uint8Array() }), toJSON(c) { + const h = {}; + return c.key !== void 0 && (h.key = i(c.key !== void 0 ? c.key : new Uint8Array())), h; + }, fromPartial(c) { + var h; + const p = d(); + return p.key = (h = c.key) !== null && h !== void 0 ? h : new Uint8Array(), p; + } }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((c) => s.Buffer.from(c, "base64").toString("binary")); + function n(c) { + const h = r(c), p = new Uint8Array(h.length); + for (let m = 0; m < h.length; ++m) + p[m] = h.charCodeAt(m); + return p; + } + const o = s.btoa || ((c) => s.Buffer.from(c, "binary").toString("base64")); + function i(c) { + const h = []; + for (const p of c) + h.push(String.fromCharCode(p)); + return o(h.join("")); + } + function f(c) { + return c != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 8866: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(r, n, o, i) { + i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { + return n[o]; + } }); + } : function(r, n, o, i) { + i === void 0 && (i = o), r[i] = n[o]; + }), A = this && this.__setModuleDefault || (Object.create ? function(r, n) { + Object.defineProperty(r, "default", { enumerable: !0, value: n }); + } : function(r, n) { + r.default = n; + }), k = this && this.__importStar || function(r) { + if (r && r.__esModule) + return r; + var n = {}; + if (r != null) + for (var o in r) + o !== "default" && Object.prototype.hasOwnProperty.call(r, o) && O(n, r, o); + return A(n, r), n; + }, b = this && this.__importDefault || function(r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.CommunityPoolSpendProposalWithDeposit = e.DelegationDelegatorReward = e.DelegatorStartingInfo = e.CommunityPoolSpendProposal = e.FeePool = e.ValidatorSlashEvents = e.ValidatorSlashEvent = e.ValidatorOutstandingRewards = e.ValidatorAccumulatedCommission = e.ValidatorCurrentRewards = e.ValidatorHistoricalRewards = e.Params = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + function d(r) { + return r.toString(); + } + function s(r) { + return r != null; + } + e.protobufPackage = "cosmos.distribution.v1beta1", e.Params = { encode: (r, n = t.Writer.create()) => (r.community_tax !== "" && n.uint32(10).string(r.community_tax), r.base_proposer_reward !== "" && n.uint32(18).string(r.base_proposer_reward), r.bonus_proposer_reward !== "" && n.uint32(26).string(r.bonus_proposer_reward), r.withdraw_addr_enabled === !0 && n.uint32(32).bool(r.withdraw_addr_enabled), r.secret_foundation_tax !== "" && n.uint32(42).string(r.secret_foundation_tax), r.secret_foundation_address !== "" && n.uint32(50).string(r.secret_foundation_address), r.minimum_restake_threshold !== "" && n.uint32(58).string(r.minimum_restake_threshold), r.restake_period !== "" && n.uint32(66).string(r.restake_period), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { community_tax: "", base_proposer_reward: "", bonus_proposer_reward: "", withdraw_addr_enabled: !1, secret_foundation_tax: "", secret_foundation_address: "", minimum_restake_threshold: "", restake_period: "" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.community_tax = o.string(); + break; + case 2: + f.base_proposer_reward = o.string(); + break; + case 3: + f.bonus_proposer_reward = o.string(); + break; + case 4: + f.withdraw_addr_enabled = o.bool(); + break; + case 5: + f.secret_foundation_tax = o.string(); + break; + case 6: + f.secret_foundation_address = o.string(); + break; + case 7: + f.minimum_restake_threshold = o.string(); + break; + case 8: + f.restake_period = o.string(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ community_tax: s(r.community_tax) ? String(r.community_tax) : "", base_proposer_reward: s(r.base_proposer_reward) ? String(r.base_proposer_reward) : "", bonus_proposer_reward: s(r.bonus_proposer_reward) ? String(r.bonus_proposer_reward) : "", withdraw_addr_enabled: !!s(r.withdraw_addr_enabled) && !!r.withdraw_addr_enabled, secret_foundation_tax: s(r.secret_foundation_tax) ? String(r.secret_foundation_tax) : "", secret_foundation_address: s(r.secret_foundation_address) ? String(r.secret_foundation_address) : "", minimum_restake_threshold: s(r.minimum_restake_threshold) ? String(r.minimum_restake_threshold) : "", restake_period: s(r.restake_period) ? String(r.restake_period) : "" }), toJSON(r) { + const n = {}; + return r.community_tax !== void 0 && (n.community_tax = r.community_tax), r.base_proposer_reward !== void 0 && (n.base_proposer_reward = r.base_proposer_reward), r.bonus_proposer_reward !== void 0 && (n.bonus_proposer_reward = r.bonus_proposer_reward), r.withdraw_addr_enabled !== void 0 && (n.withdraw_addr_enabled = r.withdraw_addr_enabled), r.secret_foundation_tax !== void 0 && (n.secret_foundation_tax = r.secret_foundation_tax), r.secret_foundation_address !== void 0 && (n.secret_foundation_address = r.secret_foundation_address), r.minimum_restake_threshold !== void 0 && (n.minimum_restake_threshold = r.minimum_restake_threshold), r.restake_period !== void 0 && (n.restake_period = r.restake_period), n; + }, fromPartial(r) { + var n, o, i, f, c, h, p, m; + const M = { community_tax: "", base_proposer_reward: "", bonus_proposer_reward: "", withdraw_addr_enabled: !1, secret_foundation_tax: "", secret_foundation_address: "", minimum_restake_threshold: "", restake_period: "" }; + return M.community_tax = (n = r.community_tax) !== null && n !== void 0 ? n : "", M.base_proposer_reward = (o = r.base_proposer_reward) !== null && o !== void 0 ? o : "", M.bonus_proposer_reward = (i = r.bonus_proposer_reward) !== null && i !== void 0 ? i : "", M.withdraw_addr_enabled = (f = r.withdraw_addr_enabled) !== null && f !== void 0 && f, M.secret_foundation_tax = (c = r.secret_foundation_tax) !== null && c !== void 0 ? c : "", M.secret_foundation_address = (h = r.secret_foundation_address) !== null && h !== void 0 ? h : "", M.minimum_restake_threshold = (p = r.minimum_restake_threshold) !== null && p !== void 0 ? p : "", M.restake_period = (m = r.restake_period) !== null && m !== void 0 ? m : "", M; + } }, e.ValidatorHistoricalRewards = { encode(r, n = t.Writer.create()) { + for (const o of r.cumulative_reward_ratio) + u.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); + return r.reference_count !== 0 && n.uint32(16).uint32(r.reference_count), n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { cumulative_reward_ratio: [], reference_count: 0 }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.cumulative_reward_ratio.push(u.DecCoin.decode(o, o.uint32())); + break; + case 2: + f.reference_count = o.uint32(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ cumulative_reward_ratio: Array.isArray(r == null ? void 0 : r.cumulative_reward_ratio) ? r.cumulative_reward_ratio.map((n) => u.DecCoin.fromJSON(n)) : [], reference_count: s(r.reference_count) ? Number(r.reference_count) : 0 }), toJSON(r) { + const n = {}; + return r.cumulative_reward_ratio ? n.cumulative_reward_ratio = r.cumulative_reward_ratio.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.cumulative_reward_ratio = [], r.reference_count !== void 0 && (n.reference_count = Math.round(r.reference_count)), n; + }, fromPartial(r) { + var n, o; + const i = { cumulative_reward_ratio: [], reference_count: 0 }; + return i.cumulative_reward_ratio = ((n = r.cumulative_reward_ratio) === null || n === void 0 ? void 0 : n.map((f) => u.DecCoin.fromPartial(f))) || [], i.reference_count = (o = r.reference_count) !== null && o !== void 0 ? o : 0, i; + } }, e.ValidatorCurrentRewards = { encode(r, n = t.Writer.create()) { + for (const o of r.rewards) + u.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); + return r.period !== "0" && n.uint32(16).uint64(r.period), n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { rewards: [], period: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.rewards.push(u.DecCoin.decode(o, o.uint32())); + break; + case 2: + f.period = d(o.uint64()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ rewards: Array.isArray(r == null ? void 0 : r.rewards) ? r.rewards.map((n) => u.DecCoin.fromJSON(n)) : [], period: s(r.period) ? String(r.period) : "0" }), toJSON(r) { + const n = {}; + return r.rewards ? n.rewards = r.rewards.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.rewards = [], r.period !== void 0 && (n.period = r.period), n; + }, fromPartial(r) { + var n, o; + const i = { rewards: [], period: "0" }; + return i.rewards = ((n = r.rewards) === null || n === void 0 ? void 0 : n.map((f) => u.DecCoin.fromPartial(f))) || [], i.period = (o = r.period) !== null && o !== void 0 ? o : "0", i; + } }, e.ValidatorAccumulatedCommission = { encode(r, n = t.Writer.create()) { + for (const o of r.commission) + u.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { commission: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.commission.push(u.DecCoin.decode(o, o.uint32())) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ commission: Array.isArray(r == null ? void 0 : r.commission) ? r.commission.map((n) => u.DecCoin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.commission ? n.commission = r.commission.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.commission = [], n; + }, fromPartial(r) { + var n; + const o = { commission: [] }; + return o.commission = ((n = r.commission) === null || n === void 0 ? void 0 : n.map((i) => u.DecCoin.fromPartial(i))) || [], o; + } }, e.ValidatorOutstandingRewards = { encode(r, n = t.Writer.create()) { + for (const o of r.rewards) + u.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { rewards: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.rewards.push(u.DecCoin.decode(o, o.uint32())) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ rewards: Array.isArray(r == null ? void 0 : r.rewards) ? r.rewards.map((n) => u.DecCoin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.rewards ? n.rewards = r.rewards.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.rewards = [], n; + }, fromPartial(r) { + var n; + const o = { rewards: [] }; + return o.rewards = ((n = r.rewards) === null || n === void 0 ? void 0 : n.map((i) => u.DecCoin.fromPartial(i))) || [], o; + } }, e.ValidatorSlashEvent = { encode: (r, n = t.Writer.create()) => (r.validator_period !== "0" && n.uint32(8).uint64(r.validator_period), r.fraction !== "" && n.uint32(18).string(r.fraction), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { validator_period: "0", fraction: "" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.validator_period = d(o.uint64()); + break; + case 2: + f.fraction = o.string(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ validator_period: s(r.validator_period) ? String(r.validator_period) : "0", fraction: s(r.fraction) ? String(r.fraction) : "" }), toJSON(r) { + const n = {}; + return r.validator_period !== void 0 && (n.validator_period = r.validator_period), r.fraction !== void 0 && (n.fraction = r.fraction), n; + }, fromPartial(r) { + var n, o; + const i = { validator_period: "0", fraction: "" }; + return i.validator_period = (n = r.validator_period) !== null && n !== void 0 ? n : "0", i.fraction = (o = r.fraction) !== null && o !== void 0 ? o : "", i; + } }, e.ValidatorSlashEvents = { encode(r, n = t.Writer.create()) { + for (const o of r.validator_slash_events) + e.ValidatorSlashEvent.encode(o, n.uint32(10).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { validator_slash_events: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.validator_slash_events.push(e.ValidatorSlashEvent.decode(o, o.uint32())) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ validator_slash_events: Array.isArray(r == null ? void 0 : r.validator_slash_events) ? r.validator_slash_events.map((n) => e.ValidatorSlashEvent.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.validator_slash_events ? n.validator_slash_events = r.validator_slash_events.map((o) => o ? e.ValidatorSlashEvent.toJSON(o) : void 0) : n.validator_slash_events = [], n; + }, fromPartial(r) { + var n; + const o = { validator_slash_events: [] }; + return o.validator_slash_events = ((n = r.validator_slash_events) === null || n === void 0 ? void 0 : n.map((i) => e.ValidatorSlashEvent.fromPartial(i))) || [], o; + } }, e.FeePool = { encode(r, n = t.Writer.create()) { + for (const o of r.community_pool) + u.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { community_pool: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.community_pool.push(u.DecCoin.decode(o, o.uint32())) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ community_pool: Array.isArray(r == null ? void 0 : r.community_pool) ? r.community_pool.map((n) => u.DecCoin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.community_pool ? n.community_pool = r.community_pool.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.community_pool = [], n; + }, fromPartial(r) { + var n; + const o = { community_pool: [] }; + return o.community_pool = ((n = r.community_pool) === null || n === void 0 ? void 0 : n.map((i) => u.DecCoin.fromPartial(i))) || [], o; + } }, e.CommunityPoolSpendProposal = { encode(r, n = t.Writer.create()) { + r.title !== "" && n.uint32(10).string(r.title), r.description !== "" && n.uint32(18).string(r.description), r.recipient !== "" && n.uint32(26).string(r.recipient); + for (const o of r.amount) + u.Coin.encode(o, n.uint32(34).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { title: "", description: "", recipient: "", amount: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.title = o.string(); + break; + case 2: + f.description = o.string(); + break; + case 3: + f.recipient = o.string(); + break; + case 4: + f.amount.push(u.Coin.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ title: s(r.title) ? String(r.title) : "", description: s(r.description) ? String(r.description) : "", recipient: s(r.recipient) ? String(r.recipient) : "", amount: Array.isArray(r == null ? void 0 : r.amount) ? r.amount.map((n) => u.Coin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.title !== void 0 && (n.title = r.title), r.description !== void 0 && (n.description = r.description), r.recipient !== void 0 && (n.recipient = r.recipient), r.amount ? n.amount = r.amount.map((o) => o ? u.Coin.toJSON(o) : void 0) : n.amount = [], n; + }, fromPartial(r) { + var n, o, i, f; + const c = { title: "", description: "", recipient: "", amount: [] }; + return c.title = (n = r.title) !== null && n !== void 0 ? n : "", c.description = (o = r.description) !== null && o !== void 0 ? o : "", c.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", c.amount = ((f = r.amount) === null || f === void 0 ? void 0 : f.map((h) => u.Coin.fromPartial(h))) || [], c; + } }, e.DelegatorStartingInfo = { encode: (r, n = t.Writer.create()) => (r.previous_period !== "0" && n.uint32(8).uint64(r.previous_period), r.stake !== "" && n.uint32(18).string(r.stake), r.height !== "0" && n.uint32(24).uint64(r.height), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { previous_period: "0", stake: "", height: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.previous_period = d(o.uint64()); + break; + case 2: + f.stake = o.string(); + break; + case 3: + f.height = d(o.uint64()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ previous_period: s(r.previous_period) ? String(r.previous_period) : "0", stake: s(r.stake) ? String(r.stake) : "", height: s(r.height) ? String(r.height) : "0" }), toJSON(r) { + const n = {}; + return r.previous_period !== void 0 && (n.previous_period = r.previous_period), r.stake !== void 0 && (n.stake = r.stake), r.height !== void 0 && (n.height = r.height), n; + }, fromPartial(r) { + var n, o, i; + const f = { previous_period: "0", stake: "", height: "0" }; + return f.previous_period = (n = r.previous_period) !== null && n !== void 0 ? n : "0", f.stake = (o = r.stake) !== null && o !== void 0 ? o : "", f.height = (i = r.height) !== null && i !== void 0 ? i : "0", f; + } }, e.DelegationDelegatorReward = { encode(r, n = t.Writer.create()) { + r.validator_address !== "" && n.uint32(10).string(r.validator_address); + for (const o of r.reward) + u.DecCoin.encode(o, n.uint32(18).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { validator_address: "", reward: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.validator_address = o.string(); + break; + case 2: + f.reward.push(u.DecCoin.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ validator_address: s(r.validator_address) ? String(r.validator_address) : "", reward: Array.isArray(r == null ? void 0 : r.reward) ? r.reward.map((n) => u.DecCoin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.validator_address !== void 0 && (n.validator_address = r.validator_address), r.reward ? n.reward = r.reward.map((o) => o ? u.DecCoin.toJSON(o) : void 0) : n.reward = [], n; + }, fromPartial(r) { + var n, o; + const i = { validator_address: "", reward: [] }; + return i.validator_address = (n = r.validator_address) !== null && n !== void 0 ? n : "", i.reward = ((o = r.reward) === null || o === void 0 ? void 0 : o.map((f) => u.DecCoin.fromPartial(f))) || [], i; + } }, e.CommunityPoolSpendProposalWithDeposit = { encode: (r, n = t.Writer.create()) => (r.title !== "" && n.uint32(10).string(r.title), r.description !== "" && n.uint32(18).string(r.description), r.recipient !== "" && n.uint32(26).string(r.recipient), r.amount !== "" && n.uint32(34).string(r.amount), r.deposit !== "" && n.uint32(42).string(r.deposit), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { title: "", description: "", recipient: "", amount: "", deposit: "" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.title = o.string(); + break; + case 2: + f.description = o.string(); + break; + case 3: + f.recipient = o.string(); + break; + case 4: + f.amount = o.string(); + break; + case 5: + f.deposit = o.string(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ title: s(r.title) ? String(r.title) : "", description: s(r.description) ? String(r.description) : "", recipient: s(r.recipient) ? String(r.recipient) : "", amount: s(r.amount) ? String(r.amount) : "", deposit: s(r.deposit) ? String(r.deposit) : "" }), toJSON(r) { + const n = {}; + return r.title !== void 0 && (n.title = r.title), r.description !== void 0 && (n.description = r.description), r.recipient !== void 0 && (n.recipient = r.recipient), r.amount !== void 0 && (n.amount = r.amount), r.deposit !== void 0 && (n.deposit = r.deposit), n; + }, fromPartial(r) { + var n, o, i, f, c; + const h = { title: "", description: "", recipient: "", amount: "", deposit: "" }; + return h.title = (n = r.title) !== null && n !== void 0 ? n : "", h.description = (o = r.description) !== null && o !== void 0 ? o : "", h.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", h.amount = (f = r.amount) !== null && f !== void 0 ? f : "", h.deposit = (c = r.deposit) !== null && c !== void 0 ? c : "", h; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4301: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__importDefault || function(s) { + return s && s.__esModule ? s : { default: s }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgFundCommunityPoolResponse = e.MsgFundCommunityPool = e.MsgWithdrawValidatorCommissionResponse = e.MsgWithdrawValidatorCommission = e.MsgWithdrawDelegatorRewardResponse = e.MsgWithdrawDelegatorReward = e.MsgSetWithdrawAddressResponse = e.MsgSetAutoRestakeResponse = e.MsgSetAutoRestake = e.MsgSetWithdrawAddress = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + function d(s) { + return s != null; + } + e.protobufPackage = "cosmos.distribution.v1beta1", e.MsgSetWithdrawAddress = { encode: (s, r = t.Writer.create()) => (s.delegator_address !== "" && r.uint32(10).string(s.delegator_address), s.withdraw_address !== "" && r.uint32(18).string(s.withdraw_address), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { delegator_address: "", withdraw_address: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.delegator_address = n.string(); + break; + case 2: + i.withdraw_address = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ delegator_address: d(s.delegator_address) ? String(s.delegator_address) : "", withdraw_address: d(s.withdraw_address) ? String(s.withdraw_address) : "" }), toJSON(s) { + const r = {}; + return s.delegator_address !== void 0 && (r.delegator_address = s.delegator_address), s.withdraw_address !== void 0 && (r.withdraw_address = s.withdraw_address), r; + }, fromPartial(s) { + var r, n; + const o = { delegator_address: "", withdraw_address: "" }; + return o.delegator_address = (r = s.delegator_address) !== null && r !== void 0 ? r : "", o.withdraw_address = (n = s.withdraw_address) !== null && n !== void 0 ? n : "", o; + } }, e.MsgSetAutoRestake = { encode: (s, r = t.Writer.create()) => (s.delegator_address !== "" && r.uint32(10).string(s.delegator_address), s.validator_address !== "" && r.uint32(18).string(s.validator_address), s.enabled === !0 && r.uint32(24).bool(s.enabled), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { delegator_address: "", validator_address: "", enabled: !1 }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.delegator_address = n.string(); + break; + case 2: + i.validator_address = n.string(); + break; + case 3: + i.enabled = n.bool(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ delegator_address: d(s.delegator_address) ? String(s.delegator_address) : "", validator_address: d(s.validator_address) ? String(s.validator_address) : "", enabled: !!d(s.enabled) && !!s.enabled }), toJSON(s) { + const r = {}; + return s.delegator_address !== void 0 && (r.delegator_address = s.delegator_address), s.validator_address !== void 0 && (r.validator_address = s.validator_address), s.enabled !== void 0 && (r.enabled = s.enabled), r; + }, fromPartial(s) { + var r, n, o; + const i = { delegator_address: "", validator_address: "", enabled: !1 }; + return i.delegator_address = (r = s.delegator_address) !== null && r !== void 0 ? r : "", i.validator_address = (n = s.validator_address) !== null && n !== void 0 ? n : "", i.enabled = (o = s.enabled) !== null && o !== void 0 && o, i; + } }, e.MsgSetAutoRestakeResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgSetWithdrawAddressResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgWithdrawDelegatorReward = { encode: (s, r = t.Writer.create()) => (s.delegator_address !== "" && r.uint32(10).string(s.delegator_address), s.validator_address !== "" && r.uint32(18).string(s.validator_address), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { delegator_address: "", validator_address: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.delegator_address = n.string(); + break; + case 2: + i.validator_address = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ delegator_address: d(s.delegator_address) ? String(s.delegator_address) : "", validator_address: d(s.validator_address) ? String(s.validator_address) : "" }), toJSON(s) { + const r = {}; + return s.delegator_address !== void 0 && (r.delegator_address = s.delegator_address), s.validator_address !== void 0 && (r.validator_address = s.validator_address), r; + }, fromPartial(s) { + var r, n; + const o = { delegator_address: "", validator_address: "" }; + return o.delegator_address = (r = s.delegator_address) !== null && r !== void 0 ? r : "", o.validator_address = (n = s.validator_address) !== null && n !== void 0 ? n : "", o; + } }, e.MsgWithdrawDelegatorRewardResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgWithdrawValidatorCommission = { encode: (s, r = t.Writer.create()) => (s.validator_address !== "" && r.uint32(10).string(s.validator_address), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { validator_address: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + f >>> 3 == 1 ? i.validator_address = n.string() : n.skipType(7 & f); + } + return i; + }, fromJSON: (s) => ({ validator_address: d(s.validator_address) ? String(s.validator_address) : "" }), toJSON(s) { + const r = {}; + return s.validator_address !== void 0 && (r.validator_address = s.validator_address), r; + }, fromPartial(s) { + var r; + const n = { validator_address: "" }; + return n.validator_address = (r = s.validator_address) !== null && r !== void 0 ? r : "", n; + } }, e.MsgWithdrawValidatorCommissionResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgFundCommunityPool = { encode(s, r = t.Writer.create()) { + for (const n of s.amount) + u.Coin.encode(n, r.uint32(10).fork()).ldelim(); + return s.depositor !== "" && r.uint32(18).string(s.depositor), r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { amount: [], depositor: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.amount.push(u.Coin.decode(n, n.uint32())); + break; + case 2: + i.depositor = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ amount: Array.isArray(s == null ? void 0 : s.amount) ? s.amount.map((r) => u.Coin.fromJSON(r)) : [], depositor: d(s.depositor) ? String(s.depositor) : "" }), toJSON(s) { + const r = {}; + return s.amount ? r.amount = s.amount.map((n) => n ? u.Coin.toJSON(n) : void 0) : r.amount = [], s.depositor !== void 0 && (r.depositor = s.depositor), r; + }, fromPartial(s) { + var r, n; + const o = { amount: [], depositor: "" }; + return o.amount = ((r = s.amount) === null || r === void 0 ? void 0 : r.map((i) => u.Coin.fromPartial(i))) || [], o.depositor = (n = s.depositor) !== null && n !== void 0 ? n : "", o; + } }, e.MsgFundCommunityPoolResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgClientImpl = class { + constructor(s) { + this.rpc = s, this.SetWithdrawAddress = this.SetWithdrawAddress.bind(this), this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this), this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this), this.FundCommunityPool = this.FundCommunityPool.bind(this), this.SetAutoRestake = this.SetAutoRestake.bind(this); + } + SetWithdrawAddress(s) { + const r = e.MsgSetWithdrawAddress.encode(s).finish(); + return this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", r).then((n) => e.MsgSetWithdrawAddressResponse.decode(new t.Reader(n))); + } + WithdrawDelegatorReward(s) { + const r = e.MsgWithdrawDelegatorReward.encode(s).finish(); + return this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", r).then((n) => e.MsgWithdrawDelegatorRewardResponse.decode(new t.Reader(n))); + } + WithdrawValidatorCommission(s) { + const r = e.MsgWithdrawValidatorCommission.encode(s).finish(); + return this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", r).then((n) => e.MsgWithdrawValidatorCommissionResponse.decode(new t.Reader(n))); + } + FundCommunityPool(s) { + const r = e.MsgFundCommunityPool.encode(s).finish(); + return this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", r).then((n) => e.MsgFundCommunityPoolResponse.decode(new t.Reader(n))); + } + SetAutoRestake(s) { + const r = e.MsgSetAutoRestake.encode(s).finish(); + return this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetAutoRestake", r).then((n) => e.MsgSetAutoRestakeResponse.decode(new t.Reader(n))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 3676: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(f, c, h, p) { + p === void 0 && (p = h), Object.defineProperty(f, p, { enumerable: !0, get: function() { + return c[h]; + } }); + } : function(f, c, h, p) { + p === void 0 && (p = h), f[p] = c[h]; + }), A = this && this.__setModuleDefault || (Object.create ? function(f, c) { + Object.defineProperty(f, "default", { enumerable: !0, value: c }); + } : function(f, c) { + f.default = c; + }), k = this && this.__importStar || function(f) { + if (f && f.__esModule) + return f; + var c = {}; + if (f != null) + for (var h in f) + h !== "default" && Object.prototype.hasOwnProperty.call(f, h) && O(c, f, h); + return A(c, f), c; + }, b = this && this.__importDefault || function(f) { + return f && f.__esModule ? f : { default: f }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgSubmitEvidenceResponse = e.MsgSubmitEvidence = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191); + function d() { + return { hash: new Uint8Array() }; + } + e.protobufPackage = "cosmos.evidence.v1beta1", e.MsgSubmitEvidence = { encode: (f, c = t.Writer.create()) => (f.submitter !== "" && c.uint32(10).string(f.submitter), f.evidence !== void 0 && u.Any.encode(f.evidence, c.uint32(18).fork()).ldelim(), c), decode(f, c) { + const h = f instanceof t.Reader ? f : new t.Reader(f); + let p = c === void 0 ? h.len : h.pos + c; + const m = { submitter: "", evidence: void 0 }; + for (; h.pos < p; ) { + const M = h.uint32(); + switch (M >>> 3) { + case 1: + m.submitter = h.string(); + break; + case 2: + m.evidence = u.Any.decode(h, h.uint32()); + break; + default: + h.skipType(7 & M); + } + } + return m; + }, fromJSON: (f) => ({ submitter: i(f.submitter) ? String(f.submitter) : "", evidence: i(f.evidence) ? u.Any.fromJSON(f.evidence) : void 0 }), toJSON(f) { + const c = {}; + return f.submitter !== void 0 && (c.submitter = f.submitter), f.evidence !== void 0 && (c.evidence = f.evidence ? u.Any.toJSON(f.evidence) : void 0), c; + }, fromPartial(f) { + var c; + const h = { submitter: "", evidence: void 0 }; + return h.submitter = (c = f.submitter) !== null && c !== void 0 ? c : "", h.evidence = f.evidence !== void 0 && f.evidence !== null ? u.Any.fromPartial(f.evidence) : void 0, h; + } }, e.MsgSubmitEvidenceResponse = { encode: (f, c = t.Writer.create()) => (f.hash.length !== 0 && c.uint32(34).bytes(f.hash), c), decode(f, c) { + const h = f instanceof t.Reader ? f : new t.Reader(f); + let p = c === void 0 ? h.len : h.pos + c; + const m = d(); + for (; h.pos < p; ) { + const M = h.uint32(); + M >>> 3 == 4 ? m.hash = h.bytes() : h.skipType(7 & M); + } + return m; + }, fromJSON: (f) => ({ hash: i(f.hash) ? n(f.hash) : new Uint8Array() }), toJSON(f) { + const c = {}; + return f.hash !== void 0 && (c.hash = function(h) { + const p = []; + for (const m of h) + p.push(String.fromCharCode(m)); + return o(p.join("")); + }(f.hash !== void 0 ? f.hash : new Uint8Array())), c; + }, fromPartial(f) { + var c; + const h = d(); + return h.hash = (c = f.hash) !== null && c !== void 0 ? c : new Uint8Array(), h; + } }, e.MsgClientImpl = class { + constructor(f) { + this.rpc = f, this.SubmitEvidence = this.SubmitEvidence.bind(this); + } + SubmitEvidence(f) { + const c = e.MsgSubmitEvidence.encode(f).finish(); + return this.rpc.request("cosmos.evidence.v1beta1.Msg", "SubmitEvidence", c).then((h) => e.MsgSubmitEvidenceResponse.decode(new t.Reader(h))); + } + }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((f) => s.Buffer.from(f, "base64").toString("binary")); + function n(f) { + const c = r(f), h = new Uint8Array(c.length); + for (let p = 0; p < c.length; ++p) + h[p] = c.charCodeAt(p); + return h; + } + const o = s.btoa || ((f) => s.Buffer.from(f, "binary").toString("base64")); + function i(f) { + return f != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4932: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Grant = e.AllowedMsgAllowance = e.PeriodicAllowance = e.BasicAllowance = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5090), d = _(6138), s = _(4191), r = _(2976); + function n(c) { + return { seconds: Math.trunc(c.getTime() / 1e3).toString(), nanos: c.getTime() % 1e3 * 1e6 }; + } + function o(c) { + let h = 1e3 * Number(c.seconds); + return h += c.nanos / 1e6, new Date(h); + } + function i(c) { + return c instanceof Date ? n(c) : typeof c == "string" ? n(new Date(c)) : u.Timestamp.fromJSON(c); + } + function f(c) { + return c != null; + } + e.protobufPackage = "cosmos.feegrant.v1beta1", e.BasicAllowance = { encode(c, h = t.Writer.create()) { + for (const p of c.spend_limit) + r.Coin.encode(p, h.uint32(10).fork()).ldelim(); + return c.expiration !== void 0 && u.Timestamp.encode(c.expiration, h.uint32(18).fork()).ldelim(), h; + }, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { spend_limit: [], expiration: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.spend_limit.push(r.Coin.decode(p, p.uint32())); + break; + case 2: + M.expiration = u.Timestamp.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ spend_limit: Array.isArray(c == null ? void 0 : c.spend_limit) ? c.spend_limit.map((h) => r.Coin.fromJSON(h)) : [], expiration: f(c.expiration) ? i(c.expiration) : void 0 }), toJSON(c) { + const h = {}; + return c.spend_limit ? h.spend_limit = c.spend_limit.map((p) => p ? r.Coin.toJSON(p) : void 0) : h.spend_limit = [], c.expiration !== void 0 && (h.expiration = o(c.expiration).toISOString()), h; + }, fromPartial(c) { + var h; + const p = { spend_limit: [], expiration: void 0 }; + return p.spend_limit = ((h = c.spend_limit) === null || h === void 0 ? void 0 : h.map((m) => r.Coin.fromPartial(m))) || [], p.expiration = c.expiration !== void 0 && c.expiration !== null ? u.Timestamp.fromPartial(c.expiration) : void 0, p; + } }, e.PeriodicAllowance = { encode(c, h = t.Writer.create()) { + c.basic !== void 0 && e.BasicAllowance.encode(c.basic, h.uint32(10).fork()).ldelim(), c.period !== void 0 && d.Duration.encode(c.period, h.uint32(18).fork()).ldelim(); + for (const p of c.period_spend_limit) + r.Coin.encode(p, h.uint32(26).fork()).ldelim(); + for (const p of c.period_can_spend) + r.Coin.encode(p, h.uint32(34).fork()).ldelim(); + return c.period_reset !== void 0 && u.Timestamp.encode(c.period_reset, h.uint32(42).fork()).ldelim(), h; + }, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { basic: void 0, period: void 0, period_spend_limit: [], period_can_spend: [], period_reset: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.basic = e.BasicAllowance.decode(p, p.uint32()); + break; + case 2: + M.period = d.Duration.decode(p, p.uint32()); + break; + case 3: + M.period_spend_limit.push(r.Coin.decode(p, p.uint32())); + break; + case 4: + M.period_can_spend.push(r.Coin.decode(p, p.uint32())); + break; + case 5: + M.period_reset = u.Timestamp.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ basic: f(c.basic) ? e.BasicAllowance.fromJSON(c.basic) : void 0, period: f(c.period) ? d.Duration.fromJSON(c.period) : void 0, period_spend_limit: Array.isArray(c == null ? void 0 : c.period_spend_limit) ? c.period_spend_limit.map((h) => r.Coin.fromJSON(h)) : [], period_can_spend: Array.isArray(c == null ? void 0 : c.period_can_spend) ? c.period_can_spend.map((h) => r.Coin.fromJSON(h)) : [], period_reset: f(c.period_reset) ? i(c.period_reset) : void 0 }), toJSON(c) { + const h = {}; + return c.basic !== void 0 && (h.basic = c.basic ? e.BasicAllowance.toJSON(c.basic) : void 0), c.period !== void 0 && (h.period = c.period ? d.Duration.toJSON(c.period) : void 0), c.period_spend_limit ? h.period_spend_limit = c.period_spend_limit.map((p) => p ? r.Coin.toJSON(p) : void 0) : h.period_spend_limit = [], c.period_can_spend ? h.period_can_spend = c.period_can_spend.map((p) => p ? r.Coin.toJSON(p) : void 0) : h.period_can_spend = [], c.period_reset !== void 0 && (h.period_reset = o(c.period_reset).toISOString()), h; + }, fromPartial(c) { + var h, p; + const m = { basic: void 0, period: void 0, period_spend_limit: [], period_can_spend: [], period_reset: void 0 }; + return m.basic = c.basic !== void 0 && c.basic !== null ? e.BasicAllowance.fromPartial(c.basic) : void 0, m.period = c.period !== void 0 && c.period !== null ? d.Duration.fromPartial(c.period) : void 0, m.period_spend_limit = ((h = c.period_spend_limit) === null || h === void 0 ? void 0 : h.map((M) => r.Coin.fromPartial(M))) || [], m.period_can_spend = ((p = c.period_can_spend) === null || p === void 0 ? void 0 : p.map((M) => r.Coin.fromPartial(M))) || [], m.period_reset = c.period_reset !== void 0 && c.period_reset !== null ? u.Timestamp.fromPartial(c.period_reset) : void 0, m; + } }, e.AllowedMsgAllowance = { encode(c, h = t.Writer.create()) { + c.allowance !== void 0 && s.Any.encode(c.allowance, h.uint32(10).fork()).ldelim(); + for (const p of c.allowed_messages) + h.uint32(18).string(p); + return h; + }, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { allowance: void 0, allowed_messages: [] }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.allowance = s.Any.decode(p, p.uint32()); + break; + case 2: + M.allowed_messages.push(p.string()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ allowance: f(c.allowance) ? s.Any.fromJSON(c.allowance) : void 0, allowed_messages: Array.isArray(c == null ? void 0 : c.allowed_messages) ? c.allowed_messages.map((h) => String(h)) : [] }), toJSON(c) { + const h = {}; + return c.allowance !== void 0 && (h.allowance = c.allowance ? s.Any.toJSON(c.allowance) : void 0), c.allowed_messages ? h.allowed_messages = c.allowed_messages.map((p) => p) : h.allowed_messages = [], h; + }, fromPartial(c) { + var h; + const p = { allowance: void 0, allowed_messages: [] }; + return p.allowance = c.allowance !== void 0 && c.allowance !== null ? s.Any.fromPartial(c.allowance) : void 0, p.allowed_messages = ((h = c.allowed_messages) === null || h === void 0 ? void 0 : h.map((m) => m)) || [], p; + } }, e.Grant = { encode: (c, h = t.Writer.create()) => (c.granter !== "" && h.uint32(10).string(c.granter), c.grantee !== "" && h.uint32(18).string(c.grantee), c.allowance !== void 0 && s.Any.encode(c.allowance, h.uint32(26).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { granter: "", grantee: "", allowance: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.granter = p.string(); + break; + case 2: + M.grantee = p.string(); + break; + case 3: + M.allowance = s.Any.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ granter: f(c.granter) ? String(c.granter) : "", grantee: f(c.grantee) ? String(c.grantee) : "", allowance: f(c.allowance) ? s.Any.fromJSON(c.allowance) : void 0 }), toJSON(c) { + const h = {}; + return c.granter !== void 0 && (h.granter = c.granter), c.grantee !== void 0 && (h.grantee = c.grantee), c.allowance !== void 0 && (h.allowance = c.allowance ? s.Any.toJSON(c.allowance) : void 0), h; + }, fromPartial(c) { + var h, p; + const m = { granter: "", grantee: "", allowance: void 0 }; + return m.granter = (h = c.granter) !== null && h !== void 0 ? h : "", m.grantee = (p = c.grantee) !== null && p !== void 0 ? p : "", m.allowance = c.allowance !== void 0 && c.allowance !== null ? s.Any.fromPartial(c.allowance) : void 0, m; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6513: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__importDefault || function(s) { + return s && s.__esModule ? s : { default: s }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgRevokeAllowanceResponse = e.MsgRevokeAllowance = e.MsgGrantAllowanceResponse = e.MsgGrantAllowance = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191); + function d(s) { + return s != null; + } + e.protobufPackage = "cosmos.feegrant.v1beta1", e.MsgGrantAllowance = { encode: (s, r = t.Writer.create()) => (s.granter !== "" && r.uint32(10).string(s.granter), s.grantee !== "" && r.uint32(18).string(s.grantee), s.allowance !== void 0 && u.Any.encode(s.allowance, r.uint32(26).fork()).ldelim(), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { granter: "", grantee: "", allowance: void 0 }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.granter = n.string(); + break; + case 2: + i.grantee = n.string(); + break; + case 3: + i.allowance = u.Any.decode(n, n.uint32()); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ granter: d(s.granter) ? String(s.granter) : "", grantee: d(s.grantee) ? String(s.grantee) : "", allowance: d(s.allowance) ? u.Any.fromJSON(s.allowance) : void 0 }), toJSON(s) { + const r = {}; + return s.granter !== void 0 && (r.granter = s.granter), s.grantee !== void 0 && (r.grantee = s.grantee), s.allowance !== void 0 && (r.allowance = s.allowance ? u.Any.toJSON(s.allowance) : void 0), r; + }, fromPartial(s) { + var r, n; + const o = { granter: "", grantee: "", allowance: void 0 }; + return o.granter = (r = s.granter) !== null && r !== void 0 ? r : "", o.grantee = (n = s.grantee) !== null && n !== void 0 ? n : "", o.allowance = s.allowance !== void 0 && s.allowance !== null ? u.Any.fromPartial(s.allowance) : void 0, o; + } }, e.MsgGrantAllowanceResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgRevokeAllowance = { encode: (s, r = t.Writer.create()) => (s.granter !== "" && r.uint32(10).string(s.granter), s.grantee !== "" && r.uint32(18).string(s.grantee), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { granter: "", grantee: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.granter = n.string(); + break; + case 2: + i.grantee = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ granter: d(s.granter) ? String(s.granter) : "", grantee: d(s.grantee) ? String(s.grantee) : "" }), toJSON(s) { + const r = {}; + return s.granter !== void 0 && (r.granter = s.granter), s.grantee !== void 0 && (r.grantee = s.grantee), r; + }, fromPartial(s) { + var r, n; + const o = { granter: "", grantee: "" }; + return o.granter = (r = s.granter) !== null && r !== void 0 ? r : "", o.grantee = (n = s.grantee) !== null && n !== void 0 ? n : "", o; + } }, e.MsgRevokeAllowanceResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgClientImpl = class { + constructor(s) { + this.rpc = s, this.GrantAllowance = this.GrantAllowance.bind(this), this.RevokeAllowance = this.RevokeAllowance.bind(this); + } + GrantAllowance(s) { + const r = e.MsgGrantAllowance.encode(s).finish(); + return this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", r).then((n) => e.MsgGrantAllowanceResponse.decode(new t.Reader(n))); + } + RevokeAllowance(s) { + const r = e.MsgRevokeAllowance.encode(s).finish(); + return this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", r).then((n) => e.MsgRevokeAllowanceResponse.decode(new t.Reader(n))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 9074: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(g, E, U, C) { + C === void 0 && (C = U), Object.defineProperty(g, C, { enumerable: !0, get: function() { + return E[U]; + } }); + } : function(g, E, U, C) { + C === void 0 && (C = U), g[C] = E[U]; + }), A = this && this.__setModuleDefault || (Object.create ? function(g, E) { + Object.defineProperty(g, "default", { enumerable: !0, value: E }); + } : function(g, E) { + g.default = E; + }), k = this && this.__importStar || function(g) { + if (g && g.__esModule) + return g; + var E = {}; + if (g != null) + for (var U in g) + U !== "default" && Object.prototype.hasOwnProperty.call(g, U) && O(E, g, U); + return A(E, g), E; + }, b = this && this.__importDefault || function(g) { + return g && g.__esModule ? g : { default: g }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.TallyParams = e.VotingParams = e.DepositParams = e.Vote = e.TallyResult = e.Proposal = e.Deposit = e.TextProposal = e.WeightedVoteOption = e.proposalStatusToJSON = e.proposalStatusFromJSON = e.ProposalStatus = e.voteOptionToJSON = e.voteOptionFromJSON = e.VoteOption = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(5090), s = _(6138), r = _(2976); + var n, o; + function i(g) { + switch (g) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return n.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return n.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return n.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return n.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return n.VOTE_OPTION_NO_WITH_VETO; + default: + return n.UNRECOGNIZED; + } + } + function f(g) { + switch (g) { + case n.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case n.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case n.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case n.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case n.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + default: + return "UNKNOWN"; + } + } + function c(g) { + switch (g) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return o.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return o.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return o.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return o.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return o.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return o.PROPOSAL_STATUS_FAILED; + default: + return o.UNRECOGNIZED; + } + } + function h(g) { + switch (g) { + case o.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case o.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case o.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case o.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case o.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case o.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + default: + return "UNKNOWN"; + } + } + function p() { + return { quorum: new Uint8Array(), threshold: new Uint8Array(), veto_threshold: new Uint8Array(), expedited_threshold: new Uint8Array() }; + } + e.protobufPackage = "cosmos.gov.v1beta1", function(g) { + g[g.VOTE_OPTION_UNSPECIFIED = 0] = "VOTE_OPTION_UNSPECIFIED", g[g.VOTE_OPTION_YES = 1] = "VOTE_OPTION_YES", g[g.VOTE_OPTION_ABSTAIN = 2] = "VOTE_OPTION_ABSTAIN", g[g.VOTE_OPTION_NO = 3] = "VOTE_OPTION_NO", g[g.VOTE_OPTION_NO_WITH_VETO = 4] = "VOTE_OPTION_NO_WITH_VETO", g[g.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(n = e.VoteOption || (e.VoteOption = {})), e.voteOptionFromJSON = i, e.voteOptionToJSON = f, function(g) { + g[g.PROPOSAL_STATUS_UNSPECIFIED = 0] = "PROPOSAL_STATUS_UNSPECIFIED", g[g.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD", g[g.PROPOSAL_STATUS_VOTING_PERIOD = 2] = "PROPOSAL_STATUS_VOTING_PERIOD", g[g.PROPOSAL_STATUS_PASSED = 3] = "PROPOSAL_STATUS_PASSED", g[g.PROPOSAL_STATUS_REJECTED = 4] = "PROPOSAL_STATUS_REJECTED", g[g.PROPOSAL_STATUS_FAILED = 5] = "PROPOSAL_STATUS_FAILED", g[g.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(o = e.ProposalStatus || (e.ProposalStatus = {})), e.proposalStatusFromJSON = c, e.proposalStatusToJSON = h, e.WeightedVoteOption = { encode: (g, E = t.Writer.create()) => (g.option !== 0 && E.uint32(8).int32(g.option), g.weight !== "" && E.uint32(18).string(g.weight), E), decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { option: 0, weight: "" }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.option = U.int32(); + break; + case 2: + F.weight = U.string(); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ option: w(g.option) ? i(g.option) : 0, weight: w(g.weight) ? String(g.weight) : "" }), toJSON(g) { + const E = {}; + return g.option !== void 0 && (E.option = f(g.option)), g.weight !== void 0 && (E.weight = g.weight), E; + }, fromPartial(g) { + var E, U; + const C = { option: 0, weight: "" }; + return C.option = (E = g.option) !== null && E !== void 0 ? E : 0, C.weight = (U = g.weight) !== null && U !== void 0 ? U : "", C; + } }, e.TextProposal = { encode: (g, E = t.Writer.create()) => (g.title !== "" && E.uint32(10).string(g.title), g.description !== "" && E.uint32(18).string(g.description), E), decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { title: "", description: "" }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.title = U.string(); + break; + case 2: + F.description = U.string(); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ title: w(g.title) ? String(g.title) : "", description: w(g.description) ? String(g.description) : "" }), toJSON(g) { + const E = {}; + return g.title !== void 0 && (E.title = g.title), g.description !== void 0 && (E.description = g.description), E; + }, fromPartial(g) { + var E, U; + const C = { title: "", description: "" }; + return C.title = (E = g.title) !== null && E !== void 0 ? E : "", C.description = (U = g.description) !== null && U !== void 0 ? U : "", C; + } }, e.Deposit = { encode(g, E = t.Writer.create()) { + g.proposal_id !== "0" && E.uint32(8).uint64(g.proposal_id), g.depositor !== "" && E.uint32(18).string(g.depositor); + for (const U of g.amount) + r.Coin.encode(U, E.uint32(26).fork()).ldelim(); + return E; + }, decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { proposal_id: "0", depositor: "", amount: [] }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.proposal_id = P(U.uint64()); + break; + case 2: + F.depositor = U.string(); + break; + case 3: + F.amount.push(r.Coin.decode(U, U.uint32())); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ proposal_id: w(g.proposal_id) ? String(g.proposal_id) : "0", depositor: w(g.depositor) ? String(g.depositor) : "", amount: Array.isArray(g == null ? void 0 : g.amount) ? g.amount.map((E) => r.Coin.fromJSON(E)) : [] }), toJSON(g) { + const E = {}; + return g.proposal_id !== void 0 && (E.proposal_id = g.proposal_id), g.depositor !== void 0 && (E.depositor = g.depositor), g.amount ? E.amount = g.amount.map((U) => U ? r.Coin.toJSON(U) : void 0) : E.amount = [], E; + }, fromPartial(g) { + var E, U, C; + const F = { proposal_id: "0", depositor: "", amount: [] }; + return F.proposal_id = (E = g.proposal_id) !== null && E !== void 0 ? E : "0", F.depositor = (U = g.depositor) !== null && U !== void 0 ? U : "", F.amount = ((C = g.amount) === null || C === void 0 ? void 0 : C.map((re) => r.Coin.fromPartial(re))) || [], F; + } }, e.Proposal = { encode(g, E = t.Writer.create()) { + g.proposal_id !== "0" && E.uint32(8).uint64(g.proposal_id), g.content !== void 0 && u.Any.encode(g.content, E.uint32(18).fork()).ldelim(), g.status !== 0 && E.uint32(24).int32(g.status), g.final_tally_result !== void 0 && e.TallyResult.encode(g.final_tally_result, E.uint32(34).fork()).ldelim(), g.submit_time !== void 0 && d.Timestamp.encode(g.submit_time, E.uint32(42).fork()).ldelim(), g.deposit_end_time !== void 0 && d.Timestamp.encode(g.deposit_end_time, E.uint32(50).fork()).ldelim(); + for (const U of g.total_deposit) + r.Coin.encode(U, E.uint32(58).fork()).ldelim(); + return g.voting_start_time !== void 0 && d.Timestamp.encode(g.voting_start_time, E.uint32(66).fork()).ldelim(), g.voting_end_time !== void 0 && d.Timestamp.encode(g.voting_end_time, E.uint32(74).fork()).ldelim(), g.is_expedited === !0 && E.uint32(80).bool(g.is_expedited), E; + }, decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { proposal_id: "0", content: void 0, status: 0, final_tally_result: void 0, submit_time: void 0, deposit_end_time: void 0, total_deposit: [], voting_start_time: void 0, voting_end_time: void 0, is_expedited: !1 }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.proposal_id = P(U.uint64()); + break; + case 2: + F.content = u.Any.decode(U, U.uint32()); + break; + case 3: + F.status = U.int32(); + break; + case 4: + F.final_tally_result = e.TallyResult.decode(U, U.uint32()); + break; + case 5: + F.submit_time = d.Timestamp.decode(U, U.uint32()); + break; + case 6: + F.deposit_end_time = d.Timestamp.decode(U, U.uint32()); + break; + case 7: + F.total_deposit.push(r.Coin.decode(U, U.uint32())); + break; + case 8: + F.voting_start_time = d.Timestamp.decode(U, U.uint32()); + break; + case 9: + F.voting_end_time = d.Timestamp.decode(U, U.uint32()); + break; + case 10: + F.is_expedited = U.bool(); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ proposal_id: w(g.proposal_id) ? String(g.proposal_id) : "0", content: w(g.content) ? u.Any.fromJSON(g.content) : void 0, status: w(g.status) ? c(g.status) : 0, final_tally_result: w(g.final_tally_result) ? e.TallyResult.fromJSON(g.final_tally_result) : void 0, submit_time: w(g.submit_time) ? x(g.submit_time) : void 0, deposit_end_time: w(g.deposit_end_time) ? x(g.deposit_end_time) : void 0, total_deposit: Array.isArray(g == null ? void 0 : g.total_deposit) ? g.total_deposit.map((E) => r.Coin.fromJSON(E)) : [], voting_start_time: w(g.voting_start_time) ? x(g.voting_start_time) : void 0, voting_end_time: w(g.voting_end_time) ? x(g.voting_end_time) : void 0, is_expedited: !!w(g.is_expedited) && !!g.is_expedited }), toJSON(g) { + const E = {}; + return g.proposal_id !== void 0 && (E.proposal_id = g.proposal_id), g.content !== void 0 && (E.content = g.content ? u.Any.toJSON(g.content) : void 0), g.status !== void 0 && (E.status = h(g.status)), g.final_tally_result !== void 0 && (E.final_tally_result = g.final_tally_result ? e.TallyResult.toJSON(g.final_tally_result) : void 0), g.submit_time !== void 0 && (E.submit_time = I(g.submit_time).toISOString()), g.deposit_end_time !== void 0 && (E.deposit_end_time = I(g.deposit_end_time).toISOString()), g.total_deposit ? E.total_deposit = g.total_deposit.map((U) => U ? r.Coin.toJSON(U) : void 0) : E.total_deposit = [], g.voting_start_time !== void 0 && (E.voting_start_time = I(g.voting_start_time).toISOString()), g.voting_end_time !== void 0 && (E.voting_end_time = I(g.voting_end_time).toISOString()), g.is_expedited !== void 0 && (E.is_expedited = g.is_expedited), E; + }, fromPartial(g) { + var E, U, C, F; + const re = { proposal_id: "0", content: void 0, status: 0, final_tally_result: void 0, submit_time: void 0, deposit_end_time: void 0, total_deposit: [], voting_start_time: void 0, voting_end_time: void 0, is_expedited: !1 }; + return re.proposal_id = (E = g.proposal_id) !== null && E !== void 0 ? E : "0", re.content = g.content !== void 0 && g.content !== null ? u.Any.fromPartial(g.content) : void 0, re.status = (U = g.status) !== null && U !== void 0 ? U : 0, re.final_tally_result = g.final_tally_result !== void 0 && g.final_tally_result !== null ? e.TallyResult.fromPartial(g.final_tally_result) : void 0, re.submit_time = g.submit_time !== void 0 && g.submit_time !== null ? d.Timestamp.fromPartial(g.submit_time) : void 0, re.deposit_end_time = g.deposit_end_time !== void 0 && g.deposit_end_time !== null ? d.Timestamp.fromPartial(g.deposit_end_time) : void 0, re.total_deposit = ((C = g.total_deposit) === null || C === void 0 ? void 0 : C.map((ee) => r.Coin.fromPartial(ee))) || [], re.voting_start_time = g.voting_start_time !== void 0 && g.voting_start_time !== null ? d.Timestamp.fromPartial(g.voting_start_time) : void 0, re.voting_end_time = g.voting_end_time !== void 0 && g.voting_end_time !== null ? d.Timestamp.fromPartial(g.voting_end_time) : void 0, re.is_expedited = (F = g.is_expedited) !== null && F !== void 0 && F, re; + } }, e.TallyResult = { encode: (g, E = t.Writer.create()) => (g.yes !== "" && E.uint32(10).string(g.yes), g.abstain !== "" && E.uint32(18).string(g.abstain), g.no !== "" && E.uint32(26).string(g.no), g.no_with_veto !== "" && E.uint32(34).string(g.no_with_veto), E), decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { yes: "", abstain: "", no: "", no_with_veto: "" }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.yes = U.string(); + break; + case 2: + F.abstain = U.string(); + break; + case 3: + F.no = U.string(); + break; + case 4: + F.no_with_veto = U.string(); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ yes: w(g.yes) ? String(g.yes) : "", abstain: w(g.abstain) ? String(g.abstain) : "", no: w(g.no) ? String(g.no) : "", no_with_veto: w(g.no_with_veto) ? String(g.no_with_veto) : "" }), toJSON(g) { + const E = {}; + return g.yes !== void 0 && (E.yes = g.yes), g.abstain !== void 0 && (E.abstain = g.abstain), g.no !== void 0 && (E.no = g.no), g.no_with_veto !== void 0 && (E.no_with_veto = g.no_with_veto), E; + }, fromPartial(g) { + var E, U, C, F; + const re = { yes: "", abstain: "", no: "", no_with_veto: "" }; + return re.yes = (E = g.yes) !== null && E !== void 0 ? E : "", re.abstain = (U = g.abstain) !== null && U !== void 0 ? U : "", re.no = (C = g.no) !== null && C !== void 0 ? C : "", re.no_with_veto = (F = g.no_with_veto) !== null && F !== void 0 ? F : "", re; + } }, e.Vote = { encode(g, E = t.Writer.create()) { + g.proposal_id !== "0" && E.uint32(8).uint64(g.proposal_id), g.voter !== "" && E.uint32(18).string(g.voter), g.option !== 0 && E.uint32(24).int32(g.option); + for (const U of g.options) + e.WeightedVoteOption.encode(U, E.uint32(34).fork()).ldelim(); + return E; + }, decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { proposal_id: "0", voter: "", option: 0, options: [] }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.proposal_id = P(U.uint64()); + break; + case 2: + F.voter = U.string(); + break; + case 3: + F.option = U.int32(); + break; + case 4: + F.options.push(e.WeightedVoteOption.decode(U, U.uint32())); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ proposal_id: w(g.proposal_id) ? String(g.proposal_id) : "0", voter: w(g.voter) ? String(g.voter) : "", option: w(g.option) ? i(g.option) : 0, options: Array.isArray(g == null ? void 0 : g.options) ? g.options.map((E) => e.WeightedVoteOption.fromJSON(E)) : [] }), toJSON(g) { + const E = {}; + return g.proposal_id !== void 0 && (E.proposal_id = g.proposal_id), g.voter !== void 0 && (E.voter = g.voter), g.option !== void 0 && (E.option = f(g.option)), g.options ? E.options = g.options.map((U) => U ? e.WeightedVoteOption.toJSON(U) : void 0) : E.options = [], E; + }, fromPartial(g) { + var E, U, C, F; + const re = { proposal_id: "0", voter: "", option: 0, options: [] }; + return re.proposal_id = (E = g.proposal_id) !== null && E !== void 0 ? E : "0", re.voter = (U = g.voter) !== null && U !== void 0 ? U : "", re.option = (C = g.option) !== null && C !== void 0 ? C : 0, re.options = ((F = g.options) === null || F === void 0 ? void 0 : F.map((ee) => e.WeightedVoteOption.fromPartial(ee))) || [], re; + } }, e.DepositParams = { encode(g, E = t.Writer.create()) { + for (const U of g.min_deposit) + r.Coin.encode(U, E.uint32(10).fork()).ldelim(); + g.max_deposit_period !== void 0 && s.Duration.encode(g.max_deposit_period, E.uint32(18).fork()).ldelim(); + for (const U of g.min_expedited_deposit) + r.Coin.encode(U, E.uint32(26).fork()).ldelim(); + return E; + }, decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { min_deposit: [], max_deposit_period: void 0, min_expedited_deposit: [] }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.min_deposit.push(r.Coin.decode(U, U.uint32())); + break; + case 2: + F.max_deposit_period = s.Duration.decode(U, U.uint32()); + break; + case 3: + F.min_expedited_deposit.push(r.Coin.decode(U, U.uint32())); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ min_deposit: Array.isArray(g == null ? void 0 : g.min_deposit) ? g.min_deposit.map((E) => r.Coin.fromJSON(E)) : [], max_deposit_period: w(g.max_deposit_period) ? s.Duration.fromJSON(g.max_deposit_period) : void 0, min_expedited_deposit: Array.isArray(g == null ? void 0 : g.min_expedited_deposit) ? g.min_expedited_deposit.map((E) => r.Coin.fromJSON(E)) : [] }), toJSON(g) { + const E = {}; + return g.min_deposit ? E.min_deposit = g.min_deposit.map((U) => U ? r.Coin.toJSON(U) : void 0) : E.min_deposit = [], g.max_deposit_period !== void 0 && (E.max_deposit_period = g.max_deposit_period ? s.Duration.toJSON(g.max_deposit_period) : void 0), g.min_expedited_deposit ? E.min_expedited_deposit = g.min_expedited_deposit.map((U) => U ? r.Coin.toJSON(U) : void 0) : E.min_expedited_deposit = [], E; + }, fromPartial(g) { + var E, U; + const C = { min_deposit: [], max_deposit_period: void 0, min_expedited_deposit: [] }; + return C.min_deposit = ((E = g.min_deposit) === null || E === void 0 ? void 0 : E.map((F) => r.Coin.fromPartial(F))) || [], C.max_deposit_period = g.max_deposit_period !== void 0 && g.max_deposit_period !== null ? s.Duration.fromPartial(g.max_deposit_period) : void 0, C.min_expedited_deposit = ((U = g.min_expedited_deposit) === null || U === void 0 ? void 0 : U.map((F) => r.Coin.fromPartial(F))) || [], C; + } }, e.VotingParams = { encode: (g, E = t.Writer.create()) => (g.voting_period !== void 0 && s.Duration.encode(g.voting_period, E.uint32(10).fork()).ldelim(), g.expedited_voting_period !== void 0 && s.Duration.encode(g.expedited_voting_period, E.uint32(26).fork()).ldelim(), E), decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = { voting_period: void 0, expedited_voting_period: void 0 }; + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.voting_period = s.Duration.decode(U, U.uint32()); + break; + case 3: + F.expedited_voting_period = s.Duration.decode(U, U.uint32()); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ voting_period: w(g.voting_period) ? s.Duration.fromJSON(g.voting_period) : void 0, expedited_voting_period: w(g.expedited_voting_period) ? s.Duration.fromJSON(g.expedited_voting_period) : void 0 }), toJSON(g) { + const E = {}; + return g.voting_period !== void 0 && (E.voting_period = g.voting_period ? s.Duration.toJSON(g.voting_period) : void 0), g.expedited_voting_period !== void 0 && (E.expedited_voting_period = g.expedited_voting_period ? s.Duration.toJSON(g.expedited_voting_period) : void 0), E; + }, fromPartial(g) { + const E = { voting_period: void 0, expedited_voting_period: void 0 }; + return E.voting_period = g.voting_period !== void 0 && g.voting_period !== null ? s.Duration.fromPartial(g.voting_period) : void 0, E.expedited_voting_period = g.expedited_voting_period !== void 0 && g.expedited_voting_period !== null ? s.Duration.fromPartial(g.expedited_voting_period) : void 0, E; + } }, e.TallyParams = { encode: (g, E = t.Writer.create()) => (g.quorum.length !== 0 && E.uint32(10).bytes(g.quorum), g.threshold.length !== 0 && E.uint32(18).bytes(g.threshold), g.veto_threshold.length !== 0 && E.uint32(26).bytes(g.veto_threshold), g.expedited_threshold.length !== 0 && E.uint32(34).bytes(g.expedited_threshold), E), decode(g, E) { + const U = g instanceof t.Reader ? g : new t.Reader(g); + let C = E === void 0 ? U.len : U.pos + E; + const F = p(); + for (; U.pos < C; ) { + const re = U.uint32(); + switch (re >>> 3) { + case 1: + F.quorum = U.bytes(); + break; + case 2: + F.threshold = U.bytes(); + break; + case 3: + F.veto_threshold = U.bytes(); + break; + case 4: + F.expedited_threshold = U.bytes(); + break; + default: + U.skipType(7 & re); + } + } + return F; + }, fromJSON: (g) => ({ quorum: w(g.quorum) ? l(g.quorum) : new Uint8Array(), threshold: w(g.threshold) ? l(g.threshold) : new Uint8Array(), veto_threshold: w(g.veto_threshold) ? l(g.veto_threshold) : new Uint8Array(), expedited_threshold: w(g.expedited_threshold) ? l(g.expedited_threshold) : new Uint8Array() }), toJSON(g) { + const E = {}; + return g.quorum !== void 0 && (E.quorum = j(g.quorum !== void 0 ? g.quorum : new Uint8Array())), g.threshold !== void 0 && (E.threshold = j(g.threshold !== void 0 ? g.threshold : new Uint8Array())), g.veto_threshold !== void 0 && (E.veto_threshold = j(g.veto_threshold !== void 0 ? g.veto_threshold : new Uint8Array())), g.expedited_threshold !== void 0 && (E.expedited_threshold = j(g.expedited_threshold !== void 0 ? g.expedited_threshold : new Uint8Array())), E; + }, fromPartial(g) { + var E, U, C, F; + const re = p(); + return re.quorum = (E = g.quorum) !== null && E !== void 0 ? E : new Uint8Array(), re.threshold = (U = g.threshold) !== null && U !== void 0 ? U : new Uint8Array(), re.veto_threshold = (C = g.veto_threshold) !== null && C !== void 0 ? C : new Uint8Array(), re.expedited_threshold = (F = g.expedited_threshold) !== null && F !== void 0 ? F : new Uint8Array(), re; + } }; + var m = (() => { + if (m !== void 0) + return m; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const M = m.atob || ((g) => m.Buffer.from(g, "base64").toString("binary")); + function l(g) { + const E = M(g), U = new Uint8Array(E.length); + for (let C = 0; C < E.length; ++C) + U[C] = E.charCodeAt(C); + return U; + } + const N = m.btoa || ((g) => m.Buffer.from(g, "binary").toString("base64")); + function j(g) { + const E = []; + for (const U of g) + E.push(String.fromCharCode(U)); + return N(E.join("")); + } + function R(g) { + return { seconds: Math.trunc(g.getTime() / 1e3).toString(), nanos: g.getTime() % 1e3 * 1e6 }; + } + function I(g) { + let E = 1e3 * Number(g.seconds); + return E += g.nanos / 1e6, new Date(E); + } + function x(g) { + return g instanceof Date ? R(g) : typeof g == "string" ? R(new Date(g)) : d.Timestamp.fromJSON(g); + } + function P(g) { + return g.toString(); + } + function w(g) { + return g != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 88: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(o, i, f, c) { + c === void 0 && (c = f), Object.defineProperty(o, c, { enumerable: !0, get: function() { + return i[f]; + } }); + } : function(o, i, f, c) { + c === void 0 && (c = f), o[c] = i[f]; + }), A = this && this.__setModuleDefault || (Object.create ? function(o, i) { + Object.defineProperty(o, "default", { enumerable: !0, value: i }); + } : function(o, i) { + o.default = i; + }), k = this && this.__importStar || function(o) { + if (o && o.__esModule) + return o; + var i = {}; + if (o != null) + for (var f in o) + f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && O(i, o, f); + return A(i, o), i; + }, b = this && this.__importDefault || function(o) { + return o && o.__esModule ? o : { default: o }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgDepositResponse = e.MsgDeposit = e.MsgVoteWeightedResponse = e.MsgVoteWeighted = e.MsgVoteResponse = e.MsgVote = e.MsgSubmitProposalResponse = e.MsgSubmitProposal = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(9074), s = _(2976); + function r(o) { + return o.toString(); + } + function n(o) { + return o != null; + } + e.protobufPackage = "cosmos.gov.v1beta1", e.MsgSubmitProposal = { encode(o, i = t.Writer.create()) { + o.content !== void 0 && u.Any.encode(o.content, i.uint32(10).fork()).ldelim(); + for (const f of o.initial_deposit) + s.Coin.encode(f, i.uint32(18).fork()).ldelim(); + return o.proposer !== "" && i.uint32(26).string(o.proposer), o.is_expedited === !0 && i.uint32(32).bool(o.is_expedited), i; + }, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.content = u.Any.decode(f, f.uint32()); + break; + case 2: + h.initial_deposit.push(s.Coin.decode(f, f.uint32())); + break; + case 3: + h.proposer = f.string(); + break; + case 4: + h.is_expedited = f.bool(); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ content: n(o.content) ? u.Any.fromJSON(o.content) : void 0, initial_deposit: Array.isArray(o == null ? void 0 : o.initial_deposit) ? o.initial_deposit.map((i) => s.Coin.fromJSON(i)) : [], proposer: n(o.proposer) ? String(o.proposer) : "", is_expedited: !!n(o.is_expedited) && !!o.is_expedited }), toJSON(o) { + const i = {}; + return o.content !== void 0 && (i.content = o.content ? u.Any.toJSON(o.content) : void 0), o.initial_deposit ? i.initial_deposit = o.initial_deposit.map((f) => f ? s.Coin.toJSON(f) : void 0) : i.initial_deposit = [], o.proposer !== void 0 && (i.proposer = o.proposer), o.is_expedited !== void 0 && (i.is_expedited = o.is_expedited), i; + }, fromPartial(o) { + var i, f, c; + const h = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; + return h.content = o.content !== void 0 && o.content !== null ? u.Any.fromPartial(o.content) : void 0, h.initial_deposit = ((i = o.initial_deposit) === null || i === void 0 ? void 0 : i.map((p) => s.Coin.fromPartial(p))) || [], h.proposer = (f = o.proposer) !== null && f !== void 0 ? f : "", h.is_expedited = (c = o.is_expedited) !== null && c !== void 0 && c, h; + } }, e.MsgSubmitProposalResponse = { encode: (o, i = t.Writer.create()) => (o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { proposal_id: "0" }; + for (; f.pos < c; ) { + const p = f.uint32(); + p >>> 3 == 1 ? h.proposal_id = r(f.uint64()) : f.skipType(7 & p); + } + return h; + }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0" }), toJSON(o) { + const i = {}; + return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), i; + }, fromPartial(o) { + var i; + const f = { proposal_id: "0" }; + return f.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", f; + } }, e.MsgVote = { encode: (o, i = t.Writer.create()) => (o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), o.voter !== "" && i.uint32(18).string(o.voter), o.option !== 0 && i.uint32(24).int32(o.option), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { proposal_id: "0", voter: "", option: 0 }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.proposal_id = r(f.uint64()); + break; + case 2: + h.voter = f.string(); + break; + case 3: + h.option = f.int32(); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", voter: n(o.voter) ? String(o.voter) : "", option: n(o.option) ? (0, d.voteOptionFromJSON)(o.option) : 0 }), toJSON(o) { + const i = {}; + return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.voter !== void 0 && (i.voter = o.voter), o.option !== void 0 && (i.option = (0, d.voteOptionToJSON)(o.option)), i; + }, fromPartial(o) { + var i, f, c; + const h = { proposal_id: "0", voter: "", option: 0 }; + return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.voter = (f = o.voter) !== null && f !== void 0 ? f : "", h.option = (c = o.option) !== null && c !== void 0 ? c : 0, h; + } }, e.MsgVoteResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + for (; f.pos < c; ) { + const h = f.uint32(); + f.skipType(7 & h); + } + return {}; + }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgVoteWeighted = { encode(o, i = t.Writer.create()) { + o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), o.voter !== "" && i.uint32(18).string(o.voter); + for (const f of o.options) + d.WeightedVoteOption.encode(f, i.uint32(26).fork()).ldelim(); + return i; + }, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { proposal_id: "0", voter: "", options: [] }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.proposal_id = r(f.uint64()); + break; + case 2: + h.voter = f.string(); + break; + case 3: + h.options.push(d.WeightedVoteOption.decode(f, f.uint32())); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", voter: n(o.voter) ? String(o.voter) : "", options: Array.isArray(o == null ? void 0 : o.options) ? o.options.map((i) => d.WeightedVoteOption.fromJSON(i)) : [] }), toJSON(o) { + const i = {}; + return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.voter !== void 0 && (i.voter = o.voter), o.options ? i.options = o.options.map((f) => f ? d.WeightedVoteOption.toJSON(f) : void 0) : i.options = [], i; + }, fromPartial(o) { + var i, f, c; + const h = { proposal_id: "0", voter: "", options: [] }; + return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.voter = (f = o.voter) !== null && f !== void 0 ? f : "", h.options = ((c = o.options) === null || c === void 0 ? void 0 : c.map((p) => d.WeightedVoteOption.fromPartial(p))) || [], h; + } }, e.MsgVoteWeightedResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + for (; f.pos < c; ) { + const h = f.uint32(); + f.skipType(7 & h); + } + return {}; + }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgDeposit = { encode(o, i = t.Writer.create()) { + o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), o.depositor !== "" && i.uint32(18).string(o.depositor); + for (const f of o.amount) + s.Coin.encode(f, i.uint32(26).fork()).ldelim(); + return i; + }, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { proposal_id: "0", depositor: "", amount: [] }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.proposal_id = r(f.uint64()); + break; + case 2: + h.depositor = f.string(); + break; + case 3: + h.amount.push(s.Coin.decode(f, f.uint32())); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", depositor: n(o.depositor) ? String(o.depositor) : "", amount: Array.isArray(o == null ? void 0 : o.amount) ? o.amount.map((i) => s.Coin.fromJSON(i)) : [] }), toJSON(o) { + const i = {}; + return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.depositor !== void 0 && (i.depositor = o.depositor), o.amount ? i.amount = o.amount.map((f) => f ? s.Coin.toJSON(f) : void 0) : i.amount = [], i; + }, fromPartial(o) { + var i, f, c; + const h = { proposal_id: "0", depositor: "", amount: [] }; + return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.depositor = (f = o.depositor) !== null && f !== void 0 ? f : "", h.amount = ((c = o.amount) === null || c === void 0 ? void 0 : c.map((p) => s.Coin.fromPartial(p))) || [], h; + } }, e.MsgDepositResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + for (; f.pos < c; ) { + const h = f.uint32(); + f.skipType(7 & h); + } + return {}; + }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgClientImpl = class { + constructor(o) { + this.rpc = o, this.SubmitProposal = this.SubmitProposal.bind(this), this.Vote = this.Vote.bind(this), this.VoteWeighted = this.VoteWeighted.bind(this), this.Deposit = this.Deposit.bind(this); + } + SubmitProposal(o) { + const i = e.MsgSubmitProposal.encode(o).finish(); + return this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", i).then((f) => e.MsgSubmitProposalResponse.decode(new t.Reader(f))); + } + Vote(o) { + const i = e.MsgVote.encode(o).finish(); + return this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", i).then((f) => e.MsgVoteResponse.decode(new t.Reader(f))); + } + VoteWeighted(o) { + const i = e.MsgVoteWeighted.encode(o).finish(); + return this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", i).then((f) => e.MsgVoteWeightedResponse.decode(new t.Reader(f))); + } + Deposit(o) { + const i = e.MsgDeposit.encode(o).finish(); + return this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", i).then((f) => e.MsgDepositResponse.decode(new t.Reader(f))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 9913: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.ParamChange = e.ParameterChangeProposal = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(d) { + return d != null; + } + e.protobufPackage = "cosmos.params.v1beta1", e.ParameterChangeProposal = { encode(d, s = t.Writer.create()) { + d.title !== "" && s.uint32(10).string(d.title), d.description !== "" && s.uint32(18).string(d.description); + for (const r of d.changes) + e.ParamChange.encode(r, s.uint32(26).fork()).ldelim(); + return s; + }, decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { title: "", description: "", changes: [] }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.title = r.string(); + break; + case 2: + o.description = r.string(); + break; + case 3: + o.changes.push(e.ParamChange.decode(r, r.uint32())); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ title: u(d.title) ? String(d.title) : "", description: u(d.description) ? String(d.description) : "", changes: Array.isArray(d == null ? void 0 : d.changes) ? d.changes.map((s) => e.ParamChange.fromJSON(s)) : [] }), toJSON(d) { + const s = {}; + return d.title !== void 0 && (s.title = d.title), d.description !== void 0 && (s.description = d.description), d.changes ? s.changes = d.changes.map((r) => r ? e.ParamChange.toJSON(r) : void 0) : s.changes = [], s; + }, fromPartial(d) { + var s, r, n; + const o = { title: "", description: "", changes: [] }; + return o.title = (s = d.title) !== null && s !== void 0 ? s : "", o.description = (r = d.description) !== null && r !== void 0 ? r : "", o.changes = ((n = d.changes) === null || n === void 0 ? void 0 : n.map((i) => e.ParamChange.fromPartial(i))) || [], o; + } }, e.ParamChange = { encode: (d, s = t.Writer.create()) => (d.subspace !== "" && s.uint32(10).string(d.subspace), d.key !== "" && s.uint32(18).string(d.key), d.value !== "" && s.uint32(26).string(d.value), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { subspace: "", key: "", value: "" }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.subspace = r.string(); + break; + case 2: + o.key = r.string(); + break; + case 3: + o.value = r.string(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ subspace: u(d.subspace) ? String(d.subspace) : "", key: u(d.key) ? String(d.key) : "", value: u(d.value) ? String(d.value) : "" }), toJSON(d) { + const s = {}; + return d.subspace !== void 0 && (s.subspace = d.subspace), d.key !== void 0 && (s.key = d.key), d.value !== void 0 && (s.value = d.value), s; + }, fromPartial(d) { + var s, r, n; + const o = { subspace: "", key: "", value: "" }; + return o.subspace = (s = d.subspace) !== null && s !== void 0 ? s : "", o.key = (r = d.key) !== null && r !== void 0 ? r : "", o.value = (n = d.value) !== null && n !== void 0 ? n : "", o; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5925: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(u, d, s, r) { + r === void 0 && (r = s), Object.defineProperty(u, r, { enumerable: !0, get: function() { + return d[s]; + } }); + } : function(u, d, s, r) { + r === void 0 && (r = s), u[r] = d[s]; + }), A = this && this.__setModuleDefault || (Object.create ? function(u, d) { + Object.defineProperty(u, "default", { enumerable: !0, value: d }); + } : function(u, d) { + u.default = d; + }), k = this && this.__importStar || function(u) { + if (u && u.__esModule) + return u; + var d = {}; + if (u != null) + for (var s in u) + s !== "default" && Object.prototype.hasOwnProperty.call(u, s) && O(d, u, s); + return A(d, u), d; + }, b = this && this.__importDefault || function(u) { + return u && u.__esModule ? u : { default: u }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgUnjailResponse = e.MsgUnjail = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + e.protobufPackage = "cosmos.slashing.v1beta1", e.MsgUnjail = { encode: (u, d = t.Writer.create()) => (u.validator_addr !== "" && d.uint32(10).string(u.validator_addr), d), decode(u, d) { + const s = u instanceof t.Reader ? u : new t.Reader(u); + let r = d === void 0 ? s.len : s.pos + d; + const n = { validator_addr: "" }; + for (; s.pos < r; ) { + const o = s.uint32(); + o >>> 3 == 1 ? n.validator_addr = s.string() : s.skipType(7 & o); + } + return n; + }, fromJSON(u) { + return { validator_addr: (d = u.validator_addr, d != null ? String(u.validator_addr) : "") }; + var d; + }, toJSON(u) { + const d = {}; + return u.validator_addr !== void 0 && (d.validator_addr = u.validator_addr), d; + }, fromPartial(u) { + var d; + const s = { validator_addr: "" }; + return s.validator_addr = (d = u.validator_addr) !== null && d !== void 0 ? d : "", s; + } }, e.MsgUnjailResponse = { encode: (u, d = t.Writer.create()) => d, decode(u, d) { + const s = u instanceof t.Reader ? u : new t.Reader(u); + let r = d === void 0 ? s.len : s.pos + d; + for (; s.pos < r; ) { + const n = s.uint32(); + s.skipType(7 & n); + } + return {}; + }, fromJSON: (u) => ({}), toJSON: (u) => ({}), fromPartial: (u) => ({}) }, e.MsgClientImpl = class { + constructor(u) { + this.rpc = u, this.Unjail = this.Unjail.bind(this); + } + Unjail(u) { + const d = e.MsgUnjail.encode(u).finish(); + return this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", d).then((s) => e.MsgUnjailResponse.decode(new t.Reader(s))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 837: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(o, i, f, c) { + c === void 0 && (c = f), Object.defineProperty(o, c, { enumerable: !0, get: function() { + return i[f]; + } }); + } : function(o, i, f, c) { + c === void 0 && (c = f), o[c] = i[f]; + }), A = this && this.__setModuleDefault || (Object.create ? function(o, i) { + Object.defineProperty(o, "default", { enumerable: !0, value: i }); + } : function(o, i) { + o.default = i; + }), k = this && this.__importStar || function(o) { + if (o && o.__esModule) + return o; + var i = {}; + if (o != null) + for (var f in o) + f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && O(i, o, f); + return A(i, o), i; + }, b = this && this.__importDefault || function(o) { + return o && o.__esModule ? o : { default: o }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.StakeAuthorization_Validators = e.StakeAuthorization = e.authorizationTypeToJSON = e.authorizationTypeFromJSON = e.AuthorizationType = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + var d; + function s(o) { + switch (o) { + case 0: + case "AUTHORIZATION_TYPE_UNSPECIFIED": + return d.AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: + case "AUTHORIZATION_TYPE_DELEGATE": + return d.AUTHORIZATION_TYPE_DELEGATE; + case 2: + case "AUTHORIZATION_TYPE_UNDELEGATE": + return d.AUTHORIZATION_TYPE_UNDELEGATE; + case 3: + case "AUTHORIZATION_TYPE_REDELEGATE": + return d.AUTHORIZATION_TYPE_REDELEGATE; + default: + return d.UNRECOGNIZED; + } + } + function r(o) { + switch (o) { + case d.AUTHORIZATION_TYPE_UNSPECIFIED: + return "AUTHORIZATION_TYPE_UNSPECIFIED"; + case d.AUTHORIZATION_TYPE_DELEGATE: + return "AUTHORIZATION_TYPE_DELEGATE"; + case d.AUTHORIZATION_TYPE_UNDELEGATE: + return "AUTHORIZATION_TYPE_UNDELEGATE"; + case d.AUTHORIZATION_TYPE_REDELEGATE: + return "AUTHORIZATION_TYPE_REDELEGATE"; + default: + return "UNKNOWN"; + } + } + function n(o) { + return o != null; + } + e.protobufPackage = "cosmos.staking.v1beta1", function(o) { + o[o.AUTHORIZATION_TYPE_UNSPECIFIED = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED", o[o.AUTHORIZATION_TYPE_DELEGATE = 1] = "AUTHORIZATION_TYPE_DELEGATE", o[o.AUTHORIZATION_TYPE_UNDELEGATE = 2] = "AUTHORIZATION_TYPE_UNDELEGATE", o[o.AUTHORIZATION_TYPE_REDELEGATE = 3] = "AUTHORIZATION_TYPE_REDELEGATE", o[o.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(d = e.AuthorizationType || (e.AuthorizationType = {})), e.authorizationTypeFromJSON = s, e.authorizationTypeToJSON = r, e.StakeAuthorization = { encode: (o, i = t.Writer.create()) => (o.max_tokens !== void 0 && u.Coin.encode(o.max_tokens, i.uint32(10).fork()).ldelim(), o.allow_list !== void 0 && e.StakeAuthorization_Validators.encode(o.allow_list, i.uint32(18).fork()).ldelim(), o.deny_list !== void 0 && e.StakeAuthorization_Validators.encode(o.deny_list, i.uint32(26).fork()).ldelim(), o.authorization_type !== 0 && i.uint32(32).int32(o.authorization_type), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { max_tokens: void 0, allow_list: void 0, deny_list: void 0, authorization_type: 0 }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.max_tokens = u.Coin.decode(f, f.uint32()); + break; + case 2: + h.allow_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); + break; + case 3: + h.deny_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); + break; + case 4: + h.authorization_type = f.int32(); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ max_tokens: n(o.max_tokens) ? u.Coin.fromJSON(o.max_tokens) : void 0, allow_list: n(o.allow_list) ? e.StakeAuthorization_Validators.fromJSON(o.allow_list) : void 0, deny_list: n(o.deny_list) ? e.StakeAuthorization_Validators.fromJSON(o.deny_list) : void 0, authorization_type: n(o.authorization_type) ? s(o.authorization_type) : 0 }), toJSON(o) { + const i = {}; + return o.max_tokens !== void 0 && (i.max_tokens = o.max_tokens ? u.Coin.toJSON(o.max_tokens) : void 0), o.allow_list !== void 0 && (i.allow_list = o.allow_list ? e.StakeAuthorization_Validators.toJSON(o.allow_list) : void 0), o.deny_list !== void 0 && (i.deny_list = o.deny_list ? e.StakeAuthorization_Validators.toJSON(o.deny_list) : void 0), o.authorization_type !== void 0 && (i.authorization_type = r(o.authorization_type)), i; + }, fromPartial(o) { + var i; + const f = { max_tokens: void 0, allow_list: void 0, deny_list: void 0, authorization_type: 0 }; + return f.max_tokens = o.max_tokens !== void 0 && o.max_tokens !== null ? u.Coin.fromPartial(o.max_tokens) : void 0, f.allow_list = o.allow_list !== void 0 && o.allow_list !== null ? e.StakeAuthorization_Validators.fromPartial(o.allow_list) : void 0, f.deny_list = o.deny_list !== void 0 && o.deny_list !== null ? e.StakeAuthorization_Validators.fromPartial(o.deny_list) : void 0, f.authorization_type = (i = o.authorization_type) !== null && i !== void 0 ? i : 0, f; + } }, e.StakeAuthorization_Validators = { encode(o, i = t.Writer.create()) { + for (const f of o.address) + i.uint32(10).string(f); + return i; + }, decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { address: [] }; + for (; f.pos < c; ) { + const p = f.uint32(); + p >>> 3 == 1 ? h.address.push(f.string()) : f.skipType(7 & p); + } + return h; + }, fromJSON: (o) => ({ address: Array.isArray(o == null ? void 0 : o.address) ? o.address.map((i) => String(i)) : [] }), toJSON(o) { + const i = {}; + return o.address ? i.address = o.address.map((f) => f) : i.address = [], i; + }, fromPartial(o) { + var i; + const f = { address: [] }; + return f.address = ((i = o.address) === null || i === void 0 ? void 0 : i.map((c) => c)) || [], f; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2572: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(l, N, j, R) { + R === void 0 && (R = j), Object.defineProperty(l, R, { enumerable: !0, get: function() { + return N[j]; + } }); + } : function(l, N, j, R) { + R === void 0 && (R = j), l[R] = N[j]; + }), A = this && this.__setModuleDefault || (Object.create ? function(l, N) { + Object.defineProperty(l, "default", { enumerable: !0, value: N }); + } : function(l, N) { + l.default = N; + }), k = this && this.__importStar || function(l) { + if (l && l.__esModule) + return l; + var N = {}; + if (l != null) + for (var j in l) + j !== "default" && Object.prototype.hasOwnProperty.call(l, j) && O(N, l, j); + return A(N, l), N; + }, b = this && this.__importDefault || function(l) { + return l && l.__esModule ? l : { default: l }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Pool = e.RedelegationResponse = e.RedelegationEntryResponse = e.DelegationResponse = e.Params = e.Redelegation = e.RedelegationEntry = e.UnbondingDelegationEntry = e.UnbondingDelegation = e.Delegation = e.DVVTriplets = e.DVVTriplet = e.DVPairs = e.DVPair = e.ValAddresses = e.Validator = e.Description = e.Commission = e.CommissionRates = e.HistoricalInfo = e.bondStatusToJSON = e.bondStatusFromJSON = e.BondStatus = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(9928), d = _(5090), s = _(4191), r = _(6138), n = _(2976); + var o; + function i(l) { + switch (l) { + case 0: + case "BOND_STATUS_UNSPECIFIED": + return o.BOND_STATUS_UNSPECIFIED; + case 1: + case "BOND_STATUS_UNBONDED": + return o.BOND_STATUS_UNBONDED; + case 2: + case "BOND_STATUS_UNBONDING": + return o.BOND_STATUS_UNBONDING; + case 3: + case "BOND_STATUS_BONDED": + return o.BOND_STATUS_BONDED; + default: + return o.UNRECOGNIZED; + } + } + function f(l) { + switch (l) { + case o.BOND_STATUS_UNSPECIFIED: + return "BOND_STATUS_UNSPECIFIED"; + case o.BOND_STATUS_UNBONDED: + return "BOND_STATUS_UNBONDED"; + case o.BOND_STATUS_UNBONDING: + return "BOND_STATUS_UNBONDING"; + case o.BOND_STATUS_BONDED: + return "BOND_STATUS_BONDED"; + default: + return "UNKNOWN"; + } + } + function c(l) { + return { seconds: Math.trunc(l.getTime() / 1e3).toString(), nanos: l.getTime() % 1e3 * 1e6 }; + } + function h(l) { + let N = 1e3 * Number(l.seconds); + return N += l.nanos / 1e6, new Date(N); + } + function p(l) { + return l instanceof Date ? c(l) : typeof l == "string" ? c(new Date(l)) : d.Timestamp.fromJSON(l); + } + function m(l) { + return l.toString(); + } + function M(l) { + return l != null; + } + e.protobufPackage = "cosmos.staking.v1beta1", function(l) { + l[l.BOND_STATUS_UNSPECIFIED = 0] = "BOND_STATUS_UNSPECIFIED", l[l.BOND_STATUS_UNBONDED = 1] = "BOND_STATUS_UNBONDED", l[l.BOND_STATUS_UNBONDING = 2] = "BOND_STATUS_UNBONDING", l[l.BOND_STATUS_BONDED = 3] = "BOND_STATUS_BONDED", l[l.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(o = e.BondStatus || (e.BondStatus = {})), e.bondStatusFromJSON = i, e.bondStatusToJSON = f, e.HistoricalInfo = { encode(l, N = t.Writer.create()) { + l.header !== void 0 && u.Header.encode(l.header, N.uint32(10).fork()).ldelim(); + for (const j of l.valset) + e.Validator.encode(j, N.uint32(18).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { header: void 0, valset: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.header = u.Header.decode(j, j.uint32()); + break; + case 2: + I.valset.push(e.Validator.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ header: M(l.header) ? u.Header.fromJSON(l.header) : void 0, valset: Array.isArray(l == null ? void 0 : l.valset) ? l.valset.map((N) => e.Validator.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.header !== void 0 && (N.header = l.header ? u.Header.toJSON(l.header) : void 0), l.valset ? N.valset = l.valset.map((j) => j ? e.Validator.toJSON(j) : void 0) : N.valset = [], N; + }, fromPartial(l) { + var N; + const j = { header: void 0, valset: [] }; + return j.header = l.header !== void 0 && l.header !== null ? u.Header.fromPartial(l.header) : void 0, j.valset = ((N = l.valset) === null || N === void 0 ? void 0 : N.map((R) => e.Validator.fromPartial(R))) || [], j; + } }, e.CommissionRates = { encode: (l, N = t.Writer.create()) => (l.rate !== "" && N.uint32(10).string(l.rate), l.max_rate !== "" && N.uint32(18).string(l.max_rate), l.max_change_rate !== "" && N.uint32(26).string(l.max_change_rate), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { rate: "", max_rate: "", max_change_rate: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.rate = j.string(); + break; + case 2: + I.max_rate = j.string(); + break; + case 3: + I.max_change_rate = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ rate: M(l.rate) ? String(l.rate) : "", max_rate: M(l.max_rate) ? String(l.max_rate) : "", max_change_rate: M(l.max_change_rate) ? String(l.max_change_rate) : "" }), toJSON(l) { + const N = {}; + return l.rate !== void 0 && (N.rate = l.rate), l.max_rate !== void 0 && (N.max_rate = l.max_rate), l.max_change_rate !== void 0 && (N.max_change_rate = l.max_change_rate), N; + }, fromPartial(l) { + var N, j, R; + const I = { rate: "", max_rate: "", max_change_rate: "" }; + return I.rate = (N = l.rate) !== null && N !== void 0 ? N : "", I.max_rate = (j = l.max_rate) !== null && j !== void 0 ? j : "", I.max_change_rate = (R = l.max_change_rate) !== null && R !== void 0 ? R : "", I; + } }, e.Commission = { encode: (l, N = t.Writer.create()) => (l.commission_rates !== void 0 && e.CommissionRates.encode(l.commission_rates, N.uint32(10).fork()).ldelim(), l.update_time !== void 0 && d.Timestamp.encode(l.update_time, N.uint32(18).fork()).ldelim(), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { commission_rates: void 0, update_time: void 0 }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.commission_rates = e.CommissionRates.decode(j, j.uint32()); + break; + case 2: + I.update_time = d.Timestamp.decode(j, j.uint32()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ commission_rates: M(l.commission_rates) ? e.CommissionRates.fromJSON(l.commission_rates) : void 0, update_time: M(l.update_time) ? p(l.update_time) : void 0 }), toJSON(l) { + const N = {}; + return l.commission_rates !== void 0 && (N.commission_rates = l.commission_rates ? e.CommissionRates.toJSON(l.commission_rates) : void 0), l.update_time !== void 0 && (N.update_time = h(l.update_time).toISOString()), N; + }, fromPartial(l) { + const N = { commission_rates: void 0, update_time: void 0 }; + return N.commission_rates = l.commission_rates !== void 0 && l.commission_rates !== null ? e.CommissionRates.fromPartial(l.commission_rates) : void 0, N.update_time = l.update_time !== void 0 && l.update_time !== null ? d.Timestamp.fromPartial(l.update_time) : void 0, N; + } }, e.Description = { encode: (l, N = t.Writer.create()) => (l.moniker !== "" && N.uint32(10).string(l.moniker), l.identity !== "" && N.uint32(18).string(l.identity), l.website !== "" && N.uint32(26).string(l.website), l.security_contact !== "" && N.uint32(34).string(l.security_contact), l.details !== "" && N.uint32(42).string(l.details), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { moniker: "", identity: "", website: "", security_contact: "", details: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.moniker = j.string(); + break; + case 2: + I.identity = j.string(); + break; + case 3: + I.website = j.string(); + break; + case 4: + I.security_contact = j.string(); + break; + case 5: + I.details = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ moniker: M(l.moniker) ? String(l.moniker) : "", identity: M(l.identity) ? String(l.identity) : "", website: M(l.website) ? String(l.website) : "", security_contact: M(l.security_contact) ? String(l.security_contact) : "", details: M(l.details) ? String(l.details) : "" }), toJSON(l) { + const N = {}; + return l.moniker !== void 0 && (N.moniker = l.moniker), l.identity !== void 0 && (N.identity = l.identity), l.website !== void 0 && (N.website = l.website), l.security_contact !== void 0 && (N.security_contact = l.security_contact), l.details !== void 0 && (N.details = l.details), N; + }, fromPartial(l) { + var N, j, R, I, x; + const P = { moniker: "", identity: "", website: "", security_contact: "", details: "" }; + return P.moniker = (N = l.moniker) !== null && N !== void 0 ? N : "", P.identity = (j = l.identity) !== null && j !== void 0 ? j : "", P.website = (R = l.website) !== null && R !== void 0 ? R : "", P.security_contact = (I = l.security_contact) !== null && I !== void 0 ? I : "", P.details = (x = l.details) !== null && x !== void 0 ? x : "", P; + } }, e.Validator = { encode: (l, N = t.Writer.create()) => (l.operator_address !== "" && N.uint32(10).string(l.operator_address), l.consensus_pubkey !== void 0 && s.Any.encode(l.consensus_pubkey, N.uint32(18).fork()).ldelim(), l.jailed === !0 && N.uint32(24).bool(l.jailed), l.status !== 0 && N.uint32(32).int32(l.status), l.tokens !== "" && N.uint32(42).string(l.tokens), l.delegator_shares !== "" && N.uint32(50).string(l.delegator_shares), l.description !== void 0 && e.Description.encode(l.description, N.uint32(58).fork()).ldelim(), l.unbonding_height !== "0" && N.uint32(64).int64(l.unbonding_height), l.unbonding_time !== void 0 && d.Timestamp.encode(l.unbonding_time, N.uint32(74).fork()).ldelim(), l.commission !== void 0 && e.Commission.encode(l.commission, N.uint32(82).fork()).ldelim(), l.min_self_delegation !== "" && N.uint32(90).string(l.min_self_delegation), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { operator_address: "", consensus_pubkey: void 0, jailed: !1, status: 0, tokens: "", delegator_shares: "", description: void 0, unbonding_height: "0", unbonding_time: void 0, commission: void 0, min_self_delegation: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.operator_address = j.string(); + break; + case 2: + I.consensus_pubkey = s.Any.decode(j, j.uint32()); + break; + case 3: + I.jailed = j.bool(); + break; + case 4: + I.status = j.int32(); + break; + case 5: + I.tokens = j.string(); + break; + case 6: + I.delegator_shares = j.string(); + break; + case 7: + I.description = e.Description.decode(j, j.uint32()); + break; + case 8: + I.unbonding_height = m(j.int64()); + break; + case 9: + I.unbonding_time = d.Timestamp.decode(j, j.uint32()); + break; + case 10: + I.commission = e.Commission.decode(j, j.uint32()); + break; + case 11: + I.min_self_delegation = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ operator_address: M(l.operator_address) ? String(l.operator_address) : "", consensus_pubkey: M(l.consensus_pubkey) ? s.Any.fromJSON(l.consensus_pubkey) : void 0, jailed: !!M(l.jailed) && !!l.jailed, status: M(l.status) ? i(l.status) : 0, tokens: M(l.tokens) ? String(l.tokens) : "", delegator_shares: M(l.delegator_shares) ? String(l.delegator_shares) : "", description: M(l.description) ? e.Description.fromJSON(l.description) : void 0, unbonding_height: M(l.unbonding_height) ? String(l.unbonding_height) : "0", unbonding_time: M(l.unbonding_time) ? p(l.unbonding_time) : void 0, commission: M(l.commission) ? e.Commission.fromJSON(l.commission) : void 0, min_self_delegation: M(l.min_self_delegation) ? String(l.min_self_delegation) : "" }), toJSON(l) { + const N = {}; + return l.operator_address !== void 0 && (N.operator_address = l.operator_address), l.consensus_pubkey !== void 0 && (N.consensus_pubkey = l.consensus_pubkey ? s.Any.toJSON(l.consensus_pubkey) : void 0), l.jailed !== void 0 && (N.jailed = l.jailed), l.status !== void 0 && (N.status = f(l.status)), l.tokens !== void 0 && (N.tokens = l.tokens), l.delegator_shares !== void 0 && (N.delegator_shares = l.delegator_shares), l.description !== void 0 && (N.description = l.description ? e.Description.toJSON(l.description) : void 0), l.unbonding_height !== void 0 && (N.unbonding_height = l.unbonding_height), l.unbonding_time !== void 0 && (N.unbonding_time = h(l.unbonding_time).toISOString()), l.commission !== void 0 && (N.commission = l.commission ? e.Commission.toJSON(l.commission) : void 0), l.min_self_delegation !== void 0 && (N.min_self_delegation = l.min_self_delegation), N; + }, fromPartial(l) { + var N, j, R, I, x, P, w; + const g = { operator_address: "", consensus_pubkey: void 0, jailed: !1, status: 0, tokens: "", delegator_shares: "", description: void 0, unbonding_height: "0", unbonding_time: void 0, commission: void 0, min_self_delegation: "" }; + return g.operator_address = (N = l.operator_address) !== null && N !== void 0 ? N : "", g.consensus_pubkey = l.consensus_pubkey !== void 0 && l.consensus_pubkey !== null ? s.Any.fromPartial(l.consensus_pubkey) : void 0, g.jailed = (j = l.jailed) !== null && j !== void 0 && j, g.status = (R = l.status) !== null && R !== void 0 ? R : 0, g.tokens = (I = l.tokens) !== null && I !== void 0 ? I : "", g.delegator_shares = (x = l.delegator_shares) !== null && x !== void 0 ? x : "", g.description = l.description !== void 0 && l.description !== null ? e.Description.fromPartial(l.description) : void 0, g.unbonding_height = (P = l.unbonding_height) !== null && P !== void 0 ? P : "0", g.unbonding_time = l.unbonding_time !== void 0 && l.unbonding_time !== null ? d.Timestamp.fromPartial(l.unbonding_time) : void 0, g.commission = l.commission !== void 0 && l.commission !== null ? e.Commission.fromPartial(l.commission) : void 0, g.min_self_delegation = (w = l.min_self_delegation) !== null && w !== void 0 ? w : "", g; + } }, e.ValAddresses = { encode(l, N = t.Writer.create()) { + for (const j of l.addresses) + N.uint32(10).string(j); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { addresses: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + x >>> 3 == 1 ? I.addresses.push(j.string()) : j.skipType(7 & x); + } + return I; + }, fromJSON: (l) => ({ addresses: Array.isArray(l == null ? void 0 : l.addresses) ? l.addresses.map((N) => String(N)) : [] }), toJSON(l) { + const N = {}; + return l.addresses ? N.addresses = l.addresses.map((j) => j) : N.addresses = [], N; + }, fromPartial(l) { + var N; + const j = { addresses: [] }; + return j.addresses = ((N = l.addresses) === null || N === void 0 ? void 0 : N.map((R) => R)) || [], j; + } }, e.DVPair = { encode: (l, N = t.Writer.create()) => (l.delegator_address !== "" && N.uint32(10).string(l.delegator_address), l.validator_address !== "" && N.uint32(18).string(l.validator_address), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegator_address: "", validator_address: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegator_address = j.string(); + break; + case 2: + I.validator_address = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegator_address: M(l.delegator_address) ? String(l.delegator_address) : "", validator_address: M(l.validator_address) ? String(l.validator_address) : "" }), toJSON(l) { + const N = {}; + return l.delegator_address !== void 0 && (N.delegator_address = l.delegator_address), l.validator_address !== void 0 && (N.validator_address = l.validator_address), N; + }, fromPartial(l) { + var N, j; + const R = { delegator_address: "", validator_address: "" }; + return R.delegator_address = (N = l.delegator_address) !== null && N !== void 0 ? N : "", R.validator_address = (j = l.validator_address) !== null && j !== void 0 ? j : "", R; + } }, e.DVPairs = { encode(l, N = t.Writer.create()) { + for (const j of l.pairs) + e.DVPair.encode(j, N.uint32(10).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { pairs: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + x >>> 3 == 1 ? I.pairs.push(e.DVPair.decode(j, j.uint32())) : j.skipType(7 & x); + } + return I; + }, fromJSON: (l) => ({ pairs: Array.isArray(l == null ? void 0 : l.pairs) ? l.pairs.map((N) => e.DVPair.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.pairs ? N.pairs = l.pairs.map((j) => j ? e.DVPair.toJSON(j) : void 0) : N.pairs = [], N; + }, fromPartial(l) { + var N; + const j = { pairs: [] }; + return j.pairs = ((N = l.pairs) === null || N === void 0 ? void 0 : N.map((R) => e.DVPair.fromPartial(R))) || [], j; + } }, e.DVVTriplet = { encode: (l, N = t.Writer.create()) => (l.delegator_address !== "" && N.uint32(10).string(l.delegator_address), l.validator_src_address !== "" && N.uint32(18).string(l.validator_src_address), l.validator_dst_address !== "" && N.uint32(26).string(l.validator_dst_address), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegator_address: "", validator_src_address: "", validator_dst_address: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegator_address = j.string(); + break; + case 2: + I.validator_src_address = j.string(); + break; + case 3: + I.validator_dst_address = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegator_address: M(l.delegator_address) ? String(l.delegator_address) : "", validator_src_address: M(l.validator_src_address) ? String(l.validator_src_address) : "", validator_dst_address: M(l.validator_dst_address) ? String(l.validator_dst_address) : "" }), toJSON(l) { + const N = {}; + return l.delegator_address !== void 0 && (N.delegator_address = l.delegator_address), l.validator_src_address !== void 0 && (N.validator_src_address = l.validator_src_address), l.validator_dst_address !== void 0 && (N.validator_dst_address = l.validator_dst_address), N; + }, fromPartial(l) { + var N, j, R; + const I = { delegator_address: "", validator_src_address: "", validator_dst_address: "" }; + return I.delegator_address = (N = l.delegator_address) !== null && N !== void 0 ? N : "", I.validator_src_address = (j = l.validator_src_address) !== null && j !== void 0 ? j : "", I.validator_dst_address = (R = l.validator_dst_address) !== null && R !== void 0 ? R : "", I; + } }, e.DVVTriplets = { encode(l, N = t.Writer.create()) { + for (const j of l.triplets) + e.DVVTriplet.encode(j, N.uint32(10).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { triplets: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + x >>> 3 == 1 ? I.triplets.push(e.DVVTriplet.decode(j, j.uint32())) : j.skipType(7 & x); + } + return I; + }, fromJSON: (l) => ({ triplets: Array.isArray(l == null ? void 0 : l.triplets) ? l.triplets.map((N) => e.DVVTriplet.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.triplets ? N.triplets = l.triplets.map((j) => j ? e.DVVTriplet.toJSON(j) : void 0) : N.triplets = [], N; + }, fromPartial(l) { + var N; + const j = { triplets: [] }; + return j.triplets = ((N = l.triplets) === null || N === void 0 ? void 0 : N.map((R) => e.DVVTriplet.fromPartial(R))) || [], j; + } }, e.Delegation = { encode: (l, N = t.Writer.create()) => (l.delegator_address !== "" && N.uint32(10).string(l.delegator_address), l.validator_address !== "" && N.uint32(18).string(l.validator_address), l.shares !== "" && N.uint32(26).string(l.shares), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegator_address: "", validator_address: "", shares: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegator_address = j.string(); + break; + case 2: + I.validator_address = j.string(); + break; + case 3: + I.shares = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegator_address: M(l.delegator_address) ? String(l.delegator_address) : "", validator_address: M(l.validator_address) ? String(l.validator_address) : "", shares: M(l.shares) ? String(l.shares) : "" }), toJSON(l) { + const N = {}; + return l.delegator_address !== void 0 && (N.delegator_address = l.delegator_address), l.validator_address !== void 0 && (N.validator_address = l.validator_address), l.shares !== void 0 && (N.shares = l.shares), N; + }, fromPartial(l) { + var N, j, R; + const I = { delegator_address: "", validator_address: "", shares: "" }; + return I.delegator_address = (N = l.delegator_address) !== null && N !== void 0 ? N : "", I.validator_address = (j = l.validator_address) !== null && j !== void 0 ? j : "", I.shares = (R = l.shares) !== null && R !== void 0 ? R : "", I; + } }, e.UnbondingDelegation = { encode(l, N = t.Writer.create()) { + l.delegator_address !== "" && N.uint32(10).string(l.delegator_address), l.validator_address !== "" && N.uint32(18).string(l.validator_address); + for (const j of l.entries) + e.UnbondingDelegationEntry.encode(j, N.uint32(26).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegator_address: "", validator_address: "", entries: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegator_address = j.string(); + break; + case 2: + I.validator_address = j.string(); + break; + case 3: + I.entries.push(e.UnbondingDelegationEntry.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegator_address: M(l.delegator_address) ? String(l.delegator_address) : "", validator_address: M(l.validator_address) ? String(l.validator_address) : "", entries: Array.isArray(l == null ? void 0 : l.entries) ? l.entries.map((N) => e.UnbondingDelegationEntry.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.delegator_address !== void 0 && (N.delegator_address = l.delegator_address), l.validator_address !== void 0 && (N.validator_address = l.validator_address), l.entries ? N.entries = l.entries.map((j) => j ? e.UnbondingDelegationEntry.toJSON(j) : void 0) : N.entries = [], N; + }, fromPartial(l) { + var N, j, R; + const I = { delegator_address: "", validator_address: "", entries: [] }; + return I.delegator_address = (N = l.delegator_address) !== null && N !== void 0 ? N : "", I.validator_address = (j = l.validator_address) !== null && j !== void 0 ? j : "", I.entries = ((R = l.entries) === null || R === void 0 ? void 0 : R.map((x) => e.UnbondingDelegationEntry.fromPartial(x))) || [], I; + } }, e.UnbondingDelegationEntry = { encode: (l, N = t.Writer.create()) => (l.creation_height !== "0" && N.uint32(8).int64(l.creation_height), l.completion_time !== void 0 && d.Timestamp.encode(l.completion_time, N.uint32(18).fork()).ldelim(), l.initial_balance !== "" && N.uint32(26).string(l.initial_balance), l.balance !== "" && N.uint32(34).string(l.balance), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { creation_height: "0", completion_time: void 0, initial_balance: "", balance: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.creation_height = m(j.int64()); + break; + case 2: + I.completion_time = d.Timestamp.decode(j, j.uint32()); + break; + case 3: + I.initial_balance = j.string(); + break; + case 4: + I.balance = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ creation_height: M(l.creation_height) ? String(l.creation_height) : "0", completion_time: M(l.completion_time) ? p(l.completion_time) : void 0, initial_balance: M(l.initial_balance) ? String(l.initial_balance) : "", balance: M(l.balance) ? String(l.balance) : "" }), toJSON(l) { + const N = {}; + return l.creation_height !== void 0 && (N.creation_height = l.creation_height), l.completion_time !== void 0 && (N.completion_time = h(l.completion_time).toISOString()), l.initial_balance !== void 0 && (N.initial_balance = l.initial_balance), l.balance !== void 0 && (N.balance = l.balance), N; + }, fromPartial(l) { + var N, j, R; + const I = { creation_height: "0", completion_time: void 0, initial_balance: "", balance: "" }; + return I.creation_height = (N = l.creation_height) !== null && N !== void 0 ? N : "0", I.completion_time = l.completion_time !== void 0 && l.completion_time !== null ? d.Timestamp.fromPartial(l.completion_time) : void 0, I.initial_balance = (j = l.initial_balance) !== null && j !== void 0 ? j : "", I.balance = (R = l.balance) !== null && R !== void 0 ? R : "", I; + } }, e.RedelegationEntry = { encode: (l, N = t.Writer.create()) => (l.creation_height !== "0" && N.uint32(8).int64(l.creation_height), l.completion_time !== void 0 && d.Timestamp.encode(l.completion_time, N.uint32(18).fork()).ldelim(), l.initial_balance !== "" && N.uint32(26).string(l.initial_balance), l.shares_dst !== "" && N.uint32(34).string(l.shares_dst), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { creation_height: "0", completion_time: void 0, initial_balance: "", shares_dst: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.creation_height = m(j.int64()); + break; + case 2: + I.completion_time = d.Timestamp.decode(j, j.uint32()); + break; + case 3: + I.initial_balance = j.string(); + break; + case 4: + I.shares_dst = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ creation_height: M(l.creation_height) ? String(l.creation_height) : "0", completion_time: M(l.completion_time) ? p(l.completion_time) : void 0, initial_balance: M(l.initial_balance) ? String(l.initial_balance) : "", shares_dst: M(l.shares_dst) ? String(l.shares_dst) : "" }), toJSON(l) { + const N = {}; + return l.creation_height !== void 0 && (N.creation_height = l.creation_height), l.completion_time !== void 0 && (N.completion_time = h(l.completion_time).toISOString()), l.initial_balance !== void 0 && (N.initial_balance = l.initial_balance), l.shares_dst !== void 0 && (N.shares_dst = l.shares_dst), N; + }, fromPartial(l) { + var N, j, R; + const I = { creation_height: "0", completion_time: void 0, initial_balance: "", shares_dst: "" }; + return I.creation_height = (N = l.creation_height) !== null && N !== void 0 ? N : "0", I.completion_time = l.completion_time !== void 0 && l.completion_time !== null ? d.Timestamp.fromPartial(l.completion_time) : void 0, I.initial_balance = (j = l.initial_balance) !== null && j !== void 0 ? j : "", I.shares_dst = (R = l.shares_dst) !== null && R !== void 0 ? R : "", I; + } }, e.Redelegation = { encode(l, N = t.Writer.create()) { + l.delegator_address !== "" && N.uint32(10).string(l.delegator_address), l.validator_src_address !== "" && N.uint32(18).string(l.validator_src_address), l.validator_dst_address !== "" && N.uint32(26).string(l.validator_dst_address); + for (const j of l.entries) + e.RedelegationEntry.encode(j, N.uint32(34).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegator_address: "", validator_src_address: "", validator_dst_address: "", entries: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegator_address = j.string(); + break; + case 2: + I.validator_src_address = j.string(); + break; + case 3: + I.validator_dst_address = j.string(); + break; + case 4: + I.entries.push(e.RedelegationEntry.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegator_address: M(l.delegator_address) ? String(l.delegator_address) : "", validator_src_address: M(l.validator_src_address) ? String(l.validator_src_address) : "", validator_dst_address: M(l.validator_dst_address) ? String(l.validator_dst_address) : "", entries: Array.isArray(l == null ? void 0 : l.entries) ? l.entries.map((N) => e.RedelegationEntry.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.delegator_address !== void 0 && (N.delegator_address = l.delegator_address), l.validator_src_address !== void 0 && (N.validator_src_address = l.validator_src_address), l.validator_dst_address !== void 0 && (N.validator_dst_address = l.validator_dst_address), l.entries ? N.entries = l.entries.map((j) => j ? e.RedelegationEntry.toJSON(j) : void 0) : N.entries = [], N; + }, fromPartial(l) { + var N, j, R, I; + const x = { delegator_address: "", validator_src_address: "", validator_dst_address: "", entries: [] }; + return x.delegator_address = (N = l.delegator_address) !== null && N !== void 0 ? N : "", x.validator_src_address = (j = l.validator_src_address) !== null && j !== void 0 ? j : "", x.validator_dst_address = (R = l.validator_dst_address) !== null && R !== void 0 ? R : "", x.entries = ((I = l.entries) === null || I === void 0 ? void 0 : I.map((P) => e.RedelegationEntry.fromPartial(P))) || [], x; + } }, e.Params = { encode: (l, N = t.Writer.create()) => (l.unbonding_time !== void 0 && r.Duration.encode(l.unbonding_time, N.uint32(10).fork()).ldelim(), l.max_validators !== 0 && N.uint32(16).uint32(l.max_validators), l.max_entries !== 0 && N.uint32(24).uint32(l.max_entries), l.historical_entries !== 0 && N.uint32(32).uint32(l.historical_entries), l.bond_denom !== "" && N.uint32(42).string(l.bond_denom), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { unbonding_time: void 0, max_validators: 0, max_entries: 0, historical_entries: 0, bond_denom: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.unbonding_time = r.Duration.decode(j, j.uint32()); + break; + case 2: + I.max_validators = j.uint32(); + break; + case 3: + I.max_entries = j.uint32(); + break; + case 4: + I.historical_entries = j.uint32(); + break; + case 5: + I.bond_denom = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ unbonding_time: M(l.unbonding_time) ? r.Duration.fromJSON(l.unbonding_time) : void 0, max_validators: M(l.max_validators) ? Number(l.max_validators) : 0, max_entries: M(l.max_entries) ? Number(l.max_entries) : 0, historical_entries: M(l.historical_entries) ? Number(l.historical_entries) : 0, bond_denom: M(l.bond_denom) ? String(l.bond_denom) : "" }), toJSON(l) { + const N = {}; + return l.unbonding_time !== void 0 && (N.unbonding_time = l.unbonding_time ? r.Duration.toJSON(l.unbonding_time) : void 0), l.max_validators !== void 0 && (N.max_validators = Math.round(l.max_validators)), l.max_entries !== void 0 && (N.max_entries = Math.round(l.max_entries)), l.historical_entries !== void 0 && (N.historical_entries = Math.round(l.historical_entries)), l.bond_denom !== void 0 && (N.bond_denom = l.bond_denom), N; + }, fromPartial(l) { + var N, j, R, I; + const x = { unbonding_time: void 0, max_validators: 0, max_entries: 0, historical_entries: 0, bond_denom: "" }; + return x.unbonding_time = l.unbonding_time !== void 0 && l.unbonding_time !== null ? r.Duration.fromPartial(l.unbonding_time) : void 0, x.max_validators = (N = l.max_validators) !== null && N !== void 0 ? N : 0, x.max_entries = (j = l.max_entries) !== null && j !== void 0 ? j : 0, x.historical_entries = (R = l.historical_entries) !== null && R !== void 0 ? R : 0, x.bond_denom = (I = l.bond_denom) !== null && I !== void 0 ? I : "", x; + } }, e.DelegationResponse = { encode: (l, N = t.Writer.create()) => (l.delegation !== void 0 && e.Delegation.encode(l.delegation, N.uint32(10).fork()).ldelim(), l.balance !== void 0 && n.Coin.encode(l.balance, N.uint32(18).fork()).ldelim(), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { delegation: void 0, balance: void 0 }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.delegation = e.Delegation.decode(j, j.uint32()); + break; + case 2: + I.balance = n.Coin.decode(j, j.uint32()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ delegation: M(l.delegation) ? e.Delegation.fromJSON(l.delegation) : void 0, balance: M(l.balance) ? n.Coin.fromJSON(l.balance) : void 0 }), toJSON(l) { + const N = {}; + return l.delegation !== void 0 && (N.delegation = l.delegation ? e.Delegation.toJSON(l.delegation) : void 0), l.balance !== void 0 && (N.balance = l.balance ? n.Coin.toJSON(l.balance) : void 0), N; + }, fromPartial(l) { + const N = { delegation: void 0, balance: void 0 }; + return N.delegation = l.delegation !== void 0 && l.delegation !== null ? e.Delegation.fromPartial(l.delegation) : void 0, N.balance = l.balance !== void 0 && l.balance !== null ? n.Coin.fromPartial(l.balance) : void 0, N; + } }, e.RedelegationEntryResponse = { encode: (l, N = t.Writer.create()) => (l.redelegation_entry !== void 0 && e.RedelegationEntry.encode(l.redelegation_entry, N.uint32(10).fork()).ldelim(), l.balance !== "" && N.uint32(34).string(l.balance), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { redelegation_entry: void 0, balance: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.redelegation_entry = e.RedelegationEntry.decode(j, j.uint32()); + break; + case 4: + I.balance = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ redelegation_entry: M(l.redelegation_entry) ? e.RedelegationEntry.fromJSON(l.redelegation_entry) : void 0, balance: M(l.balance) ? String(l.balance) : "" }), toJSON(l) { + const N = {}; + return l.redelegation_entry !== void 0 && (N.redelegation_entry = l.redelegation_entry ? e.RedelegationEntry.toJSON(l.redelegation_entry) : void 0), l.balance !== void 0 && (N.balance = l.balance), N; + }, fromPartial(l) { + var N; + const j = { redelegation_entry: void 0, balance: "" }; + return j.redelegation_entry = l.redelegation_entry !== void 0 && l.redelegation_entry !== null ? e.RedelegationEntry.fromPartial(l.redelegation_entry) : void 0, j.balance = (N = l.balance) !== null && N !== void 0 ? N : "", j; + } }, e.RedelegationResponse = { encode(l, N = t.Writer.create()) { + l.redelegation !== void 0 && e.Redelegation.encode(l.redelegation, N.uint32(10).fork()).ldelim(); + for (const j of l.entries) + e.RedelegationEntryResponse.encode(j, N.uint32(18).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { redelegation: void 0, entries: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.redelegation = e.Redelegation.decode(j, j.uint32()); + break; + case 2: + I.entries.push(e.RedelegationEntryResponse.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ redelegation: M(l.redelegation) ? e.Redelegation.fromJSON(l.redelegation) : void 0, entries: Array.isArray(l == null ? void 0 : l.entries) ? l.entries.map((N) => e.RedelegationEntryResponse.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.redelegation !== void 0 && (N.redelegation = l.redelegation ? e.Redelegation.toJSON(l.redelegation) : void 0), l.entries ? N.entries = l.entries.map((j) => j ? e.RedelegationEntryResponse.toJSON(j) : void 0) : N.entries = [], N; + }, fromPartial(l) { + var N; + const j = { redelegation: void 0, entries: [] }; + return j.redelegation = l.redelegation !== void 0 && l.redelegation !== null ? e.Redelegation.fromPartial(l.redelegation) : void 0, j.entries = ((N = l.entries) === null || N === void 0 ? void 0 : N.map((R) => e.RedelegationEntryResponse.fromPartial(R))) || [], j; + } }, e.Pool = { encode: (l, N = t.Writer.create()) => (l.not_bonded_tokens !== "" && N.uint32(10).string(l.not_bonded_tokens), l.bonded_tokens !== "" && N.uint32(18).string(l.bonded_tokens), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { not_bonded_tokens: "", bonded_tokens: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.not_bonded_tokens = j.string(); + break; + case 2: + I.bonded_tokens = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ not_bonded_tokens: M(l.not_bonded_tokens) ? String(l.not_bonded_tokens) : "", bonded_tokens: M(l.bonded_tokens) ? String(l.bonded_tokens) : "" }), toJSON(l) { + const N = {}; + return l.not_bonded_tokens !== void 0 && (N.not_bonded_tokens = l.not_bonded_tokens), l.bonded_tokens !== void 0 && (N.bonded_tokens = l.bonded_tokens), N; + }, fromPartial(l) { + var N, j; + const R = { not_bonded_tokens: "", bonded_tokens: "" }; + return R.not_bonded_tokens = (N = l.not_bonded_tokens) !== null && N !== void 0 ? N : "", R.bonded_tokens = (j = l.bonded_tokens) !== null && j !== void 0 ? j : "", R; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 7704: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgUndelegateResponse = e.MsgUndelegate = e.MsgBeginRedelegateResponse = e.MsgBeginRedelegate = e.MsgDelegateResponse = e.MsgDelegate = e.MsgEditValidatorResponse = e.MsgEditValidator = e.MsgCreateValidatorResponse = e.MsgCreateValidator = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2572), d = _(4191), s = _(2976), r = _(5090); + function n(c) { + return { seconds: Math.trunc(c.getTime() / 1e3).toString(), nanos: c.getTime() % 1e3 * 1e6 }; + } + function o(c) { + let h = 1e3 * Number(c.seconds); + return h += c.nanos / 1e6, new Date(h); + } + function i(c) { + return c instanceof Date ? n(c) : typeof c == "string" ? n(new Date(c)) : r.Timestamp.fromJSON(c); + } + function f(c) { + return c != null; + } + e.protobufPackage = "cosmos.staking.v1beta1", e.MsgCreateValidator = { encode: (c, h = t.Writer.create()) => (c.description !== void 0 && u.Description.encode(c.description, h.uint32(10).fork()).ldelim(), c.commission !== void 0 && u.CommissionRates.encode(c.commission, h.uint32(18).fork()).ldelim(), c.min_self_delegation !== "" && h.uint32(26).string(c.min_self_delegation), c.delegator_address !== "" && h.uint32(34).string(c.delegator_address), c.validator_address !== "" && h.uint32(42).string(c.validator_address), c.pubkey !== void 0 && d.Any.encode(c.pubkey, h.uint32(50).fork()).ldelim(), c.value !== void 0 && s.Coin.encode(c.value, h.uint32(58).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { description: void 0, commission: void 0, min_self_delegation: "", delegator_address: "", validator_address: "", pubkey: void 0, value: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.description = u.Description.decode(p, p.uint32()); + break; + case 2: + M.commission = u.CommissionRates.decode(p, p.uint32()); + break; + case 3: + M.min_self_delegation = p.string(); + break; + case 4: + M.delegator_address = p.string(); + break; + case 5: + M.validator_address = p.string(); + break; + case 6: + M.pubkey = d.Any.decode(p, p.uint32()); + break; + case 7: + M.value = s.Coin.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ description: f(c.description) ? u.Description.fromJSON(c.description) : void 0, commission: f(c.commission) ? u.CommissionRates.fromJSON(c.commission) : void 0, min_self_delegation: f(c.min_self_delegation) ? String(c.min_self_delegation) : "", delegator_address: f(c.delegator_address) ? String(c.delegator_address) : "", validator_address: f(c.validator_address) ? String(c.validator_address) : "", pubkey: f(c.pubkey) ? d.Any.fromJSON(c.pubkey) : void 0, value: f(c.value) ? s.Coin.fromJSON(c.value) : void 0 }), toJSON(c) { + const h = {}; + return c.description !== void 0 && (h.description = c.description ? u.Description.toJSON(c.description) : void 0), c.commission !== void 0 && (h.commission = c.commission ? u.CommissionRates.toJSON(c.commission) : void 0), c.min_self_delegation !== void 0 && (h.min_self_delegation = c.min_self_delegation), c.delegator_address !== void 0 && (h.delegator_address = c.delegator_address), c.validator_address !== void 0 && (h.validator_address = c.validator_address), c.pubkey !== void 0 && (h.pubkey = c.pubkey ? d.Any.toJSON(c.pubkey) : void 0), c.value !== void 0 && (h.value = c.value ? s.Coin.toJSON(c.value) : void 0), h; + }, fromPartial(c) { + var h, p, m; + const M = { description: void 0, commission: void 0, min_self_delegation: "", delegator_address: "", validator_address: "", pubkey: void 0, value: void 0 }; + return M.description = c.description !== void 0 && c.description !== null ? u.Description.fromPartial(c.description) : void 0, M.commission = c.commission !== void 0 && c.commission !== null ? u.CommissionRates.fromPartial(c.commission) : void 0, M.min_self_delegation = (h = c.min_self_delegation) !== null && h !== void 0 ? h : "", M.delegator_address = (p = c.delegator_address) !== null && p !== void 0 ? p : "", M.validator_address = (m = c.validator_address) !== null && m !== void 0 ? m : "", M.pubkey = c.pubkey !== void 0 && c.pubkey !== null ? d.Any.fromPartial(c.pubkey) : void 0, M.value = c.value !== void 0 && c.value !== null ? s.Coin.fromPartial(c.value) : void 0, M; + } }, e.MsgCreateValidatorResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgEditValidator = { encode: (c, h = t.Writer.create()) => (c.description !== void 0 && u.Description.encode(c.description, h.uint32(10).fork()).ldelim(), c.validator_address !== "" && h.uint32(18).string(c.validator_address), c.commission_rate !== "" && h.uint32(26).string(c.commission_rate), c.min_self_delegation !== "" && h.uint32(34).string(c.min_self_delegation), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { description: void 0, validator_address: "", commission_rate: "", min_self_delegation: "" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.description = u.Description.decode(p, p.uint32()); + break; + case 2: + M.validator_address = p.string(); + break; + case 3: + M.commission_rate = p.string(); + break; + case 4: + M.min_self_delegation = p.string(); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ description: f(c.description) ? u.Description.fromJSON(c.description) : void 0, validator_address: f(c.validator_address) ? String(c.validator_address) : "", commission_rate: f(c.commission_rate) ? String(c.commission_rate) : "", min_self_delegation: f(c.min_self_delegation) ? String(c.min_self_delegation) : "" }), toJSON(c) { + const h = {}; + return c.description !== void 0 && (h.description = c.description ? u.Description.toJSON(c.description) : void 0), c.validator_address !== void 0 && (h.validator_address = c.validator_address), c.commission_rate !== void 0 && (h.commission_rate = c.commission_rate), c.min_self_delegation !== void 0 && (h.min_self_delegation = c.min_self_delegation), h; + }, fromPartial(c) { + var h, p, m; + const M = { description: void 0, validator_address: "", commission_rate: "", min_self_delegation: "" }; + return M.description = c.description !== void 0 && c.description !== null ? u.Description.fromPartial(c.description) : void 0, M.validator_address = (h = c.validator_address) !== null && h !== void 0 ? h : "", M.commission_rate = (p = c.commission_rate) !== null && p !== void 0 ? p : "", M.min_self_delegation = (m = c.min_self_delegation) !== null && m !== void 0 ? m : "", M; + } }, e.MsgEditValidatorResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgDelegate = { encode: (c, h = t.Writer.create()) => (c.delegator_address !== "" && h.uint32(10).string(c.delegator_address), c.validator_address !== "" && h.uint32(18).string(c.validator_address), c.amount !== void 0 && s.Coin.encode(c.amount, h.uint32(26).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { delegator_address: "", validator_address: "", amount: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.delegator_address = p.string(); + break; + case 2: + M.validator_address = p.string(); + break; + case 3: + M.amount = s.Coin.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ delegator_address: f(c.delegator_address) ? String(c.delegator_address) : "", validator_address: f(c.validator_address) ? String(c.validator_address) : "", amount: f(c.amount) ? s.Coin.fromJSON(c.amount) : void 0 }), toJSON(c) { + const h = {}; + return c.delegator_address !== void 0 && (h.delegator_address = c.delegator_address), c.validator_address !== void 0 && (h.validator_address = c.validator_address), c.amount !== void 0 && (h.amount = c.amount ? s.Coin.toJSON(c.amount) : void 0), h; + }, fromPartial(c) { + var h, p; + const m = { delegator_address: "", validator_address: "", amount: void 0 }; + return m.delegator_address = (h = c.delegator_address) !== null && h !== void 0 ? h : "", m.validator_address = (p = c.validator_address) !== null && p !== void 0 ? p : "", m.amount = c.amount !== void 0 && c.amount !== null ? s.Coin.fromPartial(c.amount) : void 0, m; + } }, e.MsgDelegateResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgBeginRedelegate = { encode: (c, h = t.Writer.create()) => (c.delegator_address !== "" && h.uint32(10).string(c.delegator_address), c.validator_src_address !== "" && h.uint32(18).string(c.validator_src_address), c.validator_dst_address !== "" && h.uint32(26).string(c.validator_dst_address), c.amount !== void 0 && s.Coin.encode(c.amount, h.uint32(34).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { delegator_address: "", validator_src_address: "", validator_dst_address: "", amount: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.delegator_address = p.string(); + break; + case 2: + M.validator_src_address = p.string(); + break; + case 3: + M.validator_dst_address = p.string(); + break; + case 4: + M.amount = s.Coin.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ delegator_address: f(c.delegator_address) ? String(c.delegator_address) : "", validator_src_address: f(c.validator_src_address) ? String(c.validator_src_address) : "", validator_dst_address: f(c.validator_dst_address) ? String(c.validator_dst_address) : "", amount: f(c.amount) ? s.Coin.fromJSON(c.amount) : void 0 }), toJSON(c) { + const h = {}; + return c.delegator_address !== void 0 && (h.delegator_address = c.delegator_address), c.validator_src_address !== void 0 && (h.validator_src_address = c.validator_src_address), c.validator_dst_address !== void 0 && (h.validator_dst_address = c.validator_dst_address), c.amount !== void 0 && (h.amount = c.amount ? s.Coin.toJSON(c.amount) : void 0), h; + }, fromPartial(c) { + var h, p, m; + const M = { delegator_address: "", validator_src_address: "", validator_dst_address: "", amount: void 0 }; + return M.delegator_address = (h = c.delegator_address) !== null && h !== void 0 ? h : "", M.validator_src_address = (p = c.validator_src_address) !== null && p !== void 0 ? p : "", M.validator_dst_address = (m = c.validator_dst_address) !== null && m !== void 0 ? m : "", M.amount = c.amount !== void 0 && c.amount !== null ? s.Coin.fromPartial(c.amount) : void 0, M; + } }, e.MsgBeginRedelegateResponse = { encode: (c, h = t.Writer.create()) => (c.completion_time !== void 0 && r.Timestamp.encode(c.completion_time, h.uint32(10).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { completion_time: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.completion_time = r.Timestamp.decode(p, p.uint32()) : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ completion_time: f(c.completion_time) ? i(c.completion_time) : void 0 }), toJSON(c) { + const h = {}; + return c.completion_time !== void 0 && (h.completion_time = o(c.completion_time).toISOString()), h; + }, fromPartial(c) { + const h = { completion_time: void 0 }; + return h.completion_time = c.completion_time !== void 0 && c.completion_time !== null ? r.Timestamp.fromPartial(c.completion_time) : void 0, h; + } }, e.MsgUndelegate = { encode: (c, h = t.Writer.create()) => (c.delegator_address !== "" && h.uint32(10).string(c.delegator_address), c.validator_address !== "" && h.uint32(18).string(c.validator_address), c.amount !== void 0 && s.Coin.encode(c.amount, h.uint32(26).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { delegator_address: "", validator_address: "", amount: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.delegator_address = p.string(); + break; + case 2: + M.validator_address = p.string(); + break; + case 3: + M.amount = s.Coin.decode(p, p.uint32()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ delegator_address: f(c.delegator_address) ? String(c.delegator_address) : "", validator_address: f(c.validator_address) ? String(c.validator_address) : "", amount: f(c.amount) ? s.Coin.fromJSON(c.amount) : void 0 }), toJSON(c) { + const h = {}; + return c.delegator_address !== void 0 && (h.delegator_address = c.delegator_address), c.validator_address !== void 0 && (h.validator_address = c.validator_address), c.amount !== void 0 && (h.amount = c.amount ? s.Coin.toJSON(c.amount) : void 0), h; + }, fromPartial(c) { + var h, p; + const m = { delegator_address: "", validator_address: "", amount: void 0 }; + return m.delegator_address = (h = c.delegator_address) !== null && h !== void 0 ? h : "", m.validator_address = (p = c.validator_address) !== null && p !== void 0 ? p : "", m.amount = c.amount !== void 0 && c.amount !== null ? s.Coin.fromPartial(c.amount) : void 0, m; + } }, e.MsgUndelegateResponse = { encode: (c, h = t.Writer.create()) => (c.completion_time !== void 0 && r.Timestamp.encode(c.completion_time, h.uint32(10).fork()).ldelim(), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { completion_time: void 0 }; + for (; p.pos < m; ) { + const l = p.uint32(); + l >>> 3 == 1 ? M.completion_time = r.Timestamp.decode(p, p.uint32()) : p.skipType(7 & l); + } + return M; + }, fromJSON: (c) => ({ completion_time: f(c.completion_time) ? i(c.completion_time) : void 0 }), toJSON(c) { + const h = {}; + return c.completion_time !== void 0 && (h.completion_time = o(c.completion_time).toISOString()), h; + }, fromPartial(c) { + const h = { completion_time: void 0 }; + return h.completion_time = c.completion_time !== void 0 && c.completion_time !== null ? r.Timestamp.fromPartial(c.completion_time) : void 0, h; + } }, e.MsgClientImpl = class { + constructor(c) { + this.rpc = c, this.CreateValidator = this.CreateValidator.bind(this), this.EditValidator = this.EditValidator.bind(this), this.Delegate = this.Delegate.bind(this), this.BeginRedelegate = this.BeginRedelegate.bind(this), this.Undelegate = this.Undelegate.bind(this); + } + CreateValidator(c) { + const h = e.MsgCreateValidator.encode(c).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", h).then((p) => e.MsgCreateValidatorResponse.decode(new t.Reader(p))); + } + EditValidator(c) { + const h = e.MsgEditValidator.encode(c).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", h).then((p) => e.MsgEditValidatorResponse.decode(new t.Reader(p))); + } + Delegate(c) { + const h = e.MsgDelegate.encode(c).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", h).then((p) => e.MsgDelegateResponse.decode(new t.Reader(p))); + } + BeginRedelegate(c) { + const h = e.MsgBeginRedelegate.encode(c).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", h).then((p) => e.MsgBeginRedelegateResponse.decode(new t.Reader(p))); + } + Undelegate(c) { + const h = e.MsgUndelegate.encode(c).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", h).then((p) => e.MsgUndelegateResponse.decode(new t.Reader(p))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 8502: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(m, M, l, N) { + N === void 0 && (N = l), Object.defineProperty(m, N, { enumerable: !0, get: function() { + return M[l]; + } }); + } : function(m, M, l, N) { + N === void 0 && (N = l), m[N] = M[l]; + }), A = this && this.__setModuleDefault || (Object.create ? function(m, M) { + Object.defineProperty(m, "default", { enumerable: !0, value: M }); + } : function(m, M) { + m.default = M; + }), k = this && this.__importStar || function(m) { + if (m && m.__esModule) + return m; + var M = {}; + if (m != null) + for (var l in m) + l !== "default" && Object.prototype.hasOwnProperty.call(m, l) && O(M, m, l); + return A(M, m), M; + }, b = this && this.__importDefault || function(m) { + return m && m.__esModule ? m : { default: m }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.SignatureDescriptor_Data_Multi = e.SignatureDescriptor_Data_Single = e.SignatureDescriptor_Data = e.SignatureDescriptor = e.SignatureDescriptors = e.signModeToJSON = e.signModeFromJSON = e.SignMode = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(4271); + var s; + function r(m) { + switch (m) { + case 0: + case "SIGN_MODE_UNSPECIFIED": + return s.SIGN_MODE_UNSPECIFIED; + case 1: + case "SIGN_MODE_DIRECT": + return s.SIGN_MODE_DIRECT; + case 2: + case "SIGN_MODE_TEXTUAL": + return s.SIGN_MODE_TEXTUAL; + case 127: + case "SIGN_MODE_LEGACY_AMINO_JSON": + return s.SIGN_MODE_LEGACY_AMINO_JSON; + case 191: + case "SIGN_MODE_EIP_191": + return s.SIGN_MODE_EIP_191; + default: + return s.UNRECOGNIZED; + } + } + function n(m) { + switch (m) { + case s.SIGN_MODE_UNSPECIFIED: + return "SIGN_MODE_UNSPECIFIED"; + case s.SIGN_MODE_DIRECT: + return "SIGN_MODE_DIRECT"; + case s.SIGN_MODE_TEXTUAL: + return "SIGN_MODE_TEXTUAL"; + case s.SIGN_MODE_LEGACY_AMINO_JSON: + return "SIGN_MODE_LEGACY_AMINO_JSON"; + case s.SIGN_MODE_EIP_191: + return "SIGN_MODE_EIP_191"; + default: + return "UNKNOWN"; + } + } + function o() { + return { mode: 0, signature: new Uint8Array() }; + } + e.protobufPackage = "cosmos.tx.signing.v1beta1", function(m) { + m[m.SIGN_MODE_UNSPECIFIED = 0] = "SIGN_MODE_UNSPECIFIED", m[m.SIGN_MODE_DIRECT = 1] = "SIGN_MODE_DIRECT", m[m.SIGN_MODE_TEXTUAL = 2] = "SIGN_MODE_TEXTUAL", m[m.SIGN_MODE_LEGACY_AMINO_JSON = 127] = "SIGN_MODE_LEGACY_AMINO_JSON", m[m.SIGN_MODE_EIP_191 = 191] = "SIGN_MODE_EIP_191", m[m.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(s = e.SignMode || (e.SignMode = {})), e.signModeFromJSON = r, e.signModeToJSON = n, e.SignatureDescriptors = { encode(m, M = t.Writer.create()) { + for (const l of m.signatures) + e.SignatureDescriptor.encode(l, M.uint32(10).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { signatures: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + R >>> 3 == 1 ? j.signatures.push(e.SignatureDescriptor.decode(l, l.uint32())) : l.skipType(7 & R); + } + return j; + }, fromJSON: (m) => ({ signatures: Array.isArray(m == null ? void 0 : m.signatures) ? m.signatures.map((M) => e.SignatureDescriptor.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.signatures ? M.signatures = m.signatures.map((l) => l ? e.SignatureDescriptor.toJSON(l) : void 0) : M.signatures = [], M; + }, fromPartial(m) { + var M; + const l = { signatures: [] }; + return l.signatures = ((M = m.signatures) === null || M === void 0 ? void 0 : M.map((N) => e.SignatureDescriptor.fromPartial(N))) || [], l; + } }, e.SignatureDescriptor = { encode: (m, M = t.Writer.create()) => (m.public_key !== void 0 && u.Any.encode(m.public_key, M.uint32(10).fork()).ldelim(), m.data !== void 0 && e.SignatureDescriptor_Data.encode(m.data, M.uint32(18).fork()).ldelim(), m.sequence !== "0" && M.uint32(24).uint64(m.sequence), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { public_key: void 0, data: void 0, sequence: "0" }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.public_key = u.Any.decode(l, l.uint32()); + break; + case 2: + j.data = e.SignatureDescriptor_Data.decode(l, l.uint32()); + break; + case 3: + j.sequence = l.uint64().toString(); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ public_key: p(m.public_key) ? u.Any.fromJSON(m.public_key) : void 0, data: p(m.data) ? e.SignatureDescriptor_Data.fromJSON(m.data) : void 0, sequence: p(m.sequence) ? String(m.sequence) : "0" }), toJSON(m) { + const M = {}; + return m.public_key !== void 0 && (M.public_key = m.public_key ? u.Any.toJSON(m.public_key) : void 0), m.data !== void 0 && (M.data = m.data ? e.SignatureDescriptor_Data.toJSON(m.data) : void 0), m.sequence !== void 0 && (M.sequence = m.sequence), M; + }, fromPartial(m) { + var M; + const l = { public_key: void 0, data: void 0, sequence: "0" }; + return l.public_key = m.public_key !== void 0 && m.public_key !== null ? u.Any.fromPartial(m.public_key) : void 0, l.data = m.data !== void 0 && m.data !== null ? e.SignatureDescriptor_Data.fromPartial(m.data) : void 0, l.sequence = (M = m.sequence) !== null && M !== void 0 ? M : "0", l; + } }, e.SignatureDescriptor_Data = { encode: (m, M = t.Writer.create()) => (m.single !== void 0 && e.SignatureDescriptor_Data_Single.encode(m.single, M.uint32(10).fork()).ldelim(), m.multi !== void 0 && e.SignatureDescriptor_Data_Multi.encode(m.multi, M.uint32(18).fork()).ldelim(), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { single: void 0, multi: void 0 }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.single = e.SignatureDescriptor_Data_Single.decode(l, l.uint32()); + break; + case 2: + j.multi = e.SignatureDescriptor_Data_Multi.decode(l, l.uint32()); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ single: p(m.single) ? e.SignatureDescriptor_Data_Single.fromJSON(m.single) : void 0, multi: p(m.multi) ? e.SignatureDescriptor_Data_Multi.fromJSON(m.multi) : void 0 }), toJSON(m) { + const M = {}; + return m.single !== void 0 && (M.single = m.single ? e.SignatureDescriptor_Data_Single.toJSON(m.single) : void 0), m.multi !== void 0 && (M.multi = m.multi ? e.SignatureDescriptor_Data_Multi.toJSON(m.multi) : void 0), M; + }, fromPartial(m) { + const M = { single: void 0, multi: void 0 }; + return M.single = m.single !== void 0 && m.single !== null ? e.SignatureDescriptor_Data_Single.fromPartial(m.single) : void 0, M.multi = m.multi !== void 0 && m.multi !== null ? e.SignatureDescriptor_Data_Multi.fromPartial(m.multi) : void 0, M; + } }, e.SignatureDescriptor_Data_Single = { encode: (m, M = t.Writer.create()) => (m.mode !== 0 && M.uint32(8).int32(m.mode), m.signature.length !== 0 && M.uint32(18).bytes(m.signature), M), decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = o(); + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.mode = l.int32(); + break; + case 2: + j.signature = l.bytes(); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ mode: p(m.mode) ? r(m.mode) : 0, signature: p(m.signature) ? c(m.signature) : new Uint8Array() }), toJSON(m) { + const M = {}; + return m.mode !== void 0 && (M.mode = n(m.mode)), m.signature !== void 0 && (M.signature = function(l) { + const N = []; + for (const j of l) + N.push(String.fromCharCode(j)); + return h(N.join("")); + }(m.signature !== void 0 ? m.signature : new Uint8Array())), M; + }, fromPartial(m) { + var M, l; + const N = o(); + return N.mode = (M = m.mode) !== null && M !== void 0 ? M : 0, N.signature = (l = m.signature) !== null && l !== void 0 ? l : new Uint8Array(), N; + } }, e.SignatureDescriptor_Data_Multi = { encode(m, M = t.Writer.create()) { + m.bitarray !== void 0 && d.CompactBitArray.encode(m.bitarray, M.uint32(10).fork()).ldelim(); + for (const l of m.signatures) + e.SignatureDescriptor_Data.encode(l, M.uint32(18).fork()).ldelim(); + return M; + }, decode(m, M) { + const l = m instanceof t.Reader ? m : new t.Reader(m); + let N = M === void 0 ? l.len : l.pos + M; + const j = { bitarray: void 0, signatures: [] }; + for (; l.pos < N; ) { + const R = l.uint32(); + switch (R >>> 3) { + case 1: + j.bitarray = d.CompactBitArray.decode(l, l.uint32()); + break; + case 2: + j.signatures.push(e.SignatureDescriptor_Data.decode(l, l.uint32())); + break; + default: + l.skipType(7 & R); + } + } + return j; + }, fromJSON: (m) => ({ bitarray: p(m.bitarray) ? d.CompactBitArray.fromJSON(m.bitarray) : void 0, signatures: Array.isArray(m == null ? void 0 : m.signatures) ? m.signatures.map((M) => e.SignatureDescriptor_Data.fromJSON(M)) : [] }), toJSON(m) { + const M = {}; + return m.bitarray !== void 0 && (M.bitarray = m.bitarray ? d.CompactBitArray.toJSON(m.bitarray) : void 0), m.signatures ? M.signatures = m.signatures.map((l) => l ? e.SignatureDescriptor_Data.toJSON(l) : void 0) : M.signatures = [], M; + }, fromPartial(m) { + var M; + const l = { bitarray: void 0, signatures: [] }; + return l.bitarray = m.bitarray !== void 0 && m.bitarray !== null ? d.CompactBitArray.fromPartial(m.bitarray) : void 0, l.signatures = ((M = m.signatures) === null || M === void 0 ? void 0 : M.map((N) => e.SignatureDescriptor_Data.fromPartial(N))) || [], l; + } }; + var i = (() => { + if (i !== void 0) + return i; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const f = i.atob || ((m) => i.Buffer.from(m, "base64").toString("binary")); + function c(m) { + const M = f(m), l = new Uint8Array(M.length); + for (let N = 0; N < M.length; ++N) + l[N] = M.charCodeAt(N); + return l; + } + const h = i.btoa || ((m) => i.Buffer.from(m, "binary").toString("base64")); + function p(m) { + return m != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6994: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(l, N, j, R) { + R === void 0 && (R = j), Object.defineProperty(l, R, { enumerable: !0, get: function() { + return N[j]; + } }); + } : function(l, N, j, R) { + R === void 0 && (R = j), l[R] = N[j]; + }), A = this && this.__setModuleDefault || (Object.create ? function(l, N) { + Object.defineProperty(l, "default", { enumerable: !0, value: N }); + } : function(l, N) { + l.default = N; + }), k = this && this.__importStar || function(l) { + if (l && l.__esModule) + return l; + var N = {}; + if (l != null) + for (var j in l) + j !== "default" && Object.prototype.hasOwnProperty.call(l, j) && O(N, l, j); + return A(N, l), N; + }, b = this && this.__importDefault || function(l) { + return l && l.__esModule ? l : { default: l }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Fee = e.ModeInfo_Multi = e.ModeInfo_Single = e.ModeInfo = e.SignerInfo = e.AuthInfo = e.TxBody = e.SignDoc = e.TxRaw = e.Tx = e.Txs = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(8502), s = _(4271), r = _(2976); + function n() { + return { body_bytes: new Uint8Array(), auth_info_bytes: new Uint8Array(), signatures: [] }; + } + function o() { + return { body_bytes: new Uint8Array(), auth_info_bytes: new Uint8Array(), chain_id: "", account_number: "0" }; + } + e.protobufPackage = "cosmos.tx.v1beta1", e.Txs = { encode(l, N = t.Writer.create()) { + for (const j of l.tx) + N.uint32(10).bytes(j); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { tx: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + x >>> 3 == 1 ? I.tx.push(j.bytes()) : j.skipType(7 & x); + } + return I; + }, fromJSON: (l) => ({ tx: Array.isArray(l == null ? void 0 : l.tx) ? l.tx.map((N) => c(N)) : [] }), toJSON(l) { + const N = {}; + return l.tx ? N.tx = l.tx.map((j) => p(j !== void 0 ? j : new Uint8Array())) : N.tx = [], N; + }, fromPartial(l) { + var N; + const j = { tx: [] }; + return j.tx = ((N = l.tx) === null || N === void 0 ? void 0 : N.map((R) => R)) || [], j; + } }, e.Tx = { encode(l, N = t.Writer.create()) { + l.body !== void 0 && e.TxBody.encode(l.body, N.uint32(10).fork()).ldelim(), l.auth_info !== void 0 && e.AuthInfo.encode(l.auth_info, N.uint32(18).fork()).ldelim(); + for (const j of l.signatures) + N.uint32(26).bytes(j); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { body: void 0, auth_info: void 0, signatures: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.body = e.TxBody.decode(j, j.uint32()); + break; + case 2: + I.auth_info = e.AuthInfo.decode(j, j.uint32()); + break; + case 3: + I.signatures.push(j.bytes()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ body: M(l.body) ? e.TxBody.fromJSON(l.body) : void 0, auth_info: M(l.auth_info) ? e.AuthInfo.fromJSON(l.auth_info) : void 0, signatures: Array.isArray(l == null ? void 0 : l.signatures) ? l.signatures.map((N) => c(N)) : [] }), toJSON(l) { + const N = {}; + return l.body !== void 0 && (N.body = l.body ? e.TxBody.toJSON(l.body) : void 0), l.auth_info !== void 0 && (N.auth_info = l.auth_info ? e.AuthInfo.toJSON(l.auth_info) : void 0), l.signatures ? N.signatures = l.signatures.map((j) => p(j !== void 0 ? j : new Uint8Array())) : N.signatures = [], N; + }, fromPartial(l) { + var N; + const j = { body: void 0, auth_info: void 0, signatures: [] }; + return j.body = l.body !== void 0 && l.body !== null ? e.TxBody.fromPartial(l.body) : void 0, j.auth_info = l.auth_info !== void 0 && l.auth_info !== null ? e.AuthInfo.fromPartial(l.auth_info) : void 0, j.signatures = ((N = l.signatures) === null || N === void 0 ? void 0 : N.map((R) => R)) || [], j; + } }, e.TxRaw = { encode(l, N = t.Writer.create()) { + l.body_bytes.length !== 0 && N.uint32(10).bytes(l.body_bytes), l.auth_info_bytes.length !== 0 && N.uint32(18).bytes(l.auth_info_bytes); + for (const j of l.signatures) + N.uint32(26).bytes(j); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = n(); + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.body_bytes = j.bytes(); + break; + case 2: + I.auth_info_bytes = j.bytes(); + break; + case 3: + I.signatures.push(j.bytes()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ body_bytes: M(l.body_bytes) ? c(l.body_bytes) : new Uint8Array(), auth_info_bytes: M(l.auth_info_bytes) ? c(l.auth_info_bytes) : new Uint8Array(), signatures: Array.isArray(l == null ? void 0 : l.signatures) ? l.signatures.map((N) => c(N)) : [] }), toJSON(l) { + const N = {}; + return l.body_bytes !== void 0 && (N.body_bytes = p(l.body_bytes !== void 0 ? l.body_bytes : new Uint8Array())), l.auth_info_bytes !== void 0 && (N.auth_info_bytes = p(l.auth_info_bytes !== void 0 ? l.auth_info_bytes : new Uint8Array())), l.signatures ? N.signatures = l.signatures.map((j) => p(j !== void 0 ? j : new Uint8Array())) : N.signatures = [], N; + }, fromPartial(l) { + var N, j, R; + const I = n(); + return I.body_bytes = (N = l.body_bytes) !== null && N !== void 0 ? N : new Uint8Array(), I.auth_info_bytes = (j = l.auth_info_bytes) !== null && j !== void 0 ? j : new Uint8Array(), I.signatures = ((R = l.signatures) === null || R === void 0 ? void 0 : R.map((x) => x)) || [], I; + } }, e.SignDoc = { encode: (l, N = t.Writer.create()) => (l.body_bytes.length !== 0 && N.uint32(10).bytes(l.body_bytes), l.auth_info_bytes.length !== 0 && N.uint32(18).bytes(l.auth_info_bytes), l.chain_id !== "" && N.uint32(26).string(l.chain_id), l.account_number !== "0" && N.uint32(32).uint64(l.account_number), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = o(); + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.body_bytes = j.bytes(); + break; + case 2: + I.auth_info_bytes = j.bytes(); + break; + case 3: + I.chain_id = j.string(); + break; + case 4: + I.account_number = m(j.uint64()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ body_bytes: M(l.body_bytes) ? c(l.body_bytes) : new Uint8Array(), auth_info_bytes: M(l.auth_info_bytes) ? c(l.auth_info_bytes) : new Uint8Array(), chain_id: M(l.chain_id) ? String(l.chain_id) : "", account_number: M(l.account_number) ? String(l.account_number) : "0" }), toJSON(l) { + const N = {}; + return l.body_bytes !== void 0 && (N.body_bytes = p(l.body_bytes !== void 0 ? l.body_bytes : new Uint8Array())), l.auth_info_bytes !== void 0 && (N.auth_info_bytes = p(l.auth_info_bytes !== void 0 ? l.auth_info_bytes : new Uint8Array())), l.chain_id !== void 0 && (N.chain_id = l.chain_id), l.account_number !== void 0 && (N.account_number = l.account_number), N; + }, fromPartial(l) { + var N, j, R, I; + const x = o(); + return x.body_bytes = (N = l.body_bytes) !== null && N !== void 0 ? N : new Uint8Array(), x.auth_info_bytes = (j = l.auth_info_bytes) !== null && j !== void 0 ? j : new Uint8Array(), x.chain_id = (R = l.chain_id) !== null && R !== void 0 ? R : "", x.account_number = (I = l.account_number) !== null && I !== void 0 ? I : "0", x; + } }, e.TxBody = { encode(l, N = t.Writer.create()) { + for (const j of l.messages) + u.Any.encode(j, N.uint32(10).fork()).ldelim(); + l.memo !== "" && N.uint32(18).string(l.memo), l.timeout_height !== "0" && N.uint32(24).uint64(l.timeout_height); + for (const j of l.extension_options) + u.Any.encode(j, N.uint32(8186).fork()).ldelim(); + for (const j of l.non_critical_extension_options) + u.Any.encode(j, N.uint32(16378).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { messages: [], memo: "", timeout_height: "0", extension_options: [], non_critical_extension_options: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.messages.push(u.Any.decode(j, j.uint32())); + break; + case 2: + I.memo = j.string(); + break; + case 3: + I.timeout_height = m(j.uint64()); + break; + case 1023: + I.extension_options.push(u.Any.decode(j, j.uint32())); + break; + case 2047: + I.non_critical_extension_options.push(u.Any.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ messages: Array.isArray(l == null ? void 0 : l.messages) ? l.messages.map((N) => u.Any.fromJSON(N)) : [], memo: M(l.memo) ? String(l.memo) : "", timeout_height: M(l.timeout_height) ? String(l.timeout_height) : "0", extension_options: Array.isArray(l == null ? void 0 : l.extension_options) ? l.extension_options.map((N) => u.Any.fromJSON(N)) : [], non_critical_extension_options: Array.isArray(l == null ? void 0 : l.non_critical_extension_options) ? l.non_critical_extension_options.map((N) => u.Any.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.messages ? N.messages = l.messages.map((j) => j ? u.Any.toJSON(j) : void 0) : N.messages = [], l.memo !== void 0 && (N.memo = l.memo), l.timeout_height !== void 0 && (N.timeout_height = l.timeout_height), l.extension_options ? N.extension_options = l.extension_options.map((j) => j ? u.Any.toJSON(j) : void 0) : N.extension_options = [], l.non_critical_extension_options ? N.non_critical_extension_options = l.non_critical_extension_options.map((j) => j ? u.Any.toJSON(j) : void 0) : N.non_critical_extension_options = [], N; + }, fromPartial(l) { + var N, j, R, I, x; + const P = { messages: [], memo: "", timeout_height: "0", extension_options: [], non_critical_extension_options: [] }; + return P.messages = ((N = l.messages) === null || N === void 0 ? void 0 : N.map((w) => u.Any.fromPartial(w))) || [], P.memo = (j = l.memo) !== null && j !== void 0 ? j : "", P.timeout_height = (R = l.timeout_height) !== null && R !== void 0 ? R : "0", P.extension_options = ((I = l.extension_options) === null || I === void 0 ? void 0 : I.map((w) => u.Any.fromPartial(w))) || [], P.non_critical_extension_options = ((x = l.non_critical_extension_options) === null || x === void 0 ? void 0 : x.map((w) => u.Any.fromPartial(w))) || [], P; + } }, e.AuthInfo = { encode(l, N = t.Writer.create()) { + for (const j of l.signer_infos) + e.SignerInfo.encode(j, N.uint32(10).fork()).ldelim(); + return l.fee !== void 0 && e.Fee.encode(l.fee, N.uint32(18).fork()).ldelim(), N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { signer_infos: [], fee: void 0 }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.signer_infos.push(e.SignerInfo.decode(j, j.uint32())); + break; + case 2: + I.fee = e.Fee.decode(j, j.uint32()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ signer_infos: Array.isArray(l == null ? void 0 : l.signer_infos) ? l.signer_infos.map((N) => e.SignerInfo.fromJSON(N)) : [], fee: M(l.fee) ? e.Fee.fromJSON(l.fee) : void 0 }), toJSON(l) { + const N = {}; + return l.signer_infos ? N.signer_infos = l.signer_infos.map((j) => j ? e.SignerInfo.toJSON(j) : void 0) : N.signer_infos = [], l.fee !== void 0 && (N.fee = l.fee ? e.Fee.toJSON(l.fee) : void 0), N; + }, fromPartial(l) { + var N; + const j = { signer_infos: [], fee: void 0 }; + return j.signer_infos = ((N = l.signer_infos) === null || N === void 0 ? void 0 : N.map((R) => e.SignerInfo.fromPartial(R))) || [], j.fee = l.fee !== void 0 && l.fee !== null ? e.Fee.fromPartial(l.fee) : void 0, j; + } }, e.SignerInfo = { encode: (l, N = t.Writer.create()) => (l.public_key !== void 0 && u.Any.encode(l.public_key, N.uint32(10).fork()).ldelim(), l.mode_info !== void 0 && e.ModeInfo.encode(l.mode_info, N.uint32(18).fork()).ldelim(), l.sequence !== "0" && N.uint32(24).uint64(l.sequence), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { public_key: void 0, mode_info: void 0, sequence: "0" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.public_key = u.Any.decode(j, j.uint32()); + break; + case 2: + I.mode_info = e.ModeInfo.decode(j, j.uint32()); + break; + case 3: + I.sequence = m(j.uint64()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ public_key: M(l.public_key) ? u.Any.fromJSON(l.public_key) : void 0, mode_info: M(l.mode_info) ? e.ModeInfo.fromJSON(l.mode_info) : void 0, sequence: M(l.sequence) ? String(l.sequence) : "0" }), toJSON(l) { + const N = {}; + return l.public_key !== void 0 && (N.public_key = l.public_key ? u.Any.toJSON(l.public_key) : void 0), l.mode_info !== void 0 && (N.mode_info = l.mode_info ? e.ModeInfo.toJSON(l.mode_info) : void 0), l.sequence !== void 0 && (N.sequence = l.sequence), N; + }, fromPartial(l) { + var N; + const j = { public_key: void 0, mode_info: void 0, sequence: "0" }; + return j.public_key = l.public_key !== void 0 && l.public_key !== null ? u.Any.fromPartial(l.public_key) : void 0, j.mode_info = l.mode_info !== void 0 && l.mode_info !== null ? e.ModeInfo.fromPartial(l.mode_info) : void 0, j.sequence = (N = l.sequence) !== null && N !== void 0 ? N : "0", j; + } }, e.ModeInfo = { encode: (l, N = t.Writer.create()) => (l.single !== void 0 && e.ModeInfo_Single.encode(l.single, N.uint32(10).fork()).ldelim(), l.multi !== void 0 && e.ModeInfo_Multi.encode(l.multi, N.uint32(18).fork()).ldelim(), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { single: void 0, multi: void 0 }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.single = e.ModeInfo_Single.decode(j, j.uint32()); + break; + case 2: + I.multi = e.ModeInfo_Multi.decode(j, j.uint32()); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ single: M(l.single) ? e.ModeInfo_Single.fromJSON(l.single) : void 0, multi: M(l.multi) ? e.ModeInfo_Multi.fromJSON(l.multi) : void 0 }), toJSON(l) { + const N = {}; + return l.single !== void 0 && (N.single = l.single ? e.ModeInfo_Single.toJSON(l.single) : void 0), l.multi !== void 0 && (N.multi = l.multi ? e.ModeInfo_Multi.toJSON(l.multi) : void 0), N; + }, fromPartial(l) { + const N = { single: void 0, multi: void 0 }; + return N.single = l.single !== void 0 && l.single !== null ? e.ModeInfo_Single.fromPartial(l.single) : void 0, N.multi = l.multi !== void 0 && l.multi !== null ? e.ModeInfo_Multi.fromPartial(l.multi) : void 0, N; + } }, e.ModeInfo_Single = { encode: (l, N = t.Writer.create()) => (l.mode !== 0 && N.uint32(8).int32(l.mode), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { mode: 0 }; + for (; j.pos < R; ) { + const x = j.uint32(); + x >>> 3 == 1 ? I.mode = j.int32() : j.skipType(7 & x); + } + return I; + }, fromJSON: (l) => ({ mode: M(l.mode) ? (0, d.signModeFromJSON)(l.mode) : 0 }), toJSON(l) { + const N = {}; + return l.mode !== void 0 && (N.mode = (0, d.signModeToJSON)(l.mode)), N; + }, fromPartial(l) { + var N; + const j = { mode: 0 }; + return j.mode = (N = l.mode) !== null && N !== void 0 ? N : 0, j; + } }, e.ModeInfo_Multi = { encode(l, N = t.Writer.create()) { + l.bitarray !== void 0 && s.CompactBitArray.encode(l.bitarray, N.uint32(10).fork()).ldelim(); + for (const j of l.mode_infos) + e.ModeInfo.encode(j, N.uint32(18).fork()).ldelim(); + return N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { bitarray: void 0, mode_infos: [] }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.bitarray = s.CompactBitArray.decode(j, j.uint32()); + break; + case 2: + I.mode_infos.push(e.ModeInfo.decode(j, j.uint32())); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ bitarray: M(l.bitarray) ? s.CompactBitArray.fromJSON(l.bitarray) : void 0, mode_infos: Array.isArray(l == null ? void 0 : l.mode_infos) ? l.mode_infos.map((N) => e.ModeInfo.fromJSON(N)) : [] }), toJSON(l) { + const N = {}; + return l.bitarray !== void 0 && (N.bitarray = l.bitarray ? s.CompactBitArray.toJSON(l.bitarray) : void 0), l.mode_infos ? N.mode_infos = l.mode_infos.map((j) => j ? e.ModeInfo.toJSON(j) : void 0) : N.mode_infos = [], N; + }, fromPartial(l) { + var N; + const j = { bitarray: void 0, mode_infos: [] }; + return j.bitarray = l.bitarray !== void 0 && l.bitarray !== null ? s.CompactBitArray.fromPartial(l.bitarray) : void 0, j.mode_infos = ((N = l.mode_infos) === null || N === void 0 ? void 0 : N.map((R) => e.ModeInfo.fromPartial(R))) || [], j; + } }, e.Fee = { encode(l, N = t.Writer.create()) { + for (const j of l.amount) + r.Coin.encode(j, N.uint32(10).fork()).ldelim(); + return l.gas_limit !== "0" && N.uint32(16).uint64(l.gas_limit), l.payer !== "" && N.uint32(26).string(l.payer), l.granter !== "" && N.uint32(34).string(l.granter), N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { amount: [], gas_limit: "0", payer: "", granter: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.amount.push(r.Coin.decode(j, j.uint32())); + break; + case 2: + I.gas_limit = m(j.uint64()); + break; + case 3: + I.payer = j.string(); + break; + case 4: + I.granter = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ amount: Array.isArray(l == null ? void 0 : l.amount) ? l.amount.map((N) => r.Coin.fromJSON(N)) : [], gas_limit: M(l.gas_limit) ? String(l.gas_limit) : "0", payer: M(l.payer) ? String(l.payer) : "", granter: M(l.granter) ? String(l.granter) : "" }), toJSON(l) { + const N = {}; + return l.amount ? N.amount = l.amount.map((j) => j ? r.Coin.toJSON(j) : void 0) : N.amount = [], l.gas_limit !== void 0 && (N.gas_limit = l.gas_limit), l.payer !== void 0 && (N.payer = l.payer), l.granter !== void 0 && (N.granter = l.granter), N; + }, fromPartial(l) { + var N, j, R, I; + const x = { amount: [], gas_limit: "0", payer: "", granter: "" }; + return x.amount = ((N = l.amount) === null || N === void 0 ? void 0 : N.map((P) => r.Coin.fromPartial(P))) || [], x.gas_limit = (j = l.gas_limit) !== null && j !== void 0 ? j : "0", x.payer = (R = l.payer) !== null && R !== void 0 ? R : "", x.granter = (I = l.granter) !== null && I !== void 0 ? I : "", x; + } }; + var i = (() => { + if (i !== void 0) + return i; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const f = i.atob || ((l) => i.Buffer.from(l, "base64").toString("binary")); + function c(l) { + const N = f(l), j = new Uint8Array(N.length); + for (let R = 0; R < N.length; ++R) + j[R] = N.charCodeAt(R); + return j; + } + const h = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); + function p(l) { + const N = []; + for (const j of l) + N.push(String.fromCharCode(j)); + return h(N.join("")); + } + function m(l) { + return l.toString(); + } + function M(l) { + return l != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 8310: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(o, i, f, c) { + c === void 0 && (c = f), Object.defineProperty(o, c, { enumerable: !0, get: function() { + return i[f]; + } }); + } : function(o, i, f, c) { + c === void 0 && (c = f), o[c] = i[f]; + }), A = this && this.__setModuleDefault || (Object.create ? function(o, i) { + Object.defineProperty(o, "default", { enumerable: !0, value: i }); + } : function(o, i) { + o.default = i; + }), k = this && this.__importStar || function(o) { + if (o && o.__esModule) + return o; + var i = {}; + if (o != null) + for (var f in o) + f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && O(i, o, f); + return A(i, o), i; + }, b = this && this.__importDefault || function(o) { + return o && o.__esModule ? o : { default: o }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.ModuleVersion = e.CancelSoftwareUpgradeProposal = e.SoftwareUpgradeProposal = e.Plan = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5090), d = _(4191); + function s(o) { + return { seconds: Math.trunc(o.getTime() / 1e3).toString(), nanos: o.getTime() % 1e3 * 1e6 }; + } + function r(o) { + return o.toString(); + } + function n(o) { + return o != null; + } + e.protobufPackage = "cosmos.upgrade.v1beta1", e.Plan = { encode: (o, i = t.Writer.create()) => (o.name !== "" && i.uint32(10).string(o.name), o.time !== void 0 && u.Timestamp.encode(o.time, i.uint32(18).fork()).ldelim(), o.height !== "0" && i.uint32(24).int64(o.height), o.info !== "" && i.uint32(34).string(o.info), o.upgraded_client_state !== void 0 && d.Any.encode(o.upgraded_client_state, i.uint32(42).fork()).ldelim(), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.name = f.string(); + break; + case 2: + h.time = u.Timestamp.decode(f, f.uint32()); + break; + case 3: + h.height = r(f.int64()); + break; + case 4: + h.info = f.string(); + break; + case 5: + h.upgraded_client_state = d.Any.decode(f, f.uint32()); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => { + return { name: n(o.name) ? String(o.name) : "", time: n(o.time) ? (i = o.time, i instanceof Date ? s(i) : typeof i == "string" ? s(new Date(i)) : u.Timestamp.fromJSON(i)) : void 0, height: n(o.height) ? String(o.height) : "0", info: n(o.info) ? String(o.info) : "", upgraded_client_state: n(o.upgraded_client_state) ? d.Any.fromJSON(o.upgraded_client_state) : void 0 }; + var i; + }, toJSON(o) { + const i = {}; + return o.name !== void 0 && (i.name = o.name), o.time !== void 0 && (i.time = function(f) { + let c = 1e3 * Number(f.seconds); + return c += f.nanos / 1e6, new Date(c); + }(o.time).toISOString()), o.height !== void 0 && (i.height = o.height), o.info !== void 0 && (i.info = o.info), o.upgraded_client_state !== void 0 && (i.upgraded_client_state = o.upgraded_client_state ? d.Any.toJSON(o.upgraded_client_state) : void 0), i; + }, fromPartial(o) { + var i, f, c; + const h = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; + return h.name = (i = o.name) !== null && i !== void 0 ? i : "", h.time = o.time !== void 0 && o.time !== null ? u.Timestamp.fromPartial(o.time) : void 0, h.height = (f = o.height) !== null && f !== void 0 ? f : "0", h.info = (c = o.info) !== null && c !== void 0 ? c : "", h.upgraded_client_state = o.upgraded_client_state !== void 0 && o.upgraded_client_state !== null ? d.Any.fromPartial(o.upgraded_client_state) : void 0, h; + } }, e.SoftwareUpgradeProposal = { encode: (o, i = t.Writer.create()) => (o.title !== "" && i.uint32(10).string(o.title), o.description !== "" && i.uint32(18).string(o.description), o.plan !== void 0 && e.Plan.encode(o.plan, i.uint32(26).fork()).ldelim(), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { title: "", description: "", plan: void 0 }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.title = f.string(); + break; + case 2: + h.description = f.string(); + break; + case 3: + h.plan = e.Plan.decode(f, f.uint32()); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ title: n(o.title) ? String(o.title) : "", description: n(o.description) ? String(o.description) : "", plan: n(o.plan) ? e.Plan.fromJSON(o.plan) : void 0 }), toJSON(o) { + const i = {}; + return o.title !== void 0 && (i.title = o.title), o.description !== void 0 && (i.description = o.description), o.plan !== void 0 && (i.plan = o.plan ? e.Plan.toJSON(o.plan) : void 0), i; + }, fromPartial(o) { + var i, f; + const c = { title: "", description: "", plan: void 0 }; + return c.title = (i = o.title) !== null && i !== void 0 ? i : "", c.description = (f = o.description) !== null && f !== void 0 ? f : "", c.plan = o.plan !== void 0 && o.plan !== null ? e.Plan.fromPartial(o.plan) : void 0, c; + } }, e.CancelSoftwareUpgradeProposal = { encode: (o, i = t.Writer.create()) => (o.title !== "" && i.uint32(10).string(o.title), o.description !== "" && i.uint32(18).string(o.description), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { title: "", description: "" }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.title = f.string(); + break; + case 2: + h.description = f.string(); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ title: n(o.title) ? String(o.title) : "", description: n(o.description) ? String(o.description) : "" }), toJSON(o) { + const i = {}; + return o.title !== void 0 && (i.title = o.title), o.description !== void 0 && (i.description = o.description), i; + }, fromPartial(o) { + var i, f; + const c = { title: "", description: "" }; + return c.title = (i = o.title) !== null && i !== void 0 ? i : "", c.description = (f = o.description) !== null && f !== void 0 ? f : "", c; + } }, e.ModuleVersion = { encode: (o, i = t.Writer.create()) => (o.name !== "" && i.uint32(10).string(o.name), o.version !== "0" && i.uint32(16).uint64(o.version), i), decode(o, i) { + const f = o instanceof t.Reader ? o : new t.Reader(o); + let c = i === void 0 ? f.len : f.pos + i; + const h = { name: "", version: "0" }; + for (; f.pos < c; ) { + const p = f.uint32(); + switch (p >>> 3) { + case 1: + h.name = f.string(); + break; + case 2: + h.version = r(f.uint64()); + break; + default: + f.skipType(7 & p); + } + } + return h; + }, fromJSON: (o) => ({ name: n(o.name) ? String(o.name) : "", version: n(o.version) ? String(o.version) : "0" }), toJSON(o) { + const i = {}; + return o.name !== void 0 && (i.name = o.name), o.version !== void 0 && (i.version = o.version), i; + }, fromPartial(o) { + var i, f; + const c = { name: "", version: "0" }; + return c.name = (i = o.name) !== null && i !== void 0 ? i : "", c.version = (f = o.version) !== null && f !== void 0 ? f : "0", c; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 8644: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__importDefault || function(s) { + return s && s.__esModule ? s : { default: s }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgCreateVestingAccountResponse = e.MsgCreateVestingAccount = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + function d(s) { + return s != null; + } + e.protobufPackage = "cosmos.vesting.v1beta1", e.MsgCreateVestingAccount = { encode(s, r = t.Writer.create()) { + s.from_address !== "" && r.uint32(10).string(s.from_address), s.to_address !== "" && r.uint32(18).string(s.to_address); + for (const n of s.amount) + u.Coin.encode(n, r.uint32(26).fork()).ldelim(); + return s.end_time !== "0" && r.uint32(32).int64(s.end_time), s.delayed === !0 && r.uint32(40).bool(s.delayed), r; + }, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { from_address: "", to_address: "", amount: [], end_time: "0", delayed: !1 }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.from_address = n.string(); + break; + case 2: + i.to_address = n.string(); + break; + case 3: + i.amount.push(u.Coin.decode(n, n.uint32())); + break; + case 4: + i.end_time = n.int64().toString(); + break; + case 5: + i.delayed = n.bool(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ from_address: d(s.from_address) ? String(s.from_address) : "", to_address: d(s.to_address) ? String(s.to_address) : "", amount: Array.isArray(s == null ? void 0 : s.amount) ? s.amount.map((r) => u.Coin.fromJSON(r)) : [], end_time: d(s.end_time) ? String(s.end_time) : "0", delayed: !!d(s.delayed) && !!s.delayed }), toJSON(s) { + const r = {}; + return s.from_address !== void 0 && (r.from_address = s.from_address), s.to_address !== void 0 && (r.to_address = s.to_address), s.amount ? r.amount = s.amount.map((n) => n ? u.Coin.toJSON(n) : void 0) : r.amount = [], s.end_time !== void 0 && (r.end_time = s.end_time), s.delayed !== void 0 && (r.delayed = s.delayed), r; + }, fromPartial(s) { + var r, n, o, i, f; + const c = { from_address: "", to_address: "", amount: [], end_time: "0", delayed: !1 }; + return c.from_address = (r = s.from_address) !== null && r !== void 0 ? r : "", c.to_address = (n = s.to_address) !== null && n !== void 0 ? n : "", c.amount = ((o = s.amount) === null || o === void 0 ? void 0 : o.map((h) => u.Coin.fromPartial(h))) || [], c.end_time = (i = s.end_time) !== null && i !== void 0 ? i : "0", c.delayed = (f = s.delayed) !== null && f !== void 0 && f, c; + } }, e.MsgCreateVestingAccountResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + for (; n.pos < o; ) { + const i = n.uint32(); + n.skipType(7 & i); + } + return {}; + }, fromJSON: (s) => ({}), toJSON: (s) => ({}), fromPartial: (s) => ({}) }, e.MsgClientImpl = class { + constructor(s) { + this.rpc = s, this.CreateVestingAccount = this.CreateVestingAccount.bind(this); + } + CreateVestingAccount(s) { + const r = e.MsgCreateVestingAccount.encode(s).finish(); + return this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", r).then((n) => e.MsgCreateVestingAccountResponse.decode(new t.Reader(n))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4191: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(i, f, c, h) { + h === void 0 && (h = c), Object.defineProperty(i, h, { enumerable: !0, get: function() { + return f[c]; + } }); + } : function(i, f, c, h) { + h === void 0 && (h = c), i[h] = f[c]; + }), A = this && this.__setModuleDefault || (Object.create ? function(i, f) { + Object.defineProperty(i, "default", { enumerable: !0, value: f }); + } : function(i, f) { + i.default = f; + }), k = this && this.__importStar || function(i) { + if (i && i.__esModule) + return i; + var f = {}; + if (i != null) + for (var c in i) + c !== "default" && Object.prototype.hasOwnProperty.call(i, c) && O(f, i, c); + return A(f, i), f; + }, b = this && this.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Any = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { type_url: "", value: new Uint8Array() }; + } + e.protobufPackage = "google.protobuf", e.Any = { encode: (i, f = t.Writer.create()) => (i.type_url !== "" && f.uint32(10).string(i.type_url), i.value.length !== 0 && f.uint32(18).bytes(i.value), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = u(); + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.type_url = c.string(); + break; + case 2: + p.value = c.bytes(); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ type_url: o(i.type_url) ? String(i.type_url) : "", value: o(i.value) ? r(i.value) : new Uint8Array() }), toJSON(i) { + const f = {}; + return i.type_url !== void 0 && (f.type_url = i.type_url), i.value !== void 0 && (f.value = function(c) { + const h = []; + for (const p of c) + h.push(String.fromCharCode(p)); + return n(h.join("")); + }(i.value !== void 0 ? i.value : new Uint8Array())), f; + }, fromPartial(i) { + var f, c; + const h = u(); + return h.type_url = (f = i.type_url) !== null && f !== void 0 ? f : "", h.value = (c = i.value) !== null && c !== void 0 ? c : new Uint8Array(), h; + } }; + var d = (() => { + if (d !== void 0) + return d; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const s = d.atob || ((i) => d.Buffer.from(i, "base64").toString("binary")); + function r(i) { + const f = s(i), c = new Uint8Array(f.length); + for (let h = 0; h < f.length; ++h) + c[h] = f.charCodeAt(h); + return c; + } + const n = d.btoa || ((i) => d.Buffer.from(i, "binary").toString("base64")); + function o(i) { + return i != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6138: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Duration = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(d) { + return d != null; + } + e.protobufPackage = "google.protobuf", e.Duration = { encode: (d, s = t.Writer.create()) => (d.seconds !== "0" && s.uint32(8).int64(d.seconds), d.nanos !== 0 && s.uint32(16).int32(d.nanos), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { seconds: "0", nanos: 0 }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.seconds = r.int64().toString(); + break; + case 2: + o.nanos = r.int32(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ seconds: u(d.seconds) ? String(d.seconds) : "0", nanos: u(d.nanos) ? Number(d.nanos) : 0 }), toJSON(d) { + const s = {}; + return d.seconds !== void 0 && (s.seconds = d.seconds), d.nanos !== void 0 && (s.nanos = Math.round(d.nanos)), s; + }, fromPartial(d) { + var s, r; + const n = { seconds: "0", nanos: 0 }; + return n.seconds = (s = d.seconds) !== null && s !== void 0 ? s : "0", n.nanos = (r = d.nanos) !== null && r !== void 0 ? r : 0, n; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5090: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(d, s, r, n) { + n === void 0 && (n = r), Object.defineProperty(d, n, { enumerable: !0, get: function() { + return s[r]; + } }); + } : function(d, s, r, n) { + n === void 0 && (n = r), d[n] = s[r]; + }), A = this && this.__setModuleDefault || (Object.create ? function(d, s) { + Object.defineProperty(d, "default", { enumerable: !0, value: s }); + } : function(d, s) { + d.default = s; + }), k = this && this.__importStar || function(d) { + if (d && d.__esModule) + return d; + var s = {}; + if (d != null) + for (var r in d) + r !== "default" && Object.prototype.hasOwnProperty.call(d, r) && O(s, d, r); + return A(s, d), s; + }, b = this && this.__importDefault || function(d) { + return d && d.__esModule ? d : { default: d }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Timestamp = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(d) { + return d != null; + } + e.protobufPackage = "google.protobuf", e.Timestamp = { encode: (d, s = t.Writer.create()) => (d.seconds !== "0" && s.uint32(8).int64(d.seconds), d.nanos !== 0 && s.uint32(16).int32(d.nanos), s), decode(d, s) { + const r = d instanceof t.Reader ? d : new t.Reader(d); + let n = s === void 0 ? r.len : r.pos + s; + const o = { seconds: "0", nanos: 0 }; + for (; r.pos < n; ) { + const i = r.uint32(); + switch (i >>> 3) { + case 1: + o.seconds = r.int64().toString(); + break; + case 2: + o.nanos = r.int32(); + break; + default: + r.skipType(7 & i); + } + } + return o; + }, fromJSON: (d) => ({ seconds: u(d.seconds) ? String(d.seconds) : "0", nanos: u(d.nanos) ? Number(d.nanos) : 0 }), toJSON(d) { + const s = {}; + return d.seconds !== void 0 && (s.seconds = d.seconds), d.nanos !== void 0 && (s.nanos = Math.round(d.nanos)), s; + }, fromPartial(d) { + var s, r; + const n = { seconds: "0", nanos: 0 }; + return n.seconds = (s = d.seconds) !== null && s !== void 0 ? s : "0", n.nanos = (r = d.nanos) !== null && r !== void 0 ? r : 0, n; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 1106: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(r, n, o, i) { + i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { + return n[o]; + } }); + } : function(r, n, o, i) { + i === void 0 && (i = o), r[i] = n[o]; + }), A = this && this.__setModuleDefault || (Object.create ? function(r, n) { + Object.defineProperty(r, "default", { enumerable: !0, value: n }); + } : function(r, n) { + r.default = n; + }), k = this && this.__importStar || function(r) { + if (r && r.__esModule) + return r; + var n = {}; + if (r != null) + for (var o in r) + o !== "default" && Object.prototype.hasOwnProperty.call(r, o) && O(n, r, o); + return A(n, r), n; + }, b = this && this.__importDefault || function(r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.IdentifiedPacketFees = e.PacketFees = e.PacketFee = e.Fee = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5414), d = _(2976); + function s(r) { + return r != null; + } + e.protobufPackage = "ibc.applications.fee.v1", e.Fee = { encode(r, n = t.Writer.create()) { + for (const o of r.recv_fee) + d.Coin.encode(o, n.uint32(10).fork()).ldelim(); + for (const o of r.ack_fee) + d.Coin.encode(o, n.uint32(18).fork()).ldelim(); + for (const o of r.timeout_fee) + d.Coin.encode(o, n.uint32(26).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { recv_fee: [], ack_fee: [], timeout_fee: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.recv_fee.push(d.Coin.decode(o, o.uint32())); + break; + case 2: + f.ack_fee.push(d.Coin.decode(o, o.uint32())); + break; + case 3: + f.timeout_fee.push(d.Coin.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ recv_fee: Array.isArray(r == null ? void 0 : r.recv_fee) ? r.recv_fee.map((n) => d.Coin.fromJSON(n)) : [], ack_fee: Array.isArray(r == null ? void 0 : r.ack_fee) ? r.ack_fee.map((n) => d.Coin.fromJSON(n)) : [], timeout_fee: Array.isArray(r == null ? void 0 : r.timeout_fee) ? r.timeout_fee.map((n) => d.Coin.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.recv_fee ? n.recv_fee = r.recv_fee.map((o) => o ? d.Coin.toJSON(o) : void 0) : n.recv_fee = [], r.ack_fee ? n.ack_fee = r.ack_fee.map((o) => o ? d.Coin.toJSON(o) : void 0) : n.ack_fee = [], r.timeout_fee ? n.timeout_fee = r.timeout_fee.map((o) => o ? d.Coin.toJSON(o) : void 0) : n.timeout_fee = [], n; + }, fromPartial(r) { + var n, o, i; + const f = { recv_fee: [], ack_fee: [], timeout_fee: [] }; + return f.recv_fee = ((n = r.recv_fee) === null || n === void 0 ? void 0 : n.map((c) => d.Coin.fromPartial(c))) || [], f.ack_fee = ((o = r.ack_fee) === null || o === void 0 ? void 0 : o.map((c) => d.Coin.fromPartial(c))) || [], f.timeout_fee = ((i = r.timeout_fee) === null || i === void 0 ? void 0 : i.map((c) => d.Coin.fromPartial(c))) || [], f; + } }, e.PacketFee = { encode(r, n = t.Writer.create()) { + r.fee !== void 0 && e.Fee.encode(r.fee, n.uint32(10).fork()).ldelim(), r.refund_address !== "" && n.uint32(18).string(r.refund_address); + for (const o of r.relayers) + n.uint32(26).string(o); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { fee: void 0, refund_address: "", relayers: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.fee = e.Fee.decode(o, o.uint32()); + break; + case 2: + f.refund_address = o.string(); + break; + case 3: + f.relayers.push(o.string()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ fee: s(r.fee) ? e.Fee.fromJSON(r.fee) : void 0, refund_address: s(r.refund_address) ? String(r.refund_address) : "", relayers: Array.isArray(r == null ? void 0 : r.relayers) ? r.relayers.map((n) => String(n)) : [] }), toJSON(r) { + const n = {}; + return r.fee !== void 0 && (n.fee = r.fee ? e.Fee.toJSON(r.fee) : void 0), r.refund_address !== void 0 && (n.refund_address = r.refund_address), r.relayers ? n.relayers = r.relayers.map((o) => o) : n.relayers = [], n; + }, fromPartial(r) { + var n, o; + const i = { fee: void 0, refund_address: "", relayers: [] }; + return i.fee = r.fee !== void 0 && r.fee !== null ? e.Fee.fromPartial(r.fee) : void 0, i.refund_address = (n = r.refund_address) !== null && n !== void 0 ? n : "", i.relayers = ((o = r.relayers) === null || o === void 0 ? void 0 : o.map((f) => f)) || [], i; + } }, e.PacketFees = { encode(r, n = t.Writer.create()) { + for (const o of r.packet_fees) + e.PacketFee.encode(o, n.uint32(10).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { packet_fees: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.packet_fees.push(e.PacketFee.decode(o, o.uint32())) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ packet_fees: Array.isArray(r == null ? void 0 : r.packet_fees) ? r.packet_fees.map((n) => e.PacketFee.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.packet_fees ? n.packet_fees = r.packet_fees.map((o) => o ? e.PacketFee.toJSON(o) : void 0) : n.packet_fees = [], n; + }, fromPartial(r) { + var n; + const o = { packet_fees: [] }; + return o.packet_fees = ((n = r.packet_fees) === null || n === void 0 ? void 0 : n.map((i) => e.PacketFee.fromPartial(i))) || [], o; + } }, e.IdentifiedPacketFees = { encode(r, n = t.Writer.create()) { + r.packet_id !== void 0 && u.PacketId.encode(r.packet_id, n.uint32(10).fork()).ldelim(); + for (const o of r.packet_fees) + e.PacketFee.encode(o, n.uint32(18).fork()).ldelim(); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { packet_id: void 0, packet_fees: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.packet_id = u.PacketId.decode(o, o.uint32()); + break; + case 2: + f.packet_fees.push(e.PacketFee.decode(o, o.uint32())); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ packet_id: s(r.packet_id) ? u.PacketId.fromJSON(r.packet_id) : void 0, packet_fees: Array.isArray(r == null ? void 0 : r.packet_fees) ? r.packet_fees.map((n) => e.PacketFee.fromJSON(n)) : [] }), toJSON(r) { + const n = {}; + return r.packet_id !== void 0 && (n.packet_id = r.packet_id ? u.PacketId.toJSON(r.packet_id) : void 0), r.packet_fees ? n.packet_fees = r.packet_fees.map((o) => o ? e.PacketFee.toJSON(o) : void 0) : n.packet_fees = [], n; + }, fromPartial(r) { + var n; + const o = { packet_id: void 0, packet_fees: [] }; + return o.packet_id = r.packet_id !== void 0 && r.packet_id !== null ? u.PacketId.fromPartial(r.packet_id) : void 0, o.packet_fees = ((n = r.packet_fees) === null || n === void 0 ? void 0 : n.map((i) => e.PacketFee.fromPartial(i))) || [], o; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6065: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(r, n, o, i) { + i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { + return n[o]; + } }); + } : function(r, n, o, i) { + i === void 0 && (i = o), r[i] = n[o]; + }), A = this && this.__setModuleDefault || (Object.create ? function(r, n) { + Object.defineProperty(r, "default", { enumerable: !0, value: n }); + } : function(r, n) { + r.default = n; + }), k = this && this.__importStar || function(r) { + if (r && r.__esModule) + return r; + var n = {}; + if (r != null) + for (var o in r) + o !== "default" && Object.prototype.hasOwnProperty.call(r, o) && O(n, r, o); + return A(n, r), n; + }, b = this && this.__importDefault || function(r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgPayPacketFeeAsyncResponse = e.MsgPayPacketFeeAsync = e.MsgPayPacketFeeResponse = e.MsgPayPacketFee = e.MsgRegisterCounterpartyPayeeResponse = e.MsgRegisterCounterpartyPayee = e.MsgRegisterPayeeResponse = e.MsgRegisterPayee = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(1106), d = _(5414); + function s(r) { + return r != null; + } + e.protobufPackage = "ibc.applications.fee.v1", e.MsgRegisterPayee = { encode: (r, n = t.Writer.create()) => (r.port_id !== "" && n.uint32(10).string(r.port_id), r.channel_id !== "" && n.uint32(18).string(r.channel_id), r.relayer !== "" && n.uint32(26).string(r.relayer), r.payee !== "" && n.uint32(34).string(r.payee), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { port_id: "", channel_id: "", relayer: "", payee: "" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.port_id = o.string(); + break; + case 2: + f.channel_id = o.string(); + break; + case 3: + f.relayer = o.string(); + break; + case 4: + f.payee = o.string(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ port_id: s(r.port_id) ? String(r.port_id) : "", channel_id: s(r.channel_id) ? String(r.channel_id) : "", relayer: s(r.relayer) ? String(r.relayer) : "", payee: s(r.payee) ? String(r.payee) : "" }), toJSON(r) { + const n = {}; + return r.port_id !== void 0 && (n.port_id = r.port_id), r.channel_id !== void 0 && (n.channel_id = r.channel_id), r.relayer !== void 0 && (n.relayer = r.relayer), r.payee !== void 0 && (n.payee = r.payee), n; + }, fromPartial(r) { + var n, o, i, f; + const c = { port_id: "", channel_id: "", relayer: "", payee: "" }; + return c.port_id = (n = r.port_id) !== null && n !== void 0 ? n : "", c.channel_id = (o = r.channel_id) !== null && o !== void 0 ? o : "", c.relayer = (i = r.relayer) !== null && i !== void 0 ? i : "", c.payee = (f = r.payee) !== null && f !== void 0 ? f : "", c; + } }, e.MsgRegisterPayeeResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgRegisterCounterpartyPayee = { encode: (r, n = t.Writer.create()) => (r.port_id !== "" && n.uint32(10).string(r.port_id), r.channel_id !== "" && n.uint32(18).string(r.channel_id), r.relayer !== "" && n.uint32(26).string(r.relayer), r.counterparty_payee !== "" && n.uint32(34).string(r.counterparty_payee), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { port_id: "", channel_id: "", relayer: "", counterparty_payee: "" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.port_id = o.string(); + break; + case 2: + f.channel_id = o.string(); + break; + case 3: + f.relayer = o.string(); + break; + case 4: + f.counterparty_payee = o.string(); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ port_id: s(r.port_id) ? String(r.port_id) : "", channel_id: s(r.channel_id) ? String(r.channel_id) : "", relayer: s(r.relayer) ? String(r.relayer) : "", counterparty_payee: s(r.counterparty_payee) ? String(r.counterparty_payee) : "" }), toJSON(r) { + const n = {}; + return r.port_id !== void 0 && (n.port_id = r.port_id), r.channel_id !== void 0 && (n.channel_id = r.channel_id), r.relayer !== void 0 && (n.relayer = r.relayer), r.counterparty_payee !== void 0 && (n.counterparty_payee = r.counterparty_payee), n; + }, fromPartial(r) { + var n, o, i, f; + const c = { port_id: "", channel_id: "", relayer: "", counterparty_payee: "" }; + return c.port_id = (n = r.port_id) !== null && n !== void 0 ? n : "", c.channel_id = (o = r.channel_id) !== null && o !== void 0 ? o : "", c.relayer = (i = r.relayer) !== null && i !== void 0 ? i : "", c.counterparty_payee = (f = r.counterparty_payee) !== null && f !== void 0 ? f : "", c; + } }, e.MsgRegisterCounterpartyPayeeResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgPayPacketFee = { encode(r, n = t.Writer.create()) { + r.fee !== void 0 && u.Fee.encode(r.fee, n.uint32(10).fork()).ldelim(), r.source_port_id !== "" && n.uint32(18).string(r.source_port_id), r.source_channel_id !== "" && n.uint32(26).string(r.source_channel_id), r.signer !== "" && n.uint32(34).string(r.signer); + for (const o of r.relayers) + n.uint32(42).string(o); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { fee: void 0, source_port_id: "", source_channel_id: "", signer: "", relayers: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.fee = u.Fee.decode(o, o.uint32()); + break; + case 2: + f.source_port_id = o.string(); + break; + case 3: + f.source_channel_id = o.string(); + break; + case 4: + f.signer = o.string(); + break; + case 5: + f.relayers.push(o.string()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ fee: s(r.fee) ? u.Fee.fromJSON(r.fee) : void 0, source_port_id: s(r.source_port_id) ? String(r.source_port_id) : "", source_channel_id: s(r.source_channel_id) ? String(r.source_channel_id) : "", signer: s(r.signer) ? String(r.signer) : "", relayers: Array.isArray(r == null ? void 0 : r.relayers) ? r.relayers.map((n) => String(n)) : [] }), toJSON(r) { + const n = {}; + return r.fee !== void 0 && (n.fee = r.fee ? u.Fee.toJSON(r.fee) : void 0), r.source_port_id !== void 0 && (n.source_port_id = r.source_port_id), r.source_channel_id !== void 0 && (n.source_channel_id = r.source_channel_id), r.signer !== void 0 && (n.signer = r.signer), r.relayers ? n.relayers = r.relayers.map((o) => o) : n.relayers = [], n; + }, fromPartial(r) { + var n, o, i, f; + const c = { fee: void 0, source_port_id: "", source_channel_id: "", signer: "", relayers: [] }; + return c.fee = r.fee !== void 0 && r.fee !== null ? u.Fee.fromPartial(r.fee) : void 0, c.source_port_id = (n = r.source_port_id) !== null && n !== void 0 ? n : "", c.source_channel_id = (o = r.source_channel_id) !== null && o !== void 0 ? o : "", c.signer = (i = r.signer) !== null && i !== void 0 ? i : "", c.relayers = ((f = r.relayers) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], c; + } }, e.MsgPayPacketFeeResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgPayPacketFeeAsync = { encode: (r, n = t.Writer.create()) => (r.packet_id !== void 0 && d.PacketId.encode(r.packet_id, n.uint32(10).fork()).ldelim(), r.packet_fee !== void 0 && u.PacketFee.encode(r.packet_fee, n.uint32(18).fork()).ldelim(), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { packet_id: void 0, packet_fee: void 0 }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.packet_id = d.PacketId.decode(o, o.uint32()); + break; + case 2: + f.packet_fee = u.PacketFee.decode(o, o.uint32()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ packet_id: s(r.packet_id) ? d.PacketId.fromJSON(r.packet_id) : void 0, packet_fee: s(r.packet_fee) ? u.PacketFee.fromJSON(r.packet_fee) : void 0 }), toJSON(r) { + const n = {}; + return r.packet_id !== void 0 && (n.packet_id = r.packet_id ? d.PacketId.toJSON(r.packet_id) : void 0), r.packet_fee !== void 0 && (n.packet_fee = r.packet_fee ? u.PacketFee.toJSON(r.packet_fee) : void 0), n; + }, fromPartial(r) { + const n = { packet_id: void 0, packet_fee: void 0 }; + return n.packet_id = r.packet_id !== void 0 && r.packet_id !== null ? d.PacketId.fromPartial(r.packet_id) : void 0, n.packet_fee = r.packet_fee !== void 0 && r.packet_fee !== null ? u.PacketFee.fromPartial(r.packet_fee) : void 0, n; + } }, e.MsgPayPacketFeeAsyncResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + for (; o.pos < i; ) { + const f = o.uint32(); + o.skipType(7 & f); + } + return {}; + }, fromJSON: (r) => ({}), toJSON: (r) => ({}), fromPartial: (r) => ({}) }, e.MsgClientImpl = class { + constructor(r) { + this.rpc = r, this.RegisterPayee = this.RegisterPayee.bind(this), this.RegisterCounterpartyPayee = this.RegisterCounterpartyPayee.bind(this), this.PayPacketFee = this.PayPacketFee.bind(this), this.PayPacketFeeAsync = this.PayPacketFeeAsync.bind(this); + } + RegisterPayee(r) { + const n = e.MsgRegisterPayee.encode(r).finish(); + return this.rpc.request("ibc.applications.fee.v1.Msg", "RegisterPayee", n).then((o) => e.MsgRegisterPayeeResponse.decode(new t.Reader(o))); + } + RegisterCounterpartyPayee(r) { + const n = e.MsgRegisterCounterpartyPayee.encode(r).finish(); + return this.rpc.request("ibc.applications.fee.v1.Msg", "RegisterCounterpartyPayee", n).then((o) => e.MsgRegisterCounterpartyPayeeResponse.decode(new t.Reader(o))); + } + PayPacketFee(r) { + const n = e.MsgPayPacketFee.encode(r).finish(); + return this.rpc.request("ibc.applications.fee.v1.Msg", "PayPacketFee", n).then((o) => e.MsgPayPacketFeeResponse.decode(new t.Reader(o))); + } + PayPacketFeeAsync(r) { + const n = e.MsgPayPacketFeeAsync.encode(r).finish(); + return this.rpc.request("ibc.applications.fee.v1.Msg", "PayPacketFeeAsync", n).then((o) => e.MsgPayPacketFeeAsyncResponse.decode(new t.Reader(o))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 865: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(n, o, i, f) { + f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { + return o[i]; + } }); + } : function(n, o, i, f) { + f === void 0 && (f = i), n[f] = o[i]; + }), A = this && this.__setModuleDefault || (Object.create ? function(n, o) { + Object.defineProperty(n, "default", { enumerable: !0, value: o }); + } : function(n, o) { + n.default = o; + }), k = this && this.__importStar || function(n) { + if (n && n.__esModule) + return n; + var o = {}; + if (n != null) + for (var i in n) + i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && O(o, n, i); + return A(o, n), o; + }, b = this && this.__importDefault || function(n) { + return n && n.__esModule ? n : { default: n }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgTransferResponse = e.MsgTransfer = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976), d = _(5650); + function s(n) { + return n.toString(); + } + function r(n) { + return n != null; + } + e.protobufPackage = "ibc.applications.transfer.v1", e.MsgTransfer = { encode: (n, o = t.Writer.create()) => (n.source_port !== "" && o.uint32(10).string(n.source_port), n.source_channel !== "" && o.uint32(18).string(n.source_channel), n.token !== void 0 && u.Coin.encode(n.token, o.uint32(26).fork()).ldelim(), n.sender !== "" && o.uint32(34).string(n.sender), n.receiver !== "" && o.uint32(42).string(n.receiver), n.timeout_height !== void 0 && d.Height.encode(n.timeout_height, o.uint32(50).fork()).ldelim(), n.timeout_timestamp !== "0" && o.uint32(56).uint64(n.timeout_timestamp), n.memo !== "" && o.uint32(66).string(n.memo), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { source_port: "", source_channel: "", token: void 0, sender: "", receiver: "", timeout_height: void 0, timeout_timestamp: "0", memo: "" }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.source_port = i.string(); + break; + case 2: + c.source_channel = i.string(); + break; + case 3: + c.token = u.Coin.decode(i, i.uint32()); + break; + case 4: + c.sender = i.string(); + break; + case 5: + c.receiver = i.string(); + break; + case 6: + c.timeout_height = d.Height.decode(i, i.uint32()); + break; + case 7: + c.timeout_timestamp = s(i.uint64()); + break; + case 8: + c.memo = i.string(); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ source_port: r(n.source_port) ? String(n.source_port) : "", source_channel: r(n.source_channel) ? String(n.source_channel) : "", token: r(n.token) ? u.Coin.fromJSON(n.token) : void 0, sender: r(n.sender) ? String(n.sender) : "", receiver: r(n.receiver) ? String(n.receiver) : "", timeout_height: r(n.timeout_height) ? d.Height.fromJSON(n.timeout_height) : void 0, timeout_timestamp: r(n.timeout_timestamp) ? String(n.timeout_timestamp) : "0", memo: r(n.memo) ? String(n.memo) : "" }), toJSON(n) { + const o = {}; + return n.source_port !== void 0 && (o.source_port = n.source_port), n.source_channel !== void 0 && (o.source_channel = n.source_channel), n.token !== void 0 && (o.token = n.token ? u.Coin.toJSON(n.token) : void 0), n.sender !== void 0 && (o.sender = n.sender), n.receiver !== void 0 && (o.receiver = n.receiver), n.timeout_height !== void 0 && (o.timeout_height = n.timeout_height ? d.Height.toJSON(n.timeout_height) : void 0), n.timeout_timestamp !== void 0 && (o.timeout_timestamp = n.timeout_timestamp), n.memo !== void 0 && (o.memo = n.memo), o; + }, fromPartial(n) { + var o, i, f, c, h, p; + const m = { source_port: "", source_channel: "", token: void 0, sender: "", receiver: "", timeout_height: void 0, timeout_timestamp: "0", memo: "" }; + return m.source_port = (o = n.source_port) !== null && o !== void 0 ? o : "", m.source_channel = (i = n.source_channel) !== null && i !== void 0 ? i : "", m.token = n.token !== void 0 && n.token !== null ? u.Coin.fromPartial(n.token) : void 0, m.sender = (f = n.sender) !== null && f !== void 0 ? f : "", m.receiver = (c = n.receiver) !== null && c !== void 0 ? c : "", m.timeout_height = n.timeout_height !== void 0 && n.timeout_height !== null ? d.Height.fromPartial(n.timeout_height) : void 0, m.timeout_timestamp = (h = n.timeout_timestamp) !== null && h !== void 0 ? h : "0", m.memo = (p = n.memo) !== null && p !== void 0 ? p : "", m; + } }, e.MsgTransferResponse = { encode: (n, o = t.Writer.create()) => (n.sequence !== "0" && o.uint32(8).uint64(n.sequence), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { sequence: "0" }; + for (; i.pos < f; ) { + const h = i.uint32(); + h >>> 3 == 1 ? c.sequence = s(i.uint64()) : i.skipType(7 & h); + } + return c; + }, fromJSON: (n) => ({ sequence: r(n.sequence) ? String(n.sequence) : "0" }), toJSON(n) { + const o = {}; + return n.sequence !== void 0 && (o.sequence = n.sequence), o; + }, fromPartial(n) { + var o; + const i = { sequence: "0" }; + return i.sequence = (o = n.sequence) !== null && o !== void 0 ? o : "0", i; + } }, e.MsgClientImpl = class { + constructor(n) { + this.rpc = n, this.Transfer = this.Transfer.bind(this); + } + Transfer(n) { + const o = e.MsgTransfer.encode(n).finish(); + return this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", o).then((i) => e.MsgTransferResponse.decode(new t.Reader(i))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5414: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(R, I, x, P) { + P === void 0 && (P = x), Object.defineProperty(R, P, { enumerable: !0, get: function() { + return I[x]; + } }); + } : function(R, I, x, P) { + P === void 0 && (P = x), R[P] = I[x]; + }), A = this && this.__setModuleDefault || (Object.create ? function(R, I) { + Object.defineProperty(R, "default", { enumerable: !0, value: I }); + } : function(R, I) { + R.default = I; + }), k = this && this.__importStar || function(R) { + if (R && R.__esModule) + return R; + var I = {}; + if (R != null) + for (var x in R) + x !== "default" && Object.prototype.hasOwnProperty.call(R, x) && O(I, R, x); + return A(I, R), I; + }, b = this && this.__importDefault || function(R) { + return R && R.__esModule ? R : { default: R }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Acknowledgement = e.PacketId = e.PacketState = e.Packet = e.Counterparty = e.IdentifiedChannel = e.Channel = e.orderToJSON = e.orderFromJSON = e.Order = e.stateToJSON = e.stateFromJSON = e.State = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5650); + var d, s; + function r(R) { + switch (R) { + case 0: + case "STATE_UNINITIALIZED_UNSPECIFIED": + return d.STATE_UNINITIALIZED_UNSPECIFIED; + case 1: + case "STATE_INIT": + return d.STATE_INIT; + case 2: + case "STATE_TRYOPEN": + return d.STATE_TRYOPEN; + case 3: + case "STATE_OPEN": + return d.STATE_OPEN; + case 4: + case "STATE_CLOSED": + return d.STATE_CLOSED; + default: + return d.UNRECOGNIZED; + } + } + function n(R) { + switch (R) { + case d.STATE_UNINITIALIZED_UNSPECIFIED: + return "STATE_UNINITIALIZED_UNSPECIFIED"; + case d.STATE_INIT: + return "STATE_INIT"; + case d.STATE_TRYOPEN: + return "STATE_TRYOPEN"; + case d.STATE_OPEN: + return "STATE_OPEN"; + case d.STATE_CLOSED: + return "STATE_CLOSED"; + default: + return "UNKNOWN"; + } + } + function o(R) { + switch (R) { + case 0: + case "ORDER_NONE_UNSPECIFIED": + return s.ORDER_NONE_UNSPECIFIED; + case 1: + case "ORDER_UNORDERED": + return s.ORDER_UNORDERED; + case 2: + case "ORDER_ORDERED": + return s.ORDER_ORDERED; + default: + return s.UNRECOGNIZED; + } + } + function i(R) { + switch (R) { + case s.ORDER_NONE_UNSPECIFIED: + return "ORDER_NONE_UNSPECIFIED"; + case s.ORDER_UNORDERED: + return "ORDER_UNORDERED"; + case s.ORDER_ORDERED: + return "ORDER_ORDERED"; + default: + return "UNKNOWN"; + } + } + function f() { + return { sequence: "0", source_port: "", source_channel: "", destination_port: "", destination_channel: "", data: new Uint8Array(), timeout_height: void 0, timeout_timestamp: "0" }; + } + function c() { + return { port_id: "", channel_id: "", sequence: "0", data: new Uint8Array() }; + } + e.protobufPackage = "ibc.core.channel.v1", function(R) { + R[R.STATE_UNINITIALIZED_UNSPECIFIED = 0] = "STATE_UNINITIALIZED_UNSPECIFIED", R[R.STATE_INIT = 1] = "STATE_INIT", R[R.STATE_TRYOPEN = 2] = "STATE_TRYOPEN", R[R.STATE_OPEN = 3] = "STATE_OPEN", R[R.STATE_CLOSED = 4] = "STATE_CLOSED", R[R.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(d = e.State || (e.State = {})), e.stateFromJSON = r, e.stateToJSON = n, function(R) { + R[R.ORDER_NONE_UNSPECIFIED = 0] = "ORDER_NONE_UNSPECIFIED", R[R.ORDER_UNORDERED = 1] = "ORDER_UNORDERED", R[R.ORDER_ORDERED = 2] = "ORDER_ORDERED", R[R.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(s = e.Order || (e.Order = {})), e.orderFromJSON = o, e.orderToJSON = i, e.Channel = { encode(R, I = t.Writer.create()) { + R.state !== 0 && I.uint32(8).int32(R.state), R.ordering !== 0 && I.uint32(16).int32(R.ordering), R.counterparty !== void 0 && e.Counterparty.encode(R.counterparty, I.uint32(26).fork()).ldelim(); + for (const x of R.connection_hops) + I.uint32(34).string(x); + return R.version !== "" && I.uint32(42).string(R.version), I; + }, decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = { state: 0, ordering: 0, counterparty: void 0, connection_hops: [], version: "" }; + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.state = x.int32(); + break; + case 2: + w.ordering = x.int32(); + break; + case 3: + w.counterparty = e.Counterparty.decode(x, x.uint32()); + break; + case 4: + w.connection_hops.push(x.string()); + break; + case 5: + w.version = x.string(); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ state: j(R.state) ? r(R.state) : 0, ordering: j(R.ordering) ? o(R.ordering) : 0, counterparty: j(R.counterparty) ? e.Counterparty.fromJSON(R.counterparty) : void 0, connection_hops: Array.isArray(R == null ? void 0 : R.connection_hops) ? R.connection_hops.map((I) => String(I)) : [], version: j(R.version) ? String(R.version) : "" }), toJSON(R) { + const I = {}; + return R.state !== void 0 && (I.state = n(R.state)), R.ordering !== void 0 && (I.ordering = i(R.ordering)), R.counterparty !== void 0 && (I.counterparty = R.counterparty ? e.Counterparty.toJSON(R.counterparty) : void 0), R.connection_hops ? I.connection_hops = R.connection_hops.map((x) => x) : I.connection_hops = [], R.version !== void 0 && (I.version = R.version), I; + }, fromPartial(R) { + var I, x, P, w; + const g = { state: 0, ordering: 0, counterparty: void 0, connection_hops: [], version: "" }; + return g.state = (I = R.state) !== null && I !== void 0 ? I : 0, g.ordering = (x = R.ordering) !== null && x !== void 0 ? x : 0, g.counterparty = R.counterparty !== void 0 && R.counterparty !== null ? e.Counterparty.fromPartial(R.counterparty) : void 0, g.connection_hops = ((P = R.connection_hops) === null || P === void 0 ? void 0 : P.map((E) => E)) || [], g.version = (w = R.version) !== null && w !== void 0 ? w : "", g; + } }, e.IdentifiedChannel = { encode(R, I = t.Writer.create()) { + R.state !== 0 && I.uint32(8).int32(R.state), R.ordering !== 0 && I.uint32(16).int32(R.ordering), R.counterparty !== void 0 && e.Counterparty.encode(R.counterparty, I.uint32(26).fork()).ldelim(); + for (const x of R.connection_hops) + I.uint32(34).string(x); + return R.version !== "" && I.uint32(42).string(R.version), R.port_id !== "" && I.uint32(50).string(R.port_id), R.channel_id !== "" && I.uint32(58).string(R.channel_id), I; + }, decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = { state: 0, ordering: 0, counterparty: void 0, connection_hops: [], version: "", port_id: "", channel_id: "" }; + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.state = x.int32(); + break; + case 2: + w.ordering = x.int32(); + break; + case 3: + w.counterparty = e.Counterparty.decode(x, x.uint32()); + break; + case 4: + w.connection_hops.push(x.string()); + break; + case 5: + w.version = x.string(); + break; + case 6: + w.port_id = x.string(); + break; + case 7: + w.channel_id = x.string(); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ state: j(R.state) ? r(R.state) : 0, ordering: j(R.ordering) ? o(R.ordering) : 0, counterparty: j(R.counterparty) ? e.Counterparty.fromJSON(R.counterparty) : void 0, connection_hops: Array.isArray(R == null ? void 0 : R.connection_hops) ? R.connection_hops.map((I) => String(I)) : [], version: j(R.version) ? String(R.version) : "", port_id: j(R.port_id) ? String(R.port_id) : "", channel_id: j(R.channel_id) ? String(R.channel_id) : "" }), toJSON(R) { + const I = {}; + return R.state !== void 0 && (I.state = n(R.state)), R.ordering !== void 0 && (I.ordering = i(R.ordering)), R.counterparty !== void 0 && (I.counterparty = R.counterparty ? e.Counterparty.toJSON(R.counterparty) : void 0), R.connection_hops ? I.connection_hops = R.connection_hops.map((x) => x) : I.connection_hops = [], R.version !== void 0 && (I.version = R.version), R.port_id !== void 0 && (I.port_id = R.port_id), R.channel_id !== void 0 && (I.channel_id = R.channel_id), I; + }, fromPartial(R) { + var I, x, P, w, g, E; + const U = { state: 0, ordering: 0, counterparty: void 0, connection_hops: [], version: "", port_id: "", channel_id: "" }; + return U.state = (I = R.state) !== null && I !== void 0 ? I : 0, U.ordering = (x = R.ordering) !== null && x !== void 0 ? x : 0, U.counterparty = R.counterparty !== void 0 && R.counterparty !== null ? e.Counterparty.fromPartial(R.counterparty) : void 0, U.connection_hops = ((P = R.connection_hops) === null || P === void 0 ? void 0 : P.map((C) => C)) || [], U.version = (w = R.version) !== null && w !== void 0 ? w : "", U.port_id = (g = R.port_id) !== null && g !== void 0 ? g : "", U.channel_id = (E = R.channel_id) !== null && E !== void 0 ? E : "", U; + } }, e.Counterparty = { encode: (R, I = t.Writer.create()) => (R.port_id !== "" && I.uint32(10).string(R.port_id), R.channel_id !== "" && I.uint32(18).string(R.channel_id), I), decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = { port_id: "", channel_id: "" }; + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.port_id = x.string(); + break; + case 2: + w.channel_id = x.string(); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ port_id: j(R.port_id) ? String(R.port_id) : "", channel_id: j(R.channel_id) ? String(R.channel_id) : "" }), toJSON(R) { + const I = {}; + return R.port_id !== void 0 && (I.port_id = R.port_id), R.channel_id !== void 0 && (I.channel_id = R.channel_id), I; + }, fromPartial(R) { + var I, x; + const P = { port_id: "", channel_id: "" }; + return P.port_id = (I = R.port_id) !== null && I !== void 0 ? I : "", P.channel_id = (x = R.channel_id) !== null && x !== void 0 ? x : "", P; + } }, e.Packet = { encode: (R, I = t.Writer.create()) => (R.sequence !== "0" && I.uint32(8).uint64(R.sequence), R.source_port !== "" && I.uint32(18).string(R.source_port), R.source_channel !== "" && I.uint32(26).string(R.source_channel), R.destination_port !== "" && I.uint32(34).string(R.destination_port), R.destination_channel !== "" && I.uint32(42).string(R.destination_channel), R.data.length !== 0 && I.uint32(50).bytes(R.data), R.timeout_height !== void 0 && u.Height.encode(R.timeout_height, I.uint32(58).fork()).ldelim(), R.timeout_timestamp !== "0" && I.uint32(64).uint64(R.timeout_timestamp), I), decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = f(); + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.sequence = N(x.uint64()); + break; + case 2: + w.source_port = x.string(); + break; + case 3: + w.source_channel = x.string(); + break; + case 4: + w.destination_port = x.string(); + break; + case 5: + w.destination_channel = x.string(); + break; + case 6: + w.data = x.bytes(); + break; + case 7: + w.timeout_height = u.Height.decode(x, x.uint32()); + break; + case 8: + w.timeout_timestamp = N(x.uint64()); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ sequence: j(R.sequence) ? String(R.sequence) : "0", source_port: j(R.source_port) ? String(R.source_port) : "", source_channel: j(R.source_channel) ? String(R.source_channel) : "", destination_port: j(R.destination_port) ? String(R.destination_port) : "", destination_channel: j(R.destination_channel) ? String(R.destination_channel) : "", data: j(R.data) ? m(R.data) : new Uint8Array(), timeout_height: j(R.timeout_height) ? u.Height.fromJSON(R.timeout_height) : void 0, timeout_timestamp: j(R.timeout_timestamp) ? String(R.timeout_timestamp) : "0" }), toJSON(R) { + const I = {}; + return R.sequence !== void 0 && (I.sequence = R.sequence), R.source_port !== void 0 && (I.source_port = R.source_port), R.source_channel !== void 0 && (I.source_channel = R.source_channel), R.destination_port !== void 0 && (I.destination_port = R.destination_port), R.destination_channel !== void 0 && (I.destination_channel = R.destination_channel), R.data !== void 0 && (I.data = l(R.data !== void 0 ? R.data : new Uint8Array())), R.timeout_height !== void 0 && (I.timeout_height = R.timeout_height ? u.Height.toJSON(R.timeout_height) : void 0), R.timeout_timestamp !== void 0 && (I.timeout_timestamp = R.timeout_timestamp), I; + }, fromPartial(R) { + var I, x, P, w, g, E, U; + const C = f(); + return C.sequence = (I = R.sequence) !== null && I !== void 0 ? I : "0", C.source_port = (x = R.source_port) !== null && x !== void 0 ? x : "", C.source_channel = (P = R.source_channel) !== null && P !== void 0 ? P : "", C.destination_port = (w = R.destination_port) !== null && w !== void 0 ? w : "", C.destination_channel = (g = R.destination_channel) !== null && g !== void 0 ? g : "", C.data = (E = R.data) !== null && E !== void 0 ? E : new Uint8Array(), C.timeout_height = R.timeout_height !== void 0 && R.timeout_height !== null ? u.Height.fromPartial(R.timeout_height) : void 0, C.timeout_timestamp = (U = R.timeout_timestamp) !== null && U !== void 0 ? U : "0", C; + } }, e.PacketState = { encode: (R, I = t.Writer.create()) => (R.port_id !== "" && I.uint32(10).string(R.port_id), R.channel_id !== "" && I.uint32(18).string(R.channel_id), R.sequence !== "0" && I.uint32(24).uint64(R.sequence), R.data.length !== 0 && I.uint32(34).bytes(R.data), I), decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = c(); + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.port_id = x.string(); + break; + case 2: + w.channel_id = x.string(); + break; + case 3: + w.sequence = N(x.uint64()); + break; + case 4: + w.data = x.bytes(); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ port_id: j(R.port_id) ? String(R.port_id) : "", channel_id: j(R.channel_id) ? String(R.channel_id) : "", sequence: j(R.sequence) ? String(R.sequence) : "0", data: j(R.data) ? m(R.data) : new Uint8Array() }), toJSON(R) { + const I = {}; + return R.port_id !== void 0 && (I.port_id = R.port_id), R.channel_id !== void 0 && (I.channel_id = R.channel_id), R.sequence !== void 0 && (I.sequence = R.sequence), R.data !== void 0 && (I.data = l(R.data !== void 0 ? R.data : new Uint8Array())), I; + }, fromPartial(R) { + var I, x, P, w; + const g = c(); + return g.port_id = (I = R.port_id) !== null && I !== void 0 ? I : "", g.channel_id = (x = R.channel_id) !== null && x !== void 0 ? x : "", g.sequence = (P = R.sequence) !== null && P !== void 0 ? P : "0", g.data = (w = R.data) !== null && w !== void 0 ? w : new Uint8Array(), g; + } }, e.PacketId = { encode: (R, I = t.Writer.create()) => (R.port_id !== "" && I.uint32(10).string(R.port_id), R.channel_id !== "" && I.uint32(18).string(R.channel_id), R.sequence !== "0" && I.uint32(24).uint64(R.sequence), I), decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = { port_id: "", channel_id: "", sequence: "0" }; + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 1: + w.port_id = x.string(); + break; + case 2: + w.channel_id = x.string(); + break; + case 3: + w.sequence = N(x.uint64()); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ port_id: j(R.port_id) ? String(R.port_id) : "", channel_id: j(R.channel_id) ? String(R.channel_id) : "", sequence: j(R.sequence) ? String(R.sequence) : "0" }), toJSON(R) { + const I = {}; + return R.port_id !== void 0 && (I.port_id = R.port_id), R.channel_id !== void 0 && (I.channel_id = R.channel_id), R.sequence !== void 0 && (I.sequence = R.sequence), I; + }, fromPartial(R) { + var I, x, P; + const w = { port_id: "", channel_id: "", sequence: "0" }; + return w.port_id = (I = R.port_id) !== null && I !== void 0 ? I : "", w.channel_id = (x = R.channel_id) !== null && x !== void 0 ? x : "", w.sequence = (P = R.sequence) !== null && P !== void 0 ? P : "0", w; + } }, e.Acknowledgement = { encode: (R, I = t.Writer.create()) => (R.result !== void 0 && I.uint32(170).bytes(R.result), R.error !== void 0 && I.uint32(178).string(R.error), I), decode(R, I) { + const x = R instanceof t.Reader ? R : new t.Reader(R); + let P = I === void 0 ? x.len : x.pos + I; + const w = { result: void 0, error: void 0 }; + for (; x.pos < P; ) { + const g = x.uint32(); + switch (g >>> 3) { + case 21: + w.result = x.bytes(); + break; + case 22: + w.error = x.string(); + break; + default: + x.skipType(7 & g); + } + } + return w; + }, fromJSON: (R) => ({ result: j(R.result) ? m(R.result) : void 0, error: j(R.error) ? String(R.error) : void 0 }), toJSON(R) { + const I = {}; + return R.result !== void 0 && (I.result = R.result !== void 0 ? l(R.result) : void 0), R.error !== void 0 && (I.error = R.error), I; + }, fromPartial(R) { + var I, x; + const P = { result: void 0, error: void 0 }; + return P.result = (I = R.result) !== null && I !== void 0 ? I : void 0, P.error = (x = R.error) !== null && x !== void 0 ? x : void 0, P; + } }; + var h = (() => { + if (h !== void 0) + return h; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const p = h.atob || ((R) => h.Buffer.from(R, "base64").toString("binary")); + function m(R) { + const I = p(R), x = new Uint8Array(I.length); + for (let P = 0; P < I.length; ++P) + x[P] = I.charCodeAt(P); + return x; + } + const M = h.btoa || ((R) => h.Buffer.from(R, "binary").toString("base64")); + function l(R) { + const I = []; + for (const x of R) + I.push(String.fromCharCode(x)); + return M(I.join("")); + } + function N(R) { + return R.toString(); + } + function j(R) { + return R != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 7579: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(w, g, E, U) { + U === void 0 && (U = E), Object.defineProperty(w, U, { enumerable: !0, get: function() { + return g[E]; + } }); + } : function(w, g, E, U) { + U === void 0 && (U = E), w[U] = g[E]; + }), A = this && this.__setModuleDefault || (Object.create ? function(w, g) { + Object.defineProperty(w, "default", { enumerable: !0, value: g }); + } : function(w, g) { + w.default = g; + }), k = this && this.__importStar || function(w) { + if (w && w.__esModule) + return w; + var g = {}; + if (w != null) + for (var E in w) + E !== "default" && Object.prototype.hasOwnProperty.call(w, E) && O(g, w, E); + return A(g, w), g; + }, b = this && this.__importDefault || function(w) { + return w && w.__esModule ? w : { default: w }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgAcknowledgementResponse = e.MsgAcknowledgement = e.MsgTimeoutOnCloseResponse = e.MsgTimeoutOnClose = e.MsgTimeoutResponse = e.MsgTimeout = e.MsgRecvPacketResponse = e.MsgRecvPacket = e.MsgChannelCloseConfirmResponse = e.MsgChannelCloseConfirm = e.MsgChannelCloseInitResponse = e.MsgChannelCloseInit = e.MsgChannelOpenConfirmResponse = e.MsgChannelOpenConfirm = e.MsgChannelOpenAckResponse = e.MsgChannelOpenAck = e.MsgChannelOpenTryResponse = e.MsgChannelOpenTry = e.MsgChannelOpenInitResponse = e.MsgChannelOpenInit = e.responseResultTypeToJSON = e.responseResultTypeFromJSON = e.ResponseResultType = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5414), d = _(5650); + var s; + function r(w) { + switch (w) { + case 0: + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + return s.RESPONSE_RESULT_TYPE_UNSPECIFIED; + case 1: + case "RESPONSE_RESULT_TYPE_NOOP": + return s.RESPONSE_RESULT_TYPE_NOOP; + case 2: + case "RESPONSE_RESULT_TYPE_SUCCESS": + return s.RESPONSE_RESULT_TYPE_SUCCESS; + default: + return s.UNRECOGNIZED; + } + } + function n(w) { + switch (w) { + case s.RESPONSE_RESULT_TYPE_UNSPECIFIED: + return "RESPONSE_RESULT_TYPE_UNSPECIFIED"; + case s.RESPONSE_RESULT_TYPE_NOOP: + return "RESPONSE_RESULT_TYPE_NOOP"; + case s.RESPONSE_RESULT_TYPE_SUCCESS: + return "RESPONSE_RESULT_TYPE_SUCCESS"; + default: + return "UNKNOWN"; + } + } + function o() { + return { port_id: "", previous_channel_id: "", channel: void 0, counterparty_version: "", proof_init: new Uint8Array(), proof_height: void 0, signer: "" }; + } + function i() { + return { port_id: "", channel_id: "", counterparty_channel_id: "", counterparty_version: "", proof_try: new Uint8Array(), proof_height: void 0, signer: "" }; + } + function f() { + return { port_id: "", channel_id: "", proof_ack: new Uint8Array(), proof_height: void 0, signer: "" }; + } + function c() { + return { port_id: "", channel_id: "", proof_init: new Uint8Array(), proof_height: void 0, signer: "" }; + } + function h() { + return { packet: void 0, proof_commitment: new Uint8Array(), proof_height: void 0, signer: "" }; + } + function p() { + return { packet: void 0, proof_unreceived: new Uint8Array(), proof_height: void 0, next_sequence_recv: "0", signer: "" }; + } + function m() { + return { packet: void 0, proof_unreceived: new Uint8Array(), proof_close: new Uint8Array(), proof_height: void 0, next_sequence_recv: "0", signer: "" }; + } + function M() { + return { packet: void 0, acknowledgement: new Uint8Array(), proof_acked: new Uint8Array(), proof_height: void 0, signer: "" }; + } + e.protobufPackage = "ibc.core.channel.v1", function(w) { + w[w.RESPONSE_RESULT_TYPE_UNSPECIFIED = 0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED", w[w.RESPONSE_RESULT_TYPE_NOOP = 1] = "RESPONSE_RESULT_TYPE_NOOP", w[w.RESPONSE_RESULT_TYPE_SUCCESS = 2] = "RESPONSE_RESULT_TYPE_SUCCESS", w[w.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(s = e.ResponseResultType || (e.ResponseResultType = {})), e.responseResultTypeFromJSON = r, e.responseResultTypeToJSON = n, e.MsgChannelOpenInit = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.channel !== void 0 && u.Channel.encode(w.channel, g.uint32(18).fork()).ldelim(), w.signer !== "" && g.uint32(26).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { port_id: "", channel: void 0, signer: "" }; + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.channel = u.Channel.decode(E, E.uint32()); + break; + case 3: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", channel: P(w.channel) ? u.Channel.fromJSON(w.channel) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.channel !== void 0 && (g.channel = w.channel ? u.Channel.toJSON(w.channel) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E; + const U = { port_id: "", channel: void 0, signer: "" }; + return U.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", U.channel = w.channel !== void 0 && w.channel !== null ? u.Channel.fromPartial(w.channel) : void 0, U.signer = (E = w.signer) !== null && E !== void 0 ? E : "", U; + } }, e.MsgChannelOpenInitResponse = { encode: (w, g = t.Writer.create()) => (w.channel_id !== "" && g.uint32(10).string(w.channel_id), w.version !== "" && g.uint32(18).string(w.version), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { channel_id: "", version: "" }; + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.channel_id = E.string(); + break; + case 2: + C.version = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ channel_id: P(w.channel_id) ? String(w.channel_id) : "", version: P(w.version) ? String(w.version) : "" }), toJSON(w) { + const g = {}; + return w.channel_id !== void 0 && (g.channel_id = w.channel_id), w.version !== void 0 && (g.version = w.version), g; + }, fromPartial(w) { + var g, E; + const U = { channel_id: "", version: "" }; + return U.channel_id = (g = w.channel_id) !== null && g !== void 0 ? g : "", U.version = (E = w.version) !== null && E !== void 0 ? E : "", U; + } }, e.MsgChannelOpenTry = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.previous_channel_id !== "" && g.uint32(18).string(w.previous_channel_id), w.channel !== void 0 && u.Channel.encode(w.channel, g.uint32(26).fork()).ldelim(), w.counterparty_version !== "" && g.uint32(34).string(w.counterparty_version), w.proof_init.length !== 0 && g.uint32(42).bytes(w.proof_init), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(50).fork()).ldelim(), w.signer !== "" && g.uint32(58).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = o(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.previous_channel_id = E.string(); + break; + case 3: + C.channel = u.Channel.decode(E, E.uint32()); + break; + case 4: + C.counterparty_version = E.string(); + break; + case 5: + C.proof_init = E.bytes(); + break; + case 6: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 7: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", previous_channel_id: P(w.previous_channel_id) ? String(w.previous_channel_id) : "", channel: P(w.channel) ? u.Channel.fromJSON(w.channel) : void 0, counterparty_version: P(w.counterparty_version) ? String(w.counterparty_version) : "", proof_init: P(w.proof_init) ? j(w.proof_init) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.previous_channel_id !== void 0 && (g.previous_channel_id = w.previous_channel_id), w.channel !== void 0 && (g.channel = w.channel ? u.Channel.toJSON(w.channel) : void 0), w.counterparty_version !== void 0 && (g.counterparty_version = w.counterparty_version), w.proof_init !== void 0 && (g.proof_init = I(w.proof_init !== void 0 ? w.proof_init : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U, C, F; + const re = o(); + return re.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", re.previous_channel_id = (E = w.previous_channel_id) !== null && E !== void 0 ? E : "", re.channel = w.channel !== void 0 && w.channel !== null ? u.Channel.fromPartial(w.channel) : void 0, re.counterparty_version = (U = w.counterparty_version) !== null && U !== void 0 ? U : "", re.proof_init = (C = w.proof_init) !== null && C !== void 0 ? C : new Uint8Array(), re.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, re.signer = (F = w.signer) !== null && F !== void 0 ? F : "", re; + } }, e.MsgChannelOpenTryResponse = { encode: (w, g = t.Writer.create()) => (w.version !== "" && g.uint32(10).string(w.version), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { version: "" }; + for (; E.pos < U; ) { + const F = E.uint32(); + F >>> 3 == 1 ? C.version = E.string() : E.skipType(7 & F); + } + return C; + }, fromJSON: (w) => ({ version: P(w.version) ? String(w.version) : "" }), toJSON(w) { + const g = {}; + return w.version !== void 0 && (g.version = w.version), g; + }, fromPartial(w) { + var g; + const E = { version: "" }; + return E.version = (g = w.version) !== null && g !== void 0 ? g : "", E; + } }, e.MsgChannelOpenAck = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.channel_id !== "" && g.uint32(18).string(w.channel_id), w.counterparty_channel_id !== "" && g.uint32(26).string(w.counterparty_channel_id), w.counterparty_version !== "" && g.uint32(34).string(w.counterparty_version), w.proof_try.length !== 0 && g.uint32(42).bytes(w.proof_try), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(50).fork()).ldelim(), w.signer !== "" && g.uint32(58).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = i(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.channel_id = E.string(); + break; + case 3: + C.counterparty_channel_id = E.string(); + break; + case 4: + C.counterparty_version = E.string(); + break; + case 5: + C.proof_try = E.bytes(); + break; + case 6: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 7: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", channel_id: P(w.channel_id) ? String(w.channel_id) : "", counterparty_channel_id: P(w.counterparty_channel_id) ? String(w.counterparty_channel_id) : "", counterparty_version: P(w.counterparty_version) ? String(w.counterparty_version) : "", proof_try: P(w.proof_try) ? j(w.proof_try) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.channel_id !== void 0 && (g.channel_id = w.channel_id), w.counterparty_channel_id !== void 0 && (g.counterparty_channel_id = w.counterparty_channel_id), w.counterparty_version !== void 0 && (g.counterparty_version = w.counterparty_version), w.proof_try !== void 0 && (g.proof_try = I(w.proof_try !== void 0 ? w.proof_try : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U, C, F, re; + const ee = i(); + return ee.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", ee.channel_id = (E = w.channel_id) !== null && E !== void 0 ? E : "", ee.counterparty_channel_id = (U = w.counterparty_channel_id) !== null && U !== void 0 ? U : "", ee.counterparty_version = (C = w.counterparty_version) !== null && C !== void 0 ? C : "", ee.proof_try = (F = w.proof_try) !== null && F !== void 0 ? F : new Uint8Array(), ee.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, ee.signer = (re = w.signer) !== null && re !== void 0 ? re : "", ee; + } }, e.MsgChannelOpenAckResponse = { encode: (w, g = t.Writer.create()) => g, decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + for (; E.pos < U; ) { + const C = E.uint32(); + E.skipType(7 & C); + } + return {}; + }, fromJSON: (w) => ({}), toJSON: (w) => ({}), fromPartial: (w) => ({}) }, e.MsgChannelOpenConfirm = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.channel_id !== "" && g.uint32(18).string(w.channel_id), w.proof_ack.length !== 0 && g.uint32(26).bytes(w.proof_ack), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(34).fork()).ldelim(), w.signer !== "" && g.uint32(42).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = f(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.channel_id = E.string(); + break; + case 3: + C.proof_ack = E.bytes(); + break; + case 4: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 5: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", channel_id: P(w.channel_id) ? String(w.channel_id) : "", proof_ack: P(w.proof_ack) ? j(w.proof_ack) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.channel_id !== void 0 && (g.channel_id = w.channel_id), w.proof_ack !== void 0 && (g.proof_ack = I(w.proof_ack !== void 0 ? w.proof_ack : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U, C; + const F = f(); + return F.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", F.channel_id = (E = w.channel_id) !== null && E !== void 0 ? E : "", F.proof_ack = (U = w.proof_ack) !== null && U !== void 0 ? U : new Uint8Array(), F.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, F.signer = (C = w.signer) !== null && C !== void 0 ? C : "", F; + } }, e.MsgChannelOpenConfirmResponse = { encode: (w, g = t.Writer.create()) => g, decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + for (; E.pos < U; ) { + const C = E.uint32(); + E.skipType(7 & C); + } + return {}; + }, fromJSON: (w) => ({}), toJSON: (w) => ({}), fromPartial: (w) => ({}) }, e.MsgChannelCloseInit = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.channel_id !== "" && g.uint32(18).string(w.channel_id), w.signer !== "" && g.uint32(26).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { port_id: "", channel_id: "", signer: "" }; + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.channel_id = E.string(); + break; + case 3: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", channel_id: P(w.channel_id) ? String(w.channel_id) : "", signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.channel_id !== void 0 && (g.channel_id = w.channel_id), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U; + const C = { port_id: "", channel_id: "", signer: "" }; + return C.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", C.channel_id = (E = w.channel_id) !== null && E !== void 0 ? E : "", C.signer = (U = w.signer) !== null && U !== void 0 ? U : "", C; + } }, e.MsgChannelCloseInitResponse = { encode: (w, g = t.Writer.create()) => g, decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + for (; E.pos < U; ) { + const C = E.uint32(); + E.skipType(7 & C); + } + return {}; + }, fromJSON: (w) => ({}), toJSON: (w) => ({}), fromPartial: (w) => ({}) }, e.MsgChannelCloseConfirm = { encode: (w, g = t.Writer.create()) => (w.port_id !== "" && g.uint32(10).string(w.port_id), w.channel_id !== "" && g.uint32(18).string(w.channel_id), w.proof_init.length !== 0 && g.uint32(26).bytes(w.proof_init), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(34).fork()).ldelim(), w.signer !== "" && g.uint32(42).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = c(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.port_id = E.string(); + break; + case 2: + C.channel_id = E.string(); + break; + case 3: + C.proof_init = E.bytes(); + break; + case 4: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 5: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ port_id: P(w.port_id) ? String(w.port_id) : "", channel_id: P(w.channel_id) ? String(w.channel_id) : "", proof_init: P(w.proof_init) ? j(w.proof_init) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.port_id !== void 0 && (g.port_id = w.port_id), w.channel_id !== void 0 && (g.channel_id = w.channel_id), w.proof_init !== void 0 && (g.proof_init = I(w.proof_init !== void 0 ? w.proof_init : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U, C; + const F = c(); + return F.port_id = (g = w.port_id) !== null && g !== void 0 ? g : "", F.channel_id = (E = w.channel_id) !== null && E !== void 0 ? E : "", F.proof_init = (U = w.proof_init) !== null && U !== void 0 ? U : new Uint8Array(), F.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, F.signer = (C = w.signer) !== null && C !== void 0 ? C : "", F; + } }, e.MsgChannelCloseConfirmResponse = { encode: (w, g = t.Writer.create()) => g, decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + for (; E.pos < U; ) { + const C = E.uint32(); + E.skipType(7 & C); + } + return {}; + }, fromJSON: (w) => ({}), toJSON: (w) => ({}), fromPartial: (w) => ({}) }, e.MsgRecvPacket = { encode: (w, g = t.Writer.create()) => (w.packet !== void 0 && u.Packet.encode(w.packet, g.uint32(10).fork()).ldelim(), w.proof_commitment.length !== 0 && g.uint32(18).bytes(w.proof_commitment), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(26).fork()).ldelim(), w.signer !== "" && g.uint32(34).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = h(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.packet = u.Packet.decode(E, E.uint32()); + break; + case 2: + C.proof_commitment = E.bytes(); + break; + case 3: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 4: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ packet: P(w.packet) ? u.Packet.fromJSON(w.packet) : void 0, proof_commitment: P(w.proof_commitment) ? j(w.proof_commitment) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.packet !== void 0 && (g.packet = w.packet ? u.Packet.toJSON(w.packet) : void 0), w.proof_commitment !== void 0 && (g.proof_commitment = I(w.proof_commitment !== void 0 ? w.proof_commitment : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E; + const U = h(); + return U.packet = w.packet !== void 0 && w.packet !== null ? u.Packet.fromPartial(w.packet) : void 0, U.proof_commitment = (g = w.proof_commitment) !== null && g !== void 0 ? g : new Uint8Array(), U.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, U.signer = (E = w.signer) !== null && E !== void 0 ? E : "", U; + } }, e.MsgRecvPacketResponse = { encode: (w, g = t.Writer.create()) => (w.result !== 0 && g.uint32(8).int32(w.result), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { result: 0 }; + for (; E.pos < U; ) { + const F = E.uint32(); + F >>> 3 == 1 ? C.result = E.int32() : E.skipType(7 & F); + } + return C; + }, fromJSON: (w) => ({ result: P(w.result) ? r(w.result) : 0 }), toJSON(w) { + const g = {}; + return w.result !== void 0 && (g.result = n(w.result)), g; + }, fromPartial(w) { + var g; + const E = { result: 0 }; + return E.result = (g = w.result) !== null && g !== void 0 ? g : 0, E; + } }, e.MsgTimeout = { encode: (w, g = t.Writer.create()) => (w.packet !== void 0 && u.Packet.encode(w.packet, g.uint32(10).fork()).ldelim(), w.proof_unreceived.length !== 0 && g.uint32(18).bytes(w.proof_unreceived), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(26).fork()).ldelim(), w.next_sequence_recv !== "0" && g.uint32(32).uint64(w.next_sequence_recv), w.signer !== "" && g.uint32(42).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = p(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.packet = u.Packet.decode(E, E.uint32()); + break; + case 2: + C.proof_unreceived = E.bytes(); + break; + case 3: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 4: + C.next_sequence_recv = x(E.uint64()); + break; + case 5: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ packet: P(w.packet) ? u.Packet.fromJSON(w.packet) : void 0, proof_unreceived: P(w.proof_unreceived) ? j(w.proof_unreceived) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, next_sequence_recv: P(w.next_sequence_recv) ? String(w.next_sequence_recv) : "0", signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.packet !== void 0 && (g.packet = w.packet ? u.Packet.toJSON(w.packet) : void 0), w.proof_unreceived !== void 0 && (g.proof_unreceived = I(w.proof_unreceived !== void 0 ? w.proof_unreceived : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.next_sequence_recv !== void 0 && (g.next_sequence_recv = w.next_sequence_recv), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U; + const C = p(); + return C.packet = w.packet !== void 0 && w.packet !== null ? u.Packet.fromPartial(w.packet) : void 0, C.proof_unreceived = (g = w.proof_unreceived) !== null && g !== void 0 ? g : new Uint8Array(), C.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, C.next_sequence_recv = (E = w.next_sequence_recv) !== null && E !== void 0 ? E : "0", C.signer = (U = w.signer) !== null && U !== void 0 ? U : "", C; + } }, e.MsgTimeoutResponse = { encode: (w, g = t.Writer.create()) => (w.result !== 0 && g.uint32(8).int32(w.result), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { result: 0 }; + for (; E.pos < U; ) { + const F = E.uint32(); + F >>> 3 == 1 ? C.result = E.int32() : E.skipType(7 & F); + } + return C; + }, fromJSON: (w) => ({ result: P(w.result) ? r(w.result) : 0 }), toJSON(w) { + const g = {}; + return w.result !== void 0 && (g.result = n(w.result)), g; + }, fromPartial(w) { + var g; + const E = { result: 0 }; + return E.result = (g = w.result) !== null && g !== void 0 ? g : 0, E; + } }, e.MsgTimeoutOnClose = { encode: (w, g = t.Writer.create()) => (w.packet !== void 0 && u.Packet.encode(w.packet, g.uint32(10).fork()).ldelim(), w.proof_unreceived.length !== 0 && g.uint32(18).bytes(w.proof_unreceived), w.proof_close.length !== 0 && g.uint32(26).bytes(w.proof_close), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(34).fork()).ldelim(), w.next_sequence_recv !== "0" && g.uint32(40).uint64(w.next_sequence_recv), w.signer !== "" && g.uint32(50).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = m(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.packet = u.Packet.decode(E, E.uint32()); + break; + case 2: + C.proof_unreceived = E.bytes(); + break; + case 3: + C.proof_close = E.bytes(); + break; + case 4: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 5: + C.next_sequence_recv = x(E.uint64()); + break; + case 6: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ packet: P(w.packet) ? u.Packet.fromJSON(w.packet) : void 0, proof_unreceived: P(w.proof_unreceived) ? j(w.proof_unreceived) : new Uint8Array(), proof_close: P(w.proof_close) ? j(w.proof_close) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, next_sequence_recv: P(w.next_sequence_recv) ? String(w.next_sequence_recv) : "0", signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.packet !== void 0 && (g.packet = w.packet ? u.Packet.toJSON(w.packet) : void 0), w.proof_unreceived !== void 0 && (g.proof_unreceived = I(w.proof_unreceived !== void 0 ? w.proof_unreceived : new Uint8Array())), w.proof_close !== void 0 && (g.proof_close = I(w.proof_close !== void 0 ? w.proof_close : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.next_sequence_recv !== void 0 && (g.next_sequence_recv = w.next_sequence_recv), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U, C; + const F = m(); + return F.packet = w.packet !== void 0 && w.packet !== null ? u.Packet.fromPartial(w.packet) : void 0, F.proof_unreceived = (g = w.proof_unreceived) !== null && g !== void 0 ? g : new Uint8Array(), F.proof_close = (E = w.proof_close) !== null && E !== void 0 ? E : new Uint8Array(), F.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, F.next_sequence_recv = (U = w.next_sequence_recv) !== null && U !== void 0 ? U : "0", F.signer = (C = w.signer) !== null && C !== void 0 ? C : "", F; + } }, e.MsgTimeoutOnCloseResponse = { encode: (w, g = t.Writer.create()) => (w.result !== 0 && g.uint32(8).int32(w.result), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { result: 0 }; + for (; E.pos < U; ) { + const F = E.uint32(); + F >>> 3 == 1 ? C.result = E.int32() : E.skipType(7 & F); + } + return C; + }, fromJSON: (w) => ({ result: P(w.result) ? r(w.result) : 0 }), toJSON(w) { + const g = {}; + return w.result !== void 0 && (g.result = n(w.result)), g; + }, fromPartial(w) { + var g; + const E = { result: 0 }; + return E.result = (g = w.result) !== null && g !== void 0 ? g : 0, E; + } }, e.MsgAcknowledgement = { encode: (w, g = t.Writer.create()) => (w.packet !== void 0 && u.Packet.encode(w.packet, g.uint32(10).fork()).ldelim(), w.acknowledgement.length !== 0 && g.uint32(18).bytes(w.acknowledgement), w.proof_acked.length !== 0 && g.uint32(26).bytes(w.proof_acked), w.proof_height !== void 0 && d.Height.encode(w.proof_height, g.uint32(34).fork()).ldelim(), w.signer !== "" && g.uint32(42).string(w.signer), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = M(); + for (; E.pos < U; ) { + const F = E.uint32(); + switch (F >>> 3) { + case 1: + C.packet = u.Packet.decode(E, E.uint32()); + break; + case 2: + C.acknowledgement = E.bytes(); + break; + case 3: + C.proof_acked = E.bytes(); + break; + case 4: + C.proof_height = d.Height.decode(E, E.uint32()); + break; + case 5: + C.signer = E.string(); + break; + default: + E.skipType(7 & F); + } + } + return C; + }, fromJSON: (w) => ({ packet: P(w.packet) ? u.Packet.fromJSON(w.packet) : void 0, acknowledgement: P(w.acknowledgement) ? j(w.acknowledgement) : new Uint8Array(), proof_acked: P(w.proof_acked) ? j(w.proof_acked) : new Uint8Array(), proof_height: P(w.proof_height) ? d.Height.fromJSON(w.proof_height) : void 0, signer: P(w.signer) ? String(w.signer) : "" }), toJSON(w) { + const g = {}; + return w.packet !== void 0 && (g.packet = w.packet ? u.Packet.toJSON(w.packet) : void 0), w.acknowledgement !== void 0 && (g.acknowledgement = I(w.acknowledgement !== void 0 ? w.acknowledgement : new Uint8Array())), w.proof_acked !== void 0 && (g.proof_acked = I(w.proof_acked !== void 0 ? w.proof_acked : new Uint8Array())), w.proof_height !== void 0 && (g.proof_height = w.proof_height ? d.Height.toJSON(w.proof_height) : void 0), w.signer !== void 0 && (g.signer = w.signer), g; + }, fromPartial(w) { + var g, E, U; + const C = M(); + return C.packet = w.packet !== void 0 && w.packet !== null ? u.Packet.fromPartial(w.packet) : void 0, C.acknowledgement = (g = w.acknowledgement) !== null && g !== void 0 ? g : new Uint8Array(), C.proof_acked = (E = w.proof_acked) !== null && E !== void 0 ? E : new Uint8Array(), C.proof_height = w.proof_height !== void 0 && w.proof_height !== null ? d.Height.fromPartial(w.proof_height) : void 0, C.signer = (U = w.signer) !== null && U !== void 0 ? U : "", C; + } }, e.MsgAcknowledgementResponse = { encode: (w, g = t.Writer.create()) => (w.result !== 0 && g.uint32(8).int32(w.result), g), decode(w, g) { + const E = w instanceof t.Reader ? w : new t.Reader(w); + let U = g === void 0 ? E.len : E.pos + g; + const C = { result: 0 }; + for (; E.pos < U; ) { + const F = E.uint32(); + F >>> 3 == 1 ? C.result = E.int32() : E.skipType(7 & F); + } + return C; + }, fromJSON: (w) => ({ result: P(w.result) ? r(w.result) : 0 }), toJSON(w) { + const g = {}; + return w.result !== void 0 && (g.result = n(w.result)), g; + }, fromPartial(w) { + var g; + const E = { result: 0 }; + return E.result = (g = w.result) !== null && g !== void 0 ? g : 0, E; + } }, e.MsgClientImpl = class { + constructor(w) { + this.rpc = w, this.ChannelOpenInit = this.ChannelOpenInit.bind(this), this.ChannelOpenTry = this.ChannelOpenTry.bind(this), this.ChannelOpenAck = this.ChannelOpenAck.bind(this), this.ChannelOpenConfirm = this.ChannelOpenConfirm.bind(this), this.ChannelCloseInit = this.ChannelCloseInit.bind(this), this.ChannelCloseConfirm = this.ChannelCloseConfirm.bind(this), this.RecvPacket = this.RecvPacket.bind(this), this.Timeout = this.Timeout.bind(this), this.TimeoutOnClose = this.TimeoutOnClose.bind(this), this.Acknowledgement = this.Acknowledgement.bind(this); + } + ChannelOpenInit(w) { + const g = e.MsgChannelOpenInit.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenInit", g).then((E) => e.MsgChannelOpenInitResponse.decode(new t.Reader(E))); + } + ChannelOpenTry(w) { + const g = e.MsgChannelOpenTry.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenTry", g).then((E) => e.MsgChannelOpenTryResponse.decode(new t.Reader(E))); + } + ChannelOpenAck(w) { + const g = e.MsgChannelOpenAck.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenAck", g).then((E) => e.MsgChannelOpenAckResponse.decode(new t.Reader(E))); + } + ChannelOpenConfirm(w) { + const g = e.MsgChannelOpenConfirm.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenConfirm", g).then((E) => e.MsgChannelOpenConfirmResponse.decode(new t.Reader(E))); + } + ChannelCloseInit(w) { + const g = e.MsgChannelCloseInit.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelCloseInit", g).then((E) => e.MsgChannelCloseInitResponse.decode(new t.Reader(E))); + } + ChannelCloseConfirm(w) { + const g = e.MsgChannelCloseConfirm.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "ChannelCloseConfirm", g).then((E) => e.MsgChannelCloseConfirmResponse.decode(new t.Reader(E))); + } + RecvPacket(w) { + const g = e.MsgRecvPacket.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "RecvPacket", g).then((E) => e.MsgRecvPacketResponse.decode(new t.Reader(E))); + } + Timeout(w) { + const g = e.MsgTimeout.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "Timeout", g).then((E) => e.MsgTimeoutResponse.decode(new t.Reader(E))); + } + TimeoutOnClose(w) { + const g = e.MsgTimeoutOnClose.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "TimeoutOnClose", g).then((E) => e.MsgTimeoutOnCloseResponse.decode(new t.Reader(E))); + } + Acknowledgement(w) { + const g = e.MsgAcknowledgement.encode(w).finish(); + return this.rpc.request("ibc.core.channel.v1.Msg", "Acknowledgement", g).then((E) => e.MsgAcknowledgementResponse.decode(new t.Reader(E))); + } + }; + var l = (() => { + if (l !== void 0) + return l; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const N = l.atob || ((w) => l.Buffer.from(w, "base64").toString("binary")); + function j(w) { + const g = N(w), E = new Uint8Array(g.length); + for (let U = 0; U < g.length; ++U) + E[U] = g.charCodeAt(U); + return E; + } + const R = l.btoa || ((w) => l.Buffer.from(w, "binary").toString("base64")); + function I(w) { + const g = []; + for (const E of w) + g.push(String.fromCharCode(E)); + return R(g.join("")); + } + function x(w) { + return w.toString(); + } + function P(w) { + return w != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5650: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(n, o, i, f) { + f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { + return o[i]; + } }); + } : function(n, o, i, f) { + f === void 0 && (f = i), n[f] = o[i]; + }), A = this && this.__setModuleDefault || (Object.create ? function(n, o) { + Object.defineProperty(n, "default", { enumerable: !0, value: o }); + } : function(n, o) { + n.default = o; + }), k = this && this.__importStar || function(n) { + if (n && n.__esModule) + return n; + var o = {}; + if (n != null) + for (var i in n) + i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && O(o, n, i); + return A(o, n), o; + }, b = this && this.__importDefault || function(n) { + return n && n.__esModule ? n : { default: n }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Params = e.Height = e.UpgradeProposal = e.ClientUpdateProposal = e.ClientConsensusStates = e.ConsensusStateWithHeight = e.IdentifiedClientState = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191), d = _(8310); + function s(n) { + return n.toString(); + } + function r(n) { + return n != null; + } + e.protobufPackage = "ibc.core.client.v1", e.IdentifiedClientState = { encode: (n, o = t.Writer.create()) => (n.client_id !== "" && o.uint32(10).string(n.client_id), n.client_state !== void 0 && u.Any.encode(n.client_state, o.uint32(18).fork()).ldelim(), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { client_id: "", client_state: void 0 }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.client_id = i.string(); + break; + case 2: + c.client_state = u.Any.decode(i, i.uint32()); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ client_id: r(n.client_id) ? String(n.client_id) : "", client_state: r(n.client_state) ? u.Any.fromJSON(n.client_state) : void 0 }), toJSON(n) { + const o = {}; + return n.client_id !== void 0 && (o.client_id = n.client_id), n.client_state !== void 0 && (o.client_state = n.client_state ? u.Any.toJSON(n.client_state) : void 0), o; + }, fromPartial(n) { + var o; + const i = { client_id: "", client_state: void 0 }; + return i.client_id = (o = n.client_id) !== null && o !== void 0 ? o : "", i.client_state = n.client_state !== void 0 && n.client_state !== null ? u.Any.fromPartial(n.client_state) : void 0, i; + } }, e.ConsensusStateWithHeight = { encode: (n, o = t.Writer.create()) => (n.height !== void 0 && e.Height.encode(n.height, o.uint32(10).fork()).ldelim(), n.consensus_state !== void 0 && u.Any.encode(n.consensus_state, o.uint32(18).fork()).ldelim(), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { height: void 0, consensus_state: void 0 }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.height = e.Height.decode(i, i.uint32()); + break; + case 2: + c.consensus_state = u.Any.decode(i, i.uint32()); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ height: r(n.height) ? e.Height.fromJSON(n.height) : void 0, consensus_state: r(n.consensus_state) ? u.Any.fromJSON(n.consensus_state) : void 0 }), toJSON(n) { + const o = {}; + return n.height !== void 0 && (o.height = n.height ? e.Height.toJSON(n.height) : void 0), n.consensus_state !== void 0 && (o.consensus_state = n.consensus_state ? u.Any.toJSON(n.consensus_state) : void 0), o; + }, fromPartial(n) { + const o = { height: void 0, consensus_state: void 0 }; + return o.height = n.height !== void 0 && n.height !== null ? e.Height.fromPartial(n.height) : void 0, o.consensus_state = n.consensus_state !== void 0 && n.consensus_state !== null ? u.Any.fromPartial(n.consensus_state) : void 0, o; + } }, e.ClientConsensusStates = { encode(n, o = t.Writer.create()) { + n.client_id !== "" && o.uint32(10).string(n.client_id); + for (const i of n.consensus_states) + e.ConsensusStateWithHeight.encode(i, o.uint32(18).fork()).ldelim(); + return o; + }, decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { client_id: "", consensus_states: [] }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.client_id = i.string(); + break; + case 2: + c.consensus_states.push(e.ConsensusStateWithHeight.decode(i, i.uint32())); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ client_id: r(n.client_id) ? String(n.client_id) : "", consensus_states: Array.isArray(n == null ? void 0 : n.consensus_states) ? n.consensus_states.map((o) => e.ConsensusStateWithHeight.fromJSON(o)) : [] }), toJSON(n) { + const o = {}; + return n.client_id !== void 0 && (o.client_id = n.client_id), n.consensus_states ? o.consensus_states = n.consensus_states.map((i) => i ? e.ConsensusStateWithHeight.toJSON(i) : void 0) : o.consensus_states = [], o; + }, fromPartial(n) { + var o, i; + const f = { client_id: "", consensus_states: [] }; + return f.client_id = (o = n.client_id) !== null && o !== void 0 ? o : "", f.consensus_states = ((i = n.consensus_states) === null || i === void 0 ? void 0 : i.map((c) => e.ConsensusStateWithHeight.fromPartial(c))) || [], f; + } }, e.ClientUpdateProposal = { encode: (n, o = t.Writer.create()) => (n.title !== "" && o.uint32(10).string(n.title), n.description !== "" && o.uint32(18).string(n.description), n.subject_client_id !== "" && o.uint32(26).string(n.subject_client_id), n.substitute_client_id !== "" && o.uint32(34).string(n.substitute_client_id), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { title: "", description: "", subject_client_id: "", substitute_client_id: "" }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.title = i.string(); + break; + case 2: + c.description = i.string(); + break; + case 3: + c.subject_client_id = i.string(); + break; + case 4: + c.substitute_client_id = i.string(); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ title: r(n.title) ? String(n.title) : "", description: r(n.description) ? String(n.description) : "", subject_client_id: r(n.subject_client_id) ? String(n.subject_client_id) : "", substitute_client_id: r(n.substitute_client_id) ? String(n.substitute_client_id) : "" }), toJSON(n) { + const o = {}; + return n.title !== void 0 && (o.title = n.title), n.description !== void 0 && (o.description = n.description), n.subject_client_id !== void 0 && (o.subject_client_id = n.subject_client_id), n.substitute_client_id !== void 0 && (o.substitute_client_id = n.substitute_client_id), o; + }, fromPartial(n) { + var o, i, f, c; + const h = { title: "", description: "", subject_client_id: "", substitute_client_id: "" }; + return h.title = (o = n.title) !== null && o !== void 0 ? o : "", h.description = (i = n.description) !== null && i !== void 0 ? i : "", h.subject_client_id = (f = n.subject_client_id) !== null && f !== void 0 ? f : "", h.substitute_client_id = (c = n.substitute_client_id) !== null && c !== void 0 ? c : "", h; + } }, e.UpgradeProposal = { encode: (n, o = t.Writer.create()) => (n.title !== "" && o.uint32(10).string(n.title), n.description !== "" && o.uint32(18).string(n.description), n.plan !== void 0 && d.Plan.encode(n.plan, o.uint32(26).fork()).ldelim(), n.upgraded_client_state !== void 0 && u.Any.encode(n.upgraded_client_state, o.uint32(34).fork()).ldelim(), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { title: "", description: "", plan: void 0, upgraded_client_state: void 0 }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.title = i.string(); + break; + case 2: + c.description = i.string(); + break; + case 3: + c.plan = d.Plan.decode(i, i.uint32()); + break; + case 4: + c.upgraded_client_state = u.Any.decode(i, i.uint32()); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ title: r(n.title) ? String(n.title) : "", description: r(n.description) ? String(n.description) : "", plan: r(n.plan) ? d.Plan.fromJSON(n.plan) : void 0, upgraded_client_state: r(n.upgraded_client_state) ? u.Any.fromJSON(n.upgraded_client_state) : void 0 }), toJSON(n) { + const o = {}; + return n.title !== void 0 && (o.title = n.title), n.description !== void 0 && (o.description = n.description), n.plan !== void 0 && (o.plan = n.plan ? d.Plan.toJSON(n.plan) : void 0), n.upgraded_client_state !== void 0 && (o.upgraded_client_state = n.upgraded_client_state ? u.Any.toJSON(n.upgraded_client_state) : void 0), o; + }, fromPartial(n) { + var o, i; + const f = { title: "", description: "", plan: void 0, upgraded_client_state: void 0 }; + return f.title = (o = n.title) !== null && o !== void 0 ? o : "", f.description = (i = n.description) !== null && i !== void 0 ? i : "", f.plan = n.plan !== void 0 && n.plan !== null ? d.Plan.fromPartial(n.plan) : void 0, f.upgraded_client_state = n.upgraded_client_state !== void 0 && n.upgraded_client_state !== null ? u.Any.fromPartial(n.upgraded_client_state) : void 0, f; + } }, e.Height = { encode: (n, o = t.Writer.create()) => (n.revision_number !== "0" && o.uint32(8).uint64(n.revision_number), n.revision_height !== "0" && o.uint32(16).uint64(n.revision_height), o), decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { revision_number: "0", revision_height: "0" }; + for (; i.pos < f; ) { + const h = i.uint32(); + switch (h >>> 3) { + case 1: + c.revision_number = s(i.uint64()); + break; + case 2: + c.revision_height = s(i.uint64()); + break; + default: + i.skipType(7 & h); + } + } + return c; + }, fromJSON: (n) => ({ revision_number: r(n.revision_number) ? String(n.revision_number) : "0", revision_height: r(n.revision_height) ? String(n.revision_height) : "0" }), toJSON(n) { + const o = {}; + return n.revision_number !== void 0 && (o.revision_number = n.revision_number), n.revision_height !== void 0 && (o.revision_height = n.revision_height), o; + }, fromPartial(n) { + var o, i; + const f = { revision_number: "0", revision_height: "0" }; + return f.revision_number = (o = n.revision_number) !== null && o !== void 0 ? o : "0", f.revision_height = (i = n.revision_height) !== null && i !== void 0 ? i : "0", f; + } }, e.Params = { encode(n, o = t.Writer.create()) { + for (const i of n.allowed_clients) + o.uint32(10).string(i); + return o; + }, decode(n, o) { + const i = n instanceof t.Reader ? n : new t.Reader(n); + let f = o === void 0 ? i.len : i.pos + o; + const c = { allowed_clients: [] }; + for (; i.pos < f; ) { + const h = i.uint32(); + h >>> 3 == 1 ? c.allowed_clients.push(i.string()) : i.skipType(7 & h); + } + return c; + }, fromJSON: (n) => ({ allowed_clients: Array.isArray(n == null ? void 0 : n.allowed_clients) ? n.allowed_clients.map((o) => String(o)) : [] }), toJSON(n) { + const o = {}; + return n.allowed_clients ? o.allowed_clients = n.allowed_clients.map((i) => i) : o.allowed_clients = [], o; + }, fromPartial(n) { + var o; + const i = { allowed_clients: [] }; + return i.allowed_clients = ((o = n.allowed_clients) === null || o === void 0 ? void 0 : o.map((f) => f)) || [], i; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 322: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgSubmitMisbehaviourResponse = e.MsgSubmitMisbehaviour = e.MsgUpgradeClientResponse = e.MsgUpgradeClient = e.MsgUpdateClientResponse = e.MsgUpdateClient = e.MsgCreateClientResponse = e.MsgCreateClient = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(4191); + function d() { + return { client_id: "", client_state: void 0, consensus_state: void 0, proof_upgrade_client: new Uint8Array(), proof_upgrade_consensus_state: new Uint8Array(), signer: "" }; + } + e.protobufPackage = "ibc.core.client.v1", e.MsgCreateClient = { encode: (c, h = t.Writer.create()) => (c.client_state !== void 0 && u.Any.encode(c.client_state, h.uint32(10).fork()).ldelim(), c.consensus_state !== void 0 && u.Any.encode(c.consensus_state, h.uint32(18).fork()).ldelim(), c.signer !== "" && h.uint32(26).string(c.signer), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { client_state: void 0, consensus_state: void 0, signer: "" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.client_state = u.Any.decode(p, p.uint32()); + break; + case 2: + M.consensus_state = u.Any.decode(p, p.uint32()); + break; + case 3: + M.signer = p.string(); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ client_state: f(c.client_state) ? u.Any.fromJSON(c.client_state) : void 0, consensus_state: f(c.consensus_state) ? u.Any.fromJSON(c.consensus_state) : void 0, signer: f(c.signer) ? String(c.signer) : "" }), toJSON(c) { + const h = {}; + return c.client_state !== void 0 && (h.client_state = c.client_state ? u.Any.toJSON(c.client_state) : void 0), c.consensus_state !== void 0 && (h.consensus_state = c.consensus_state ? u.Any.toJSON(c.consensus_state) : void 0), c.signer !== void 0 && (h.signer = c.signer), h; + }, fromPartial(c) { + var h; + const p = { client_state: void 0, consensus_state: void 0, signer: "" }; + return p.client_state = c.client_state !== void 0 && c.client_state !== null ? u.Any.fromPartial(c.client_state) : void 0, p.consensus_state = c.consensus_state !== void 0 && c.consensus_state !== null ? u.Any.fromPartial(c.consensus_state) : void 0, p.signer = (h = c.signer) !== null && h !== void 0 ? h : "", p; + } }, e.MsgCreateClientResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgUpdateClient = { encode: (c, h = t.Writer.create()) => (c.client_id !== "" && h.uint32(10).string(c.client_id), c.header !== void 0 && u.Any.encode(c.header, h.uint32(18).fork()).ldelim(), c.signer !== "" && h.uint32(26).string(c.signer), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { client_id: "", header: void 0, signer: "" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.client_id = p.string(); + break; + case 2: + M.header = u.Any.decode(p, p.uint32()); + break; + case 3: + M.signer = p.string(); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ client_id: f(c.client_id) ? String(c.client_id) : "", header: f(c.header) ? u.Any.fromJSON(c.header) : void 0, signer: f(c.signer) ? String(c.signer) : "" }), toJSON(c) { + const h = {}; + return c.client_id !== void 0 && (h.client_id = c.client_id), c.header !== void 0 && (h.header = c.header ? u.Any.toJSON(c.header) : void 0), c.signer !== void 0 && (h.signer = c.signer), h; + }, fromPartial(c) { + var h, p; + const m = { client_id: "", header: void 0, signer: "" }; + return m.client_id = (h = c.client_id) !== null && h !== void 0 ? h : "", m.header = c.header !== void 0 && c.header !== null ? u.Any.fromPartial(c.header) : void 0, m.signer = (p = c.signer) !== null && p !== void 0 ? p : "", m; + } }, e.MsgUpdateClientResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgUpgradeClient = { encode: (c, h = t.Writer.create()) => (c.client_id !== "" && h.uint32(10).string(c.client_id), c.client_state !== void 0 && u.Any.encode(c.client_state, h.uint32(18).fork()).ldelim(), c.consensus_state !== void 0 && u.Any.encode(c.consensus_state, h.uint32(26).fork()).ldelim(), c.proof_upgrade_client.length !== 0 && h.uint32(34).bytes(c.proof_upgrade_client), c.proof_upgrade_consensus_state.length !== 0 && h.uint32(42).bytes(c.proof_upgrade_consensus_state), c.signer !== "" && h.uint32(50).string(c.signer), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = d(); + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.client_id = p.string(); + break; + case 2: + M.client_state = u.Any.decode(p, p.uint32()); + break; + case 3: + M.consensus_state = u.Any.decode(p, p.uint32()); + break; + case 4: + M.proof_upgrade_client = p.bytes(); + break; + case 5: + M.proof_upgrade_consensus_state = p.bytes(); + break; + case 6: + M.signer = p.string(); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ client_id: f(c.client_id) ? String(c.client_id) : "", client_state: f(c.client_state) ? u.Any.fromJSON(c.client_state) : void 0, consensus_state: f(c.consensus_state) ? u.Any.fromJSON(c.consensus_state) : void 0, proof_upgrade_client: f(c.proof_upgrade_client) ? n(c.proof_upgrade_client) : new Uint8Array(), proof_upgrade_consensus_state: f(c.proof_upgrade_consensus_state) ? n(c.proof_upgrade_consensus_state) : new Uint8Array(), signer: f(c.signer) ? String(c.signer) : "" }), toJSON(c) { + const h = {}; + return c.client_id !== void 0 && (h.client_id = c.client_id), c.client_state !== void 0 && (h.client_state = c.client_state ? u.Any.toJSON(c.client_state) : void 0), c.consensus_state !== void 0 && (h.consensus_state = c.consensus_state ? u.Any.toJSON(c.consensus_state) : void 0), c.proof_upgrade_client !== void 0 && (h.proof_upgrade_client = i(c.proof_upgrade_client !== void 0 ? c.proof_upgrade_client : new Uint8Array())), c.proof_upgrade_consensus_state !== void 0 && (h.proof_upgrade_consensus_state = i(c.proof_upgrade_consensus_state !== void 0 ? c.proof_upgrade_consensus_state : new Uint8Array())), c.signer !== void 0 && (h.signer = c.signer), h; + }, fromPartial(c) { + var h, p, m, M; + const l = d(); + return l.client_id = (h = c.client_id) !== null && h !== void 0 ? h : "", l.client_state = c.client_state !== void 0 && c.client_state !== null ? u.Any.fromPartial(c.client_state) : void 0, l.consensus_state = c.consensus_state !== void 0 && c.consensus_state !== null ? u.Any.fromPartial(c.consensus_state) : void 0, l.proof_upgrade_client = (p = c.proof_upgrade_client) !== null && p !== void 0 ? p : new Uint8Array(), l.proof_upgrade_consensus_state = (m = c.proof_upgrade_consensus_state) !== null && m !== void 0 ? m : new Uint8Array(), l.signer = (M = c.signer) !== null && M !== void 0 ? M : "", l; + } }, e.MsgUpgradeClientResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgSubmitMisbehaviour = { encode: (c, h = t.Writer.create()) => (c.client_id !== "" && h.uint32(10).string(c.client_id), c.misbehaviour !== void 0 && u.Any.encode(c.misbehaviour, h.uint32(18).fork()).ldelim(), c.signer !== "" && h.uint32(26).string(c.signer), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { client_id: "", misbehaviour: void 0, signer: "" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.client_id = p.string(); + break; + case 2: + M.misbehaviour = u.Any.decode(p, p.uint32()); + break; + case 3: + M.signer = p.string(); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ client_id: f(c.client_id) ? String(c.client_id) : "", misbehaviour: f(c.misbehaviour) ? u.Any.fromJSON(c.misbehaviour) : void 0, signer: f(c.signer) ? String(c.signer) : "" }), toJSON(c) { + const h = {}; + return c.client_id !== void 0 && (h.client_id = c.client_id), c.misbehaviour !== void 0 && (h.misbehaviour = c.misbehaviour ? u.Any.toJSON(c.misbehaviour) : void 0), c.signer !== void 0 && (h.signer = c.signer), h; + }, fromPartial(c) { + var h, p; + const m = { client_id: "", misbehaviour: void 0, signer: "" }; + return m.client_id = (h = c.client_id) !== null && h !== void 0 ? h : "", m.misbehaviour = c.misbehaviour !== void 0 && c.misbehaviour !== null ? u.Any.fromPartial(c.misbehaviour) : void 0, m.signer = (p = c.signer) !== null && p !== void 0 ? p : "", m; + } }, e.MsgSubmitMisbehaviourResponse = { encode: (c, h = t.Writer.create()) => h, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + for (; p.pos < m; ) { + const M = p.uint32(); + p.skipType(7 & M); + } + return {}; + }, fromJSON: (c) => ({}), toJSON: (c) => ({}), fromPartial: (c) => ({}) }, e.MsgClientImpl = class { + constructor(c) { + this.rpc = c, this.CreateClient = this.CreateClient.bind(this), this.UpdateClient = this.UpdateClient.bind(this), this.UpgradeClient = this.UpgradeClient.bind(this), this.SubmitMisbehaviour = this.SubmitMisbehaviour.bind(this); + } + CreateClient(c) { + const h = e.MsgCreateClient.encode(c).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", h).then((p) => e.MsgCreateClientResponse.decode(new t.Reader(p))); + } + UpdateClient(c) { + const h = e.MsgUpdateClient.encode(c).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", h).then((p) => e.MsgUpdateClientResponse.decode(new t.Reader(p))); + } + UpgradeClient(c) { + const h = e.MsgUpgradeClient.encode(c).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", h).then((p) => e.MsgUpgradeClientResponse.decode(new t.Reader(p))); + } + SubmitMisbehaviour(c) { + const h = e.MsgSubmitMisbehaviour.encode(c).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", h).then((p) => e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(p))); + } + }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((c) => s.Buffer.from(c, "base64").toString("binary")); + function n(c) { + const h = r(c), p = new Uint8Array(h.length); + for (let m = 0; m < h.length; ++m) + p[m] = h.charCodeAt(m); + return p; + } + const o = s.btoa || ((c) => s.Buffer.from(c, "binary").toString("base64")); + function i(c) { + const h = []; + for (const p of c) + h.push(String.fromCharCode(p)); + return o(h.join("")); + } + function f(c) { + return c != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5261: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(h, p, m, M) { + M === void 0 && (M = m), Object.defineProperty(h, M, { enumerable: !0, get: function() { + return p[m]; + } }); + } : function(h, p, m, M) { + M === void 0 && (M = m), h[M] = p[m]; + }), A = this && this.__setModuleDefault || (Object.create ? function(h, p) { + Object.defineProperty(h, "default", { enumerable: !0, value: p }); + } : function(h, p) { + h.default = p; + }), k = this && this.__importStar || function(h) { + if (h && h.__esModule) + return h; + var p = {}; + if (h != null) + for (var m in h) + m !== "default" && Object.prototype.hasOwnProperty.call(h, m) && O(p, h, m); + return A(p, h), p; + }, b = this && this.__importDefault || function(h) { + return h && h.__esModule ? h : { default: h }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MerkleProof = e.MerklePath = e.MerklePrefix = e.MerkleRoot = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(6578); + function d() { + return { hash: new Uint8Array() }; + } + function s() { + return { key_prefix: new Uint8Array() }; + } + e.protobufPackage = "ibc.core.commitment.v1", e.MerkleRoot = { encode: (h, p = t.Writer.create()) => (h.hash.length !== 0 && p.uint32(10).bytes(h.hash), p), decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = d(); + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.hash = m.bytes() : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ hash: c(h.hash) ? o(h.hash) : new Uint8Array() }), toJSON(h) { + const p = {}; + return h.hash !== void 0 && (p.hash = f(h.hash !== void 0 ? h.hash : new Uint8Array())), p; + }, fromPartial(h) { + var p; + const m = d(); + return m.hash = (p = h.hash) !== null && p !== void 0 ? p : new Uint8Array(), m; + } }, e.MerklePrefix = { encode: (h, p = t.Writer.create()) => (h.key_prefix.length !== 0 && p.uint32(10).bytes(h.key_prefix), p), decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = s(); + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.key_prefix = m.bytes() : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ key_prefix: c(h.key_prefix) ? o(h.key_prefix) : new Uint8Array() }), toJSON(h) { + const p = {}; + return h.key_prefix !== void 0 && (p.key_prefix = f(h.key_prefix !== void 0 ? h.key_prefix : new Uint8Array())), p; + }, fromPartial(h) { + var p; + const m = s(); + return m.key_prefix = (p = h.key_prefix) !== null && p !== void 0 ? p : new Uint8Array(), m; + } }, e.MerklePath = { encode(h, p = t.Writer.create()) { + for (const m of h.key_path) + p.uint32(10).string(m); + return p; + }, decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = { key_path: [] }; + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.key_path.push(m.string()) : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ key_path: Array.isArray(h == null ? void 0 : h.key_path) ? h.key_path.map((p) => String(p)) : [] }), toJSON(h) { + const p = {}; + return h.key_path ? p.key_path = h.key_path.map((m) => m) : p.key_path = [], p; + }, fromPartial(h) { + var p; + const m = { key_path: [] }; + return m.key_path = ((p = h.key_path) === null || p === void 0 ? void 0 : p.map((M) => M)) || [], m; + } }, e.MerkleProof = { encode(h, p = t.Writer.create()) { + for (const m of h.proofs) + u.CommitmentProof.encode(m, p.uint32(10).fork()).ldelim(); + return p; + }, decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = { proofs: [] }; + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.proofs.push(u.CommitmentProof.decode(m, m.uint32())) : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ proofs: Array.isArray(h == null ? void 0 : h.proofs) ? h.proofs.map((p) => u.CommitmentProof.fromJSON(p)) : [] }), toJSON(h) { + const p = {}; + return h.proofs ? p.proofs = h.proofs.map((m) => m ? u.CommitmentProof.toJSON(m) : void 0) : p.proofs = [], p; + }, fromPartial(h) { + var p; + const m = { proofs: [] }; + return m.proofs = ((p = h.proofs) === null || p === void 0 ? void 0 : p.map((M) => u.CommitmentProof.fromPartial(M))) || [], m; + } }; + var r = (() => { + if (r !== void 0) + return r; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const n = r.atob || ((h) => r.Buffer.from(h, "base64").toString("binary")); + function o(h) { + const p = n(h), m = new Uint8Array(p.length); + for (let M = 0; M < p.length; ++M) + m[M] = p.charCodeAt(M); + return m; + } + const i = r.btoa || ((h) => r.Buffer.from(h, "binary").toString("base64")); + function f(h) { + const p = []; + for (const m of h) + p.push(String.fromCharCode(m)); + return i(p.join("")); + } + function c(h) { + return h != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 6788: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(i, f, c, h) { + h === void 0 && (h = c), Object.defineProperty(i, h, { enumerable: !0, get: function() { + return f[c]; + } }); + } : function(i, f, c, h) { + h === void 0 && (h = c), i[h] = f[c]; + }), A = this && this.__setModuleDefault || (Object.create ? function(i, f) { + Object.defineProperty(i, "default", { enumerable: !0, value: f }); + } : function(i, f) { + i.default = f; + }), k = this && this.__importStar || function(i) { + if (i && i.__esModule) + return i; + var f = {}; + if (i != null) + for (var c in i) + c !== "default" && Object.prototype.hasOwnProperty.call(i, c) && O(f, i, c); + return A(f, i), f; + }, b = this && this.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Params = e.Version = e.ConnectionPaths = e.ClientPaths = e.Counterparty = e.IdentifiedConnection = e.ConnectionEnd = e.stateToJSON = e.stateFromJSON = e.State = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5261); + var d; + function s(i) { + switch (i) { + case 0: + case "STATE_UNINITIALIZED_UNSPECIFIED": + return d.STATE_UNINITIALIZED_UNSPECIFIED; + case 1: + case "STATE_INIT": + return d.STATE_INIT; + case 2: + case "STATE_TRYOPEN": + return d.STATE_TRYOPEN; + case 3: + case "STATE_OPEN": + return d.STATE_OPEN; + default: + return d.UNRECOGNIZED; + } + } + function r(i) { + switch (i) { + case d.STATE_UNINITIALIZED_UNSPECIFIED: + return "STATE_UNINITIALIZED_UNSPECIFIED"; + case d.STATE_INIT: + return "STATE_INIT"; + case d.STATE_TRYOPEN: + return "STATE_TRYOPEN"; + case d.STATE_OPEN: + return "STATE_OPEN"; + default: + return "UNKNOWN"; + } + } + function n(i) { + return i.toString(); + } + function o(i) { + return i != null; + } + e.protobufPackage = "ibc.core.connection.v1", function(i) { + i[i.STATE_UNINITIALIZED_UNSPECIFIED = 0] = "STATE_UNINITIALIZED_UNSPECIFIED", i[i.STATE_INIT = 1] = "STATE_INIT", i[i.STATE_TRYOPEN = 2] = "STATE_TRYOPEN", i[i.STATE_OPEN = 3] = "STATE_OPEN", i[i.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(d = e.State || (e.State = {})), e.stateFromJSON = s, e.stateToJSON = r, e.ConnectionEnd = { encode(i, f = t.Writer.create()) { + i.client_id !== "" && f.uint32(10).string(i.client_id); + for (const c of i.versions) + e.Version.encode(c, f.uint32(18).fork()).ldelim(); + return i.state !== 0 && f.uint32(24).int32(i.state), i.counterparty !== void 0 && e.Counterparty.encode(i.counterparty, f.uint32(34).fork()).ldelim(), i.delay_period !== "0" && f.uint32(40).uint64(i.delay_period), f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.client_id = c.string(); + break; + case 2: + p.versions.push(e.Version.decode(c, c.uint32())); + break; + case 3: + p.state = c.int32(); + break; + case 4: + p.counterparty = e.Counterparty.decode(c, c.uint32()); + break; + case 5: + p.delay_period = n(c.uint64()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ client_id: o(i.client_id) ? String(i.client_id) : "", versions: Array.isArray(i == null ? void 0 : i.versions) ? i.versions.map((f) => e.Version.fromJSON(f)) : [], state: o(i.state) ? s(i.state) : 0, counterparty: o(i.counterparty) ? e.Counterparty.fromJSON(i.counterparty) : void 0, delay_period: o(i.delay_period) ? String(i.delay_period) : "0" }), toJSON(i) { + const f = {}; + return i.client_id !== void 0 && (f.client_id = i.client_id), i.versions ? f.versions = i.versions.map((c) => c ? e.Version.toJSON(c) : void 0) : f.versions = [], i.state !== void 0 && (f.state = r(i.state)), i.counterparty !== void 0 && (f.counterparty = i.counterparty ? e.Counterparty.toJSON(i.counterparty) : void 0), i.delay_period !== void 0 && (f.delay_period = i.delay_period), f; + }, fromPartial(i) { + var f, c, h, p; + const m = { client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; + return m.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", m.versions = ((c = i.versions) === null || c === void 0 ? void 0 : c.map((M) => e.Version.fromPartial(M))) || [], m.state = (h = i.state) !== null && h !== void 0 ? h : 0, m.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, m.delay_period = (p = i.delay_period) !== null && p !== void 0 ? p : "0", m; + } }, e.IdentifiedConnection = { encode(i, f = t.Writer.create()) { + i.id !== "" && f.uint32(10).string(i.id), i.client_id !== "" && f.uint32(18).string(i.client_id); + for (const c of i.versions) + e.Version.encode(c, f.uint32(26).fork()).ldelim(); + return i.state !== 0 && f.uint32(32).int32(i.state), i.counterparty !== void 0 && e.Counterparty.encode(i.counterparty, f.uint32(42).fork()).ldelim(), i.delay_period !== "0" && f.uint32(48).uint64(i.delay_period), f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { id: "", client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.id = c.string(); + break; + case 2: + p.client_id = c.string(); + break; + case 3: + p.versions.push(e.Version.decode(c, c.uint32())); + break; + case 4: + p.state = c.int32(); + break; + case 5: + p.counterparty = e.Counterparty.decode(c, c.uint32()); + break; + case 6: + p.delay_period = n(c.uint64()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ id: o(i.id) ? String(i.id) : "", client_id: o(i.client_id) ? String(i.client_id) : "", versions: Array.isArray(i == null ? void 0 : i.versions) ? i.versions.map((f) => e.Version.fromJSON(f)) : [], state: o(i.state) ? s(i.state) : 0, counterparty: o(i.counterparty) ? e.Counterparty.fromJSON(i.counterparty) : void 0, delay_period: o(i.delay_period) ? String(i.delay_period) : "0" }), toJSON(i) { + const f = {}; + return i.id !== void 0 && (f.id = i.id), i.client_id !== void 0 && (f.client_id = i.client_id), i.versions ? f.versions = i.versions.map((c) => c ? e.Version.toJSON(c) : void 0) : f.versions = [], i.state !== void 0 && (f.state = r(i.state)), i.counterparty !== void 0 && (f.counterparty = i.counterparty ? e.Counterparty.toJSON(i.counterparty) : void 0), i.delay_period !== void 0 && (f.delay_period = i.delay_period), f; + }, fromPartial(i) { + var f, c, h, p, m; + const M = { id: "", client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; + return M.id = (f = i.id) !== null && f !== void 0 ? f : "", M.client_id = (c = i.client_id) !== null && c !== void 0 ? c : "", M.versions = ((h = i.versions) === null || h === void 0 ? void 0 : h.map((l) => e.Version.fromPartial(l))) || [], M.state = (p = i.state) !== null && p !== void 0 ? p : 0, M.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, M.delay_period = (m = i.delay_period) !== null && m !== void 0 ? m : "0", M; + } }, e.Counterparty = { encode: (i, f = t.Writer.create()) => (i.client_id !== "" && f.uint32(10).string(i.client_id), i.connection_id !== "" && f.uint32(18).string(i.connection_id), i.prefix !== void 0 && u.MerklePrefix.encode(i.prefix, f.uint32(26).fork()).ldelim(), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { client_id: "", connection_id: "", prefix: void 0 }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.client_id = c.string(); + break; + case 2: + p.connection_id = c.string(); + break; + case 3: + p.prefix = u.MerklePrefix.decode(c, c.uint32()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ client_id: o(i.client_id) ? String(i.client_id) : "", connection_id: o(i.connection_id) ? String(i.connection_id) : "", prefix: o(i.prefix) ? u.MerklePrefix.fromJSON(i.prefix) : void 0 }), toJSON(i) { + const f = {}; + return i.client_id !== void 0 && (f.client_id = i.client_id), i.connection_id !== void 0 && (f.connection_id = i.connection_id), i.prefix !== void 0 && (f.prefix = i.prefix ? u.MerklePrefix.toJSON(i.prefix) : void 0), f; + }, fromPartial(i) { + var f, c; + const h = { client_id: "", connection_id: "", prefix: void 0 }; + return h.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", h.connection_id = (c = i.connection_id) !== null && c !== void 0 ? c : "", h.prefix = i.prefix !== void 0 && i.prefix !== null ? u.MerklePrefix.fromPartial(i.prefix) : void 0, h; + } }, e.ClientPaths = { encode(i, f = t.Writer.create()) { + for (const c of i.paths) + f.uint32(10).string(c); + return f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { paths: [] }; + for (; c.pos < h; ) { + const m = c.uint32(); + m >>> 3 == 1 ? p.paths.push(c.string()) : c.skipType(7 & m); + } + return p; + }, fromJSON: (i) => ({ paths: Array.isArray(i == null ? void 0 : i.paths) ? i.paths.map((f) => String(f)) : [] }), toJSON(i) { + const f = {}; + return i.paths ? f.paths = i.paths.map((c) => c) : f.paths = [], f; + }, fromPartial(i) { + var f; + const c = { paths: [] }; + return c.paths = ((f = i.paths) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], c; + } }, e.ConnectionPaths = { encode(i, f = t.Writer.create()) { + i.client_id !== "" && f.uint32(10).string(i.client_id); + for (const c of i.paths) + f.uint32(18).string(c); + return f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { client_id: "", paths: [] }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.client_id = c.string(); + break; + case 2: + p.paths.push(c.string()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ client_id: o(i.client_id) ? String(i.client_id) : "", paths: Array.isArray(i == null ? void 0 : i.paths) ? i.paths.map((f) => String(f)) : [] }), toJSON(i) { + const f = {}; + return i.client_id !== void 0 && (f.client_id = i.client_id), i.paths ? f.paths = i.paths.map((c) => c) : f.paths = [], f; + }, fromPartial(i) { + var f, c; + const h = { client_id: "", paths: [] }; + return h.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", h.paths = ((c = i.paths) === null || c === void 0 ? void 0 : c.map((p) => p)) || [], h; + } }, e.Version = { encode(i, f = t.Writer.create()) { + i.identifier !== "" && f.uint32(10).string(i.identifier); + for (const c of i.features) + f.uint32(18).string(c); + return f; + }, decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { identifier: "", features: [] }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.identifier = c.string(); + break; + case 2: + p.features.push(c.string()); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ identifier: o(i.identifier) ? String(i.identifier) : "", features: Array.isArray(i == null ? void 0 : i.features) ? i.features.map((f) => String(f)) : [] }), toJSON(i) { + const f = {}; + return i.identifier !== void 0 && (f.identifier = i.identifier), i.features ? f.features = i.features.map((c) => c) : f.features = [], f; + }, fromPartial(i) { + var f, c; + const h = { identifier: "", features: [] }; + return h.identifier = (f = i.identifier) !== null && f !== void 0 ? f : "", h.features = ((c = i.features) === null || c === void 0 ? void 0 : c.map((p) => p)) || [], h; + } }, e.Params = { encode: (i, f = t.Writer.create()) => (i.max_expected_time_per_block !== "0" && f.uint32(8).uint64(i.max_expected_time_per_block), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { max_expected_time_per_block: "0" }; + for (; c.pos < h; ) { + const m = c.uint32(); + m >>> 3 == 1 ? p.max_expected_time_per_block = n(c.uint64()) : c.skipType(7 & m); + } + return p; + }, fromJSON: (i) => ({ max_expected_time_per_block: o(i.max_expected_time_per_block) ? String(i.max_expected_time_per_block) : "0" }), toJSON(i) { + const f = {}; + return i.max_expected_time_per_block !== void 0 && (f.max_expected_time_per_block = i.max_expected_time_per_block), f; + }, fromPartial(i) { + var f; + const c = { max_expected_time_per_block: "0" }; + return c.max_expected_time_per_block = (f = i.max_expected_time_per_block) !== null && f !== void 0 ? f : "0", c; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 8344: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(l, N, j, R) { + R === void 0 && (R = j), Object.defineProperty(l, R, { enumerable: !0, get: function() { + return N[j]; + } }); + } : function(l, N, j, R) { + R === void 0 && (R = j), l[R] = N[j]; + }), A = this && this.__setModuleDefault || (Object.create ? function(l, N) { + Object.defineProperty(l, "default", { enumerable: !0, value: N }); + } : function(l, N) { + l.default = N; + }), k = this && this.__importStar || function(l) { + if (l && l.__esModule) + return l; + var N = {}; + if (l != null) + for (var j in l) + j !== "default" && Object.prototype.hasOwnProperty.call(l, j) && O(N, l, j); + return A(N, l), N; + }, b = this && this.__importDefault || function(l) { + return l && l.__esModule ? l : { default: l }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgConnectionOpenConfirmResponse = e.MsgConnectionOpenConfirm = e.MsgConnectionOpenAckResponse = e.MsgConnectionOpenAck = e.MsgConnectionOpenTryResponse = e.MsgConnectionOpenTry = e.MsgConnectionOpenInitResponse = e.MsgConnectionOpenInit = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(6788), d = _(4191), s = _(5650); + function r() { + return { client_id: "", previous_connection_id: "", client_state: void 0, counterparty: void 0, delay_period: "0", counterparty_versions: [], proof_height: void 0, proof_init: new Uint8Array(), proof_client: new Uint8Array(), proof_consensus: new Uint8Array(), consensus_height: void 0, signer: "" }; + } + function n() { + return { connection_id: "", counterparty_connection_id: "", version: void 0, client_state: void 0, proof_height: void 0, proof_try: new Uint8Array(), proof_client: new Uint8Array(), proof_consensus: new Uint8Array(), consensus_height: void 0, signer: "" }; + } + function o() { + return { connection_id: "", proof_ack: new Uint8Array(), proof_height: void 0, signer: "" }; + } + e.protobufPackage = "ibc.core.connection.v1", e.MsgConnectionOpenInit = { encode: (l, N = t.Writer.create()) => (l.client_id !== "" && N.uint32(10).string(l.client_id), l.counterparty !== void 0 && u.Counterparty.encode(l.counterparty, N.uint32(18).fork()).ldelim(), l.version !== void 0 && u.Version.encode(l.version, N.uint32(26).fork()).ldelim(), l.delay_period !== "0" && N.uint32(32).uint64(l.delay_period), l.signer !== "" && N.uint32(42).string(l.signer), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = { client_id: "", counterparty: void 0, version: void 0, delay_period: "0", signer: "" }; + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.client_id = j.string(); + break; + case 2: + I.counterparty = u.Counterparty.decode(j, j.uint32()); + break; + case 3: + I.version = u.Version.decode(j, j.uint32()); + break; + case 4: + I.delay_period = m(j.uint64()); + break; + case 5: + I.signer = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ client_id: M(l.client_id) ? String(l.client_id) : "", counterparty: M(l.counterparty) ? u.Counterparty.fromJSON(l.counterparty) : void 0, version: M(l.version) ? u.Version.fromJSON(l.version) : void 0, delay_period: M(l.delay_period) ? String(l.delay_period) : "0", signer: M(l.signer) ? String(l.signer) : "" }), toJSON(l) { + const N = {}; + return l.client_id !== void 0 && (N.client_id = l.client_id), l.counterparty !== void 0 && (N.counterparty = l.counterparty ? u.Counterparty.toJSON(l.counterparty) : void 0), l.version !== void 0 && (N.version = l.version ? u.Version.toJSON(l.version) : void 0), l.delay_period !== void 0 && (N.delay_period = l.delay_period), l.signer !== void 0 && (N.signer = l.signer), N; + }, fromPartial(l) { + var N, j, R; + const I = { client_id: "", counterparty: void 0, version: void 0, delay_period: "0", signer: "" }; + return I.client_id = (N = l.client_id) !== null && N !== void 0 ? N : "", I.counterparty = l.counterparty !== void 0 && l.counterparty !== null ? u.Counterparty.fromPartial(l.counterparty) : void 0, I.version = l.version !== void 0 && l.version !== null ? u.Version.fromPartial(l.version) : void 0, I.delay_period = (j = l.delay_period) !== null && j !== void 0 ? j : "0", I.signer = (R = l.signer) !== null && R !== void 0 ? R : "", I; + } }, e.MsgConnectionOpenInitResponse = { encode: (l, N = t.Writer.create()) => N, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + for (; j.pos < R; ) { + const I = j.uint32(); + j.skipType(7 & I); + } + return {}; + }, fromJSON: (l) => ({}), toJSON: (l) => ({}), fromPartial: (l) => ({}) }, e.MsgConnectionOpenTry = { encode(l, N = t.Writer.create()) { + l.client_id !== "" && N.uint32(10).string(l.client_id), l.previous_connection_id !== "" && N.uint32(18).string(l.previous_connection_id), l.client_state !== void 0 && d.Any.encode(l.client_state, N.uint32(26).fork()).ldelim(), l.counterparty !== void 0 && u.Counterparty.encode(l.counterparty, N.uint32(34).fork()).ldelim(), l.delay_period !== "0" && N.uint32(40).uint64(l.delay_period); + for (const j of l.counterparty_versions) + u.Version.encode(j, N.uint32(50).fork()).ldelim(); + return l.proof_height !== void 0 && s.Height.encode(l.proof_height, N.uint32(58).fork()).ldelim(), l.proof_init.length !== 0 && N.uint32(66).bytes(l.proof_init), l.proof_client.length !== 0 && N.uint32(74).bytes(l.proof_client), l.proof_consensus.length !== 0 && N.uint32(82).bytes(l.proof_consensus), l.consensus_height !== void 0 && s.Height.encode(l.consensus_height, N.uint32(90).fork()).ldelim(), l.signer !== "" && N.uint32(98).string(l.signer), N; + }, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = r(); + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.client_id = j.string(); + break; + case 2: + I.previous_connection_id = j.string(); + break; + case 3: + I.client_state = d.Any.decode(j, j.uint32()); + break; + case 4: + I.counterparty = u.Counterparty.decode(j, j.uint32()); + break; + case 5: + I.delay_period = m(j.uint64()); + break; + case 6: + I.counterparty_versions.push(u.Version.decode(j, j.uint32())); + break; + case 7: + I.proof_height = s.Height.decode(j, j.uint32()); + break; + case 8: + I.proof_init = j.bytes(); + break; + case 9: + I.proof_client = j.bytes(); + break; + case 10: + I.proof_consensus = j.bytes(); + break; + case 11: + I.consensus_height = s.Height.decode(j, j.uint32()); + break; + case 12: + I.signer = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ client_id: M(l.client_id) ? String(l.client_id) : "", previous_connection_id: M(l.previous_connection_id) ? String(l.previous_connection_id) : "", client_state: M(l.client_state) ? d.Any.fromJSON(l.client_state) : void 0, counterparty: M(l.counterparty) ? u.Counterparty.fromJSON(l.counterparty) : void 0, delay_period: M(l.delay_period) ? String(l.delay_period) : "0", counterparty_versions: Array.isArray(l == null ? void 0 : l.counterparty_versions) ? l.counterparty_versions.map((N) => u.Version.fromJSON(N)) : [], proof_height: M(l.proof_height) ? s.Height.fromJSON(l.proof_height) : void 0, proof_init: M(l.proof_init) ? c(l.proof_init) : new Uint8Array(), proof_client: M(l.proof_client) ? c(l.proof_client) : new Uint8Array(), proof_consensus: M(l.proof_consensus) ? c(l.proof_consensus) : new Uint8Array(), consensus_height: M(l.consensus_height) ? s.Height.fromJSON(l.consensus_height) : void 0, signer: M(l.signer) ? String(l.signer) : "" }), toJSON(l) { + const N = {}; + return l.client_id !== void 0 && (N.client_id = l.client_id), l.previous_connection_id !== void 0 && (N.previous_connection_id = l.previous_connection_id), l.client_state !== void 0 && (N.client_state = l.client_state ? d.Any.toJSON(l.client_state) : void 0), l.counterparty !== void 0 && (N.counterparty = l.counterparty ? u.Counterparty.toJSON(l.counterparty) : void 0), l.delay_period !== void 0 && (N.delay_period = l.delay_period), l.counterparty_versions ? N.counterparty_versions = l.counterparty_versions.map((j) => j ? u.Version.toJSON(j) : void 0) : N.counterparty_versions = [], l.proof_height !== void 0 && (N.proof_height = l.proof_height ? s.Height.toJSON(l.proof_height) : void 0), l.proof_init !== void 0 && (N.proof_init = p(l.proof_init !== void 0 ? l.proof_init : new Uint8Array())), l.proof_client !== void 0 && (N.proof_client = p(l.proof_client !== void 0 ? l.proof_client : new Uint8Array())), l.proof_consensus !== void 0 && (N.proof_consensus = p(l.proof_consensus !== void 0 ? l.proof_consensus : new Uint8Array())), l.consensus_height !== void 0 && (N.consensus_height = l.consensus_height ? s.Height.toJSON(l.consensus_height) : void 0), l.signer !== void 0 && (N.signer = l.signer), N; + }, fromPartial(l) { + var N, j, R, I, x, P, w, g; + const E = r(); + return E.client_id = (N = l.client_id) !== null && N !== void 0 ? N : "", E.previous_connection_id = (j = l.previous_connection_id) !== null && j !== void 0 ? j : "", E.client_state = l.client_state !== void 0 && l.client_state !== null ? d.Any.fromPartial(l.client_state) : void 0, E.counterparty = l.counterparty !== void 0 && l.counterparty !== null ? u.Counterparty.fromPartial(l.counterparty) : void 0, E.delay_period = (R = l.delay_period) !== null && R !== void 0 ? R : "0", E.counterparty_versions = ((I = l.counterparty_versions) === null || I === void 0 ? void 0 : I.map((U) => u.Version.fromPartial(U))) || [], E.proof_height = l.proof_height !== void 0 && l.proof_height !== null ? s.Height.fromPartial(l.proof_height) : void 0, E.proof_init = (x = l.proof_init) !== null && x !== void 0 ? x : new Uint8Array(), E.proof_client = (P = l.proof_client) !== null && P !== void 0 ? P : new Uint8Array(), E.proof_consensus = (w = l.proof_consensus) !== null && w !== void 0 ? w : new Uint8Array(), E.consensus_height = l.consensus_height !== void 0 && l.consensus_height !== null ? s.Height.fromPartial(l.consensus_height) : void 0, E.signer = (g = l.signer) !== null && g !== void 0 ? g : "", E; + } }, e.MsgConnectionOpenTryResponse = { encode: (l, N = t.Writer.create()) => N, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + for (; j.pos < R; ) { + const I = j.uint32(); + j.skipType(7 & I); + } + return {}; + }, fromJSON: (l) => ({}), toJSON: (l) => ({}), fromPartial: (l) => ({}) }, e.MsgConnectionOpenAck = { encode: (l, N = t.Writer.create()) => (l.connection_id !== "" && N.uint32(10).string(l.connection_id), l.counterparty_connection_id !== "" && N.uint32(18).string(l.counterparty_connection_id), l.version !== void 0 && u.Version.encode(l.version, N.uint32(26).fork()).ldelim(), l.client_state !== void 0 && d.Any.encode(l.client_state, N.uint32(34).fork()).ldelim(), l.proof_height !== void 0 && s.Height.encode(l.proof_height, N.uint32(42).fork()).ldelim(), l.proof_try.length !== 0 && N.uint32(50).bytes(l.proof_try), l.proof_client.length !== 0 && N.uint32(58).bytes(l.proof_client), l.proof_consensus.length !== 0 && N.uint32(66).bytes(l.proof_consensus), l.consensus_height !== void 0 && s.Height.encode(l.consensus_height, N.uint32(74).fork()).ldelim(), l.signer !== "" && N.uint32(82).string(l.signer), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = n(); + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.connection_id = j.string(); + break; + case 2: + I.counterparty_connection_id = j.string(); + break; + case 3: + I.version = u.Version.decode(j, j.uint32()); + break; + case 4: + I.client_state = d.Any.decode(j, j.uint32()); + break; + case 5: + I.proof_height = s.Height.decode(j, j.uint32()); + break; + case 6: + I.proof_try = j.bytes(); + break; + case 7: + I.proof_client = j.bytes(); + break; + case 8: + I.proof_consensus = j.bytes(); + break; + case 9: + I.consensus_height = s.Height.decode(j, j.uint32()); + break; + case 10: + I.signer = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ connection_id: M(l.connection_id) ? String(l.connection_id) : "", counterparty_connection_id: M(l.counterparty_connection_id) ? String(l.counterparty_connection_id) : "", version: M(l.version) ? u.Version.fromJSON(l.version) : void 0, client_state: M(l.client_state) ? d.Any.fromJSON(l.client_state) : void 0, proof_height: M(l.proof_height) ? s.Height.fromJSON(l.proof_height) : void 0, proof_try: M(l.proof_try) ? c(l.proof_try) : new Uint8Array(), proof_client: M(l.proof_client) ? c(l.proof_client) : new Uint8Array(), proof_consensus: M(l.proof_consensus) ? c(l.proof_consensus) : new Uint8Array(), consensus_height: M(l.consensus_height) ? s.Height.fromJSON(l.consensus_height) : void 0, signer: M(l.signer) ? String(l.signer) : "" }), toJSON(l) { + const N = {}; + return l.connection_id !== void 0 && (N.connection_id = l.connection_id), l.counterparty_connection_id !== void 0 && (N.counterparty_connection_id = l.counterparty_connection_id), l.version !== void 0 && (N.version = l.version ? u.Version.toJSON(l.version) : void 0), l.client_state !== void 0 && (N.client_state = l.client_state ? d.Any.toJSON(l.client_state) : void 0), l.proof_height !== void 0 && (N.proof_height = l.proof_height ? s.Height.toJSON(l.proof_height) : void 0), l.proof_try !== void 0 && (N.proof_try = p(l.proof_try !== void 0 ? l.proof_try : new Uint8Array())), l.proof_client !== void 0 && (N.proof_client = p(l.proof_client !== void 0 ? l.proof_client : new Uint8Array())), l.proof_consensus !== void 0 && (N.proof_consensus = p(l.proof_consensus !== void 0 ? l.proof_consensus : new Uint8Array())), l.consensus_height !== void 0 && (N.consensus_height = l.consensus_height ? s.Height.toJSON(l.consensus_height) : void 0), l.signer !== void 0 && (N.signer = l.signer), N; + }, fromPartial(l) { + var N, j, R, I, x, P; + const w = n(); + return w.connection_id = (N = l.connection_id) !== null && N !== void 0 ? N : "", w.counterparty_connection_id = (j = l.counterparty_connection_id) !== null && j !== void 0 ? j : "", w.version = l.version !== void 0 && l.version !== null ? u.Version.fromPartial(l.version) : void 0, w.client_state = l.client_state !== void 0 && l.client_state !== null ? d.Any.fromPartial(l.client_state) : void 0, w.proof_height = l.proof_height !== void 0 && l.proof_height !== null ? s.Height.fromPartial(l.proof_height) : void 0, w.proof_try = (R = l.proof_try) !== null && R !== void 0 ? R : new Uint8Array(), w.proof_client = (I = l.proof_client) !== null && I !== void 0 ? I : new Uint8Array(), w.proof_consensus = (x = l.proof_consensus) !== null && x !== void 0 ? x : new Uint8Array(), w.consensus_height = l.consensus_height !== void 0 && l.consensus_height !== null ? s.Height.fromPartial(l.consensus_height) : void 0, w.signer = (P = l.signer) !== null && P !== void 0 ? P : "", w; + } }, e.MsgConnectionOpenAckResponse = { encode: (l, N = t.Writer.create()) => N, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + for (; j.pos < R; ) { + const I = j.uint32(); + j.skipType(7 & I); + } + return {}; + }, fromJSON: (l) => ({}), toJSON: (l) => ({}), fromPartial: (l) => ({}) }, e.MsgConnectionOpenConfirm = { encode: (l, N = t.Writer.create()) => (l.connection_id !== "" && N.uint32(10).string(l.connection_id), l.proof_ack.length !== 0 && N.uint32(18).bytes(l.proof_ack), l.proof_height !== void 0 && s.Height.encode(l.proof_height, N.uint32(26).fork()).ldelim(), l.signer !== "" && N.uint32(34).string(l.signer), N), decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + const I = o(); + for (; j.pos < R; ) { + const x = j.uint32(); + switch (x >>> 3) { + case 1: + I.connection_id = j.string(); + break; + case 2: + I.proof_ack = j.bytes(); + break; + case 3: + I.proof_height = s.Height.decode(j, j.uint32()); + break; + case 4: + I.signer = j.string(); + break; + default: + j.skipType(7 & x); + } + } + return I; + }, fromJSON: (l) => ({ connection_id: M(l.connection_id) ? String(l.connection_id) : "", proof_ack: M(l.proof_ack) ? c(l.proof_ack) : new Uint8Array(), proof_height: M(l.proof_height) ? s.Height.fromJSON(l.proof_height) : void 0, signer: M(l.signer) ? String(l.signer) : "" }), toJSON(l) { + const N = {}; + return l.connection_id !== void 0 && (N.connection_id = l.connection_id), l.proof_ack !== void 0 && (N.proof_ack = p(l.proof_ack !== void 0 ? l.proof_ack : new Uint8Array())), l.proof_height !== void 0 && (N.proof_height = l.proof_height ? s.Height.toJSON(l.proof_height) : void 0), l.signer !== void 0 && (N.signer = l.signer), N; + }, fromPartial(l) { + var N, j, R; + const I = o(); + return I.connection_id = (N = l.connection_id) !== null && N !== void 0 ? N : "", I.proof_ack = (j = l.proof_ack) !== null && j !== void 0 ? j : new Uint8Array(), I.proof_height = l.proof_height !== void 0 && l.proof_height !== null ? s.Height.fromPartial(l.proof_height) : void 0, I.signer = (R = l.signer) !== null && R !== void 0 ? R : "", I; + } }, e.MsgConnectionOpenConfirmResponse = { encode: (l, N = t.Writer.create()) => N, decode(l, N) { + const j = l instanceof t.Reader ? l : new t.Reader(l); + let R = N === void 0 ? j.len : j.pos + N; + for (; j.pos < R; ) { + const I = j.uint32(); + j.skipType(7 & I); + } + return {}; + }, fromJSON: (l) => ({}), toJSON: (l) => ({}), fromPartial: (l) => ({}) }, e.MsgClientImpl = class { + constructor(l) { + this.rpc = l, this.ConnectionOpenInit = this.ConnectionOpenInit.bind(this), this.ConnectionOpenTry = this.ConnectionOpenTry.bind(this), this.ConnectionOpenAck = this.ConnectionOpenAck.bind(this), this.ConnectionOpenConfirm = this.ConnectionOpenConfirm.bind(this); + } + ConnectionOpenInit(l) { + const N = e.MsgConnectionOpenInit.encode(l).finish(); + return this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenInit", N).then((j) => e.MsgConnectionOpenInitResponse.decode(new t.Reader(j))); + } + ConnectionOpenTry(l) { + const N = e.MsgConnectionOpenTry.encode(l).finish(); + return this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenTry", N).then((j) => e.MsgConnectionOpenTryResponse.decode(new t.Reader(j))); + } + ConnectionOpenAck(l) { + const N = e.MsgConnectionOpenAck.encode(l).finish(); + return this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenAck", N).then((j) => e.MsgConnectionOpenAckResponse.decode(new t.Reader(j))); + } + ConnectionOpenConfirm(l) { + const N = e.MsgConnectionOpenConfirm.encode(l).finish(); + return this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenConfirm", N).then((j) => e.MsgConnectionOpenConfirmResponse.decode(new t.Reader(j))); + } + }; + var i = (() => { + if (i !== void 0) + return i; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const f = i.atob || ((l) => i.Buffer.from(l, "base64").toString("binary")); + function c(l) { + const N = f(l), j = new Uint8Array(N.length); + for (let R = 0; R < N.length; ++R) + j[R] = N.charCodeAt(R); + return j; + } + const h = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); + function p(l) { + const N = []; + for (const j of l) + N.push(String.fromCharCode(j)); + return h(N.join("")); + } + function m(l) { + return l.toString(); + } + function M(l) { + return l != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2896: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(I, x, P, w) { + w === void 0 && (w = P), Object.defineProperty(I, w, { enumerable: !0, get: function() { + return x[P]; + } }); + } : function(I, x, P, w) { + w === void 0 && (w = P), I[w] = x[P]; + }), A = this && this.__setModuleDefault || (Object.create ? function(I, x) { + Object.defineProperty(I, "default", { enumerable: !0, value: x }); + } : function(I, x) { + I.default = x; + }), k = this && this.__importStar || function(I) { + if (I && I.__esModule) + return I; + var x = {}; + if (I != null) + for (var P in I) + P !== "default" && Object.prototype.hasOwnProperty.call(I, P) && O(x, I, P); + return A(x, I), x; + }, b = this && this.__importDefault || function(I) { + return I && I.__esModule ? I : { default: I }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgClearAdminResponse = e.MsgClearAdmin = e.MsgUpdateAdminResponse = e.MsgUpdateAdmin = e.MsgMigrateContractResponse = e.MsgMigrateContract = e.MsgExecuteContractResponse = e.MsgExecuteContract = e.MsgInstantiateContractResponse = e.MsgInstantiateContract = e.MsgStoreCodeResponse = e.MsgStoreCode = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2976); + function d() { + return { sender: new Uint8Array(), wasm_byte_code: new Uint8Array(), source: "", builder: "" }; + } + function s() { + return { sender: new Uint8Array(), callback_code_hash: "", code_id: "0", label: "", init_msg: new Uint8Array(), init_funds: [], callback_sig: new Uint8Array(), admin: "" }; + } + function r() { + return { address: "", data: new Uint8Array() }; + } + function n() { + return { sender: new Uint8Array(), contract: new Uint8Array(), msg: new Uint8Array(), callback_code_hash: "", sent_funds: [], callback_sig: new Uint8Array() }; + } + function o() { + return { data: new Uint8Array() }; + } + function i() { + return { sender: "", contract: "", code_id: "0", msg: new Uint8Array(), callback_sig: new Uint8Array(), callback_code_hash: "" }; + } + function f() { + return { data: new Uint8Array() }; + } + function c() { + return { sender: "", new_admin: "", contract: "", callback_sig: new Uint8Array() }; + } + function h() { + return { sender: "", contract: "", callback_sig: new Uint8Array() }; + } + e.protobufPackage = "secret.compute.v1beta1", e.MsgStoreCode = { encode: (I, x = t.Writer.create()) => (I.sender.length !== 0 && x.uint32(10).bytes(I.sender), I.wasm_byte_code.length !== 0 && x.uint32(18).bytes(I.wasm_byte_code), I.source !== "" && x.uint32(26).string(I.source), I.builder !== "" && x.uint32(34).string(I.builder), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = d(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.bytes(); + break; + case 2: + g.wasm_byte_code = P.bytes(); + break; + case 3: + g.source = P.string(); + break; + case 4: + g.builder = P.string(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? M(I.sender) : new Uint8Array(), wasm_byte_code: R(I.wasm_byte_code) ? M(I.wasm_byte_code) : new Uint8Array(), source: R(I.source) ? String(I.source) : "", builder: R(I.builder) ? String(I.builder) : "" }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = N(I.sender !== void 0 ? I.sender : new Uint8Array())), I.wasm_byte_code !== void 0 && (x.wasm_byte_code = N(I.wasm_byte_code !== void 0 ? I.wasm_byte_code : new Uint8Array())), I.source !== void 0 && (x.source = I.source), I.builder !== void 0 && (x.builder = I.builder), x; + }, fromPartial(I) { + var x, P, w, g; + const E = d(); + return E.sender = (x = I.sender) !== null && x !== void 0 ? x : new Uint8Array(), E.wasm_byte_code = (P = I.wasm_byte_code) !== null && P !== void 0 ? P : new Uint8Array(), E.source = (w = I.source) !== null && w !== void 0 ? w : "", E.builder = (g = I.builder) !== null && g !== void 0 ? g : "", E; + } }, e.MsgStoreCodeResponse = { encode: (I, x = t.Writer.create()) => (I.code_id !== "0" && x.uint32(8).uint64(I.code_id), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = { code_id: "0" }; + for (; P.pos < w; ) { + const E = P.uint32(); + E >>> 3 == 1 ? g.code_id = j(P.uint64()) : P.skipType(7 & E); + } + return g; + }, fromJSON: (I) => ({ code_id: R(I.code_id) ? String(I.code_id) : "0" }), toJSON(I) { + const x = {}; + return I.code_id !== void 0 && (x.code_id = I.code_id), x; + }, fromPartial(I) { + var x; + const P = { code_id: "0" }; + return P.code_id = (x = I.code_id) !== null && x !== void 0 ? x : "0", P; + } }, e.MsgInstantiateContract = { encode(I, x = t.Writer.create()) { + I.sender.length !== 0 && x.uint32(10).bytes(I.sender), I.callback_code_hash !== "" && x.uint32(18).string(I.callback_code_hash), I.code_id !== "0" && x.uint32(24).uint64(I.code_id), I.label !== "" && x.uint32(34).string(I.label), I.init_msg.length !== 0 && x.uint32(42).bytes(I.init_msg); + for (const P of I.init_funds) + u.Coin.encode(P, x.uint32(50).fork()).ldelim(); + return I.callback_sig.length !== 0 && x.uint32(58).bytes(I.callback_sig), I.admin !== "" && x.uint32(66).string(I.admin), x; + }, decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = s(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.bytes(); + break; + case 2: + g.callback_code_hash = P.string(); + break; + case 3: + g.code_id = j(P.uint64()); + break; + case 4: + g.label = P.string(); + break; + case 5: + g.init_msg = P.bytes(); + break; + case 6: + g.init_funds.push(u.Coin.decode(P, P.uint32())); + break; + case 7: + g.callback_sig = P.bytes(); + break; + case 8: + g.admin = P.string(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? M(I.sender) : new Uint8Array(), callback_code_hash: R(I.callback_code_hash) ? String(I.callback_code_hash) : "", code_id: R(I.code_id) ? String(I.code_id) : "0", label: R(I.label) ? String(I.label) : "", init_msg: R(I.init_msg) ? M(I.init_msg) : new Uint8Array(), init_funds: Array.isArray(I == null ? void 0 : I.init_funds) ? I.init_funds.map((x) => u.Coin.fromJSON(x)) : [], callback_sig: R(I.callback_sig) ? M(I.callback_sig) : new Uint8Array(), admin: R(I.admin) ? String(I.admin) : "" }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = N(I.sender !== void 0 ? I.sender : new Uint8Array())), I.callback_code_hash !== void 0 && (x.callback_code_hash = I.callback_code_hash), I.code_id !== void 0 && (x.code_id = I.code_id), I.label !== void 0 && (x.label = I.label), I.init_msg !== void 0 && (x.init_msg = N(I.init_msg !== void 0 ? I.init_msg : new Uint8Array())), I.init_funds ? x.init_funds = I.init_funds.map((P) => P ? u.Coin.toJSON(P) : void 0) : x.init_funds = [], I.callback_sig !== void 0 && (x.callback_sig = N(I.callback_sig !== void 0 ? I.callback_sig : new Uint8Array())), I.admin !== void 0 && (x.admin = I.admin), x; + }, fromPartial(I) { + var x, P, w, g, E, U, C, F; + const re = s(); + return re.sender = (x = I.sender) !== null && x !== void 0 ? x : new Uint8Array(), re.callback_code_hash = (P = I.callback_code_hash) !== null && P !== void 0 ? P : "", re.code_id = (w = I.code_id) !== null && w !== void 0 ? w : "0", re.label = (g = I.label) !== null && g !== void 0 ? g : "", re.init_msg = (E = I.init_msg) !== null && E !== void 0 ? E : new Uint8Array(), re.init_funds = ((U = I.init_funds) === null || U === void 0 ? void 0 : U.map((ee) => u.Coin.fromPartial(ee))) || [], re.callback_sig = (C = I.callback_sig) !== null && C !== void 0 ? C : new Uint8Array(), re.admin = (F = I.admin) !== null && F !== void 0 ? F : "", re; + } }, e.MsgInstantiateContractResponse = { encode: (I, x = t.Writer.create()) => (I.address !== "" && x.uint32(10).string(I.address), I.data.length !== 0 && x.uint32(18).bytes(I.data), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = r(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.address = P.string(); + break; + case 2: + g.data = P.bytes(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ address: R(I.address) ? String(I.address) : "", data: R(I.data) ? M(I.data) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.address !== void 0 && (x.address = I.address), I.data !== void 0 && (x.data = N(I.data !== void 0 ? I.data : new Uint8Array())), x; + }, fromPartial(I) { + var x, P; + const w = r(); + return w.address = (x = I.address) !== null && x !== void 0 ? x : "", w.data = (P = I.data) !== null && P !== void 0 ? P : new Uint8Array(), w; + } }, e.MsgExecuteContract = { encode(I, x = t.Writer.create()) { + I.sender.length !== 0 && x.uint32(10).bytes(I.sender), I.contract.length !== 0 && x.uint32(18).bytes(I.contract), I.msg.length !== 0 && x.uint32(26).bytes(I.msg), I.callback_code_hash !== "" && x.uint32(34).string(I.callback_code_hash); + for (const P of I.sent_funds) + u.Coin.encode(P, x.uint32(42).fork()).ldelim(); + return I.callback_sig.length !== 0 && x.uint32(50).bytes(I.callback_sig), x; + }, decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = n(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.bytes(); + break; + case 2: + g.contract = P.bytes(); + break; + case 3: + g.msg = P.bytes(); + break; + case 4: + g.callback_code_hash = P.string(); + break; + case 5: + g.sent_funds.push(u.Coin.decode(P, P.uint32())); + break; + case 6: + g.callback_sig = P.bytes(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? M(I.sender) : new Uint8Array(), contract: R(I.contract) ? M(I.contract) : new Uint8Array(), msg: R(I.msg) ? M(I.msg) : new Uint8Array(), callback_code_hash: R(I.callback_code_hash) ? String(I.callback_code_hash) : "", sent_funds: Array.isArray(I == null ? void 0 : I.sent_funds) ? I.sent_funds.map((x) => u.Coin.fromJSON(x)) : [], callback_sig: R(I.callback_sig) ? M(I.callback_sig) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = N(I.sender !== void 0 ? I.sender : new Uint8Array())), I.contract !== void 0 && (x.contract = N(I.contract !== void 0 ? I.contract : new Uint8Array())), I.msg !== void 0 && (x.msg = N(I.msg !== void 0 ? I.msg : new Uint8Array())), I.callback_code_hash !== void 0 && (x.callback_code_hash = I.callback_code_hash), I.sent_funds ? x.sent_funds = I.sent_funds.map((P) => P ? u.Coin.toJSON(P) : void 0) : x.sent_funds = [], I.callback_sig !== void 0 && (x.callback_sig = N(I.callback_sig !== void 0 ? I.callback_sig : new Uint8Array())), x; + }, fromPartial(I) { + var x, P, w, g, E, U; + const C = n(); + return C.sender = (x = I.sender) !== null && x !== void 0 ? x : new Uint8Array(), C.contract = (P = I.contract) !== null && P !== void 0 ? P : new Uint8Array(), C.msg = (w = I.msg) !== null && w !== void 0 ? w : new Uint8Array(), C.callback_code_hash = (g = I.callback_code_hash) !== null && g !== void 0 ? g : "", C.sent_funds = ((E = I.sent_funds) === null || E === void 0 ? void 0 : E.map((F) => u.Coin.fromPartial(F))) || [], C.callback_sig = (U = I.callback_sig) !== null && U !== void 0 ? U : new Uint8Array(), C; + } }, e.MsgExecuteContractResponse = { encode: (I, x = t.Writer.create()) => (I.data.length !== 0 && x.uint32(10).bytes(I.data), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = o(); + for (; P.pos < w; ) { + const E = P.uint32(); + E >>> 3 == 1 ? g.data = P.bytes() : P.skipType(7 & E); + } + return g; + }, fromJSON: (I) => ({ data: R(I.data) ? M(I.data) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.data !== void 0 && (x.data = N(I.data !== void 0 ? I.data : new Uint8Array())), x; + }, fromPartial(I) { + var x; + const P = o(); + return P.data = (x = I.data) !== null && x !== void 0 ? x : new Uint8Array(), P; + } }, e.MsgMigrateContract = { encode: (I, x = t.Writer.create()) => (I.sender !== "" && x.uint32(10).string(I.sender), I.contract !== "" && x.uint32(18).string(I.contract), I.code_id !== "0" && x.uint32(24).uint64(I.code_id), I.msg.length !== 0 && x.uint32(34).bytes(I.msg), I.callback_sig.length !== 0 && x.uint32(58).bytes(I.callback_sig), I.callback_code_hash !== "" && x.uint32(66).string(I.callback_code_hash), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = i(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.string(); + break; + case 2: + g.contract = P.string(); + break; + case 3: + g.code_id = j(P.uint64()); + break; + case 4: + g.msg = P.bytes(); + break; + case 7: + g.callback_sig = P.bytes(); + break; + case 8: + g.callback_code_hash = P.string(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? String(I.sender) : "", contract: R(I.contract) ? String(I.contract) : "", code_id: R(I.code_id) ? String(I.code_id) : "0", msg: R(I.msg) ? M(I.msg) : new Uint8Array(), callback_sig: R(I.callback_sig) ? M(I.callback_sig) : new Uint8Array(), callback_code_hash: R(I.callback_code_hash) ? String(I.callback_code_hash) : "" }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = I.sender), I.contract !== void 0 && (x.contract = I.contract), I.code_id !== void 0 && (x.code_id = I.code_id), I.msg !== void 0 && (x.msg = N(I.msg !== void 0 ? I.msg : new Uint8Array())), I.callback_sig !== void 0 && (x.callback_sig = N(I.callback_sig !== void 0 ? I.callback_sig : new Uint8Array())), I.callback_code_hash !== void 0 && (x.callback_code_hash = I.callback_code_hash), x; + }, fromPartial(I) { + var x, P, w, g, E, U; + const C = i(); + return C.sender = (x = I.sender) !== null && x !== void 0 ? x : "", C.contract = (P = I.contract) !== null && P !== void 0 ? P : "", C.code_id = (w = I.code_id) !== null && w !== void 0 ? w : "0", C.msg = (g = I.msg) !== null && g !== void 0 ? g : new Uint8Array(), C.callback_sig = (E = I.callback_sig) !== null && E !== void 0 ? E : new Uint8Array(), C.callback_code_hash = (U = I.callback_code_hash) !== null && U !== void 0 ? U : "", C; + } }, e.MsgMigrateContractResponse = { encode: (I, x = t.Writer.create()) => (I.data.length !== 0 && x.uint32(10).bytes(I.data), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = f(); + for (; P.pos < w; ) { + const E = P.uint32(); + E >>> 3 == 1 ? g.data = P.bytes() : P.skipType(7 & E); + } + return g; + }, fromJSON: (I) => ({ data: R(I.data) ? M(I.data) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.data !== void 0 && (x.data = N(I.data !== void 0 ? I.data : new Uint8Array())), x; + }, fromPartial(I) { + var x; + const P = f(); + return P.data = (x = I.data) !== null && x !== void 0 ? x : new Uint8Array(), P; + } }, e.MsgUpdateAdmin = { encode: (I, x = t.Writer.create()) => (I.sender !== "" && x.uint32(10).string(I.sender), I.new_admin !== "" && x.uint32(18).string(I.new_admin), I.contract !== "" && x.uint32(26).string(I.contract), I.callback_sig.length !== 0 && x.uint32(58).bytes(I.callback_sig), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = c(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.string(); + break; + case 2: + g.new_admin = P.string(); + break; + case 3: + g.contract = P.string(); + break; + case 7: + g.callback_sig = P.bytes(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? String(I.sender) : "", new_admin: R(I.new_admin) ? String(I.new_admin) : "", contract: R(I.contract) ? String(I.contract) : "", callback_sig: R(I.callback_sig) ? M(I.callback_sig) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = I.sender), I.new_admin !== void 0 && (x.new_admin = I.new_admin), I.contract !== void 0 && (x.contract = I.contract), I.callback_sig !== void 0 && (x.callback_sig = N(I.callback_sig !== void 0 ? I.callback_sig : new Uint8Array())), x; + }, fromPartial(I) { + var x, P, w, g; + const E = c(); + return E.sender = (x = I.sender) !== null && x !== void 0 ? x : "", E.new_admin = (P = I.new_admin) !== null && P !== void 0 ? P : "", E.contract = (w = I.contract) !== null && w !== void 0 ? w : "", E.callback_sig = (g = I.callback_sig) !== null && g !== void 0 ? g : new Uint8Array(), E; + } }, e.MsgUpdateAdminResponse = { encode: (I, x = t.Writer.create()) => x, decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + for (; P.pos < w; ) { + const g = P.uint32(); + P.skipType(7 & g); + } + return {}; + }, fromJSON: (I) => ({}), toJSON: (I) => ({}), fromPartial: (I) => ({}) }, e.MsgClearAdmin = { encode: (I, x = t.Writer.create()) => (I.sender !== "" && x.uint32(10).string(I.sender), I.contract !== "" && x.uint32(26).string(I.contract), I.callback_sig.length !== 0 && x.uint32(58).bytes(I.callback_sig), x), decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + const g = h(); + for (; P.pos < w; ) { + const E = P.uint32(); + switch (E >>> 3) { + case 1: + g.sender = P.string(); + break; + case 3: + g.contract = P.string(); + break; + case 7: + g.callback_sig = P.bytes(); + break; + default: + P.skipType(7 & E); + } + } + return g; + }, fromJSON: (I) => ({ sender: R(I.sender) ? String(I.sender) : "", contract: R(I.contract) ? String(I.contract) : "", callback_sig: R(I.callback_sig) ? M(I.callback_sig) : new Uint8Array() }), toJSON(I) { + const x = {}; + return I.sender !== void 0 && (x.sender = I.sender), I.contract !== void 0 && (x.contract = I.contract), I.callback_sig !== void 0 && (x.callback_sig = N(I.callback_sig !== void 0 ? I.callback_sig : new Uint8Array())), x; + }, fromPartial(I) { + var x, P, w; + const g = h(); + return g.sender = (x = I.sender) !== null && x !== void 0 ? x : "", g.contract = (P = I.contract) !== null && P !== void 0 ? P : "", g.callback_sig = (w = I.callback_sig) !== null && w !== void 0 ? w : new Uint8Array(), g; + } }, e.MsgClearAdminResponse = { encode: (I, x = t.Writer.create()) => x, decode(I, x) { + const P = I instanceof t.Reader ? I : new t.Reader(I); + let w = x === void 0 ? P.len : P.pos + x; + for (; P.pos < w; ) { + const g = P.uint32(); + P.skipType(7 & g); + } + return {}; + }, fromJSON: (I) => ({}), toJSON: (I) => ({}), fromPartial: (I) => ({}) }, e.MsgClientImpl = class { + constructor(I) { + this.rpc = I, this.StoreCode = this.StoreCode.bind(this), this.InstantiateContract = this.InstantiateContract.bind(this), this.ExecuteContract = this.ExecuteContract.bind(this), this.MigrateContract = this.MigrateContract.bind(this), this.UpdateAdmin = this.UpdateAdmin.bind(this), this.ClearAdmin = this.ClearAdmin.bind(this); + } + StoreCode(I) { + const x = e.MsgStoreCode.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "StoreCode", x).then((P) => e.MsgStoreCodeResponse.decode(new t.Reader(P))); + } + InstantiateContract(I) { + const x = e.MsgInstantiateContract.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "InstantiateContract", x).then((P) => e.MsgInstantiateContractResponse.decode(new t.Reader(P))); + } + ExecuteContract(I) { + const x = e.MsgExecuteContract.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "ExecuteContract", x).then((P) => e.MsgExecuteContractResponse.decode(new t.Reader(P))); + } + MigrateContract(I) { + const x = e.MsgMigrateContract.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "MigrateContract", x).then((P) => e.MsgMigrateContractResponse.decode(new t.Reader(P))); + } + UpdateAdmin(I) { + const x = e.MsgUpdateAdmin.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "UpdateAdmin", x).then((P) => e.MsgUpdateAdminResponse.decode(new t.Reader(P))); + } + ClearAdmin(I) { + const x = e.MsgClearAdmin.encode(I).finish(); + return this.rpc.request("secret.compute.v1beta1.Msg", "ClearAdmin", x).then((P) => e.MsgClearAdminResponse.decode(new t.Reader(P))); + } + }; + var p = (() => { + if (p !== void 0) + return p; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const m = p.atob || ((I) => p.Buffer.from(I, "base64").toString("binary")); + function M(I) { + const x = m(I), P = new Uint8Array(x.length); + for (let w = 0; w < x.length; ++w) + P[w] = x.charCodeAt(w); + return P; + } + const l = p.btoa || ((I) => p.Buffer.from(I, "binary").toString("base64")); + function N(I) { + const x = []; + for (const P of I) + x.push(String.fromCharCode(P)); + return l(x.join("")); + } + function j(I) { + return I.toString(); + } + function R(I) { + return I != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 4657: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(u, d, s, r) { + r === void 0 && (r = s), Object.defineProperty(u, r, { enumerable: !0, get: function() { + return d[s]; + } }); + } : function(u, d, s, r) { + r === void 0 && (r = s), u[r] = d[s]; + }), A = this && this.__setModuleDefault || (Object.create ? function(u, d) { + Object.defineProperty(u, "default", { enumerable: !0, value: d }); + } : function(u, d) { + u.default = d; + }), k = this && this.__importStar || function(u) { + if (u && u.__esModule) + return u; + var d = {}; + if (u != null) + for (var s in u) + s !== "default" && Object.prototype.hasOwnProperty.call(u, s) && O(d, u, s); + return A(d, u), d; + }, b = this && this.__importDefault || function(u) { + return u && u.__esModule ? u : { default: u }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgToggleIbcSwitchResponse = e.MsgToggleIbcSwitch = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + e.protobufPackage = "secret.emergencybutton.v1beta1", e.MsgToggleIbcSwitch = { encode: (u, d = t.Writer.create()) => (u.sender !== "" && d.uint32(10).string(u.sender), d), decode(u, d) { + const s = u instanceof t.Reader ? u : new t.Reader(u); + let r = d === void 0 ? s.len : s.pos + d; + const n = { sender: "" }; + for (; s.pos < r; ) { + const o = s.uint32(); + o >>> 3 == 1 ? n.sender = s.string() : s.skipType(7 & o); + } + return n; + }, fromJSON(u) { + return { sender: (d = u.sender, d != null ? String(u.sender) : "") }; + var d; + }, toJSON(u) { + const d = {}; + return u.sender !== void 0 && (d.sender = u.sender), d; + }, fromPartial(u) { + var d; + const s = { sender: "" }; + return s.sender = (d = u.sender) !== null && d !== void 0 ? d : "", s; + } }, e.MsgToggleIbcSwitchResponse = { encode: (u, d = t.Writer.create()) => d, decode(u, d) { + const s = u instanceof t.Reader ? u : new t.Reader(u); + let r = d === void 0 ? s.len : s.pos + d; + for (; s.pos < r; ) { + const n = s.uint32(); + s.skipType(7 & n); + } + return {}; + }, fromJSON: (u) => ({}), toJSON: (u) => ({}), fromPartial: (u) => ({}) }, e.MsgClientImpl = class { + constructor(u) { + this.rpc = u, this.ToggleIbcSwitch = this.ToggleIbcSwitch.bind(this); + } + ToggleIbcSwitch(u) { + const d = e.MsgToggleIbcSwitch.encode(u).finish(); + return this.rpc.request("secret.emergencybutton.v1beta1.Msg", "ToggleIbcSwitch", d).then((s) => e.MsgToggleIbcSwitchResponse.decode(new t.Reader(s))); + } + }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 1901: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(h, p, m, M) { + M === void 0 && (M = m), Object.defineProperty(h, M, { enumerable: !0, get: function() { + return p[m]; + } }); + } : function(h, p, m, M) { + M === void 0 && (M = m), h[M] = p[m]; + }), A = this && this.__setModuleDefault || (Object.create ? function(h, p) { + Object.defineProperty(h, "default", { enumerable: !0, value: p }); + } : function(h, p) { + h.default = p; + }), k = this && this.__importStar || function(h) { + if (h && h.__esModule) + return h; + var p = {}; + if (h != null) + for (var m in h) + m !== "default" && Object.prototype.hasOwnProperty.call(h, m) && O(p, h, m); + return A(p, h), p; + }, b = this && this.__importDefault || function(h) { + return h && h.__esModule ? h : { default: h }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Key = e.MasterKey = e.RaAuthenticate = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { sender: new Uint8Array(), certificate: new Uint8Array() }; + } + function d() { + return { bytes: new Uint8Array() }; + } + function s() { + return { key: new Uint8Array() }; + } + e.protobufPackage = "secret.registration.v1beta1", e.RaAuthenticate = { encode: (h, p = t.Writer.create()) => (h.sender.length !== 0 && p.uint32(10).bytes(h.sender), h.certificate.length !== 0 && p.uint32(18).bytes(h.certificate), p), decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = u(); + for (; m.pos < M; ) { + const N = m.uint32(); + switch (N >>> 3) { + case 1: + l.sender = m.bytes(); + break; + case 2: + l.certificate = m.bytes(); + break; + default: + m.skipType(7 & N); + } + } + return l; + }, fromJSON: (h) => ({ sender: c(h.sender) ? o(h.sender) : new Uint8Array(), certificate: c(h.certificate) ? o(h.certificate) : new Uint8Array() }), toJSON(h) { + const p = {}; + return h.sender !== void 0 && (p.sender = f(h.sender !== void 0 ? h.sender : new Uint8Array())), h.certificate !== void 0 && (p.certificate = f(h.certificate !== void 0 ? h.certificate : new Uint8Array())), p; + }, fromPartial(h) { + var p, m; + const M = u(); + return M.sender = (p = h.sender) !== null && p !== void 0 ? p : new Uint8Array(), M.certificate = (m = h.certificate) !== null && m !== void 0 ? m : new Uint8Array(), M; + } }, e.MasterKey = { encode: (h, p = t.Writer.create()) => (h.bytes.length !== 0 && p.uint32(10).bytes(h.bytes), p), decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = d(); + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.bytes = m.bytes() : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ bytes: c(h.bytes) ? o(h.bytes) : new Uint8Array() }), toJSON(h) { + const p = {}; + return h.bytes !== void 0 && (p.bytes = f(h.bytes !== void 0 ? h.bytes : new Uint8Array())), p; + }, fromPartial(h) { + var p; + const m = d(); + return m.bytes = (p = h.bytes) !== null && p !== void 0 ? p : new Uint8Array(), m; + } }, e.Key = { encode: (h, p = t.Writer.create()) => (h.key.length !== 0 && p.uint32(10).bytes(h.key), p), decode(h, p) { + const m = h instanceof t.Reader ? h : new t.Reader(h); + let M = p === void 0 ? m.len : m.pos + p; + const l = s(); + for (; m.pos < M; ) { + const N = m.uint32(); + N >>> 3 == 1 ? l.key = m.bytes() : m.skipType(7 & N); + } + return l; + }, fromJSON: (h) => ({ key: c(h.key) ? o(h.key) : new Uint8Array() }), toJSON(h) { + const p = {}; + return h.key !== void 0 && (p.key = f(h.key !== void 0 ? h.key : new Uint8Array())), p; + }, fromPartial(h) { + var p; + const m = s(); + return m.key = (p = h.key) !== null && p !== void 0 ? p : new Uint8Array(), m; + } }; + var r = (() => { + if (r !== void 0) + return r; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const n = r.atob || ((h) => r.Buffer.from(h, "base64").toString("binary")); + function o(h) { + const p = n(h), m = new Uint8Array(p.length); + for (let M = 0; M < p.length; ++M) + m[M] = p.charCodeAt(M); + return m; + } + const i = r.btoa || ((h) => r.Buffer.from(h, "binary").toString("base64")); + function f(h) { + const p = []; + for (const m of h) + p.push(String.fromCharCode(m)); + return i(p.join("")); + } + function c(h) { + return h != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2093: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(v, y, S, T) { + T === void 0 && (T = S), Object.defineProperty(v, T, { enumerable: !0, get: function() { + return y[S]; + } }); + } : function(v, y, S, T) { + T === void 0 && (T = S), v[T] = y[S]; + }), A = this && this.__setModuleDefault || (Object.create ? function(v, y) { + Object.defineProperty(v, "default", { enumerable: !0, value: y }); + } : function(v, y) { + v.default = y; + }), k = this && this.__importStar || function(v) { + if (v && v.__esModule) + return v; + var y = {}; + if (v != null) + for (var S in v) + S !== "default" && Object.prototype.hasOwnProperty.call(v, S) && O(y, v, S); + return A(y, v), y; + }, b = this && this.__importDefault || function(v) { + return v && v.__esModule ? v : { default: v }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Event = e.LastCommitInfo = e.BlockParams = e.ConsensusParams = e.ResponseApplySnapshotChunk = e.ResponseLoadSnapshotChunk = e.ResponseOfferSnapshot = e.ResponseListSnapshots = e.ResponseCommit = e.ResponseEndBlock = e.ResponseDeliverTx = e.ResponseCheckTx = e.ResponseBeginBlock = e.ResponseQuery = e.ResponseInitChain = e.ResponseSetOption = e.ResponseInfo = e.ResponseFlush = e.ResponseEcho = e.ResponseException = e.Response = e.RequestApplySnapshotChunk = e.RequestLoadSnapshotChunk = e.RequestOfferSnapshot = e.RequestListSnapshots = e.RequestCommit = e.RequestEndBlock = e.RequestDeliverTx = e.RequestCheckTx = e.RequestBeginBlock = e.RequestQuery = e.RequestInitChain = e.RequestSetOption = e.RequestInfo = e.RequestFlush = e.RequestEcho = e.Request = e.responseApplySnapshotChunk_ResultToJSON = e.responseApplySnapshotChunk_ResultFromJSON = e.ResponseApplySnapshotChunk_Result = e.responseOfferSnapshot_ResultToJSON = e.responseOfferSnapshot_ResultFromJSON = e.ResponseOfferSnapshot_Result = e.evidenceTypeToJSON = e.evidenceTypeFromJSON = e.EvidenceType = e.checkTxTypeToJSON = e.checkTxTypeFromJSON = e.CheckTxType = e.protobufPackage = void 0, e.ABCIApplicationClientImpl = e.Snapshot = e.Evidence = e.VoteInfo = e.ValidatorUpdate = e.Validator = e.TxResult = e.EventAttribute = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(5090), d = _(9928), s = _(1093), r = _(5672), n = _(2740); + var o, i, f, c; + function h(v) { + switch (v) { + case 0: + case "NEW": + return o.NEW; + case 1: + case "RECHECK": + return o.RECHECK; + default: + return o.UNRECOGNIZED; + } + } + function p(v) { + switch (v) { + case o.NEW: + return "NEW"; + case o.RECHECK: + return "RECHECK"; + default: + return "UNKNOWN"; + } + } + function m(v) { + switch (v) { + case 0: + case "UNKNOWN": + return i.UNKNOWN; + case 1: + case "DUPLICATE_VOTE": + return i.DUPLICATE_VOTE; + case 2: + case "LIGHT_CLIENT_ATTACK": + return i.LIGHT_CLIENT_ATTACK; + default: + return i.UNRECOGNIZED; + } + } + function M(v) { + switch (v) { + case i.UNKNOWN: + return "UNKNOWN"; + case i.DUPLICATE_VOTE: + return "DUPLICATE_VOTE"; + case i.LIGHT_CLIENT_ATTACK: + return "LIGHT_CLIENT_ATTACK"; + default: + return "UNKNOWN"; + } + } + function l(v) { + switch (v) { + case 0: + case "UNKNOWN": + return f.UNKNOWN; + case 1: + case "ACCEPT": + return f.ACCEPT; + case 2: + case "ABORT": + return f.ABORT; + case 3: + case "REJECT": + return f.REJECT; + case 4: + case "REJECT_FORMAT": + return f.REJECT_FORMAT; + case 5: + case "REJECT_SENDER": + return f.REJECT_SENDER; + default: + return f.UNRECOGNIZED; + } + } + function N(v) { + switch (v) { + case f.UNKNOWN: + return "UNKNOWN"; + case f.ACCEPT: + return "ACCEPT"; + case f.ABORT: + return "ABORT"; + case f.REJECT: + return "REJECT"; + case f.REJECT_FORMAT: + return "REJECT_FORMAT"; + case f.REJECT_SENDER: + return "REJECT_SENDER"; + default: + return "UNKNOWN"; + } + } + function j(v) { + switch (v) { + case 0: + case "UNKNOWN": + return c.UNKNOWN; + case 1: + case "ACCEPT": + return c.ACCEPT; + case 2: + case "ABORT": + return c.ABORT; + case 3: + case "RETRY": + return c.RETRY; + case 4: + case "RETRY_SNAPSHOT": + return c.RETRY_SNAPSHOT; + case 5: + case "REJECT_SNAPSHOT": + return c.REJECT_SNAPSHOT; + default: + return c.UNRECOGNIZED; + } + } + function R(v) { + switch (v) { + case c.UNKNOWN: + return "UNKNOWN"; + case c.ACCEPT: + return "ACCEPT"; + case c.ABORT: + return "ABORT"; + case c.RETRY: + return "RETRY"; + case c.RETRY_SNAPSHOT: + return "RETRY_SNAPSHOT"; + case c.REJECT_SNAPSHOT: + return "REJECT_SNAPSHOT"; + default: + return "UNKNOWN"; + } + } + function I() { + return { time: void 0, chain_id: "", consensus_params: void 0, validators: [], app_state_bytes: new Uint8Array(), initial_height: "0" }; + } + function x() { + return { data: new Uint8Array(), path: "", height: "0", prove: !1 }; + } + function P() { + return { hash: new Uint8Array(), header: void 0, last_commit_info: void 0, byzantine_validators: [], commit: void 0, txs: [] }; + } + function w() { + return { tx: new Uint8Array(), type: 0 }; + } + function g() { + return { tx: new Uint8Array() }; + } + function E() { + return { snapshot: void 0, app_hash: new Uint8Array() }; + } + function U() { + return { index: 0, chunk: new Uint8Array(), sender: "" }; + } + function C() { + return { data: "", version: "", app_version: "0", last_block_height: "0", last_block_app_hash: new Uint8Array() }; + } + function F() { + return { consensus_params: void 0, validators: [], app_hash: new Uint8Array() }; + } + function re() { + return { code: 0, log: "", info: "", index: "0", key: new Uint8Array(), value: new Uint8Array(), proof_ops: void 0, height: "0", codespace: "" }; + } + function ee() { + return { code: 0, data: new Uint8Array(), log: "", info: "", gas_wanted: "0", gas_used: "0", events: [], codespace: "", sender: "", priority: "0", mempool_error: "" }; + } + function ne() { + return { code: 0, data: new Uint8Array(), log: "", info: "", gas_wanted: "0", gas_used: "0", events: [], codespace: "" }; + } + function D() { + return { data: new Uint8Array(), retain_height: "0" }; + } + function Z() { + return { chunk: new Uint8Array() }; + } + function $() { + return { key: new Uint8Array(), value: new Uint8Array(), index: !1 }; + } + function X() { + return { height: "0", index: 0, tx: new Uint8Array(), result: void 0 }; + } + function K() { + return { address: new Uint8Array(), power: "0" }; + } + function Y() { + return { height: "0", format: 0, chunks: 0, hash: new Uint8Array(), metadata: new Uint8Array() }; + } + e.protobufPackage = "tendermint.abci", function(v) { + v[v.NEW = 0] = "NEW", v[v.RECHECK = 1] = "RECHECK", v[v.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(o = e.CheckTxType || (e.CheckTxType = {})), e.checkTxTypeFromJSON = h, e.checkTxTypeToJSON = p, function(v) { + v[v.UNKNOWN = 0] = "UNKNOWN", v[v.DUPLICATE_VOTE = 1] = "DUPLICATE_VOTE", v[v.LIGHT_CLIENT_ATTACK = 2] = "LIGHT_CLIENT_ATTACK", v[v.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(i = e.EvidenceType || (e.EvidenceType = {})), e.evidenceTypeFromJSON = m, e.evidenceTypeToJSON = M, function(v) { + v[v.UNKNOWN = 0] = "UNKNOWN", v[v.ACCEPT = 1] = "ACCEPT", v[v.ABORT = 2] = "ABORT", v[v.REJECT = 3] = "REJECT", v[v.REJECT_FORMAT = 4] = "REJECT_FORMAT", v[v.REJECT_SENDER = 5] = "REJECT_SENDER", v[v.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(f = e.ResponseOfferSnapshot_Result || (e.ResponseOfferSnapshot_Result = {})), e.responseOfferSnapshot_ResultFromJSON = l, e.responseOfferSnapshot_ResultToJSON = N, function(v) { + v[v.UNKNOWN = 0] = "UNKNOWN", v[v.ACCEPT = 1] = "ACCEPT", v[v.ABORT = 2] = "ABORT", v[v.RETRY = 3] = "RETRY", v[v.RETRY_SNAPSHOT = 4] = "RETRY_SNAPSHOT", v[v.REJECT_SNAPSHOT = 5] = "REJECT_SNAPSHOT", v[v.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(c = e.ResponseApplySnapshotChunk_Result || (e.ResponseApplySnapshotChunk_Result = {})), e.responseApplySnapshotChunk_ResultFromJSON = j, e.responseApplySnapshotChunk_ResultToJSON = R, e.Request = { encode: (v, y = t.Writer.create()) => (v.echo !== void 0 && e.RequestEcho.encode(v.echo, y.uint32(10).fork()).ldelim(), v.flush !== void 0 && e.RequestFlush.encode(v.flush, y.uint32(18).fork()).ldelim(), v.info !== void 0 && e.RequestInfo.encode(v.info, y.uint32(26).fork()).ldelim(), v.set_option !== void 0 && e.RequestSetOption.encode(v.set_option, y.uint32(34).fork()).ldelim(), v.init_chain !== void 0 && e.RequestInitChain.encode(v.init_chain, y.uint32(42).fork()).ldelim(), v.query !== void 0 && e.RequestQuery.encode(v.query, y.uint32(50).fork()).ldelim(), v.begin_block !== void 0 && e.RequestBeginBlock.encode(v.begin_block, y.uint32(58).fork()).ldelim(), v.check_tx !== void 0 && e.RequestCheckTx.encode(v.check_tx, y.uint32(66).fork()).ldelim(), v.deliver_tx !== void 0 && e.RequestDeliverTx.encode(v.deliver_tx, y.uint32(74).fork()).ldelim(), v.end_block !== void 0 && e.RequestEndBlock.encode(v.end_block, y.uint32(82).fork()).ldelim(), v.commit !== void 0 && e.RequestCommit.encode(v.commit, y.uint32(90).fork()).ldelim(), v.list_snapshots !== void 0 && e.RequestListSnapshots.encode(v.list_snapshots, y.uint32(98).fork()).ldelim(), v.offer_snapshot !== void 0 && e.RequestOfferSnapshot.encode(v.offer_snapshot, y.uint32(106).fork()).ldelim(), v.load_snapshot_chunk !== void 0 && e.RequestLoadSnapshotChunk.encode(v.load_snapshot_chunk, y.uint32(114).fork()).ldelim(), v.apply_snapshot_chunk !== void 0 && e.RequestApplySnapshotChunk.encode(v.apply_snapshot_chunk, y.uint32(122).fork()).ldelim(), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { echo: void 0, flush: void 0, info: void 0, set_option: void 0, init_chain: void 0, query: void 0, begin_block: void 0, check_tx: void 0, deliver_tx: void 0, end_block: void 0, commit: void 0, list_snapshots: void 0, offer_snapshot: void 0, load_snapshot_chunk: void 0, apply_snapshot_chunk: void 0 }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.echo = e.RequestEcho.decode(S, S.uint32()); + break; + case 2: + B.flush = e.RequestFlush.decode(S, S.uint32()); + break; + case 3: + B.info = e.RequestInfo.decode(S, S.uint32()); + break; + case 4: + B.set_option = e.RequestSetOption.decode(S, S.uint32()); + break; + case 5: + B.init_chain = e.RequestInitChain.decode(S, S.uint32()); + break; + case 6: + B.query = e.RequestQuery.decode(S, S.uint32()); + break; + case 7: + B.begin_block = e.RequestBeginBlock.decode(S, S.uint32()); + break; + case 8: + B.check_tx = e.RequestCheckTx.decode(S, S.uint32()); + break; + case 9: + B.deliver_tx = e.RequestDeliverTx.decode(S, S.uint32()); + break; + case 10: + B.end_block = e.RequestEndBlock.decode(S, S.uint32()); + break; + case 11: + B.commit = e.RequestCommit.decode(S, S.uint32()); + break; + case 12: + B.list_snapshots = e.RequestListSnapshots.decode(S, S.uint32()); + break; + case 13: + B.offer_snapshot = e.RequestOfferSnapshot.decode(S, S.uint32()); + break; + case 14: + B.load_snapshot_chunk = e.RequestLoadSnapshotChunk.decode(S, S.uint32()); + break; + case 15: + B.apply_snapshot_chunk = e.RequestApplySnapshotChunk.decode(S, S.uint32()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ echo: W(v.echo) ? e.RequestEcho.fromJSON(v.echo) : void 0, flush: W(v.flush) ? e.RequestFlush.fromJSON(v.flush) : void 0, info: W(v.info) ? e.RequestInfo.fromJSON(v.info) : void 0, set_option: W(v.set_option) ? e.RequestSetOption.fromJSON(v.set_option) : void 0, init_chain: W(v.init_chain) ? e.RequestInitChain.fromJSON(v.init_chain) : void 0, query: W(v.query) ? e.RequestQuery.fromJSON(v.query) : void 0, begin_block: W(v.begin_block) ? e.RequestBeginBlock.fromJSON(v.begin_block) : void 0, check_tx: W(v.check_tx) ? e.RequestCheckTx.fromJSON(v.check_tx) : void 0, deliver_tx: W(v.deliver_tx) ? e.RequestDeliverTx.fromJSON(v.deliver_tx) : void 0, end_block: W(v.end_block) ? e.RequestEndBlock.fromJSON(v.end_block) : void 0, commit: W(v.commit) ? e.RequestCommit.fromJSON(v.commit) : void 0, list_snapshots: W(v.list_snapshots) ? e.RequestListSnapshots.fromJSON(v.list_snapshots) : void 0, offer_snapshot: W(v.offer_snapshot) ? e.RequestOfferSnapshot.fromJSON(v.offer_snapshot) : void 0, load_snapshot_chunk: W(v.load_snapshot_chunk) ? e.RequestLoadSnapshotChunk.fromJSON(v.load_snapshot_chunk) : void 0, apply_snapshot_chunk: W(v.apply_snapshot_chunk) ? e.RequestApplySnapshotChunk.fromJSON(v.apply_snapshot_chunk) : void 0 }), toJSON(v) { + const y = {}; + return v.echo !== void 0 && (y.echo = v.echo ? e.RequestEcho.toJSON(v.echo) : void 0), v.flush !== void 0 && (y.flush = v.flush ? e.RequestFlush.toJSON(v.flush) : void 0), v.info !== void 0 && (y.info = v.info ? e.RequestInfo.toJSON(v.info) : void 0), v.set_option !== void 0 && (y.set_option = v.set_option ? e.RequestSetOption.toJSON(v.set_option) : void 0), v.init_chain !== void 0 && (y.init_chain = v.init_chain ? e.RequestInitChain.toJSON(v.init_chain) : void 0), v.query !== void 0 && (y.query = v.query ? e.RequestQuery.toJSON(v.query) : void 0), v.begin_block !== void 0 && (y.begin_block = v.begin_block ? e.RequestBeginBlock.toJSON(v.begin_block) : void 0), v.check_tx !== void 0 && (y.check_tx = v.check_tx ? e.RequestCheckTx.toJSON(v.check_tx) : void 0), v.deliver_tx !== void 0 && (y.deliver_tx = v.deliver_tx ? e.RequestDeliverTx.toJSON(v.deliver_tx) : void 0), v.end_block !== void 0 && (y.end_block = v.end_block ? e.RequestEndBlock.toJSON(v.end_block) : void 0), v.commit !== void 0 && (y.commit = v.commit ? e.RequestCommit.toJSON(v.commit) : void 0), v.list_snapshots !== void 0 && (y.list_snapshots = v.list_snapshots ? e.RequestListSnapshots.toJSON(v.list_snapshots) : void 0), v.offer_snapshot !== void 0 && (y.offer_snapshot = v.offer_snapshot ? e.RequestOfferSnapshot.toJSON(v.offer_snapshot) : void 0), v.load_snapshot_chunk !== void 0 && (y.load_snapshot_chunk = v.load_snapshot_chunk ? e.RequestLoadSnapshotChunk.toJSON(v.load_snapshot_chunk) : void 0), v.apply_snapshot_chunk !== void 0 && (y.apply_snapshot_chunk = v.apply_snapshot_chunk ? e.RequestApplySnapshotChunk.toJSON(v.apply_snapshot_chunk) : void 0), y; + }, fromPartial(v) { + const y = { echo: void 0, flush: void 0, info: void 0, set_option: void 0, init_chain: void 0, query: void 0, begin_block: void 0, check_tx: void 0, deliver_tx: void 0, end_block: void 0, commit: void 0, list_snapshots: void 0, offer_snapshot: void 0, load_snapshot_chunk: void 0, apply_snapshot_chunk: void 0 }; + return y.echo = v.echo !== void 0 && v.echo !== null ? e.RequestEcho.fromPartial(v.echo) : void 0, y.flush = v.flush !== void 0 && v.flush !== null ? e.RequestFlush.fromPartial(v.flush) : void 0, y.info = v.info !== void 0 && v.info !== null ? e.RequestInfo.fromPartial(v.info) : void 0, y.set_option = v.set_option !== void 0 && v.set_option !== null ? e.RequestSetOption.fromPartial(v.set_option) : void 0, y.init_chain = v.init_chain !== void 0 && v.init_chain !== null ? e.RequestInitChain.fromPartial(v.init_chain) : void 0, y.query = v.query !== void 0 && v.query !== null ? e.RequestQuery.fromPartial(v.query) : void 0, y.begin_block = v.begin_block !== void 0 && v.begin_block !== null ? e.RequestBeginBlock.fromPartial(v.begin_block) : void 0, y.check_tx = v.check_tx !== void 0 && v.check_tx !== null ? e.RequestCheckTx.fromPartial(v.check_tx) : void 0, y.deliver_tx = v.deliver_tx !== void 0 && v.deliver_tx !== null ? e.RequestDeliverTx.fromPartial(v.deliver_tx) : void 0, y.end_block = v.end_block !== void 0 && v.end_block !== null ? e.RequestEndBlock.fromPartial(v.end_block) : void 0, y.commit = v.commit !== void 0 && v.commit !== null ? e.RequestCommit.fromPartial(v.commit) : void 0, y.list_snapshots = v.list_snapshots !== void 0 && v.list_snapshots !== null ? e.RequestListSnapshots.fromPartial(v.list_snapshots) : void 0, y.offer_snapshot = v.offer_snapshot !== void 0 && v.offer_snapshot !== null ? e.RequestOfferSnapshot.fromPartial(v.offer_snapshot) : void 0, y.load_snapshot_chunk = v.load_snapshot_chunk !== void 0 && v.load_snapshot_chunk !== null ? e.RequestLoadSnapshotChunk.fromPartial(v.load_snapshot_chunk) : void 0, y.apply_snapshot_chunk = v.apply_snapshot_chunk !== void 0 && v.apply_snapshot_chunk !== null ? e.RequestApplySnapshotChunk.fromPartial(v.apply_snapshot_chunk) : void 0, y; + } }, e.RequestEcho = { encode: (v, y = t.Writer.create()) => (v.message !== "" && y.uint32(10).string(v.message), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { message: "" }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.message = S.string() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ message: W(v.message) ? String(v.message) : "" }), toJSON(v) { + const y = {}; + return v.message !== void 0 && (y.message = v.message), y; + }, fromPartial(v) { + var y; + const S = { message: "" }; + return S.message = (y = v.message) !== null && y !== void 0 ? y : "", S; + } }, e.RequestFlush = { encode: (v, y = t.Writer.create()) => y, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + for (; S.pos < T; ) { + const B = S.uint32(); + S.skipType(7 & B); + } + return {}; + }, fromJSON: (v) => ({}), toJSON: (v) => ({}), fromPartial: (v) => ({}) }, e.RequestInfo = { encode: (v, y = t.Writer.create()) => (v.version !== "" && y.uint32(10).string(v.version), v.block_version !== "0" && y.uint32(16).uint64(v.block_version), v.p2p_version !== "0" && y.uint32(24).uint64(v.p2p_version), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { version: "", block_version: "0", p2p_version: "0" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.version = S.string(); + break; + case 2: + B.block_version = _e(S.uint64()); + break; + case 3: + B.p2p_version = _e(S.uint64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ version: W(v.version) ? String(v.version) : "", block_version: W(v.block_version) ? String(v.block_version) : "0", p2p_version: W(v.p2p_version) ? String(v.p2p_version) : "0" }), toJSON(v) { + const y = {}; + return v.version !== void 0 && (y.version = v.version), v.block_version !== void 0 && (y.block_version = v.block_version), v.p2p_version !== void 0 && (y.p2p_version = v.p2p_version), y; + }, fromPartial(v) { + var y, S, T; + const B = { version: "", block_version: "0", p2p_version: "0" }; + return B.version = (y = v.version) !== null && y !== void 0 ? y : "", B.block_version = (S = v.block_version) !== null && S !== void 0 ? S : "0", B.p2p_version = (T = v.p2p_version) !== null && T !== void 0 ? T : "0", B; + } }, e.RequestSetOption = { encode: (v, y = t.Writer.create()) => (v.key !== "" && y.uint32(10).string(v.key), v.value !== "" && y.uint32(18).string(v.value), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { key: "", value: "" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.key = S.string(); + break; + case 2: + B.value = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ key: W(v.key) ? String(v.key) : "", value: W(v.value) ? String(v.value) : "" }), toJSON(v) { + const y = {}; + return v.key !== void 0 && (y.key = v.key), v.value !== void 0 && (y.value = v.value), y; + }, fromPartial(v) { + var y, S; + const T = { key: "", value: "" }; + return T.key = (y = v.key) !== null && y !== void 0 ? y : "", T.value = (S = v.value) !== null && S !== void 0 ? S : "", T; + } }, e.RequestInitChain = { encode(v, y = t.Writer.create()) { + v.time !== void 0 && u.Timestamp.encode(v.time, y.uint32(10).fork()).ldelim(), v.chain_id !== "" && y.uint32(18).string(v.chain_id), v.consensus_params !== void 0 && e.ConsensusParams.encode(v.consensus_params, y.uint32(26).fork()).ldelim(); + for (const S of v.validators) + e.ValidatorUpdate.encode(S, y.uint32(34).fork()).ldelim(); + return v.app_state_bytes.length !== 0 && y.uint32(42).bytes(v.app_state_bytes), v.initial_height !== "0" && y.uint32(48).int64(v.initial_height), y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = I(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.time = u.Timestamp.decode(S, S.uint32()); + break; + case 2: + B.chain_id = S.string(); + break; + case 3: + B.consensus_params = e.ConsensusParams.decode(S, S.uint32()); + break; + case 4: + B.validators.push(e.ValidatorUpdate.decode(S, S.uint32())); + break; + case 5: + B.app_state_bytes = S.bytes(); + break; + case 6: + B.initial_height = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ time: W(v.time) ? pe(v.time) : void 0, chain_id: W(v.chain_id) ? String(v.chain_id) : "", consensus_params: W(v.consensus_params) ? e.ConsensusParams.fromJSON(v.consensus_params) : void 0, validators: Array.isArray(v == null ? void 0 : v.validators) ? v.validators.map((y) => e.ValidatorUpdate.fromJSON(y)) : [], app_state_bytes: W(v.app_state_bytes) ? ce(v.app_state_bytes) : new Uint8Array(), initial_height: W(v.initial_height) ? String(v.initial_height) : "0" }), toJSON(v) { + const y = {}; + return v.time !== void 0 && (y.time = de(v.time).toISOString()), v.chain_id !== void 0 && (y.chain_id = v.chain_id), v.consensus_params !== void 0 && (y.consensus_params = v.consensus_params ? e.ConsensusParams.toJSON(v.consensus_params) : void 0), v.validators ? y.validators = v.validators.map((S) => S ? e.ValidatorUpdate.toJSON(S) : void 0) : y.validators = [], v.app_state_bytes !== void 0 && (y.app_state_bytes = le(v.app_state_bytes !== void 0 ? v.app_state_bytes : new Uint8Array())), v.initial_height !== void 0 && (y.initial_height = v.initial_height), y; + }, fromPartial(v) { + var y, S, T, B; + const z = I(); + return z.time = v.time !== void 0 && v.time !== null ? u.Timestamp.fromPartial(v.time) : void 0, z.chain_id = (y = v.chain_id) !== null && y !== void 0 ? y : "", z.consensus_params = v.consensus_params !== void 0 && v.consensus_params !== null ? e.ConsensusParams.fromPartial(v.consensus_params) : void 0, z.validators = ((S = v.validators) === null || S === void 0 ? void 0 : S.map((q) => e.ValidatorUpdate.fromPartial(q))) || [], z.app_state_bytes = (T = v.app_state_bytes) !== null && T !== void 0 ? T : new Uint8Array(), z.initial_height = (B = v.initial_height) !== null && B !== void 0 ? B : "0", z; + } }, e.RequestQuery = { encode: (v, y = t.Writer.create()) => (v.data.length !== 0 && y.uint32(10).bytes(v.data), v.path !== "" && y.uint32(18).string(v.path), v.height !== "0" && y.uint32(24).int64(v.height), v.prove === !0 && y.uint32(32).bool(v.prove), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = x(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.data = S.bytes(); + break; + case 2: + B.path = S.string(); + break; + case 3: + B.height = _e(S.int64()); + break; + case 4: + B.prove = S.bool(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ data: W(v.data) ? ce(v.data) : new Uint8Array(), path: W(v.path) ? String(v.path) : "", height: W(v.height) ? String(v.height) : "0", prove: !!W(v.prove) && !!v.prove }), toJSON(v) { + const y = {}; + return v.data !== void 0 && (y.data = le(v.data !== void 0 ? v.data : new Uint8Array())), v.path !== void 0 && (y.path = v.path), v.height !== void 0 && (y.height = v.height), v.prove !== void 0 && (y.prove = v.prove), y; + }, fromPartial(v) { + var y, S, T, B; + const z = x(); + return z.data = (y = v.data) !== null && y !== void 0 ? y : new Uint8Array(), z.path = (S = v.path) !== null && S !== void 0 ? S : "", z.height = (T = v.height) !== null && T !== void 0 ? T : "0", z.prove = (B = v.prove) !== null && B !== void 0 && B, z; + } }, e.RequestBeginBlock = { encode(v, y = t.Writer.create()) { + v.hash.length !== 0 && y.uint32(10).bytes(v.hash), v.header !== void 0 && d.Header.encode(v.header, y.uint32(18).fork()).ldelim(), v.last_commit_info !== void 0 && e.LastCommitInfo.encode(v.last_commit_info, y.uint32(26).fork()).ldelim(); + for (const S of v.byzantine_validators) + e.Evidence.encode(S, y.uint32(34).fork()).ldelim(); + v.commit !== void 0 && d.Commit.encode(v.commit, y.uint32(42).fork()).ldelim(); + for (const S of v.txs) + y.uint32(50).bytes(S); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = P(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.hash = S.bytes(); + break; + case 2: + B.header = d.Header.decode(S, S.uint32()); + break; + case 3: + B.last_commit_info = e.LastCommitInfo.decode(S, S.uint32()); + break; + case 4: + B.byzantine_validators.push(e.Evidence.decode(S, S.uint32())); + break; + case 5: + B.commit = d.Commit.decode(S, S.uint32()); + break; + case 6: + B.txs.push(S.bytes()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ hash: W(v.hash) ? ce(v.hash) : new Uint8Array(), header: W(v.header) ? d.Header.fromJSON(v.header) : void 0, last_commit_info: W(v.last_commit_info) ? e.LastCommitInfo.fromJSON(v.last_commit_info) : void 0, byzantine_validators: Array.isArray(v == null ? void 0 : v.byzantine_validators) ? v.byzantine_validators.map((y) => e.Evidence.fromJSON(y)) : [], commit: W(v.commit) ? d.Commit.fromJSON(v.commit) : void 0, txs: Array.isArray(v == null ? void 0 : v.txs) ? v.txs.map((y) => ce(y)) : [] }), toJSON(v) { + const y = {}; + return v.hash !== void 0 && (y.hash = le(v.hash !== void 0 ? v.hash : new Uint8Array())), v.header !== void 0 && (y.header = v.header ? d.Header.toJSON(v.header) : void 0), v.last_commit_info !== void 0 && (y.last_commit_info = v.last_commit_info ? e.LastCommitInfo.toJSON(v.last_commit_info) : void 0), v.byzantine_validators ? y.byzantine_validators = v.byzantine_validators.map((S) => S ? e.Evidence.toJSON(S) : void 0) : y.byzantine_validators = [], v.commit !== void 0 && (y.commit = v.commit ? d.Commit.toJSON(v.commit) : void 0), v.txs ? y.txs = v.txs.map((S) => le(S !== void 0 ? S : new Uint8Array())) : y.txs = [], y; + }, fromPartial(v) { + var y, S, T; + const B = P(); + return B.hash = (y = v.hash) !== null && y !== void 0 ? y : new Uint8Array(), B.header = v.header !== void 0 && v.header !== null ? d.Header.fromPartial(v.header) : void 0, B.last_commit_info = v.last_commit_info !== void 0 && v.last_commit_info !== null ? e.LastCommitInfo.fromPartial(v.last_commit_info) : void 0, B.byzantine_validators = ((S = v.byzantine_validators) === null || S === void 0 ? void 0 : S.map((z) => e.Evidence.fromPartial(z))) || [], B.commit = v.commit !== void 0 && v.commit !== null ? d.Commit.fromPartial(v.commit) : void 0, B.txs = ((T = v.txs) === null || T === void 0 ? void 0 : T.map((z) => z)) || [], B; + } }, e.RequestCheckTx = { encode: (v, y = t.Writer.create()) => (v.tx.length !== 0 && y.uint32(10).bytes(v.tx), v.type !== 0 && y.uint32(16).int32(v.type), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = w(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.tx = S.bytes(); + break; + case 2: + B.type = S.int32(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ tx: W(v.tx) ? ce(v.tx) : new Uint8Array(), type: W(v.type) ? h(v.type) : 0 }), toJSON(v) { + const y = {}; + return v.tx !== void 0 && (y.tx = le(v.tx !== void 0 ? v.tx : new Uint8Array())), v.type !== void 0 && (y.type = p(v.type)), y; + }, fromPartial(v) { + var y, S; + const T = w(); + return T.tx = (y = v.tx) !== null && y !== void 0 ? y : new Uint8Array(), T.type = (S = v.type) !== null && S !== void 0 ? S : 0, T; + } }, e.RequestDeliverTx = { encode: (v, y = t.Writer.create()) => (v.tx.length !== 0 && y.uint32(10).bytes(v.tx), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = g(); + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.tx = S.bytes() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ tx: W(v.tx) ? ce(v.tx) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.tx !== void 0 && (y.tx = le(v.tx !== void 0 ? v.tx : new Uint8Array())), y; + }, fromPartial(v) { + var y; + const S = g(); + return S.tx = (y = v.tx) !== null && y !== void 0 ? y : new Uint8Array(), S; + } }, e.RequestEndBlock = { encode: (v, y = t.Writer.create()) => (v.height !== "0" && y.uint32(8).int64(v.height), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { height: "0" }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.height = _e(S.int64()) : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ height: W(v.height) ? String(v.height) : "0" }), toJSON(v) { + const y = {}; + return v.height !== void 0 && (y.height = v.height), y; + }, fromPartial(v) { + var y; + const S = { height: "0" }; + return S.height = (y = v.height) !== null && y !== void 0 ? y : "0", S; + } }, e.RequestCommit = { encode: (v, y = t.Writer.create()) => y, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + for (; S.pos < T; ) { + const B = S.uint32(); + S.skipType(7 & B); + } + return {}; + }, fromJSON: (v) => ({}), toJSON: (v) => ({}), fromPartial: (v) => ({}) }, e.RequestListSnapshots = { encode: (v, y = t.Writer.create()) => y, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + for (; S.pos < T; ) { + const B = S.uint32(); + S.skipType(7 & B); + } + return {}; + }, fromJSON: (v) => ({}), toJSON: (v) => ({}), fromPartial: (v) => ({}) }, e.RequestOfferSnapshot = { encode: (v, y = t.Writer.create()) => (v.snapshot !== void 0 && e.Snapshot.encode(v.snapshot, y.uint32(10).fork()).ldelim(), v.app_hash.length !== 0 && y.uint32(18).bytes(v.app_hash), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = E(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.snapshot = e.Snapshot.decode(S, S.uint32()); + break; + case 2: + B.app_hash = S.bytes(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ snapshot: W(v.snapshot) ? e.Snapshot.fromJSON(v.snapshot) : void 0, app_hash: W(v.app_hash) ? ce(v.app_hash) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.snapshot !== void 0 && (y.snapshot = v.snapshot ? e.Snapshot.toJSON(v.snapshot) : void 0), v.app_hash !== void 0 && (y.app_hash = le(v.app_hash !== void 0 ? v.app_hash : new Uint8Array())), y; + }, fromPartial(v) { + var y; + const S = E(); + return S.snapshot = v.snapshot !== void 0 && v.snapshot !== null ? e.Snapshot.fromPartial(v.snapshot) : void 0, S.app_hash = (y = v.app_hash) !== null && y !== void 0 ? y : new Uint8Array(), S; + } }, e.RequestLoadSnapshotChunk = { encode: (v, y = t.Writer.create()) => (v.height !== "0" && y.uint32(8).uint64(v.height), v.format !== 0 && y.uint32(16).uint32(v.format), v.chunk !== 0 && y.uint32(24).uint32(v.chunk), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { height: "0", format: 0, chunk: 0 }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.height = _e(S.uint64()); + break; + case 2: + B.format = S.uint32(); + break; + case 3: + B.chunk = S.uint32(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ height: W(v.height) ? String(v.height) : "0", format: W(v.format) ? Number(v.format) : 0, chunk: W(v.chunk) ? Number(v.chunk) : 0 }), toJSON(v) { + const y = {}; + return v.height !== void 0 && (y.height = v.height), v.format !== void 0 && (y.format = Math.round(v.format)), v.chunk !== void 0 && (y.chunk = Math.round(v.chunk)), y; + }, fromPartial(v) { + var y, S, T; + const B = { height: "0", format: 0, chunk: 0 }; + return B.height = (y = v.height) !== null && y !== void 0 ? y : "0", B.format = (S = v.format) !== null && S !== void 0 ? S : 0, B.chunk = (T = v.chunk) !== null && T !== void 0 ? T : 0, B; + } }, e.RequestApplySnapshotChunk = { encode: (v, y = t.Writer.create()) => (v.index !== 0 && y.uint32(8).uint32(v.index), v.chunk.length !== 0 && y.uint32(18).bytes(v.chunk), v.sender !== "" && y.uint32(26).string(v.sender), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = U(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.index = S.uint32(); + break; + case 2: + B.chunk = S.bytes(); + break; + case 3: + B.sender = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ index: W(v.index) ? Number(v.index) : 0, chunk: W(v.chunk) ? ce(v.chunk) : new Uint8Array(), sender: W(v.sender) ? String(v.sender) : "" }), toJSON(v) { + const y = {}; + return v.index !== void 0 && (y.index = Math.round(v.index)), v.chunk !== void 0 && (y.chunk = le(v.chunk !== void 0 ? v.chunk : new Uint8Array())), v.sender !== void 0 && (y.sender = v.sender), y; + }, fromPartial(v) { + var y, S, T; + const B = U(); + return B.index = (y = v.index) !== null && y !== void 0 ? y : 0, B.chunk = (S = v.chunk) !== null && S !== void 0 ? S : new Uint8Array(), B.sender = (T = v.sender) !== null && T !== void 0 ? T : "", B; + } }, e.Response = { encode: (v, y = t.Writer.create()) => (v.exception !== void 0 && e.ResponseException.encode(v.exception, y.uint32(10).fork()).ldelim(), v.echo !== void 0 && e.ResponseEcho.encode(v.echo, y.uint32(18).fork()).ldelim(), v.flush !== void 0 && e.ResponseFlush.encode(v.flush, y.uint32(26).fork()).ldelim(), v.info !== void 0 && e.ResponseInfo.encode(v.info, y.uint32(34).fork()).ldelim(), v.set_option !== void 0 && e.ResponseSetOption.encode(v.set_option, y.uint32(42).fork()).ldelim(), v.init_chain !== void 0 && e.ResponseInitChain.encode(v.init_chain, y.uint32(50).fork()).ldelim(), v.query !== void 0 && e.ResponseQuery.encode(v.query, y.uint32(58).fork()).ldelim(), v.begin_block !== void 0 && e.ResponseBeginBlock.encode(v.begin_block, y.uint32(66).fork()).ldelim(), v.check_tx !== void 0 && e.ResponseCheckTx.encode(v.check_tx, y.uint32(74).fork()).ldelim(), v.deliver_tx !== void 0 && e.ResponseDeliverTx.encode(v.deliver_tx, y.uint32(82).fork()).ldelim(), v.end_block !== void 0 && e.ResponseEndBlock.encode(v.end_block, y.uint32(90).fork()).ldelim(), v.commit !== void 0 && e.ResponseCommit.encode(v.commit, y.uint32(98).fork()).ldelim(), v.list_snapshots !== void 0 && e.ResponseListSnapshots.encode(v.list_snapshots, y.uint32(106).fork()).ldelim(), v.offer_snapshot !== void 0 && e.ResponseOfferSnapshot.encode(v.offer_snapshot, y.uint32(114).fork()).ldelim(), v.load_snapshot_chunk !== void 0 && e.ResponseLoadSnapshotChunk.encode(v.load_snapshot_chunk, y.uint32(122).fork()).ldelim(), v.apply_snapshot_chunk !== void 0 && e.ResponseApplySnapshotChunk.encode(v.apply_snapshot_chunk, y.uint32(130).fork()).ldelim(), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { exception: void 0, echo: void 0, flush: void 0, info: void 0, set_option: void 0, init_chain: void 0, query: void 0, begin_block: void 0, check_tx: void 0, deliver_tx: void 0, end_block: void 0, commit: void 0, list_snapshots: void 0, offer_snapshot: void 0, load_snapshot_chunk: void 0, apply_snapshot_chunk: void 0 }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.exception = e.ResponseException.decode(S, S.uint32()); + break; + case 2: + B.echo = e.ResponseEcho.decode(S, S.uint32()); + break; + case 3: + B.flush = e.ResponseFlush.decode(S, S.uint32()); + break; + case 4: + B.info = e.ResponseInfo.decode(S, S.uint32()); + break; + case 5: + B.set_option = e.ResponseSetOption.decode(S, S.uint32()); + break; + case 6: + B.init_chain = e.ResponseInitChain.decode(S, S.uint32()); + break; + case 7: + B.query = e.ResponseQuery.decode(S, S.uint32()); + break; + case 8: + B.begin_block = e.ResponseBeginBlock.decode(S, S.uint32()); + break; + case 9: + B.check_tx = e.ResponseCheckTx.decode(S, S.uint32()); + break; + case 10: + B.deliver_tx = e.ResponseDeliverTx.decode(S, S.uint32()); + break; + case 11: + B.end_block = e.ResponseEndBlock.decode(S, S.uint32()); + break; + case 12: + B.commit = e.ResponseCommit.decode(S, S.uint32()); + break; + case 13: + B.list_snapshots = e.ResponseListSnapshots.decode(S, S.uint32()); + break; + case 14: + B.offer_snapshot = e.ResponseOfferSnapshot.decode(S, S.uint32()); + break; + case 15: + B.load_snapshot_chunk = e.ResponseLoadSnapshotChunk.decode(S, S.uint32()); + break; + case 16: + B.apply_snapshot_chunk = e.ResponseApplySnapshotChunk.decode(S, S.uint32()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ exception: W(v.exception) ? e.ResponseException.fromJSON(v.exception) : void 0, echo: W(v.echo) ? e.ResponseEcho.fromJSON(v.echo) : void 0, flush: W(v.flush) ? e.ResponseFlush.fromJSON(v.flush) : void 0, info: W(v.info) ? e.ResponseInfo.fromJSON(v.info) : void 0, set_option: W(v.set_option) ? e.ResponseSetOption.fromJSON(v.set_option) : void 0, init_chain: W(v.init_chain) ? e.ResponseInitChain.fromJSON(v.init_chain) : void 0, query: W(v.query) ? e.ResponseQuery.fromJSON(v.query) : void 0, begin_block: W(v.begin_block) ? e.ResponseBeginBlock.fromJSON(v.begin_block) : void 0, check_tx: W(v.check_tx) ? e.ResponseCheckTx.fromJSON(v.check_tx) : void 0, deliver_tx: W(v.deliver_tx) ? e.ResponseDeliverTx.fromJSON(v.deliver_tx) : void 0, end_block: W(v.end_block) ? e.ResponseEndBlock.fromJSON(v.end_block) : void 0, commit: W(v.commit) ? e.ResponseCommit.fromJSON(v.commit) : void 0, list_snapshots: W(v.list_snapshots) ? e.ResponseListSnapshots.fromJSON(v.list_snapshots) : void 0, offer_snapshot: W(v.offer_snapshot) ? e.ResponseOfferSnapshot.fromJSON(v.offer_snapshot) : void 0, load_snapshot_chunk: W(v.load_snapshot_chunk) ? e.ResponseLoadSnapshotChunk.fromJSON(v.load_snapshot_chunk) : void 0, apply_snapshot_chunk: W(v.apply_snapshot_chunk) ? e.ResponseApplySnapshotChunk.fromJSON(v.apply_snapshot_chunk) : void 0 }), toJSON(v) { + const y = {}; + return v.exception !== void 0 && (y.exception = v.exception ? e.ResponseException.toJSON(v.exception) : void 0), v.echo !== void 0 && (y.echo = v.echo ? e.ResponseEcho.toJSON(v.echo) : void 0), v.flush !== void 0 && (y.flush = v.flush ? e.ResponseFlush.toJSON(v.flush) : void 0), v.info !== void 0 && (y.info = v.info ? e.ResponseInfo.toJSON(v.info) : void 0), v.set_option !== void 0 && (y.set_option = v.set_option ? e.ResponseSetOption.toJSON(v.set_option) : void 0), v.init_chain !== void 0 && (y.init_chain = v.init_chain ? e.ResponseInitChain.toJSON(v.init_chain) : void 0), v.query !== void 0 && (y.query = v.query ? e.ResponseQuery.toJSON(v.query) : void 0), v.begin_block !== void 0 && (y.begin_block = v.begin_block ? e.ResponseBeginBlock.toJSON(v.begin_block) : void 0), v.check_tx !== void 0 && (y.check_tx = v.check_tx ? e.ResponseCheckTx.toJSON(v.check_tx) : void 0), v.deliver_tx !== void 0 && (y.deliver_tx = v.deliver_tx ? e.ResponseDeliverTx.toJSON(v.deliver_tx) : void 0), v.end_block !== void 0 && (y.end_block = v.end_block ? e.ResponseEndBlock.toJSON(v.end_block) : void 0), v.commit !== void 0 && (y.commit = v.commit ? e.ResponseCommit.toJSON(v.commit) : void 0), v.list_snapshots !== void 0 && (y.list_snapshots = v.list_snapshots ? e.ResponseListSnapshots.toJSON(v.list_snapshots) : void 0), v.offer_snapshot !== void 0 && (y.offer_snapshot = v.offer_snapshot ? e.ResponseOfferSnapshot.toJSON(v.offer_snapshot) : void 0), v.load_snapshot_chunk !== void 0 && (y.load_snapshot_chunk = v.load_snapshot_chunk ? e.ResponseLoadSnapshotChunk.toJSON(v.load_snapshot_chunk) : void 0), v.apply_snapshot_chunk !== void 0 && (y.apply_snapshot_chunk = v.apply_snapshot_chunk ? e.ResponseApplySnapshotChunk.toJSON(v.apply_snapshot_chunk) : void 0), y; + }, fromPartial(v) { + const y = { exception: void 0, echo: void 0, flush: void 0, info: void 0, set_option: void 0, init_chain: void 0, query: void 0, begin_block: void 0, check_tx: void 0, deliver_tx: void 0, end_block: void 0, commit: void 0, list_snapshots: void 0, offer_snapshot: void 0, load_snapshot_chunk: void 0, apply_snapshot_chunk: void 0 }; + return y.exception = v.exception !== void 0 && v.exception !== null ? e.ResponseException.fromPartial(v.exception) : void 0, y.echo = v.echo !== void 0 && v.echo !== null ? e.ResponseEcho.fromPartial(v.echo) : void 0, y.flush = v.flush !== void 0 && v.flush !== null ? e.ResponseFlush.fromPartial(v.flush) : void 0, y.info = v.info !== void 0 && v.info !== null ? e.ResponseInfo.fromPartial(v.info) : void 0, y.set_option = v.set_option !== void 0 && v.set_option !== null ? e.ResponseSetOption.fromPartial(v.set_option) : void 0, y.init_chain = v.init_chain !== void 0 && v.init_chain !== null ? e.ResponseInitChain.fromPartial(v.init_chain) : void 0, y.query = v.query !== void 0 && v.query !== null ? e.ResponseQuery.fromPartial(v.query) : void 0, y.begin_block = v.begin_block !== void 0 && v.begin_block !== null ? e.ResponseBeginBlock.fromPartial(v.begin_block) : void 0, y.check_tx = v.check_tx !== void 0 && v.check_tx !== null ? e.ResponseCheckTx.fromPartial(v.check_tx) : void 0, y.deliver_tx = v.deliver_tx !== void 0 && v.deliver_tx !== null ? e.ResponseDeliverTx.fromPartial(v.deliver_tx) : void 0, y.end_block = v.end_block !== void 0 && v.end_block !== null ? e.ResponseEndBlock.fromPartial(v.end_block) : void 0, y.commit = v.commit !== void 0 && v.commit !== null ? e.ResponseCommit.fromPartial(v.commit) : void 0, y.list_snapshots = v.list_snapshots !== void 0 && v.list_snapshots !== null ? e.ResponseListSnapshots.fromPartial(v.list_snapshots) : void 0, y.offer_snapshot = v.offer_snapshot !== void 0 && v.offer_snapshot !== null ? e.ResponseOfferSnapshot.fromPartial(v.offer_snapshot) : void 0, y.load_snapshot_chunk = v.load_snapshot_chunk !== void 0 && v.load_snapshot_chunk !== null ? e.ResponseLoadSnapshotChunk.fromPartial(v.load_snapshot_chunk) : void 0, y.apply_snapshot_chunk = v.apply_snapshot_chunk !== void 0 && v.apply_snapshot_chunk !== null ? e.ResponseApplySnapshotChunk.fromPartial(v.apply_snapshot_chunk) : void 0, y; + } }, e.ResponseException = { encode: (v, y = t.Writer.create()) => (v.error !== "" && y.uint32(10).string(v.error), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { error: "" }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.error = S.string() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ error: W(v.error) ? String(v.error) : "" }), toJSON(v) { + const y = {}; + return v.error !== void 0 && (y.error = v.error), y; + }, fromPartial(v) { + var y; + const S = { error: "" }; + return S.error = (y = v.error) !== null && y !== void 0 ? y : "", S; + } }, e.ResponseEcho = { encode: (v, y = t.Writer.create()) => (v.message !== "" && y.uint32(10).string(v.message), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { message: "" }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.message = S.string() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ message: W(v.message) ? String(v.message) : "" }), toJSON(v) { + const y = {}; + return v.message !== void 0 && (y.message = v.message), y; + }, fromPartial(v) { + var y; + const S = { message: "" }; + return S.message = (y = v.message) !== null && y !== void 0 ? y : "", S; + } }, e.ResponseFlush = { encode: (v, y = t.Writer.create()) => y, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + for (; S.pos < T; ) { + const B = S.uint32(); + S.skipType(7 & B); + } + return {}; + }, fromJSON: (v) => ({}), toJSON: (v) => ({}), fromPartial: (v) => ({}) }, e.ResponseInfo = { encode: (v, y = t.Writer.create()) => (v.data !== "" && y.uint32(10).string(v.data), v.version !== "" && y.uint32(18).string(v.version), v.app_version !== "0" && y.uint32(24).uint64(v.app_version), v.last_block_height !== "0" && y.uint32(32).int64(v.last_block_height), v.last_block_app_hash.length !== 0 && y.uint32(42).bytes(v.last_block_app_hash), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = C(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.data = S.string(); + break; + case 2: + B.version = S.string(); + break; + case 3: + B.app_version = _e(S.uint64()); + break; + case 4: + B.last_block_height = _e(S.int64()); + break; + case 5: + B.last_block_app_hash = S.bytes(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ data: W(v.data) ? String(v.data) : "", version: W(v.version) ? String(v.version) : "", app_version: W(v.app_version) ? String(v.app_version) : "0", last_block_height: W(v.last_block_height) ? String(v.last_block_height) : "0", last_block_app_hash: W(v.last_block_app_hash) ? ce(v.last_block_app_hash) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.data !== void 0 && (y.data = v.data), v.version !== void 0 && (y.version = v.version), v.app_version !== void 0 && (y.app_version = v.app_version), v.last_block_height !== void 0 && (y.last_block_height = v.last_block_height), v.last_block_app_hash !== void 0 && (y.last_block_app_hash = le(v.last_block_app_hash !== void 0 ? v.last_block_app_hash : new Uint8Array())), y; + }, fromPartial(v) { + var y, S, T, B, z; + const q = C(); + return q.data = (y = v.data) !== null && y !== void 0 ? y : "", q.version = (S = v.version) !== null && S !== void 0 ? S : "", q.app_version = (T = v.app_version) !== null && T !== void 0 ? T : "0", q.last_block_height = (B = v.last_block_height) !== null && B !== void 0 ? B : "0", q.last_block_app_hash = (z = v.last_block_app_hash) !== null && z !== void 0 ? z : new Uint8Array(), q; + } }, e.ResponseSetOption = { encode: (v, y = t.Writer.create()) => (v.code !== 0 && y.uint32(8).uint32(v.code), v.log !== "" && y.uint32(26).string(v.log), v.info !== "" && y.uint32(34).string(v.info), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { code: 0, log: "", info: "" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.code = S.uint32(); + break; + case 3: + B.log = S.string(); + break; + case 4: + B.info = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ code: W(v.code) ? Number(v.code) : 0, log: W(v.log) ? String(v.log) : "", info: W(v.info) ? String(v.info) : "" }), toJSON(v) { + const y = {}; + return v.code !== void 0 && (y.code = Math.round(v.code)), v.log !== void 0 && (y.log = v.log), v.info !== void 0 && (y.info = v.info), y; + }, fromPartial(v) { + var y, S, T; + const B = { code: 0, log: "", info: "" }; + return B.code = (y = v.code) !== null && y !== void 0 ? y : 0, B.log = (S = v.log) !== null && S !== void 0 ? S : "", B.info = (T = v.info) !== null && T !== void 0 ? T : "", B; + } }, e.ResponseInitChain = { encode(v, y = t.Writer.create()) { + v.consensus_params !== void 0 && e.ConsensusParams.encode(v.consensus_params, y.uint32(10).fork()).ldelim(); + for (const S of v.validators) + e.ValidatorUpdate.encode(S, y.uint32(18).fork()).ldelim(); + return v.app_hash.length !== 0 && y.uint32(26).bytes(v.app_hash), y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = F(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.consensus_params = e.ConsensusParams.decode(S, S.uint32()); + break; + case 2: + B.validators.push(e.ValidatorUpdate.decode(S, S.uint32())); + break; + case 3: + B.app_hash = S.bytes(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ consensus_params: W(v.consensus_params) ? e.ConsensusParams.fromJSON(v.consensus_params) : void 0, validators: Array.isArray(v == null ? void 0 : v.validators) ? v.validators.map((y) => e.ValidatorUpdate.fromJSON(y)) : [], app_hash: W(v.app_hash) ? ce(v.app_hash) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.consensus_params !== void 0 && (y.consensus_params = v.consensus_params ? e.ConsensusParams.toJSON(v.consensus_params) : void 0), v.validators ? y.validators = v.validators.map((S) => S ? e.ValidatorUpdate.toJSON(S) : void 0) : y.validators = [], v.app_hash !== void 0 && (y.app_hash = le(v.app_hash !== void 0 ? v.app_hash : new Uint8Array())), y; + }, fromPartial(v) { + var y, S; + const T = F(); + return T.consensus_params = v.consensus_params !== void 0 && v.consensus_params !== null ? e.ConsensusParams.fromPartial(v.consensus_params) : void 0, T.validators = ((y = v.validators) === null || y === void 0 ? void 0 : y.map((B) => e.ValidatorUpdate.fromPartial(B))) || [], T.app_hash = (S = v.app_hash) !== null && S !== void 0 ? S : new Uint8Array(), T; + } }, e.ResponseQuery = { encode: (v, y = t.Writer.create()) => (v.code !== 0 && y.uint32(8).uint32(v.code), v.log !== "" && y.uint32(26).string(v.log), v.info !== "" && y.uint32(34).string(v.info), v.index !== "0" && y.uint32(40).int64(v.index), v.key.length !== 0 && y.uint32(50).bytes(v.key), v.value.length !== 0 && y.uint32(58).bytes(v.value), v.proof_ops !== void 0 && s.ProofOps.encode(v.proof_ops, y.uint32(66).fork()).ldelim(), v.height !== "0" && y.uint32(72).int64(v.height), v.codespace !== "" && y.uint32(82).string(v.codespace), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = re(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.code = S.uint32(); + break; + case 3: + B.log = S.string(); + break; + case 4: + B.info = S.string(); + break; + case 5: + B.index = _e(S.int64()); + break; + case 6: + B.key = S.bytes(); + break; + case 7: + B.value = S.bytes(); + break; + case 8: + B.proof_ops = s.ProofOps.decode(S, S.uint32()); + break; + case 9: + B.height = _e(S.int64()); + break; + case 10: + B.codespace = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ code: W(v.code) ? Number(v.code) : 0, log: W(v.log) ? String(v.log) : "", info: W(v.info) ? String(v.info) : "", index: W(v.index) ? String(v.index) : "0", key: W(v.key) ? ce(v.key) : new Uint8Array(), value: W(v.value) ? ce(v.value) : new Uint8Array(), proof_ops: W(v.proof_ops) ? s.ProofOps.fromJSON(v.proof_ops) : void 0, height: W(v.height) ? String(v.height) : "0", codespace: W(v.codespace) ? String(v.codespace) : "" }), toJSON(v) { + const y = {}; + return v.code !== void 0 && (y.code = Math.round(v.code)), v.log !== void 0 && (y.log = v.log), v.info !== void 0 && (y.info = v.info), v.index !== void 0 && (y.index = v.index), v.key !== void 0 && (y.key = le(v.key !== void 0 ? v.key : new Uint8Array())), v.value !== void 0 && (y.value = le(v.value !== void 0 ? v.value : new Uint8Array())), v.proof_ops !== void 0 && (y.proof_ops = v.proof_ops ? s.ProofOps.toJSON(v.proof_ops) : void 0), v.height !== void 0 && (y.height = v.height), v.codespace !== void 0 && (y.codespace = v.codespace), y; + }, fromPartial(v) { + var y, S, T, B, z, q, te, oe; + const V = re(); + return V.code = (y = v.code) !== null && y !== void 0 ? y : 0, V.log = (S = v.log) !== null && S !== void 0 ? S : "", V.info = (T = v.info) !== null && T !== void 0 ? T : "", V.index = (B = v.index) !== null && B !== void 0 ? B : "0", V.key = (z = v.key) !== null && z !== void 0 ? z : new Uint8Array(), V.value = (q = v.value) !== null && q !== void 0 ? q : new Uint8Array(), V.proof_ops = v.proof_ops !== void 0 && v.proof_ops !== null ? s.ProofOps.fromPartial(v.proof_ops) : void 0, V.height = (te = v.height) !== null && te !== void 0 ? te : "0", V.codespace = (oe = v.codespace) !== null && oe !== void 0 ? oe : "", V; + } }, e.ResponseBeginBlock = { encode(v, y = t.Writer.create()) { + for (const S of v.events) + e.Event.encode(S, y.uint32(10).fork()).ldelim(); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { events: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.events.push(e.Event.decode(S, S.uint32())) : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ events: Array.isArray(v == null ? void 0 : v.events) ? v.events.map((y) => e.Event.fromJSON(y)) : [] }), toJSON(v) { + const y = {}; + return v.events ? y.events = v.events.map((S) => S ? e.Event.toJSON(S) : void 0) : y.events = [], y; + }, fromPartial(v) { + var y; + const S = { events: [] }; + return S.events = ((y = v.events) === null || y === void 0 ? void 0 : y.map((T) => e.Event.fromPartial(T))) || [], S; + } }, e.ResponseCheckTx = { encode(v, y = t.Writer.create()) { + v.code !== 0 && y.uint32(8).uint32(v.code), v.data.length !== 0 && y.uint32(18).bytes(v.data), v.log !== "" && y.uint32(26).string(v.log), v.info !== "" && y.uint32(34).string(v.info), v.gas_wanted !== "0" && y.uint32(40).int64(v.gas_wanted), v.gas_used !== "0" && y.uint32(48).int64(v.gas_used); + for (const S of v.events) + e.Event.encode(S, y.uint32(58).fork()).ldelim(); + return v.codespace !== "" && y.uint32(66).string(v.codespace), v.sender !== "" && y.uint32(74).string(v.sender), v.priority !== "0" && y.uint32(80).int64(v.priority), v.mempool_error !== "" && y.uint32(90).string(v.mempool_error), y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = ee(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.code = S.uint32(); + break; + case 2: + B.data = S.bytes(); + break; + case 3: + B.log = S.string(); + break; + case 4: + B.info = S.string(); + break; + case 5: + B.gas_wanted = _e(S.int64()); + break; + case 6: + B.gas_used = _e(S.int64()); + break; + case 7: + B.events.push(e.Event.decode(S, S.uint32())); + break; + case 8: + B.codespace = S.string(); + break; + case 9: + B.sender = S.string(); + break; + case 10: + B.priority = _e(S.int64()); + break; + case 11: + B.mempool_error = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ code: W(v.code) ? Number(v.code) : 0, data: W(v.data) ? ce(v.data) : new Uint8Array(), log: W(v.log) ? String(v.log) : "", info: W(v.info) ? String(v.info) : "", gas_wanted: W(v.gas_wanted) ? String(v.gas_wanted) : "0", gas_used: W(v.gas_used) ? String(v.gas_used) : "0", events: Array.isArray(v == null ? void 0 : v.events) ? v.events.map((y) => e.Event.fromJSON(y)) : [], codespace: W(v.codespace) ? String(v.codespace) : "", sender: W(v.sender) ? String(v.sender) : "", priority: W(v.priority) ? String(v.priority) : "0", mempool_error: W(v.mempool_error) ? String(v.mempool_error) : "" }), toJSON(v) { + const y = {}; + return v.code !== void 0 && (y.code = Math.round(v.code)), v.data !== void 0 && (y.data = le(v.data !== void 0 ? v.data : new Uint8Array())), v.log !== void 0 && (y.log = v.log), v.info !== void 0 && (y.info = v.info), v.gas_wanted !== void 0 && (y.gas_wanted = v.gas_wanted), v.gas_used !== void 0 && (y.gas_used = v.gas_used), v.events ? y.events = v.events.map((S) => S ? e.Event.toJSON(S) : void 0) : y.events = [], v.codespace !== void 0 && (y.codespace = v.codespace), v.sender !== void 0 && (y.sender = v.sender), v.priority !== void 0 && (y.priority = v.priority), v.mempool_error !== void 0 && (y.mempool_error = v.mempool_error), y; + }, fromPartial(v) { + var y, S, T, B, z, q, te, oe, V, Q, G; + const H = ee(); + return H.code = (y = v.code) !== null && y !== void 0 ? y : 0, H.data = (S = v.data) !== null && S !== void 0 ? S : new Uint8Array(), H.log = (T = v.log) !== null && T !== void 0 ? T : "", H.info = (B = v.info) !== null && B !== void 0 ? B : "", H.gas_wanted = (z = v.gas_wanted) !== null && z !== void 0 ? z : "0", H.gas_used = (q = v.gas_used) !== null && q !== void 0 ? q : "0", H.events = ((te = v.events) === null || te === void 0 ? void 0 : te.map((ie) => e.Event.fromPartial(ie))) || [], H.codespace = (oe = v.codespace) !== null && oe !== void 0 ? oe : "", H.sender = (V = v.sender) !== null && V !== void 0 ? V : "", H.priority = (Q = v.priority) !== null && Q !== void 0 ? Q : "0", H.mempool_error = (G = v.mempool_error) !== null && G !== void 0 ? G : "", H; + } }, e.ResponseDeliverTx = { encode(v, y = t.Writer.create()) { + v.code !== 0 && y.uint32(8).uint32(v.code), v.data.length !== 0 && y.uint32(18).bytes(v.data), v.log !== "" && y.uint32(26).string(v.log), v.info !== "" && y.uint32(34).string(v.info), v.gas_wanted !== "0" && y.uint32(40).int64(v.gas_wanted), v.gas_used !== "0" && y.uint32(48).int64(v.gas_used); + for (const S of v.events) + e.Event.encode(S, y.uint32(58).fork()).ldelim(); + return v.codespace !== "" && y.uint32(66).string(v.codespace), y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = ne(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.code = S.uint32(); + break; + case 2: + B.data = S.bytes(); + break; + case 3: + B.log = S.string(); + break; + case 4: + B.info = S.string(); + break; + case 5: + B.gas_wanted = _e(S.int64()); + break; + case 6: + B.gas_used = _e(S.int64()); + break; + case 7: + B.events.push(e.Event.decode(S, S.uint32())); + break; + case 8: + B.codespace = S.string(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ code: W(v.code) ? Number(v.code) : 0, data: W(v.data) ? ce(v.data) : new Uint8Array(), log: W(v.log) ? String(v.log) : "", info: W(v.info) ? String(v.info) : "", gas_wanted: W(v.gas_wanted) ? String(v.gas_wanted) : "0", gas_used: W(v.gas_used) ? String(v.gas_used) : "0", events: Array.isArray(v == null ? void 0 : v.events) ? v.events.map((y) => e.Event.fromJSON(y)) : [], codespace: W(v.codespace) ? String(v.codespace) : "" }), toJSON(v) { + const y = {}; + return v.code !== void 0 && (y.code = Math.round(v.code)), v.data !== void 0 && (y.data = le(v.data !== void 0 ? v.data : new Uint8Array())), v.log !== void 0 && (y.log = v.log), v.info !== void 0 && (y.info = v.info), v.gas_wanted !== void 0 && (y.gas_wanted = v.gas_wanted), v.gas_used !== void 0 && (y.gas_used = v.gas_used), v.events ? y.events = v.events.map((S) => S ? e.Event.toJSON(S) : void 0) : y.events = [], v.codespace !== void 0 && (y.codespace = v.codespace), y; + }, fromPartial(v) { + var y, S, T, B, z, q, te, oe; + const V = ne(); + return V.code = (y = v.code) !== null && y !== void 0 ? y : 0, V.data = (S = v.data) !== null && S !== void 0 ? S : new Uint8Array(), V.log = (T = v.log) !== null && T !== void 0 ? T : "", V.info = (B = v.info) !== null && B !== void 0 ? B : "", V.gas_wanted = (z = v.gas_wanted) !== null && z !== void 0 ? z : "0", V.gas_used = (q = v.gas_used) !== null && q !== void 0 ? q : "0", V.events = ((te = v.events) === null || te === void 0 ? void 0 : te.map((Q) => e.Event.fromPartial(Q))) || [], V.codespace = (oe = v.codespace) !== null && oe !== void 0 ? oe : "", V; + } }, e.ResponseEndBlock = { encode(v, y = t.Writer.create()) { + for (const S of v.validator_updates) + e.ValidatorUpdate.encode(S, y.uint32(10).fork()).ldelim(); + v.consensus_param_updates !== void 0 && e.ConsensusParams.encode(v.consensus_param_updates, y.uint32(18).fork()).ldelim(); + for (const S of v.events) + e.Event.encode(S, y.uint32(26).fork()).ldelim(); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { validator_updates: [], consensus_param_updates: void 0, events: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.validator_updates.push(e.ValidatorUpdate.decode(S, S.uint32())); + break; + case 2: + B.consensus_param_updates = e.ConsensusParams.decode(S, S.uint32()); + break; + case 3: + B.events.push(e.Event.decode(S, S.uint32())); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ validator_updates: Array.isArray(v == null ? void 0 : v.validator_updates) ? v.validator_updates.map((y) => e.ValidatorUpdate.fromJSON(y)) : [], consensus_param_updates: W(v.consensus_param_updates) ? e.ConsensusParams.fromJSON(v.consensus_param_updates) : void 0, events: Array.isArray(v == null ? void 0 : v.events) ? v.events.map((y) => e.Event.fromJSON(y)) : [] }), toJSON(v) { + const y = {}; + return v.validator_updates ? y.validator_updates = v.validator_updates.map((S) => S ? e.ValidatorUpdate.toJSON(S) : void 0) : y.validator_updates = [], v.consensus_param_updates !== void 0 && (y.consensus_param_updates = v.consensus_param_updates ? e.ConsensusParams.toJSON(v.consensus_param_updates) : void 0), v.events ? y.events = v.events.map((S) => S ? e.Event.toJSON(S) : void 0) : y.events = [], y; + }, fromPartial(v) { + var y, S; + const T = { validator_updates: [], consensus_param_updates: void 0, events: [] }; + return T.validator_updates = ((y = v.validator_updates) === null || y === void 0 ? void 0 : y.map((B) => e.ValidatorUpdate.fromPartial(B))) || [], T.consensus_param_updates = v.consensus_param_updates !== void 0 && v.consensus_param_updates !== null ? e.ConsensusParams.fromPartial(v.consensus_param_updates) : void 0, T.events = ((S = v.events) === null || S === void 0 ? void 0 : S.map((B) => e.Event.fromPartial(B))) || [], T; + } }, e.ResponseCommit = { encode: (v, y = t.Writer.create()) => (v.data.length !== 0 && y.uint32(18).bytes(v.data), v.retain_height !== "0" && y.uint32(24).int64(v.retain_height), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = D(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 2: + B.data = S.bytes(); + break; + case 3: + B.retain_height = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ data: W(v.data) ? ce(v.data) : new Uint8Array(), retain_height: W(v.retain_height) ? String(v.retain_height) : "0" }), toJSON(v) { + const y = {}; + return v.data !== void 0 && (y.data = le(v.data !== void 0 ? v.data : new Uint8Array())), v.retain_height !== void 0 && (y.retain_height = v.retain_height), y; + }, fromPartial(v) { + var y, S; + const T = D(); + return T.data = (y = v.data) !== null && y !== void 0 ? y : new Uint8Array(), T.retain_height = (S = v.retain_height) !== null && S !== void 0 ? S : "0", T; + } }, e.ResponseListSnapshots = { encode(v, y = t.Writer.create()) { + for (const S of v.snapshots) + e.Snapshot.encode(S, y.uint32(10).fork()).ldelim(); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { snapshots: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.snapshots.push(e.Snapshot.decode(S, S.uint32())) : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ snapshots: Array.isArray(v == null ? void 0 : v.snapshots) ? v.snapshots.map((y) => e.Snapshot.fromJSON(y)) : [] }), toJSON(v) { + const y = {}; + return v.snapshots ? y.snapshots = v.snapshots.map((S) => S ? e.Snapshot.toJSON(S) : void 0) : y.snapshots = [], y; + }, fromPartial(v) { + var y; + const S = { snapshots: [] }; + return S.snapshots = ((y = v.snapshots) === null || y === void 0 ? void 0 : y.map((T) => e.Snapshot.fromPartial(T))) || [], S; + } }, e.ResponseOfferSnapshot = { encode: (v, y = t.Writer.create()) => (v.result !== 0 && y.uint32(8).int32(v.result), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { result: 0 }; + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.result = S.int32() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ result: W(v.result) ? l(v.result) : 0 }), toJSON(v) { + const y = {}; + return v.result !== void 0 && (y.result = N(v.result)), y; + }, fromPartial(v) { + var y; + const S = { result: 0 }; + return S.result = (y = v.result) !== null && y !== void 0 ? y : 0, S; + } }, e.ResponseLoadSnapshotChunk = { encode: (v, y = t.Writer.create()) => (v.chunk.length !== 0 && y.uint32(10).bytes(v.chunk), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = Z(); + for (; S.pos < T; ) { + const z = S.uint32(); + z >>> 3 == 1 ? B.chunk = S.bytes() : S.skipType(7 & z); + } + return B; + }, fromJSON: (v) => ({ chunk: W(v.chunk) ? ce(v.chunk) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.chunk !== void 0 && (y.chunk = le(v.chunk !== void 0 ? v.chunk : new Uint8Array())), y; + }, fromPartial(v) { + var y; + const S = Z(); + return S.chunk = (y = v.chunk) !== null && y !== void 0 ? y : new Uint8Array(), S; + } }, e.ResponseApplySnapshotChunk = { encode(v, y = t.Writer.create()) { + v.result !== 0 && y.uint32(8).int32(v.result), y.uint32(18).fork(); + for (const S of v.refetch_chunks) + y.uint32(S); + y.ldelim(); + for (const S of v.reject_senders) + y.uint32(26).string(S); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { result: 0, refetch_chunks: [], reject_senders: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.result = S.int32(); + break; + case 2: + if ((7 & z) == 2) { + const q = S.uint32() + S.pos; + for (; S.pos < q; ) + B.refetch_chunks.push(S.uint32()); + } else + B.refetch_chunks.push(S.uint32()); + break; + case 3: + B.reject_senders.push(S.string()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ result: W(v.result) ? j(v.result) : 0, refetch_chunks: Array.isArray(v == null ? void 0 : v.refetch_chunks) ? v.refetch_chunks.map((y) => Number(y)) : [], reject_senders: Array.isArray(v == null ? void 0 : v.reject_senders) ? v.reject_senders.map((y) => String(y)) : [] }), toJSON(v) { + const y = {}; + return v.result !== void 0 && (y.result = R(v.result)), v.refetch_chunks ? y.refetch_chunks = v.refetch_chunks.map((S) => Math.round(S)) : y.refetch_chunks = [], v.reject_senders ? y.reject_senders = v.reject_senders.map((S) => S) : y.reject_senders = [], y; + }, fromPartial(v) { + var y, S, T; + const B = { result: 0, refetch_chunks: [], reject_senders: [] }; + return B.result = (y = v.result) !== null && y !== void 0 ? y : 0, B.refetch_chunks = ((S = v.refetch_chunks) === null || S === void 0 ? void 0 : S.map((z) => z)) || [], B.reject_senders = ((T = v.reject_senders) === null || T === void 0 ? void 0 : T.map((z) => z)) || [], B; + } }, e.ConsensusParams = { encode: (v, y = t.Writer.create()) => (v.block !== void 0 && e.BlockParams.encode(v.block, y.uint32(10).fork()).ldelim(), v.evidence !== void 0 && r.EvidenceParams.encode(v.evidence, y.uint32(18).fork()).ldelim(), v.validator !== void 0 && r.ValidatorParams.encode(v.validator, y.uint32(26).fork()).ldelim(), v.version !== void 0 && r.VersionParams.encode(v.version, y.uint32(34).fork()).ldelim(), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { block: void 0, evidence: void 0, validator: void 0, version: void 0 }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.block = e.BlockParams.decode(S, S.uint32()); + break; + case 2: + B.evidence = r.EvidenceParams.decode(S, S.uint32()); + break; + case 3: + B.validator = r.ValidatorParams.decode(S, S.uint32()); + break; + case 4: + B.version = r.VersionParams.decode(S, S.uint32()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ block: W(v.block) ? e.BlockParams.fromJSON(v.block) : void 0, evidence: W(v.evidence) ? r.EvidenceParams.fromJSON(v.evidence) : void 0, validator: W(v.validator) ? r.ValidatorParams.fromJSON(v.validator) : void 0, version: W(v.version) ? r.VersionParams.fromJSON(v.version) : void 0 }), toJSON(v) { + const y = {}; + return v.block !== void 0 && (y.block = v.block ? e.BlockParams.toJSON(v.block) : void 0), v.evidence !== void 0 && (y.evidence = v.evidence ? r.EvidenceParams.toJSON(v.evidence) : void 0), v.validator !== void 0 && (y.validator = v.validator ? r.ValidatorParams.toJSON(v.validator) : void 0), v.version !== void 0 && (y.version = v.version ? r.VersionParams.toJSON(v.version) : void 0), y; + }, fromPartial(v) { + const y = { block: void 0, evidence: void 0, validator: void 0, version: void 0 }; + return y.block = v.block !== void 0 && v.block !== null ? e.BlockParams.fromPartial(v.block) : void 0, y.evidence = v.evidence !== void 0 && v.evidence !== null ? r.EvidenceParams.fromPartial(v.evidence) : void 0, y.validator = v.validator !== void 0 && v.validator !== null ? r.ValidatorParams.fromPartial(v.validator) : void 0, y.version = v.version !== void 0 && v.version !== null ? r.VersionParams.fromPartial(v.version) : void 0, y; + } }, e.BlockParams = { encode: (v, y = t.Writer.create()) => (v.max_bytes !== "0" && y.uint32(8).int64(v.max_bytes), v.max_gas !== "0" && y.uint32(16).int64(v.max_gas), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { max_bytes: "0", max_gas: "0" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.max_bytes = _e(S.int64()); + break; + case 2: + B.max_gas = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ max_bytes: W(v.max_bytes) ? String(v.max_bytes) : "0", max_gas: W(v.max_gas) ? String(v.max_gas) : "0" }), toJSON(v) { + const y = {}; + return v.max_bytes !== void 0 && (y.max_bytes = v.max_bytes), v.max_gas !== void 0 && (y.max_gas = v.max_gas), y; + }, fromPartial(v) { + var y, S; + const T = { max_bytes: "0", max_gas: "0" }; + return T.max_bytes = (y = v.max_bytes) !== null && y !== void 0 ? y : "0", T.max_gas = (S = v.max_gas) !== null && S !== void 0 ? S : "0", T; + } }, e.LastCommitInfo = { encode(v, y = t.Writer.create()) { + v.round !== 0 && y.uint32(8).int32(v.round); + for (const S of v.votes) + e.VoteInfo.encode(S, y.uint32(18).fork()).ldelim(); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { round: 0, votes: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.round = S.int32(); + break; + case 2: + B.votes.push(e.VoteInfo.decode(S, S.uint32())); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ round: W(v.round) ? Number(v.round) : 0, votes: Array.isArray(v == null ? void 0 : v.votes) ? v.votes.map((y) => e.VoteInfo.fromJSON(y)) : [] }), toJSON(v) { + const y = {}; + return v.round !== void 0 && (y.round = Math.round(v.round)), v.votes ? y.votes = v.votes.map((S) => S ? e.VoteInfo.toJSON(S) : void 0) : y.votes = [], y; + }, fromPartial(v) { + var y, S; + const T = { round: 0, votes: [] }; + return T.round = (y = v.round) !== null && y !== void 0 ? y : 0, T.votes = ((S = v.votes) === null || S === void 0 ? void 0 : S.map((B) => e.VoteInfo.fromPartial(B))) || [], T; + } }, e.Event = { encode(v, y = t.Writer.create()) { + v.type !== "" && y.uint32(10).string(v.type); + for (const S of v.attributes) + e.EventAttribute.encode(S, y.uint32(18).fork()).ldelim(); + return y; + }, decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { type: "", attributes: [] }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.type = S.string(); + break; + case 2: + B.attributes.push(e.EventAttribute.decode(S, S.uint32())); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ type: W(v.type) ? String(v.type) : "", attributes: Array.isArray(v == null ? void 0 : v.attributes) ? v.attributes.map((y) => e.EventAttribute.fromJSON(y)) : [] }), toJSON(v) { + const y = {}; + return v.type !== void 0 && (y.type = v.type), v.attributes ? y.attributes = v.attributes.map((S) => S ? e.EventAttribute.toJSON(S) : void 0) : y.attributes = [], y; + }, fromPartial(v) { + var y, S; + const T = { type: "", attributes: [] }; + return T.type = (y = v.type) !== null && y !== void 0 ? y : "", T.attributes = ((S = v.attributes) === null || S === void 0 ? void 0 : S.map((B) => e.EventAttribute.fromPartial(B))) || [], T; + } }, e.EventAttribute = { encode: (v, y = t.Writer.create()) => (v.key.length !== 0 && y.uint32(10).bytes(v.key), v.value.length !== 0 && y.uint32(18).bytes(v.value), v.index === !0 && y.uint32(24).bool(v.index), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = $(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.key = S.bytes(); + break; + case 2: + B.value = S.bytes(); + break; + case 3: + B.index = S.bool(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ key: W(v.key) ? ce(v.key) : new Uint8Array(), value: W(v.value) ? ce(v.value) : new Uint8Array(), index: !!W(v.index) && !!v.index }), toJSON(v) { + const y = {}; + return v.key !== void 0 && (y.key = le(v.key !== void 0 ? v.key : new Uint8Array())), v.value !== void 0 && (y.value = le(v.value !== void 0 ? v.value : new Uint8Array())), v.index !== void 0 && (y.index = v.index), y; + }, fromPartial(v) { + var y, S, T; + const B = $(); + return B.key = (y = v.key) !== null && y !== void 0 ? y : new Uint8Array(), B.value = (S = v.value) !== null && S !== void 0 ? S : new Uint8Array(), B.index = (T = v.index) !== null && T !== void 0 && T, B; + } }, e.TxResult = { encode: (v, y = t.Writer.create()) => (v.height !== "0" && y.uint32(8).int64(v.height), v.index !== 0 && y.uint32(16).uint32(v.index), v.tx.length !== 0 && y.uint32(26).bytes(v.tx), v.result !== void 0 && e.ResponseDeliverTx.encode(v.result, y.uint32(34).fork()).ldelim(), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = X(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.height = _e(S.int64()); + break; + case 2: + B.index = S.uint32(); + break; + case 3: + B.tx = S.bytes(); + break; + case 4: + B.result = e.ResponseDeliverTx.decode(S, S.uint32()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ height: W(v.height) ? String(v.height) : "0", index: W(v.index) ? Number(v.index) : 0, tx: W(v.tx) ? ce(v.tx) : new Uint8Array(), result: W(v.result) ? e.ResponseDeliverTx.fromJSON(v.result) : void 0 }), toJSON(v) { + const y = {}; + return v.height !== void 0 && (y.height = v.height), v.index !== void 0 && (y.index = Math.round(v.index)), v.tx !== void 0 && (y.tx = le(v.tx !== void 0 ? v.tx : new Uint8Array())), v.result !== void 0 && (y.result = v.result ? e.ResponseDeliverTx.toJSON(v.result) : void 0), y; + }, fromPartial(v) { + var y, S, T; + const B = X(); + return B.height = (y = v.height) !== null && y !== void 0 ? y : "0", B.index = (S = v.index) !== null && S !== void 0 ? S : 0, B.tx = (T = v.tx) !== null && T !== void 0 ? T : new Uint8Array(), B.result = v.result !== void 0 && v.result !== null ? e.ResponseDeliverTx.fromPartial(v.result) : void 0, B; + } }, e.Validator = { encode: (v, y = t.Writer.create()) => (v.address.length !== 0 && y.uint32(10).bytes(v.address), v.power !== "0" && y.uint32(24).int64(v.power), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = K(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.address = S.bytes(); + break; + case 3: + B.power = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ address: W(v.address) ? ce(v.address) : new Uint8Array(), power: W(v.power) ? String(v.power) : "0" }), toJSON(v) { + const y = {}; + return v.address !== void 0 && (y.address = le(v.address !== void 0 ? v.address : new Uint8Array())), v.power !== void 0 && (y.power = v.power), y; + }, fromPartial(v) { + var y, S; + const T = K(); + return T.address = (y = v.address) !== null && y !== void 0 ? y : new Uint8Array(), T.power = (S = v.power) !== null && S !== void 0 ? S : "0", T; + } }, e.ValidatorUpdate = { encode: (v, y = t.Writer.create()) => (v.pub_key !== void 0 && n.PublicKey.encode(v.pub_key, y.uint32(10).fork()).ldelim(), v.power !== "0" && y.uint32(16).int64(v.power), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { pub_key: void 0, power: "0" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.pub_key = n.PublicKey.decode(S, S.uint32()); + break; + case 2: + B.power = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ pub_key: W(v.pub_key) ? n.PublicKey.fromJSON(v.pub_key) : void 0, power: W(v.power) ? String(v.power) : "0" }), toJSON(v) { + const y = {}; + return v.pub_key !== void 0 && (y.pub_key = v.pub_key ? n.PublicKey.toJSON(v.pub_key) : void 0), v.power !== void 0 && (y.power = v.power), y; + }, fromPartial(v) { + var y; + const S = { pub_key: void 0, power: "0" }; + return S.pub_key = v.pub_key !== void 0 && v.pub_key !== null ? n.PublicKey.fromPartial(v.pub_key) : void 0, S.power = (y = v.power) !== null && y !== void 0 ? y : "0", S; + } }, e.VoteInfo = { encode: (v, y = t.Writer.create()) => (v.validator !== void 0 && e.Validator.encode(v.validator, y.uint32(10).fork()).ldelim(), v.signed_last_block === !0 && y.uint32(16).bool(v.signed_last_block), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { validator: void 0, signed_last_block: !1 }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.validator = e.Validator.decode(S, S.uint32()); + break; + case 2: + B.signed_last_block = S.bool(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ validator: W(v.validator) ? e.Validator.fromJSON(v.validator) : void 0, signed_last_block: !!W(v.signed_last_block) && !!v.signed_last_block }), toJSON(v) { + const y = {}; + return v.validator !== void 0 && (y.validator = v.validator ? e.Validator.toJSON(v.validator) : void 0), v.signed_last_block !== void 0 && (y.signed_last_block = v.signed_last_block), y; + }, fromPartial(v) { + var y; + const S = { validator: void 0, signed_last_block: !1 }; + return S.validator = v.validator !== void 0 && v.validator !== null ? e.Validator.fromPartial(v.validator) : void 0, S.signed_last_block = (y = v.signed_last_block) !== null && y !== void 0 && y, S; + } }, e.Evidence = { encode: (v, y = t.Writer.create()) => (v.type !== 0 && y.uint32(8).int32(v.type), v.validator !== void 0 && e.Validator.encode(v.validator, y.uint32(18).fork()).ldelim(), v.height !== "0" && y.uint32(24).int64(v.height), v.time !== void 0 && u.Timestamp.encode(v.time, y.uint32(34).fork()).ldelim(), v.total_voting_power !== "0" && y.uint32(40).int64(v.total_voting_power), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = { type: 0, validator: void 0, height: "0", time: void 0, total_voting_power: "0" }; + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.type = S.int32(); + break; + case 2: + B.validator = e.Validator.decode(S, S.uint32()); + break; + case 3: + B.height = _e(S.int64()); + break; + case 4: + B.time = u.Timestamp.decode(S, S.uint32()); + break; + case 5: + B.total_voting_power = _e(S.int64()); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ type: W(v.type) ? m(v.type) : 0, validator: W(v.validator) ? e.Validator.fromJSON(v.validator) : void 0, height: W(v.height) ? String(v.height) : "0", time: W(v.time) ? pe(v.time) : void 0, total_voting_power: W(v.total_voting_power) ? String(v.total_voting_power) : "0" }), toJSON(v) { + const y = {}; + return v.type !== void 0 && (y.type = M(v.type)), v.validator !== void 0 && (y.validator = v.validator ? e.Validator.toJSON(v.validator) : void 0), v.height !== void 0 && (y.height = v.height), v.time !== void 0 && (y.time = de(v.time).toISOString()), v.total_voting_power !== void 0 && (y.total_voting_power = v.total_voting_power), y; + }, fromPartial(v) { + var y, S, T; + const B = { type: 0, validator: void 0, height: "0", time: void 0, total_voting_power: "0" }; + return B.type = (y = v.type) !== null && y !== void 0 ? y : 0, B.validator = v.validator !== void 0 && v.validator !== null ? e.Validator.fromPartial(v.validator) : void 0, B.height = (S = v.height) !== null && S !== void 0 ? S : "0", B.time = v.time !== void 0 && v.time !== null ? u.Timestamp.fromPartial(v.time) : void 0, B.total_voting_power = (T = v.total_voting_power) !== null && T !== void 0 ? T : "0", B; + } }, e.Snapshot = { encode: (v, y = t.Writer.create()) => (v.height !== "0" && y.uint32(8).uint64(v.height), v.format !== 0 && y.uint32(16).uint32(v.format), v.chunks !== 0 && y.uint32(24).uint32(v.chunks), v.hash.length !== 0 && y.uint32(34).bytes(v.hash), v.metadata.length !== 0 && y.uint32(42).bytes(v.metadata), y), decode(v, y) { + const S = v instanceof t.Reader ? v : new t.Reader(v); + let T = y === void 0 ? S.len : S.pos + y; + const B = Y(); + for (; S.pos < T; ) { + const z = S.uint32(); + switch (z >>> 3) { + case 1: + B.height = _e(S.uint64()); + break; + case 2: + B.format = S.uint32(); + break; + case 3: + B.chunks = S.uint32(); + break; + case 4: + B.hash = S.bytes(); + break; + case 5: + B.metadata = S.bytes(); + break; + default: + S.skipType(7 & z); + } + } + return B; + }, fromJSON: (v) => ({ height: W(v.height) ? String(v.height) : "0", format: W(v.format) ? Number(v.format) : 0, chunks: W(v.chunks) ? Number(v.chunks) : 0, hash: W(v.hash) ? ce(v.hash) : new Uint8Array(), metadata: W(v.metadata) ? ce(v.metadata) : new Uint8Array() }), toJSON(v) { + const y = {}; + return v.height !== void 0 && (y.height = v.height), v.format !== void 0 && (y.format = Math.round(v.format)), v.chunks !== void 0 && (y.chunks = Math.round(v.chunks)), v.hash !== void 0 && (y.hash = le(v.hash !== void 0 ? v.hash : new Uint8Array())), v.metadata !== void 0 && (y.metadata = le(v.metadata !== void 0 ? v.metadata : new Uint8Array())), y; + }, fromPartial(v) { + var y, S, T, B, z; + const q = Y(); + return q.height = (y = v.height) !== null && y !== void 0 ? y : "0", q.format = (S = v.format) !== null && S !== void 0 ? S : 0, q.chunks = (T = v.chunks) !== null && T !== void 0 ? T : 0, q.hash = (B = v.hash) !== null && B !== void 0 ? B : new Uint8Array(), q.metadata = (z = v.metadata) !== null && z !== void 0 ? z : new Uint8Array(), q; + } }, e.ABCIApplicationClientImpl = class { + constructor(v) { + this.rpc = v, this.Echo = this.Echo.bind(this), this.Flush = this.Flush.bind(this), this.Info = this.Info.bind(this), this.SetOption = this.SetOption.bind(this), this.DeliverTx = this.DeliverTx.bind(this), this.CheckTx = this.CheckTx.bind(this), this.Query = this.Query.bind(this), this.Commit = this.Commit.bind(this), this.InitChain = this.InitChain.bind(this), this.BeginBlock = this.BeginBlock.bind(this), this.EndBlock = this.EndBlock.bind(this), this.ListSnapshots = this.ListSnapshots.bind(this), this.OfferSnapshot = this.OfferSnapshot.bind(this), this.LoadSnapshotChunk = this.LoadSnapshotChunk.bind(this), this.ApplySnapshotChunk = this.ApplySnapshotChunk.bind(this); + } + Echo(v) { + const y = e.RequestEcho.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "Echo", y).then((S) => e.ResponseEcho.decode(new t.Reader(S))); + } + Flush(v) { + const y = e.RequestFlush.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "Flush", y).then((S) => e.ResponseFlush.decode(new t.Reader(S))); + } + Info(v) { + const y = e.RequestInfo.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "Info", y).then((S) => e.ResponseInfo.decode(new t.Reader(S))); + } + SetOption(v) { + const y = e.RequestSetOption.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "SetOption", y).then((S) => e.ResponseSetOption.decode(new t.Reader(S))); + } + DeliverTx(v) { + const y = e.RequestDeliverTx.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "DeliverTx", y).then((S) => e.ResponseDeliverTx.decode(new t.Reader(S))); + } + CheckTx(v) { + const y = e.RequestCheckTx.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "CheckTx", y).then((S) => e.ResponseCheckTx.decode(new t.Reader(S))); + } + Query(v) { + const y = e.RequestQuery.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "Query", y).then((S) => e.ResponseQuery.decode(new t.Reader(S))); + } + Commit(v) { + const y = e.RequestCommit.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "Commit", y).then((S) => e.ResponseCommit.decode(new t.Reader(S))); + } + InitChain(v) { + const y = e.RequestInitChain.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "InitChain", y).then((S) => e.ResponseInitChain.decode(new t.Reader(S))); + } + BeginBlock(v) { + const y = e.RequestBeginBlock.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "BeginBlock", y).then((S) => e.ResponseBeginBlock.decode(new t.Reader(S))); + } + EndBlock(v) { + const y = e.RequestEndBlock.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "EndBlock", y).then((S) => e.ResponseEndBlock.decode(new t.Reader(S))); + } + ListSnapshots(v) { + const y = e.RequestListSnapshots.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "ListSnapshots", y).then((S) => e.ResponseListSnapshots.decode(new t.Reader(S))); + } + OfferSnapshot(v) { + const y = e.RequestOfferSnapshot.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "OfferSnapshot", y).then((S) => e.ResponseOfferSnapshot.decode(new t.Reader(S))); + } + LoadSnapshotChunk(v) { + const y = e.RequestLoadSnapshotChunk.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "LoadSnapshotChunk", y).then((S) => e.ResponseLoadSnapshotChunk.decode(new t.Reader(S))); + } + ApplySnapshotChunk(v) { + const y = e.RequestApplySnapshotChunk.encode(v).finish(); + return this.rpc.request("tendermint.abci.ABCIApplication", "ApplySnapshotChunk", y).then((S) => e.ResponseApplySnapshotChunk.decode(new t.Reader(S))); + } + }; + var L = (() => { + if (L !== void 0) + return L; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const ae = L.atob || ((v) => L.Buffer.from(v, "base64").toString("binary")); + function ce(v) { + const y = ae(v), S = new Uint8Array(y.length); + for (let T = 0; T < y.length; ++T) + S[T] = y.charCodeAt(T); + return S; + } + const ue = L.btoa || ((v) => L.Buffer.from(v, "binary").toString("base64")); + function le(v) { + const y = []; + for (const S of v) + y.push(String.fromCharCode(S)); + return ue(y.join("")); + } + function be(v) { + return { seconds: Math.trunc(v.getTime() / 1e3).toString(), nanos: v.getTime() % 1e3 * 1e6 }; + } + function de(v) { + let y = 1e3 * Number(v.seconds); + return y += v.nanos / 1e6, new Date(y); + } + function pe(v) { + return v instanceof Date ? be(v) : typeof v == "string" ? be(new Date(v)) : u.Timestamp.fromJSON(v); + } + function _e(v) { + return v.toString(); + } + function W(v) { + return v != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2740: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(i, f, c, h) { + h === void 0 && (h = c), Object.defineProperty(i, h, { enumerable: !0, get: function() { + return f[c]; + } }); + } : function(i, f, c, h) { + h === void 0 && (h = c), i[h] = f[c]; + }), A = this && this.__setModuleDefault || (Object.create ? function(i, f) { + Object.defineProperty(i, "default", { enumerable: !0, value: f }); + } : function(i, f) { + i.default = f; + }), k = this && this.__importStar || function(i) { + if (i && i.__esModule) + return i; + var f = {}; + if (i != null) + for (var c in i) + c !== "default" && Object.prototype.hasOwnProperty.call(i, c) && O(f, i, c); + return A(f, i), f; + }, b = this && this.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.PublicKey = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + e.protobufPackage = "tendermint.crypto", e.PublicKey = { encode: (i, f = t.Writer.create()) => (i.ed25519 !== void 0 && f.uint32(10).bytes(i.ed25519), i.secp256k1 !== void 0 && f.uint32(18).bytes(i.secp256k1), f), decode(i, f) { + const c = i instanceof t.Reader ? i : new t.Reader(i); + let h = f === void 0 ? c.len : c.pos + f; + const p = { ed25519: void 0, secp256k1: void 0 }; + for (; c.pos < h; ) { + const m = c.uint32(); + switch (m >>> 3) { + case 1: + p.ed25519 = c.bytes(); + break; + case 2: + p.secp256k1 = c.bytes(); + break; + default: + c.skipType(7 & m); + } + } + return p; + }, fromJSON: (i) => ({ ed25519: o(i.ed25519) ? s(i.ed25519) : void 0, secp256k1: o(i.secp256k1) ? s(i.secp256k1) : void 0 }), toJSON(i) { + const f = {}; + return i.ed25519 !== void 0 && (f.ed25519 = i.ed25519 !== void 0 ? n(i.ed25519) : void 0), i.secp256k1 !== void 0 && (f.secp256k1 = i.secp256k1 !== void 0 ? n(i.secp256k1) : void 0), f; + }, fromPartial(i) { + var f, c; + const h = { ed25519: void 0, secp256k1: void 0 }; + return h.ed25519 = (f = i.ed25519) !== null && f !== void 0 ? f : void 0, h.secp256k1 = (c = i.secp256k1) !== null && c !== void 0 ? c : void 0, h; + } }; + var u = (() => { + if (u !== void 0) + return u; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const d = u.atob || ((i) => u.Buffer.from(i, "base64").toString("binary")); + function s(i) { + const f = d(i), c = new Uint8Array(f.length); + for (let h = 0; h < f.length; ++h) + c[h] = f.charCodeAt(h); + return c; + } + const r = u.btoa || ((i) => u.Buffer.from(i, "binary").toString("base64")); + function n(i) { + const f = []; + for (const c of i) + f.push(String.fromCharCode(c)); + return r(f.join("")); + } + function o(i) { + return i != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 1093: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(p, m, M, l) { + l === void 0 && (l = M), Object.defineProperty(p, l, { enumerable: !0, get: function() { + return m[M]; + } }); + } : function(p, m, M, l) { + l === void 0 && (l = M), p[l] = m[M]; + }), A = this && this.__setModuleDefault || (Object.create ? function(p, m) { + Object.defineProperty(p, "default", { enumerable: !0, value: m }); + } : function(p, m) { + p.default = m; + }), k = this && this.__importStar || function(p) { + if (p && p.__esModule) + return p; + var m = {}; + if (p != null) + for (var M in p) + M !== "default" && Object.prototype.hasOwnProperty.call(p, M) && O(m, p, M); + return A(m, p), m; + }, b = this && this.__importDefault || function(p) { + return p && p.__esModule ? p : { default: p }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.ProofOps = e.ProofOp = e.DominoOp = e.ValueOp = e.Proof = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u() { + return { total: "0", index: "0", leaf_hash: new Uint8Array(), aunts: [] }; + } + function d() { + return { key: new Uint8Array(), proof: void 0 }; + } + function s() { + return { type: "", key: new Uint8Array(), data: new Uint8Array() }; + } + e.protobufPackage = "tendermint.crypto", e.Proof = { encode(p, m = t.Writer.create()) { + p.total !== "0" && m.uint32(8).int64(p.total), p.index !== "0" && m.uint32(16).int64(p.index), p.leaf_hash.length !== 0 && m.uint32(26).bytes(p.leaf_hash); + for (const M of p.aunts) + m.uint32(34).bytes(M); + return m; + }, decode(p, m) { + const M = p instanceof t.Reader ? p : new t.Reader(p); + let l = m === void 0 ? M.len : M.pos + m; + const N = u(); + for (; M.pos < l; ) { + const j = M.uint32(); + switch (j >>> 3) { + case 1: + N.total = c(M.int64()); + break; + case 2: + N.index = c(M.int64()); + break; + case 3: + N.leaf_hash = M.bytes(); + break; + case 4: + N.aunts.push(M.bytes()); + break; + default: + M.skipType(7 & j); + } + } + return N; + }, fromJSON: (p) => ({ total: h(p.total) ? String(p.total) : "0", index: h(p.index) ? String(p.index) : "0", leaf_hash: h(p.leaf_hash) ? o(p.leaf_hash) : new Uint8Array(), aunts: Array.isArray(p == null ? void 0 : p.aunts) ? p.aunts.map((m) => o(m)) : [] }), toJSON(p) { + const m = {}; + return p.total !== void 0 && (m.total = p.total), p.index !== void 0 && (m.index = p.index), p.leaf_hash !== void 0 && (m.leaf_hash = f(p.leaf_hash !== void 0 ? p.leaf_hash : new Uint8Array())), p.aunts ? m.aunts = p.aunts.map((M) => f(M !== void 0 ? M : new Uint8Array())) : m.aunts = [], m; + }, fromPartial(p) { + var m, M, l, N; + const j = u(); + return j.total = (m = p.total) !== null && m !== void 0 ? m : "0", j.index = (M = p.index) !== null && M !== void 0 ? M : "0", j.leaf_hash = (l = p.leaf_hash) !== null && l !== void 0 ? l : new Uint8Array(), j.aunts = ((N = p.aunts) === null || N === void 0 ? void 0 : N.map((R) => R)) || [], j; + } }, e.ValueOp = { encode: (p, m = t.Writer.create()) => (p.key.length !== 0 && m.uint32(10).bytes(p.key), p.proof !== void 0 && e.Proof.encode(p.proof, m.uint32(18).fork()).ldelim(), m), decode(p, m) { + const M = p instanceof t.Reader ? p : new t.Reader(p); + let l = m === void 0 ? M.len : M.pos + m; + const N = d(); + for (; M.pos < l; ) { + const j = M.uint32(); + switch (j >>> 3) { + case 1: + N.key = M.bytes(); + break; + case 2: + N.proof = e.Proof.decode(M, M.uint32()); + break; + default: + M.skipType(7 & j); + } + } + return N; + }, fromJSON: (p) => ({ key: h(p.key) ? o(p.key) : new Uint8Array(), proof: h(p.proof) ? e.Proof.fromJSON(p.proof) : void 0 }), toJSON(p) { + const m = {}; + return p.key !== void 0 && (m.key = f(p.key !== void 0 ? p.key : new Uint8Array())), p.proof !== void 0 && (m.proof = p.proof ? e.Proof.toJSON(p.proof) : void 0), m; + }, fromPartial(p) { + var m; + const M = d(); + return M.key = (m = p.key) !== null && m !== void 0 ? m : new Uint8Array(), M.proof = p.proof !== void 0 && p.proof !== null ? e.Proof.fromPartial(p.proof) : void 0, M; + } }, e.DominoOp = { encode: (p, m = t.Writer.create()) => (p.key !== "" && m.uint32(10).string(p.key), p.input !== "" && m.uint32(18).string(p.input), p.output !== "" && m.uint32(26).string(p.output), m), decode(p, m) { + const M = p instanceof t.Reader ? p : new t.Reader(p); + let l = m === void 0 ? M.len : M.pos + m; + const N = { key: "", input: "", output: "" }; + for (; M.pos < l; ) { + const j = M.uint32(); + switch (j >>> 3) { + case 1: + N.key = M.string(); + break; + case 2: + N.input = M.string(); + break; + case 3: + N.output = M.string(); + break; + default: + M.skipType(7 & j); + } + } + return N; + }, fromJSON: (p) => ({ key: h(p.key) ? String(p.key) : "", input: h(p.input) ? String(p.input) : "", output: h(p.output) ? String(p.output) : "" }), toJSON(p) { + const m = {}; + return p.key !== void 0 && (m.key = p.key), p.input !== void 0 && (m.input = p.input), p.output !== void 0 && (m.output = p.output), m; + }, fromPartial(p) { + var m, M, l; + const N = { key: "", input: "", output: "" }; + return N.key = (m = p.key) !== null && m !== void 0 ? m : "", N.input = (M = p.input) !== null && M !== void 0 ? M : "", N.output = (l = p.output) !== null && l !== void 0 ? l : "", N; + } }, e.ProofOp = { encode: (p, m = t.Writer.create()) => (p.type !== "" && m.uint32(10).string(p.type), p.key.length !== 0 && m.uint32(18).bytes(p.key), p.data.length !== 0 && m.uint32(26).bytes(p.data), m), decode(p, m) { + const M = p instanceof t.Reader ? p : new t.Reader(p); + let l = m === void 0 ? M.len : M.pos + m; + const N = s(); + for (; M.pos < l; ) { + const j = M.uint32(); + switch (j >>> 3) { + case 1: + N.type = M.string(); + break; + case 2: + N.key = M.bytes(); + break; + case 3: + N.data = M.bytes(); + break; + default: + M.skipType(7 & j); + } + } + return N; + }, fromJSON: (p) => ({ type: h(p.type) ? String(p.type) : "", key: h(p.key) ? o(p.key) : new Uint8Array(), data: h(p.data) ? o(p.data) : new Uint8Array() }), toJSON(p) { + const m = {}; + return p.type !== void 0 && (m.type = p.type), p.key !== void 0 && (m.key = f(p.key !== void 0 ? p.key : new Uint8Array())), p.data !== void 0 && (m.data = f(p.data !== void 0 ? p.data : new Uint8Array())), m; + }, fromPartial(p) { + var m, M, l; + const N = s(); + return N.type = (m = p.type) !== null && m !== void 0 ? m : "", N.key = (M = p.key) !== null && M !== void 0 ? M : new Uint8Array(), N.data = (l = p.data) !== null && l !== void 0 ? l : new Uint8Array(), N; + } }, e.ProofOps = { encode(p, m = t.Writer.create()) { + for (const M of p.ops) + e.ProofOp.encode(M, m.uint32(10).fork()).ldelim(); + return m; + }, decode(p, m) { + const M = p instanceof t.Reader ? p : new t.Reader(p); + let l = m === void 0 ? M.len : M.pos + m; + const N = { ops: [] }; + for (; M.pos < l; ) { + const j = M.uint32(); + j >>> 3 == 1 ? N.ops.push(e.ProofOp.decode(M, M.uint32())) : M.skipType(7 & j); + } + return N; + }, fromJSON: (p) => ({ ops: Array.isArray(p == null ? void 0 : p.ops) ? p.ops.map((m) => e.ProofOp.fromJSON(m)) : [] }), toJSON(p) { + const m = {}; + return p.ops ? m.ops = p.ops.map((M) => M ? e.ProofOp.toJSON(M) : void 0) : m.ops = [], m; + }, fromPartial(p) { + var m; + const M = { ops: [] }; + return M.ops = ((m = p.ops) === null || m === void 0 ? void 0 : m.map((l) => e.ProofOp.fromPartial(l))) || [], M; + } }; + var r = (() => { + if (r !== void 0) + return r; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const n = r.atob || ((p) => r.Buffer.from(p, "base64").toString("binary")); + function o(p) { + const m = n(p), M = new Uint8Array(m.length); + for (let l = 0; l < m.length; ++l) + M[l] = m.charCodeAt(l); + return M; + } + const i = r.btoa || ((p) => r.Buffer.from(p, "binary").toString("base64")); + function f(p) { + const m = []; + for (const M of p) + m.push(String.fromCharCode(M)); + return i(m.join("")); + } + function c(p) { + return p.toString(); + } + function h(p) { + return p != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5672: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(r, n, o, i) { + i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { + return n[o]; + } }); + } : function(r, n, o, i) { + i === void 0 && (i = o), r[i] = n[o]; + }), A = this && this.__setModuleDefault || (Object.create ? function(r, n) { + Object.defineProperty(r, "default", { enumerable: !0, value: n }); + } : function(r, n) { + r.default = n; + }), k = this && this.__importStar || function(r) { + if (r && r.__esModule) + return r; + var n = {}; + if (r != null) + for (var o in r) + o !== "default" && Object.prototype.hasOwnProperty.call(r, o) && O(n, r, o); + return A(n, r), n; + }, b = this && this.__importDefault || function(r) { + return r && r.__esModule ? r : { default: r }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.HashedParams = e.VersionParams = e.ValidatorParams = e.EvidenceParams = e.BlockParams = e.ConsensusParams = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(6138); + function d(r) { + return r.toString(); + } + function s(r) { + return r != null; + } + e.protobufPackage = "tendermint.types", e.ConsensusParams = { encode: (r, n = t.Writer.create()) => (r.block !== void 0 && e.BlockParams.encode(r.block, n.uint32(10).fork()).ldelim(), r.evidence !== void 0 && e.EvidenceParams.encode(r.evidence, n.uint32(18).fork()).ldelim(), r.validator !== void 0 && e.ValidatorParams.encode(r.validator, n.uint32(26).fork()).ldelim(), r.version !== void 0 && e.VersionParams.encode(r.version, n.uint32(34).fork()).ldelim(), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { block: void 0, evidence: void 0, validator: void 0, version: void 0 }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.block = e.BlockParams.decode(o, o.uint32()); + break; + case 2: + f.evidence = e.EvidenceParams.decode(o, o.uint32()); + break; + case 3: + f.validator = e.ValidatorParams.decode(o, o.uint32()); + break; + case 4: + f.version = e.VersionParams.decode(o, o.uint32()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ block: s(r.block) ? e.BlockParams.fromJSON(r.block) : void 0, evidence: s(r.evidence) ? e.EvidenceParams.fromJSON(r.evidence) : void 0, validator: s(r.validator) ? e.ValidatorParams.fromJSON(r.validator) : void 0, version: s(r.version) ? e.VersionParams.fromJSON(r.version) : void 0 }), toJSON(r) { + const n = {}; + return r.block !== void 0 && (n.block = r.block ? e.BlockParams.toJSON(r.block) : void 0), r.evidence !== void 0 && (n.evidence = r.evidence ? e.EvidenceParams.toJSON(r.evidence) : void 0), r.validator !== void 0 && (n.validator = r.validator ? e.ValidatorParams.toJSON(r.validator) : void 0), r.version !== void 0 && (n.version = r.version ? e.VersionParams.toJSON(r.version) : void 0), n; + }, fromPartial(r) { + const n = { block: void 0, evidence: void 0, validator: void 0, version: void 0 }; + return n.block = r.block !== void 0 && r.block !== null ? e.BlockParams.fromPartial(r.block) : void 0, n.evidence = r.evidence !== void 0 && r.evidence !== null ? e.EvidenceParams.fromPartial(r.evidence) : void 0, n.validator = r.validator !== void 0 && r.validator !== null ? e.ValidatorParams.fromPartial(r.validator) : void 0, n.version = r.version !== void 0 && r.version !== null ? e.VersionParams.fromPartial(r.version) : void 0, n; + } }, e.BlockParams = { encode: (r, n = t.Writer.create()) => (r.max_bytes !== "0" && n.uint32(8).int64(r.max_bytes), r.max_gas !== "0" && n.uint32(16).int64(r.max_gas), r.time_iota_ms !== "0" && n.uint32(24).int64(r.time_iota_ms), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { max_bytes: "0", max_gas: "0", time_iota_ms: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.max_bytes = d(o.int64()); + break; + case 2: + f.max_gas = d(o.int64()); + break; + case 3: + f.time_iota_ms = d(o.int64()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ max_bytes: s(r.max_bytes) ? String(r.max_bytes) : "0", max_gas: s(r.max_gas) ? String(r.max_gas) : "0", time_iota_ms: s(r.time_iota_ms) ? String(r.time_iota_ms) : "0" }), toJSON(r) { + const n = {}; + return r.max_bytes !== void 0 && (n.max_bytes = r.max_bytes), r.max_gas !== void 0 && (n.max_gas = r.max_gas), r.time_iota_ms !== void 0 && (n.time_iota_ms = r.time_iota_ms), n; + }, fromPartial(r) { + var n, o, i; + const f = { max_bytes: "0", max_gas: "0", time_iota_ms: "0" }; + return f.max_bytes = (n = r.max_bytes) !== null && n !== void 0 ? n : "0", f.max_gas = (o = r.max_gas) !== null && o !== void 0 ? o : "0", f.time_iota_ms = (i = r.time_iota_ms) !== null && i !== void 0 ? i : "0", f; + } }, e.EvidenceParams = { encode: (r, n = t.Writer.create()) => (r.max_age_num_blocks !== "0" && n.uint32(8).int64(r.max_age_num_blocks), r.max_age_duration !== void 0 && u.Duration.encode(r.max_age_duration, n.uint32(18).fork()).ldelim(), r.max_bytes !== "0" && n.uint32(24).int64(r.max_bytes), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { max_age_num_blocks: "0", max_age_duration: void 0, max_bytes: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.max_age_num_blocks = d(o.int64()); + break; + case 2: + f.max_age_duration = u.Duration.decode(o, o.uint32()); + break; + case 3: + f.max_bytes = d(o.int64()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ max_age_num_blocks: s(r.max_age_num_blocks) ? String(r.max_age_num_blocks) : "0", max_age_duration: s(r.max_age_duration) ? u.Duration.fromJSON(r.max_age_duration) : void 0, max_bytes: s(r.max_bytes) ? String(r.max_bytes) : "0" }), toJSON(r) { + const n = {}; + return r.max_age_num_blocks !== void 0 && (n.max_age_num_blocks = r.max_age_num_blocks), r.max_age_duration !== void 0 && (n.max_age_duration = r.max_age_duration ? u.Duration.toJSON(r.max_age_duration) : void 0), r.max_bytes !== void 0 && (n.max_bytes = r.max_bytes), n; + }, fromPartial(r) { + var n, o; + const i = { max_age_num_blocks: "0", max_age_duration: void 0, max_bytes: "0" }; + return i.max_age_num_blocks = (n = r.max_age_num_blocks) !== null && n !== void 0 ? n : "0", i.max_age_duration = r.max_age_duration !== void 0 && r.max_age_duration !== null ? u.Duration.fromPartial(r.max_age_duration) : void 0, i.max_bytes = (o = r.max_bytes) !== null && o !== void 0 ? o : "0", i; + } }, e.ValidatorParams = { encode(r, n = t.Writer.create()) { + for (const o of r.pub_key_types) + n.uint32(10).string(o); + return n; + }, decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { pub_key_types: [] }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.pub_key_types.push(o.string()) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ pub_key_types: Array.isArray(r == null ? void 0 : r.pub_key_types) ? r.pub_key_types.map((n) => String(n)) : [] }), toJSON(r) { + const n = {}; + return r.pub_key_types ? n.pub_key_types = r.pub_key_types.map((o) => o) : n.pub_key_types = [], n; + }, fromPartial(r) { + var n; + const o = { pub_key_types: [] }; + return o.pub_key_types = ((n = r.pub_key_types) === null || n === void 0 ? void 0 : n.map((i) => i)) || [], o; + } }, e.VersionParams = { encode: (r, n = t.Writer.create()) => (r.app_version !== "0" && n.uint32(8).uint64(r.app_version), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { app_version: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + c >>> 3 == 1 ? f.app_version = d(o.uint64()) : o.skipType(7 & c); + } + return f; + }, fromJSON: (r) => ({ app_version: s(r.app_version) ? String(r.app_version) : "0" }), toJSON(r) { + const n = {}; + return r.app_version !== void 0 && (n.app_version = r.app_version), n; + }, fromPartial(r) { + var n; + const o = { app_version: "0" }; + return o.app_version = (n = r.app_version) !== null && n !== void 0 ? n : "0", o; + } }, e.HashedParams = { encode: (r, n = t.Writer.create()) => (r.block_max_bytes !== "0" && n.uint32(8).int64(r.block_max_bytes), r.block_max_gas !== "0" && n.uint32(16).int64(r.block_max_gas), n), decode(r, n) { + const o = r instanceof t.Reader ? r : new t.Reader(r); + let i = n === void 0 ? o.len : o.pos + n; + const f = { block_max_bytes: "0", block_max_gas: "0" }; + for (; o.pos < i; ) { + const c = o.uint32(); + switch (c >>> 3) { + case 1: + f.block_max_bytes = d(o.int64()); + break; + case 2: + f.block_max_gas = d(o.int64()); + break; + default: + o.skipType(7 & c); + } + } + return f; + }, fromJSON: (r) => ({ block_max_bytes: s(r.block_max_bytes) ? String(r.block_max_bytes) : "0", block_max_gas: s(r.block_max_gas) ? String(r.block_max_gas) : "0" }), toJSON(r) { + const n = {}; + return r.block_max_bytes !== void 0 && (n.block_max_bytes = r.block_max_bytes), r.block_max_gas !== void 0 && (n.block_max_gas = r.block_max_gas), n; + }, fromPartial(r) { + var n, o; + const i = { block_max_bytes: "0", block_max_gas: "0" }; + return i.block_max_bytes = (n = r.block_max_bytes) !== null && n !== void 0 ? n : "0", i.block_max_gas = (o = r.block_max_gas) !== null && o !== void 0 ? o : "0", i; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 9928: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(D, Z, $, X) { + X === void 0 && (X = $), Object.defineProperty(D, X, { enumerable: !0, get: function() { + return Z[$]; + } }); + } : function(D, Z, $, X) { + X === void 0 && (X = $), D[X] = Z[$]; + }), A = this && this.__setModuleDefault || (Object.create ? function(D, Z) { + Object.defineProperty(D, "default", { enumerable: !0, value: Z }); + } : function(D, Z) { + D.default = Z; + }), k = this && this.__importStar || function(D) { + if (D && D.__esModule) + return D; + var Z = {}; + if (D != null) + for (var $ in D) + $ !== "default" && Object.prototype.hasOwnProperty.call(D, $) && O(Z, D, $); + return A(Z, D), Z; + }, b = this && this.__importDefault || function(D) { + return D && D.__esModule ? D : { default: D }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.TxProof = e.BlockMeta = e.LightBlock = e.SignedHeader = e.Proposal = e.CommitSig = e.Commit = e.Vote = e.Data = e.EncryptedRandom = e.Header = e.BlockID = e.Part = e.PartSetHeader = e.signedMsgTypeToJSON = e.signedMsgTypeFromJSON = e.SignedMsgType = e.blockIDFlagToJSON = e.blockIDFlagFromJSON = e.BlockIDFlag = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(1093), d = _(5640), s = _(5090), r = _(3563); + var n, o; + function i(D) { + switch (D) { + case 0: + case "BLOCK_ID_FLAG_UNKNOWN": + return n.BLOCK_ID_FLAG_UNKNOWN; + case 1: + case "BLOCK_ID_FLAG_ABSENT": + return n.BLOCK_ID_FLAG_ABSENT; + case 2: + case "BLOCK_ID_FLAG_COMMIT": + return n.BLOCK_ID_FLAG_COMMIT; + case 3: + case "BLOCK_ID_FLAG_NIL": + return n.BLOCK_ID_FLAG_NIL; + default: + return n.UNRECOGNIZED; + } + } + function f(D) { + switch (D) { + case n.BLOCK_ID_FLAG_UNKNOWN: + return "BLOCK_ID_FLAG_UNKNOWN"; + case n.BLOCK_ID_FLAG_ABSENT: + return "BLOCK_ID_FLAG_ABSENT"; + case n.BLOCK_ID_FLAG_COMMIT: + return "BLOCK_ID_FLAG_COMMIT"; + case n.BLOCK_ID_FLAG_NIL: + return "BLOCK_ID_FLAG_NIL"; + default: + return "UNKNOWN"; + } + } + function c(D) { + switch (D) { + case 0: + case "SIGNED_MSG_TYPE_UNKNOWN": + return o.SIGNED_MSG_TYPE_UNKNOWN; + case 1: + case "SIGNED_MSG_TYPE_PREVOTE": + return o.SIGNED_MSG_TYPE_PREVOTE; + case 2: + case "SIGNED_MSG_TYPE_PRECOMMIT": + return o.SIGNED_MSG_TYPE_PRECOMMIT; + case 32: + case "SIGNED_MSG_TYPE_PROPOSAL": + return o.SIGNED_MSG_TYPE_PROPOSAL; + default: + return o.UNRECOGNIZED; + } + } + function h(D) { + switch (D) { + case o.SIGNED_MSG_TYPE_UNKNOWN: + return "SIGNED_MSG_TYPE_UNKNOWN"; + case o.SIGNED_MSG_TYPE_PREVOTE: + return "SIGNED_MSG_TYPE_PREVOTE"; + case o.SIGNED_MSG_TYPE_PRECOMMIT: + return "SIGNED_MSG_TYPE_PRECOMMIT"; + case o.SIGNED_MSG_TYPE_PROPOSAL: + return "SIGNED_MSG_TYPE_PROPOSAL"; + default: + return "UNKNOWN"; + } + } + function p() { + return { total: 0, hash: new Uint8Array() }; + } + function m() { + return { index: 0, bytes: new Uint8Array(), proof: void 0 }; + } + function M() { + return { hash: new Uint8Array(), part_set_header: void 0 }; + } + function l() { + return { version: void 0, chain_id: "", height: "0", time: void 0, last_block_id: void 0, last_commit_hash: new Uint8Array(), data_hash: new Uint8Array(), validators_hash: new Uint8Array(), next_validators_hash: new Uint8Array(), consensus_hash: new Uint8Array(), app_hash: new Uint8Array(), last_results_hash: new Uint8Array(), evidence_hash: new Uint8Array(), proposer_address: new Uint8Array(), encrypted_random: void 0 }; + } + function N() { + return { random: new Uint8Array(), proof: new Uint8Array() }; + } + function j() { + return { type: 0, height: "0", round: 0, block_id: void 0, timestamp: void 0, validator_address: new Uint8Array(), validator_index: 0, signature: new Uint8Array() }; + } + function R() { + return { block_id_flag: 0, validator_address: new Uint8Array(), timestamp: void 0, signature: new Uint8Array() }; + } + function I() { + return { type: 0, height: "0", round: 0, pol_round: 0, block_id: void 0, timestamp: void 0, signature: new Uint8Array() }; + } + function x() { + return { root_hash: new Uint8Array(), data: new Uint8Array(), proof: void 0 }; + } + e.protobufPackage = "tendermint.types", function(D) { + D[D.BLOCK_ID_FLAG_UNKNOWN = 0] = "BLOCK_ID_FLAG_UNKNOWN", D[D.BLOCK_ID_FLAG_ABSENT = 1] = "BLOCK_ID_FLAG_ABSENT", D[D.BLOCK_ID_FLAG_COMMIT = 2] = "BLOCK_ID_FLAG_COMMIT", D[D.BLOCK_ID_FLAG_NIL = 3] = "BLOCK_ID_FLAG_NIL", D[D.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(n = e.BlockIDFlag || (e.BlockIDFlag = {})), e.blockIDFlagFromJSON = i, e.blockIDFlagToJSON = f, function(D) { + D[D.SIGNED_MSG_TYPE_UNKNOWN = 0] = "SIGNED_MSG_TYPE_UNKNOWN", D[D.SIGNED_MSG_TYPE_PREVOTE = 1] = "SIGNED_MSG_TYPE_PREVOTE", D[D.SIGNED_MSG_TYPE_PRECOMMIT = 2] = "SIGNED_MSG_TYPE_PRECOMMIT", D[D.SIGNED_MSG_TYPE_PROPOSAL = 32] = "SIGNED_MSG_TYPE_PROPOSAL", D[D.UNRECOGNIZED = -1] = "UNRECOGNIZED"; + }(o = e.SignedMsgType || (e.SignedMsgType = {})), e.signedMsgTypeFromJSON = c, e.signedMsgTypeToJSON = h, e.PartSetHeader = { encode: (D, Z = t.Writer.create()) => (D.total !== 0 && Z.uint32(8).uint32(D.total), D.hash.length !== 0 && Z.uint32(18).bytes(D.hash), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = p(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.total = $.uint32(); + break; + case 2: + K.hash = $.bytes(); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ total: ne(D.total) ? Number(D.total) : 0, hash: ne(D.hash) ? g(D.hash) : new Uint8Array() }), toJSON(D) { + const Z = {}; + return D.total !== void 0 && (Z.total = Math.round(D.total)), D.hash !== void 0 && (Z.hash = U(D.hash !== void 0 ? D.hash : new Uint8Array())), Z; + }, fromPartial(D) { + var Z, $; + const X = p(); + return X.total = (Z = D.total) !== null && Z !== void 0 ? Z : 0, X.hash = ($ = D.hash) !== null && $ !== void 0 ? $ : new Uint8Array(), X; + } }, e.Part = { encode: (D, Z = t.Writer.create()) => (D.index !== 0 && Z.uint32(8).uint32(D.index), D.bytes.length !== 0 && Z.uint32(18).bytes(D.bytes), D.proof !== void 0 && u.Proof.encode(D.proof, Z.uint32(26).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = m(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.index = $.uint32(); + break; + case 2: + K.bytes = $.bytes(); + break; + case 3: + K.proof = u.Proof.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ index: ne(D.index) ? Number(D.index) : 0, bytes: ne(D.bytes) ? g(D.bytes) : new Uint8Array(), proof: ne(D.proof) ? u.Proof.fromJSON(D.proof) : void 0 }), toJSON(D) { + const Z = {}; + return D.index !== void 0 && (Z.index = Math.round(D.index)), D.bytes !== void 0 && (Z.bytes = U(D.bytes !== void 0 ? D.bytes : new Uint8Array())), D.proof !== void 0 && (Z.proof = D.proof ? u.Proof.toJSON(D.proof) : void 0), Z; + }, fromPartial(D) { + var Z, $; + const X = m(); + return X.index = (Z = D.index) !== null && Z !== void 0 ? Z : 0, X.bytes = ($ = D.bytes) !== null && $ !== void 0 ? $ : new Uint8Array(), X.proof = D.proof !== void 0 && D.proof !== null ? u.Proof.fromPartial(D.proof) : void 0, X; + } }, e.BlockID = { encode: (D, Z = t.Writer.create()) => (D.hash.length !== 0 && Z.uint32(10).bytes(D.hash), D.part_set_header !== void 0 && e.PartSetHeader.encode(D.part_set_header, Z.uint32(18).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = M(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.hash = $.bytes(); + break; + case 2: + K.part_set_header = e.PartSetHeader.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ hash: ne(D.hash) ? g(D.hash) : new Uint8Array(), part_set_header: ne(D.part_set_header) ? e.PartSetHeader.fromJSON(D.part_set_header) : void 0 }), toJSON(D) { + const Z = {}; + return D.hash !== void 0 && (Z.hash = U(D.hash !== void 0 ? D.hash : new Uint8Array())), D.part_set_header !== void 0 && (Z.part_set_header = D.part_set_header ? e.PartSetHeader.toJSON(D.part_set_header) : void 0), Z; + }, fromPartial(D) { + var Z; + const $ = M(); + return $.hash = (Z = D.hash) !== null && Z !== void 0 ? Z : new Uint8Array(), $.part_set_header = D.part_set_header !== void 0 && D.part_set_header !== null ? e.PartSetHeader.fromPartial(D.part_set_header) : void 0, $; + } }, e.Header = { encode: (D, Z = t.Writer.create()) => (D.version !== void 0 && d.Consensus.encode(D.version, Z.uint32(10).fork()).ldelim(), D.chain_id !== "" && Z.uint32(18).string(D.chain_id), D.height !== "0" && Z.uint32(24).int64(D.height), D.time !== void 0 && s.Timestamp.encode(D.time, Z.uint32(34).fork()).ldelim(), D.last_block_id !== void 0 && e.BlockID.encode(D.last_block_id, Z.uint32(42).fork()).ldelim(), D.last_commit_hash.length !== 0 && Z.uint32(50).bytes(D.last_commit_hash), D.data_hash.length !== 0 && Z.uint32(58).bytes(D.data_hash), D.validators_hash.length !== 0 && Z.uint32(66).bytes(D.validators_hash), D.next_validators_hash.length !== 0 && Z.uint32(74).bytes(D.next_validators_hash), D.consensus_hash.length !== 0 && Z.uint32(82).bytes(D.consensus_hash), D.app_hash.length !== 0 && Z.uint32(90).bytes(D.app_hash), D.last_results_hash.length !== 0 && Z.uint32(98).bytes(D.last_results_hash), D.evidence_hash.length !== 0 && Z.uint32(106).bytes(D.evidence_hash), D.proposer_address.length !== 0 && Z.uint32(114).bytes(D.proposer_address), D.encrypted_random !== void 0 && e.EncryptedRandom.encode(D.encrypted_random, Z.uint32(122).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = l(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.version = d.Consensus.decode($, $.uint32()); + break; + case 2: + K.chain_id = $.string(); + break; + case 3: + K.height = ee($.int64()); + break; + case 4: + K.time = s.Timestamp.decode($, $.uint32()); + break; + case 5: + K.last_block_id = e.BlockID.decode($, $.uint32()); + break; + case 6: + K.last_commit_hash = $.bytes(); + break; + case 7: + K.data_hash = $.bytes(); + break; + case 8: + K.validators_hash = $.bytes(); + break; + case 9: + K.next_validators_hash = $.bytes(); + break; + case 10: + K.consensus_hash = $.bytes(); + break; + case 11: + K.app_hash = $.bytes(); + break; + case 12: + K.last_results_hash = $.bytes(); + break; + case 13: + K.evidence_hash = $.bytes(); + break; + case 14: + K.proposer_address = $.bytes(); + break; + case 15: + K.encrypted_random = e.EncryptedRandom.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ version: ne(D.version) ? d.Consensus.fromJSON(D.version) : void 0, chain_id: ne(D.chain_id) ? String(D.chain_id) : "", height: ne(D.height) ? String(D.height) : "0", time: ne(D.time) ? re(D.time) : void 0, last_block_id: ne(D.last_block_id) ? e.BlockID.fromJSON(D.last_block_id) : void 0, last_commit_hash: ne(D.last_commit_hash) ? g(D.last_commit_hash) : new Uint8Array(), data_hash: ne(D.data_hash) ? g(D.data_hash) : new Uint8Array(), validators_hash: ne(D.validators_hash) ? g(D.validators_hash) : new Uint8Array(), next_validators_hash: ne(D.next_validators_hash) ? g(D.next_validators_hash) : new Uint8Array(), consensus_hash: ne(D.consensus_hash) ? g(D.consensus_hash) : new Uint8Array(), app_hash: ne(D.app_hash) ? g(D.app_hash) : new Uint8Array(), last_results_hash: ne(D.last_results_hash) ? g(D.last_results_hash) : new Uint8Array(), evidence_hash: ne(D.evidence_hash) ? g(D.evidence_hash) : new Uint8Array(), proposer_address: ne(D.proposer_address) ? g(D.proposer_address) : new Uint8Array(), encrypted_random: ne(D.encrypted_random) ? e.EncryptedRandom.fromJSON(D.encrypted_random) : void 0 }), toJSON(D) { + const Z = {}; + return D.version !== void 0 && (Z.version = D.version ? d.Consensus.toJSON(D.version) : void 0), D.chain_id !== void 0 && (Z.chain_id = D.chain_id), D.height !== void 0 && (Z.height = D.height), D.time !== void 0 && (Z.time = F(D.time).toISOString()), D.last_block_id !== void 0 && (Z.last_block_id = D.last_block_id ? e.BlockID.toJSON(D.last_block_id) : void 0), D.last_commit_hash !== void 0 && (Z.last_commit_hash = U(D.last_commit_hash !== void 0 ? D.last_commit_hash : new Uint8Array())), D.data_hash !== void 0 && (Z.data_hash = U(D.data_hash !== void 0 ? D.data_hash : new Uint8Array())), D.validators_hash !== void 0 && (Z.validators_hash = U(D.validators_hash !== void 0 ? D.validators_hash : new Uint8Array())), D.next_validators_hash !== void 0 && (Z.next_validators_hash = U(D.next_validators_hash !== void 0 ? D.next_validators_hash : new Uint8Array())), D.consensus_hash !== void 0 && (Z.consensus_hash = U(D.consensus_hash !== void 0 ? D.consensus_hash : new Uint8Array())), D.app_hash !== void 0 && (Z.app_hash = U(D.app_hash !== void 0 ? D.app_hash : new Uint8Array())), D.last_results_hash !== void 0 && (Z.last_results_hash = U(D.last_results_hash !== void 0 ? D.last_results_hash : new Uint8Array())), D.evidence_hash !== void 0 && (Z.evidence_hash = U(D.evidence_hash !== void 0 ? D.evidence_hash : new Uint8Array())), D.proposer_address !== void 0 && (Z.proposer_address = U(D.proposer_address !== void 0 ? D.proposer_address : new Uint8Array())), D.encrypted_random !== void 0 && (Z.encrypted_random = D.encrypted_random ? e.EncryptedRandom.toJSON(D.encrypted_random) : void 0), Z; + }, fromPartial(D) { + var Z, $, X, K, Y, L, ae, ce, ue, le, be; + const de = l(); + return de.version = D.version !== void 0 && D.version !== null ? d.Consensus.fromPartial(D.version) : void 0, de.chain_id = (Z = D.chain_id) !== null && Z !== void 0 ? Z : "", de.height = ($ = D.height) !== null && $ !== void 0 ? $ : "0", de.time = D.time !== void 0 && D.time !== null ? s.Timestamp.fromPartial(D.time) : void 0, de.last_block_id = D.last_block_id !== void 0 && D.last_block_id !== null ? e.BlockID.fromPartial(D.last_block_id) : void 0, de.last_commit_hash = (X = D.last_commit_hash) !== null && X !== void 0 ? X : new Uint8Array(), de.data_hash = (K = D.data_hash) !== null && K !== void 0 ? K : new Uint8Array(), de.validators_hash = (Y = D.validators_hash) !== null && Y !== void 0 ? Y : new Uint8Array(), de.next_validators_hash = (L = D.next_validators_hash) !== null && L !== void 0 ? L : new Uint8Array(), de.consensus_hash = (ae = D.consensus_hash) !== null && ae !== void 0 ? ae : new Uint8Array(), de.app_hash = (ce = D.app_hash) !== null && ce !== void 0 ? ce : new Uint8Array(), de.last_results_hash = (ue = D.last_results_hash) !== null && ue !== void 0 ? ue : new Uint8Array(), de.evidence_hash = (le = D.evidence_hash) !== null && le !== void 0 ? le : new Uint8Array(), de.proposer_address = (be = D.proposer_address) !== null && be !== void 0 ? be : new Uint8Array(), de.encrypted_random = D.encrypted_random !== void 0 && D.encrypted_random !== null ? e.EncryptedRandom.fromPartial(D.encrypted_random) : void 0, de; + } }, e.EncryptedRandom = { encode: (D, Z = t.Writer.create()) => (D.random.length !== 0 && Z.uint32(10).bytes(D.random), D.proof.length !== 0 && Z.uint32(18).bytes(D.proof), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = N(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.random = $.bytes(); + break; + case 2: + K.proof = $.bytes(); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ random: ne(D.random) ? g(D.random) : new Uint8Array(), proof: ne(D.proof) ? g(D.proof) : new Uint8Array() }), toJSON(D) { + const Z = {}; + return D.random !== void 0 && (Z.random = U(D.random !== void 0 ? D.random : new Uint8Array())), D.proof !== void 0 && (Z.proof = U(D.proof !== void 0 ? D.proof : new Uint8Array())), Z; + }, fromPartial(D) { + var Z, $; + const X = N(); + return X.random = (Z = D.random) !== null && Z !== void 0 ? Z : new Uint8Array(), X.proof = ($ = D.proof) !== null && $ !== void 0 ? $ : new Uint8Array(), X; + } }, e.Data = { encode(D, Z = t.Writer.create()) { + for (const $ of D.txs) + Z.uint32(10).bytes($); + return Z; + }, decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = { txs: [] }; + for (; $.pos < X; ) { + const Y = $.uint32(); + Y >>> 3 == 1 ? K.txs.push($.bytes()) : $.skipType(7 & Y); + } + return K; + }, fromJSON: (D) => ({ txs: Array.isArray(D == null ? void 0 : D.txs) ? D.txs.map((Z) => g(Z)) : [] }), toJSON(D) { + const Z = {}; + return D.txs ? Z.txs = D.txs.map(($) => U($ !== void 0 ? $ : new Uint8Array())) : Z.txs = [], Z; + }, fromPartial(D) { + var Z; + const $ = { txs: [] }; + return $.txs = ((Z = D.txs) === null || Z === void 0 ? void 0 : Z.map((X) => X)) || [], $; + } }, e.Vote = { encode: (D, Z = t.Writer.create()) => (D.type !== 0 && Z.uint32(8).int32(D.type), D.height !== "0" && Z.uint32(16).int64(D.height), D.round !== 0 && Z.uint32(24).int32(D.round), D.block_id !== void 0 && e.BlockID.encode(D.block_id, Z.uint32(34).fork()).ldelim(), D.timestamp !== void 0 && s.Timestamp.encode(D.timestamp, Z.uint32(42).fork()).ldelim(), D.validator_address.length !== 0 && Z.uint32(50).bytes(D.validator_address), D.validator_index !== 0 && Z.uint32(56).int32(D.validator_index), D.signature.length !== 0 && Z.uint32(66).bytes(D.signature), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = j(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.type = $.int32(); + break; + case 2: + K.height = ee($.int64()); + break; + case 3: + K.round = $.int32(); + break; + case 4: + K.block_id = e.BlockID.decode($, $.uint32()); + break; + case 5: + K.timestamp = s.Timestamp.decode($, $.uint32()); + break; + case 6: + K.validator_address = $.bytes(); + break; + case 7: + K.validator_index = $.int32(); + break; + case 8: + K.signature = $.bytes(); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ type: ne(D.type) ? c(D.type) : 0, height: ne(D.height) ? String(D.height) : "0", round: ne(D.round) ? Number(D.round) : 0, block_id: ne(D.block_id) ? e.BlockID.fromJSON(D.block_id) : void 0, timestamp: ne(D.timestamp) ? re(D.timestamp) : void 0, validator_address: ne(D.validator_address) ? g(D.validator_address) : new Uint8Array(), validator_index: ne(D.validator_index) ? Number(D.validator_index) : 0, signature: ne(D.signature) ? g(D.signature) : new Uint8Array() }), toJSON(D) { + const Z = {}; + return D.type !== void 0 && (Z.type = h(D.type)), D.height !== void 0 && (Z.height = D.height), D.round !== void 0 && (Z.round = Math.round(D.round)), D.block_id !== void 0 && (Z.block_id = D.block_id ? e.BlockID.toJSON(D.block_id) : void 0), D.timestamp !== void 0 && (Z.timestamp = F(D.timestamp).toISOString()), D.validator_address !== void 0 && (Z.validator_address = U(D.validator_address !== void 0 ? D.validator_address : new Uint8Array())), D.validator_index !== void 0 && (Z.validator_index = Math.round(D.validator_index)), D.signature !== void 0 && (Z.signature = U(D.signature !== void 0 ? D.signature : new Uint8Array())), Z; + }, fromPartial(D) { + var Z, $, X, K, Y, L; + const ae = j(); + return ae.type = (Z = D.type) !== null && Z !== void 0 ? Z : 0, ae.height = ($ = D.height) !== null && $ !== void 0 ? $ : "0", ae.round = (X = D.round) !== null && X !== void 0 ? X : 0, ae.block_id = D.block_id !== void 0 && D.block_id !== null ? e.BlockID.fromPartial(D.block_id) : void 0, ae.timestamp = D.timestamp !== void 0 && D.timestamp !== null ? s.Timestamp.fromPartial(D.timestamp) : void 0, ae.validator_address = (K = D.validator_address) !== null && K !== void 0 ? K : new Uint8Array(), ae.validator_index = (Y = D.validator_index) !== null && Y !== void 0 ? Y : 0, ae.signature = (L = D.signature) !== null && L !== void 0 ? L : new Uint8Array(), ae; + } }, e.Commit = { encode(D, Z = t.Writer.create()) { + D.height !== "0" && Z.uint32(8).int64(D.height), D.round !== 0 && Z.uint32(16).int32(D.round), D.block_id !== void 0 && e.BlockID.encode(D.block_id, Z.uint32(26).fork()).ldelim(); + for (const $ of D.signatures) + e.CommitSig.encode($, Z.uint32(34).fork()).ldelim(); + return Z; + }, decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = { height: "0", round: 0, block_id: void 0, signatures: [] }; + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.height = ee($.int64()); + break; + case 2: + K.round = $.int32(); + break; + case 3: + K.block_id = e.BlockID.decode($, $.uint32()); + break; + case 4: + K.signatures.push(e.CommitSig.decode($, $.uint32())); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ height: ne(D.height) ? String(D.height) : "0", round: ne(D.round) ? Number(D.round) : 0, block_id: ne(D.block_id) ? e.BlockID.fromJSON(D.block_id) : void 0, signatures: Array.isArray(D == null ? void 0 : D.signatures) ? D.signatures.map((Z) => e.CommitSig.fromJSON(Z)) : [] }), toJSON(D) { + const Z = {}; + return D.height !== void 0 && (Z.height = D.height), D.round !== void 0 && (Z.round = Math.round(D.round)), D.block_id !== void 0 && (Z.block_id = D.block_id ? e.BlockID.toJSON(D.block_id) : void 0), D.signatures ? Z.signatures = D.signatures.map(($) => $ ? e.CommitSig.toJSON($) : void 0) : Z.signatures = [], Z; + }, fromPartial(D) { + var Z, $, X; + const K = { height: "0", round: 0, block_id: void 0, signatures: [] }; + return K.height = (Z = D.height) !== null && Z !== void 0 ? Z : "0", K.round = ($ = D.round) !== null && $ !== void 0 ? $ : 0, K.block_id = D.block_id !== void 0 && D.block_id !== null ? e.BlockID.fromPartial(D.block_id) : void 0, K.signatures = ((X = D.signatures) === null || X === void 0 ? void 0 : X.map((Y) => e.CommitSig.fromPartial(Y))) || [], K; + } }, e.CommitSig = { encode: (D, Z = t.Writer.create()) => (D.block_id_flag !== 0 && Z.uint32(8).int32(D.block_id_flag), D.validator_address.length !== 0 && Z.uint32(18).bytes(D.validator_address), D.timestamp !== void 0 && s.Timestamp.encode(D.timestamp, Z.uint32(26).fork()).ldelim(), D.signature.length !== 0 && Z.uint32(34).bytes(D.signature), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = R(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.block_id_flag = $.int32(); + break; + case 2: + K.validator_address = $.bytes(); + break; + case 3: + K.timestamp = s.Timestamp.decode($, $.uint32()); + break; + case 4: + K.signature = $.bytes(); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ block_id_flag: ne(D.block_id_flag) ? i(D.block_id_flag) : 0, validator_address: ne(D.validator_address) ? g(D.validator_address) : new Uint8Array(), timestamp: ne(D.timestamp) ? re(D.timestamp) : void 0, signature: ne(D.signature) ? g(D.signature) : new Uint8Array() }), toJSON(D) { + const Z = {}; + return D.block_id_flag !== void 0 && (Z.block_id_flag = f(D.block_id_flag)), D.validator_address !== void 0 && (Z.validator_address = U(D.validator_address !== void 0 ? D.validator_address : new Uint8Array())), D.timestamp !== void 0 && (Z.timestamp = F(D.timestamp).toISOString()), D.signature !== void 0 && (Z.signature = U(D.signature !== void 0 ? D.signature : new Uint8Array())), Z; + }, fromPartial(D) { + var Z, $, X; + const K = R(); + return K.block_id_flag = (Z = D.block_id_flag) !== null && Z !== void 0 ? Z : 0, K.validator_address = ($ = D.validator_address) !== null && $ !== void 0 ? $ : new Uint8Array(), K.timestamp = D.timestamp !== void 0 && D.timestamp !== null ? s.Timestamp.fromPartial(D.timestamp) : void 0, K.signature = (X = D.signature) !== null && X !== void 0 ? X : new Uint8Array(), K; + } }, e.Proposal = { encode: (D, Z = t.Writer.create()) => (D.type !== 0 && Z.uint32(8).int32(D.type), D.height !== "0" && Z.uint32(16).int64(D.height), D.round !== 0 && Z.uint32(24).int32(D.round), D.pol_round !== 0 && Z.uint32(32).int32(D.pol_round), D.block_id !== void 0 && e.BlockID.encode(D.block_id, Z.uint32(42).fork()).ldelim(), D.timestamp !== void 0 && s.Timestamp.encode(D.timestamp, Z.uint32(50).fork()).ldelim(), D.signature.length !== 0 && Z.uint32(58).bytes(D.signature), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = I(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.type = $.int32(); + break; + case 2: + K.height = ee($.int64()); + break; + case 3: + K.round = $.int32(); + break; + case 4: + K.pol_round = $.int32(); + break; + case 5: + K.block_id = e.BlockID.decode($, $.uint32()); + break; + case 6: + K.timestamp = s.Timestamp.decode($, $.uint32()); + break; + case 7: + K.signature = $.bytes(); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ type: ne(D.type) ? c(D.type) : 0, height: ne(D.height) ? String(D.height) : "0", round: ne(D.round) ? Number(D.round) : 0, pol_round: ne(D.pol_round) ? Number(D.pol_round) : 0, block_id: ne(D.block_id) ? e.BlockID.fromJSON(D.block_id) : void 0, timestamp: ne(D.timestamp) ? re(D.timestamp) : void 0, signature: ne(D.signature) ? g(D.signature) : new Uint8Array() }), toJSON(D) { + const Z = {}; + return D.type !== void 0 && (Z.type = h(D.type)), D.height !== void 0 && (Z.height = D.height), D.round !== void 0 && (Z.round = Math.round(D.round)), D.pol_round !== void 0 && (Z.pol_round = Math.round(D.pol_round)), D.block_id !== void 0 && (Z.block_id = D.block_id ? e.BlockID.toJSON(D.block_id) : void 0), D.timestamp !== void 0 && (Z.timestamp = F(D.timestamp).toISOString()), D.signature !== void 0 && (Z.signature = U(D.signature !== void 0 ? D.signature : new Uint8Array())), Z; + }, fromPartial(D) { + var Z, $, X, K, Y; + const L = I(); + return L.type = (Z = D.type) !== null && Z !== void 0 ? Z : 0, L.height = ($ = D.height) !== null && $ !== void 0 ? $ : "0", L.round = (X = D.round) !== null && X !== void 0 ? X : 0, L.pol_round = (K = D.pol_round) !== null && K !== void 0 ? K : 0, L.block_id = D.block_id !== void 0 && D.block_id !== null ? e.BlockID.fromPartial(D.block_id) : void 0, L.timestamp = D.timestamp !== void 0 && D.timestamp !== null ? s.Timestamp.fromPartial(D.timestamp) : void 0, L.signature = (Y = D.signature) !== null && Y !== void 0 ? Y : new Uint8Array(), L; + } }, e.SignedHeader = { encode: (D, Z = t.Writer.create()) => (D.header !== void 0 && e.Header.encode(D.header, Z.uint32(10).fork()).ldelim(), D.commit !== void 0 && e.Commit.encode(D.commit, Z.uint32(18).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = { header: void 0, commit: void 0 }; + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.header = e.Header.decode($, $.uint32()); + break; + case 2: + K.commit = e.Commit.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ header: ne(D.header) ? e.Header.fromJSON(D.header) : void 0, commit: ne(D.commit) ? e.Commit.fromJSON(D.commit) : void 0 }), toJSON(D) { + const Z = {}; + return D.header !== void 0 && (Z.header = D.header ? e.Header.toJSON(D.header) : void 0), D.commit !== void 0 && (Z.commit = D.commit ? e.Commit.toJSON(D.commit) : void 0), Z; + }, fromPartial(D) { + const Z = { header: void 0, commit: void 0 }; + return Z.header = D.header !== void 0 && D.header !== null ? e.Header.fromPartial(D.header) : void 0, Z.commit = D.commit !== void 0 && D.commit !== null ? e.Commit.fromPartial(D.commit) : void 0, Z; + } }, e.LightBlock = { encode: (D, Z = t.Writer.create()) => (D.signed_header !== void 0 && e.SignedHeader.encode(D.signed_header, Z.uint32(10).fork()).ldelim(), D.validator_set !== void 0 && r.ValidatorSet.encode(D.validator_set, Z.uint32(18).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = { signed_header: void 0, validator_set: void 0 }; + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.signed_header = e.SignedHeader.decode($, $.uint32()); + break; + case 2: + K.validator_set = r.ValidatorSet.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ signed_header: ne(D.signed_header) ? e.SignedHeader.fromJSON(D.signed_header) : void 0, validator_set: ne(D.validator_set) ? r.ValidatorSet.fromJSON(D.validator_set) : void 0 }), toJSON(D) { + const Z = {}; + return D.signed_header !== void 0 && (Z.signed_header = D.signed_header ? e.SignedHeader.toJSON(D.signed_header) : void 0), D.validator_set !== void 0 && (Z.validator_set = D.validator_set ? r.ValidatorSet.toJSON(D.validator_set) : void 0), Z; + }, fromPartial(D) { + const Z = { signed_header: void 0, validator_set: void 0 }; + return Z.signed_header = D.signed_header !== void 0 && D.signed_header !== null ? e.SignedHeader.fromPartial(D.signed_header) : void 0, Z.validator_set = D.validator_set !== void 0 && D.validator_set !== null ? r.ValidatorSet.fromPartial(D.validator_set) : void 0, Z; + } }, e.BlockMeta = { encode: (D, Z = t.Writer.create()) => (D.block_id !== void 0 && e.BlockID.encode(D.block_id, Z.uint32(10).fork()).ldelim(), D.block_size !== "0" && Z.uint32(16).int64(D.block_size), D.header !== void 0 && e.Header.encode(D.header, Z.uint32(26).fork()).ldelim(), D.num_txs !== "0" && Z.uint32(32).int64(D.num_txs), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = { block_id: void 0, block_size: "0", header: void 0, num_txs: "0" }; + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.block_id = e.BlockID.decode($, $.uint32()); + break; + case 2: + K.block_size = ee($.int64()); + break; + case 3: + K.header = e.Header.decode($, $.uint32()); + break; + case 4: + K.num_txs = ee($.int64()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ block_id: ne(D.block_id) ? e.BlockID.fromJSON(D.block_id) : void 0, block_size: ne(D.block_size) ? String(D.block_size) : "0", header: ne(D.header) ? e.Header.fromJSON(D.header) : void 0, num_txs: ne(D.num_txs) ? String(D.num_txs) : "0" }), toJSON(D) { + const Z = {}; + return D.block_id !== void 0 && (Z.block_id = D.block_id ? e.BlockID.toJSON(D.block_id) : void 0), D.block_size !== void 0 && (Z.block_size = D.block_size), D.header !== void 0 && (Z.header = D.header ? e.Header.toJSON(D.header) : void 0), D.num_txs !== void 0 && (Z.num_txs = D.num_txs), Z; + }, fromPartial(D) { + var Z, $; + const X = { block_id: void 0, block_size: "0", header: void 0, num_txs: "0" }; + return X.block_id = D.block_id !== void 0 && D.block_id !== null ? e.BlockID.fromPartial(D.block_id) : void 0, X.block_size = (Z = D.block_size) !== null && Z !== void 0 ? Z : "0", X.header = D.header !== void 0 && D.header !== null ? e.Header.fromPartial(D.header) : void 0, X.num_txs = ($ = D.num_txs) !== null && $ !== void 0 ? $ : "0", X; + } }, e.TxProof = { encode: (D, Z = t.Writer.create()) => (D.root_hash.length !== 0 && Z.uint32(10).bytes(D.root_hash), D.data.length !== 0 && Z.uint32(18).bytes(D.data), D.proof !== void 0 && u.Proof.encode(D.proof, Z.uint32(26).fork()).ldelim(), Z), decode(D, Z) { + const $ = D instanceof t.Reader ? D : new t.Reader(D); + let X = Z === void 0 ? $.len : $.pos + Z; + const K = x(); + for (; $.pos < X; ) { + const Y = $.uint32(); + switch (Y >>> 3) { + case 1: + K.root_hash = $.bytes(); + break; + case 2: + K.data = $.bytes(); + break; + case 3: + K.proof = u.Proof.decode($, $.uint32()); + break; + default: + $.skipType(7 & Y); + } + } + return K; + }, fromJSON: (D) => ({ root_hash: ne(D.root_hash) ? g(D.root_hash) : new Uint8Array(), data: ne(D.data) ? g(D.data) : new Uint8Array(), proof: ne(D.proof) ? u.Proof.fromJSON(D.proof) : void 0 }), toJSON(D) { + const Z = {}; + return D.root_hash !== void 0 && (Z.root_hash = U(D.root_hash !== void 0 ? D.root_hash : new Uint8Array())), D.data !== void 0 && (Z.data = U(D.data !== void 0 ? D.data : new Uint8Array())), D.proof !== void 0 && (Z.proof = D.proof ? u.Proof.toJSON(D.proof) : void 0), Z; + }, fromPartial(D) { + var Z, $; + const X = x(); + return X.root_hash = (Z = D.root_hash) !== null && Z !== void 0 ? Z : new Uint8Array(), X.data = ($ = D.data) !== null && $ !== void 0 ? $ : new Uint8Array(), X.proof = D.proof !== void 0 && D.proof !== null ? u.Proof.fromPartial(D.proof) : void 0, X; + } }; + var P = (() => { + if (P !== void 0) + return P; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const w = P.atob || ((D) => P.Buffer.from(D, "base64").toString("binary")); + function g(D) { + const Z = w(D), $ = new Uint8Array(Z.length); + for (let X = 0; X < Z.length; ++X) + $[X] = Z.charCodeAt(X); + return $; + } + const E = P.btoa || ((D) => P.Buffer.from(D, "binary").toString("base64")); + function U(D) { + const Z = []; + for (const $ of D) + Z.push(String.fromCharCode($)); + return E(Z.join("")); + } + function C(D) { + return { seconds: Math.trunc(D.getTime() / 1e3).toString(), nanos: D.getTime() % 1e3 * 1e6 }; + } + function F(D) { + let Z = 1e3 * Number(D.seconds); + return Z += D.nanos / 1e6, new Date(Z); + } + function re(D) { + return D instanceof Date ? C(D) : typeof D == "string" ? C(new Date(D)) : s.Timestamp.fromJSON(D); + } + function ee(D) { + return D.toString(); + } + function ne(D) { + return D != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 3563: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__importDefault || function(c) { + return c && c.__esModule ? c : { default: c }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.SimpleValidator = e.Validator = e.ValidatorSet = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)), u = _(2740); + function d() { + return { address: new Uint8Array(), pub_key: void 0, voting_power: "0", proposer_priority: "0" }; + } + e.protobufPackage = "tendermint.types", e.ValidatorSet = { encode(c, h = t.Writer.create()) { + for (const p of c.validators) + e.Validator.encode(p, h.uint32(10).fork()).ldelim(); + return c.proposer !== void 0 && e.Validator.encode(c.proposer, h.uint32(18).fork()).ldelim(), c.total_voting_power !== "0" && h.uint32(24).int64(c.total_voting_power), h; + }, decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { validators: [], proposer: void 0, total_voting_power: "0" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.validators.push(e.Validator.decode(p, p.uint32())); + break; + case 2: + M.proposer = e.Validator.decode(p, p.uint32()); + break; + case 3: + M.total_voting_power = i(p.int64()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ validators: Array.isArray(c == null ? void 0 : c.validators) ? c.validators.map((h) => e.Validator.fromJSON(h)) : [], proposer: f(c.proposer) ? e.Validator.fromJSON(c.proposer) : void 0, total_voting_power: f(c.total_voting_power) ? String(c.total_voting_power) : "0" }), toJSON(c) { + const h = {}; + return c.validators ? h.validators = c.validators.map((p) => p ? e.Validator.toJSON(p) : void 0) : h.validators = [], c.proposer !== void 0 && (h.proposer = c.proposer ? e.Validator.toJSON(c.proposer) : void 0), c.total_voting_power !== void 0 && (h.total_voting_power = c.total_voting_power), h; + }, fromPartial(c) { + var h, p; + const m = { validators: [], proposer: void 0, total_voting_power: "0" }; + return m.validators = ((h = c.validators) === null || h === void 0 ? void 0 : h.map((M) => e.Validator.fromPartial(M))) || [], m.proposer = c.proposer !== void 0 && c.proposer !== null ? e.Validator.fromPartial(c.proposer) : void 0, m.total_voting_power = (p = c.total_voting_power) !== null && p !== void 0 ? p : "0", m; + } }, e.Validator = { encode: (c, h = t.Writer.create()) => (c.address.length !== 0 && h.uint32(10).bytes(c.address), c.pub_key !== void 0 && u.PublicKey.encode(c.pub_key, h.uint32(18).fork()).ldelim(), c.voting_power !== "0" && h.uint32(24).int64(c.voting_power), c.proposer_priority !== "0" && h.uint32(32).int64(c.proposer_priority), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = d(); + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.address = p.bytes(); + break; + case 2: + M.pub_key = u.PublicKey.decode(p, p.uint32()); + break; + case 3: + M.voting_power = i(p.int64()); + break; + case 4: + M.proposer_priority = i(p.int64()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ address: f(c.address) ? n(c.address) : new Uint8Array(), pub_key: f(c.pub_key) ? u.PublicKey.fromJSON(c.pub_key) : void 0, voting_power: f(c.voting_power) ? String(c.voting_power) : "0", proposer_priority: f(c.proposer_priority) ? String(c.proposer_priority) : "0" }), toJSON(c) { + const h = {}; + return c.address !== void 0 && (h.address = function(p) { + const m = []; + for (const M of p) + m.push(String.fromCharCode(M)); + return o(m.join("")); + }(c.address !== void 0 ? c.address : new Uint8Array())), c.pub_key !== void 0 && (h.pub_key = c.pub_key ? u.PublicKey.toJSON(c.pub_key) : void 0), c.voting_power !== void 0 && (h.voting_power = c.voting_power), c.proposer_priority !== void 0 && (h.proposer_priority = c.proposer_priority), h; + }, fromPartial(c) { + var h, p, m; + const M = d(); + return M.address = (h = c.address) !== null && h !== void 0 ? h : new Uint8Array(), M.pub_key = c.pub_key !== void 0 && c.pub_key !== null ? u.PublicKey.fromPartial(c.pub_key) : void 0, M.voting_power = (p = c.voting_power) !== null && p !== void 0 ? p : "0", M.proposer_priority = (m = c.proposer_priority) !== null && m !== void 0 ? m : "0", M; + } }, e.SimpleValidator = { encode: (c, h = t.Writer.create()) => (c.pub_key !== void 0 && u.PublicKey.encode(c.pub_key, h.uint32(10).fork()).ldelim(), c.voting_power !== "0" && h.uint32(16).int64(c.voting_power), h), decode(c, h) { + const p = c instanceof t.Reader ? c : new t.Reader(c); + let m = h === void 0 ? p.len : p.pos + h; + const M = { pub_key: void 0, voting_power: "0" }; + for (; p.pos < m; ) { + const l = p.uint32(); + switch (l >>> 3) { + case 1: + M.pub_key = u.PublicKey.decode(p, p.uint32()); + break; + case 2: + M.voting_power = i(p.int64()); + break; + default: + p.skipType(7 & l); + } + } + return M; + }, fromJSON: (c) => ({ pub_key: f(c.pub_key) ? u.PublicKey.fromJSON(c.pub_key) : void 0, voting_power: f(c.voting_power) ? String(c.voting_power) : "0" }), toJSON(c) { + const h = {}; + return c.pub_key !== void 0 && (h.pub_key = c.pub_key ? u.PublicKey.toJSON(c.pub_key) : void 0), c.voting_power !== void 0 && (h.voting_power = c.voting_power), h; + }, fromPartial(c) { + var h; + const p = { pub_key: void 0, voting_power: "0" }; + return p.pub_key = c.pub_key !== void 0 && c.pub_key !== null ? u.PublicKey.fromPartial(c.pub_key) : void 0, p.voting_power = (h = c.voting_power) !== null && h !== void 0 ? h : "0", p; + } }; + var s = (() => { + if (s !== void 0) + return s; + if (typeof self < "u") + return self; + if (typeof window < "u") + return window; + if (_.g !== void 0) + return _.g; + throw "Unable to locate global object"; + })(); + const r = s.atob || ((c) => s.Buffer.from(c, "base64").toString("binary")); + function n(c) { + const h = r(c), p = new Uint8Array(h.length); + for (let m = 0; m < h.length; ++m) + p[m] = h.charCodeAt(m); + return p; + } + const o = s.btoa || ((c) => s.Buffer.from(c, "binary").toString("base64")); + function i(c) { + return c.toString(); + } + function f(c) { + return c != null; + } + t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 5640: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__importDefault || function(s) { + return s && s.__esModule ? s : { default: s }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Consensus = e.App = e.protobufPackage = void 0; + const a = b(_(3720)), t = k(_(2100)); + function u(s) { + return s.toString(); + } + function d(s) { + return s != null; + } + e.protobufPackage = "tendermint.version", e.App = { encode: (s, r = t.Writer.create()) => (s.protocol !== "0" && r.uint32(8).uint64(s.protocol), s.software !== "" && r.uint32(18).string(s.software), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { protocol: "0", software: "" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.protocol = u(n.uint64()); + break; + case 2: + i.software = n.string(); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ protocol: d(s.protocol) ? String(s.protocol) : "0", software: d(s.software) ? String(s.software) : "" }), toJSON(s) { + const r = {}; + return s.protocol !== void 0 && (r.protocol = s.protocol), s.software !== void 0 && (r.software = s.software), r; + }, fromPartial(s) { + var r, n; + const o = { protocol: "0", software: "" }; + return o.protocol = (r = s.protocol) !== null && r !== void 0 ? r : "0", o.software = (n = s.software) !== null && n !== void 0 ? n : "", o; + } }, e.Consensus = { encode: (s, r = t.Writer.create()) => (s.block !== "0" && r.uint32(8).uint64(s.block), s.app !== "0" && r.uint32(16).uint64(s.app), r), decode(s, r) { + const n = s instanceof t.Reader ? s : new t.Reader(s); + let o = r === void 0 ? n.len : n.pos + r; + const i = { block: "0", app: "0" }; + for (; n.pos < o; ) { + const f = n.uint32(); + switch (f >>> 3) { + case 1: + i.block = u(n.uint64()); + break; + case 2: + i.app = u(n.uint64()); + break; + default: + n.skipType(7 & f); + } + } + return i; + }, fromJSON: (s) => ({ block: d(s.block) ? String(s.block) : "0", app: d(s.app) ? String(s.app) : "0" }), toJSON(s) { + const r = {}; + return s.block !== void 0 && (r.block = s.block), s.app !== void 0 && (r.app = s.app), r; + }, fromPartial(s) { + var r, n; + const o = { block: "0", app: "0" }; + return o.block = (r = s.block) !== null && r !== void 0 ? r : "0", o.app = (n = s.app) !== null && n !== void 0 ? n : "0", o; + } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); + }, 2076: function(J, e, _) { + var O = this && this.__awaiter || function(k, b, a, t) { + return new (a || (a = Promise))(function(u, d) { + function s(o) { + try { + n(t.next(o)); + } catch (i) { + d(i); + } + } + function r(o) { + try { + n(t.throw(o)); + } catch (i) { + d(i); + } + } + function n(o) { + var i; + o.done ? u(o.value) : (i = o.value, i instanceof a ? i : new a(function(f) { + f(i); + })).then(s, r); + } + n((t = t.apply(k, b || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthQuerier = void 0; + const A = _(3004); + e.AuthQuerier = class { + constructor(k) { + this.url = k; + } + accounts(k, b) { + return O(this, void 0, void 0, function* () { + return A.Query.Accounts(k, { headers: b, pathPrefix: this.url }); + }); + } + account(k, b) { + return O(this, void 0, void 0, function* () { + return A.Query.Account(k, { headers: b, pathPrefix: this.url }); + }); + } + params(k, b) { + return O(this, void 0, void 0, function* () { + return A.Query.Params(k, { headers: b, pathPrefix: this.url }); + }); + } + moduleAccountByName(k, b) { + return O(this, void 0, void 0, function* () { + return A.Query.ModuleAccountByName(k, { headers: b, pathPrefix: this.url }); + }); + } + }; + }, 298: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthzQuerier = void 0; + const O = _(3704); + e.AuthzQuerier = class { + constructor(A) { + this.url = A; + } + grants(A, k) { + return O.Query.Grants(A, { headers: k, pathPrefix: this.url }); + } + granterGrants(A, k) { + return O.Query.GranterGrants(A, { headers: k, pathPrefix: this.url }); + } + granteeGrants(A, k) { + return O.Query.GranteeGrants(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 8622: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.BankQuerier = void 0; + const O = _(1926); + e.BankQuerier = class { + constructor(A) { + this.url = A; + } + balance(A, k) { + return O.Query.Balance(A, { headers: k, pathPrefix: this.url }); + } + allBalances(A, k) { + return O.Query.AllBalances(A, { headers: k, pathPrefix: this.url }); + } + spendableBalances(A, k) { + return O.Query.SpendableBalances(A, { headers: k, pathPrefix: this.url }); + } + totalSupply(A, k) { + return O.Query.TotalSupply(A, { headers: k, pathPrefix: this.url }); + } + supplyOf(A, k) { + return O.Query.SupplyOf(A, { headers: k, pathPrefix: this.url }); + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + denomMetadata(A, k) { + return O.Query.DenomMetadata(A, { headers: k, pathPrefix: this.url }); + } + denomsMetadata(A, k) { + return O.Query.DenomsMetadata(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 8526: function(J, e, _) { + var O = _(5108), A = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + var p; + h.done ? n(h.value) : (p = h.value, p instanceof s ? p : new s(function(m) { + m(p); + })).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.ComputeQuerier = void 0; + const k = _(8972), b = _(3607), a = _(8136), t = _(5250); + e.ComputeQuerier = class { + constructor(u, d) { + this.url = u, this.encryption = d, this.codeHashCache = /* @__PURE__ */ new Map(), this.encryption || (this.encryption = new a.EncryptionUtilsImpl(u)); + } + contractInfo(u, d) { + return t.Query.ContractInfo(u, { headers: d, pathPrefix: this.url }); + } + contractsByCodeId(u, d) { + return t.Query.ContractsByCodeId(u, { headers: d, pathPrefix: this.url }); + } + code(u, d) { + return t.Query.Code(u, { headers: d, pathPrefix: this.url }); + } + codes(u, d) { + return t.Query.Codes(u, { headers: d, pathPrefix: this.url }); + } + codeHashByContractAddress(u, d) { + return A(this, void 0, void 0, function* () { + let s = this.codeHashCache.get(u.contract_address); + return s || ({ code_hash: s } = yield t.Query.CodeHashByContractAddress(u, { headers: d, pathPrefix: this.url }), this.codeHashCache.set(u.contract_address, s)), { code_hash: s }; + }); + } + codeHashByCodeId(u, d) { + return A(this, void 0, void 0, function* () { + let s = this.codeHashCache.get(u.code_id); + return s || ({ code_hash: s } = yield t.Query.CodeHashByCodeId({ code_id: u.code_id }, { headers: d, pathPrefix: this.url }), this.codeHashCache.set(u.code_id, s)), { code_hash: s }; + }); + } + labelByAddress(u, d) { + return t.Query.LabelByAddress(u, { headers: d, pathPrefix: this.url }); + } + addressByLabel(u, d) { + return t.Query.AddressByLabel(u, { headers: d, pathPrefix: this.url }); + } + queryContract({ contract_address: u, code_hash: d, query: s }, r) { + return A(this, void 0, void 0, function* () { + d || (O.warn((0, b.getMissingCodeHashWarning)("queryContract()")), { code_hash: d } = yield this.codeHashByContractAddress({ contract_address: u })), d = d.replace("0x", "").toLowerCase(); + const n = yield this.encryption.encrypt(d, s), o = n.slice(0, 32); + try { + const { data: i } = yield t.Query.QuerySecretContract({ contract_address: u, query: n }, { headers: r, pathPrefix: this.url }), f = yield this.encryption.decrypt((0, k.fromBase64)(i), o); + return f != null && f.length ? JSON.parse((0, k.fromUtf8)((0, k.fromBase64)((0, k.fromUtf8)(f)))) : {}; + } catch (i) { + try { + const f = /encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(i.message); + if (f == null || (f == null ? void 0 : f.length) != 2) + throw i; + const c = (0, k.fromBase64)(f[1]), h = yield this.encryption.decrypt(c, o); + try { + return (0, k.fromUtf8)((0, k.fromBase64)((0, k.fromUtf8)(h))); + } catch (p) { + if (p.message === "Invalid base64 string format") + return (0, k.fromUtf8)(h); + throw i; + } + } catch { + throw i; + } + } + }); + } + contractHistory(u, d) { + return A(this, void 0, void 0, function* () { + const { entries: s } = yield t.Query.ContractHistory(u, { headers: d, pathPrefix: this.url }); + let r = []; + for (const n of s ?? []) { + let o = n.msg; + try { + const i = (0, k.fromBase64)(o), f = i.slice(0, 32), c = i.slice(64), h = yield this.encryption.decrypt(c, f); + o = (0, k.fromUtf8)(h).slice(64); + } catch { + } + r.push({ operation: n.operation, code_id: n.code_id, updated: n.updated, msg: o }); + } + return { entries: r }; + }); + } + }; + }, 2012: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.DistributionQuerier = void 0; + const O = _(406); + e.DistributionQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + validatorOutstandingRewards(A, k) { + return O.Query.ValidatorOutstandingRewards(A, { headers: k, pathPrefix: this.url }); + } + validatorCommission(A, k) { + return O.Query.ValidatorCommission(A, { headers: k, pathPrefix: this.url }); + } + validatorSlashes(A, k) { + return O.Query.ValidatorSlashes(A, { headers: k, pathPrefix: this.url }); + } + delegationRewards(A, k) { + return O.Query.DelegationRewards(A, { headers: k, pathPrefix: this.url }); + } + delegationTotalRewards(A, k) { + return O.Query.DelegationTotalRewards(A, { headers: k, pathPrefix: this.url }); + } + delegatorValidators(A, k) { + return O.Query.DelegatorValidators(A, { headers: k, pathPrefix: this.url }); + } + delegatorWithdrawAddress(A, k) { + return O.Query.DelegatorWithdrawAddress(A, { headers: k, pathPrefix: this.url }); + } + communityPool(A, k) { + return O.Query.CommunityPool(A, { headers: k, pathPrefix: this.url }); + } + foundationTax(A, k) { + return O.Query.FoundationTax(A, { headers: k, pathPrefix: this.url }); + } + restakeThreshold(A, k) { + return O.Query.RestakeThreshold(A, { headers: k, pathPrefix: this.url }); + } + restakingEntries(A, k) { + return O.Query.RestakingEntries(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 5468: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.EmergencyButtonQuerier = void 0; + const O = _(71); + e.EmergencyButtonQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 3394: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.EvidenceQuerier = void 0; + const O = _(6898); + e.EvidenceQuerier = class { + constructor(A) { + this.url = A; + } + evidence(A, k) { + return O.Query.Evidence(A, { headers: k, pathPrefix: this.url }); + } + allEvidence(A, k) { + return O.Query.AllEvidence(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 380: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.FeegrantQuerier = void 0; + const O = _(876); + e.FeegrantQuerier = class { + constructor(A) { + this.url = A; + } + allowance(A, k) { + return O.Query.Allowance(A, { headers: k, pathPrefix: this.url }); + } + allowances(A, k) { + return O.Query.Allowances(A, { headers: k, pathPrefix: this.url }); + } + allowancesByGranter(A, k) { + return O.Query.AllowancesByGranter(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 3095: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.GovQuerier = void 0; + const O = _(7331); + e.GovQuerier = class { + constructor(A) { + this.url = A; + } + proposal(A, k) { + return O.Query.Proposal(A, { headers: k, pathPrefix: this.url }); + } + proposals(A, k) { + return O.Query.Proposals(A, { headers: k, pathPrefix: this.url }); + } + vote(A, k) { + return O.Query.Vote(A, { headers: k, pathPrefix: this.url }); + } + votes(A, k) { + return O.Query.Votes(A, { headers: k, pathPrefix: this.url }); + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + deposit(A, k) { + return O.Query.Deposit(A, { headers: k, pathPrefix: this.url }); + } + deposits(A, k) { + return O.Query.Deposits(A, { headers: k, pathPrefix: this.url }); + } + tallyResult(A, k) { + return O.Query.TallyResult(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 7807: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcChannelQuerier = void 0; + const O = _(6409); + e.IbcChannelQuerier = class { + constructor(A) { + this.url = A; + } + channel(A, k) { + return O.Query.Channel(A, { headers: k, pathPrefix: this.url }); + } + channels(A, k) { + return O.Query.Channels(A, { headers: k, pathPrefix: this.url }); + } + connectionChannels(A, k) { + return O.Query.ConnectionChannels(A, { headers: k, pathPrefix: this.url }); + } + channelClientState(A, k) { + return O.Query.ChannelClientState(A, { headers: k, pathPrefix: this.url }); + } + channelConsensusState(A, k) { + return O.Query.ChannelConsensusState(A, { headers: k, pathPrefix: this.url }); + } + packetCommitment(A, k) { + return O.Query.PacketCommitment(A, { headers: k, pathPrefix: this.url }); + } + packetCommitments(A, k) { + return O.Query.PacketCommitments(A, { headers: k, pathPrefix: this.url }); + } + packetReceipt(A, k) { + return O.Query.PacketReceipt(A, { headers: k, pathPrefix: this.url }); + } + packetAcknowledgement(A, k) { + return O.Query.PacketAcknowledgement(A, { headers: k, pathPrefix: this.url }); + } + packetAcknowledgements(A, k) { + return O.Query.PacketAcknowledgements(A, { headers: k, pathPrefix: this.url }); + } + unreceivedPackets(A, k) { + return O.Query.UnreceivedPackets(A, { headers: k, pathPrefix: this.url }); + } + unreceivedAcks(A, k) { + return O.Query.UnreceivedAcks(A, { headers: k, pathPrefix: this.url }); + } + nextSequenceReceive(A, k) { + return O.Query.NextSequenceReceive(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 1654: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcClientQuerier = void 0; + const O = _(301); + e.IbcClientQuerier = class { + constructor(A) { + this.url = A; + } + clientState(A, k) { + return O.Query.ClientState(A, { headers: k, pathPrefix: this.url }); + } + clientStates(A, k) { + return O.Query.ClientStates(A, { headers: k, pathPrefix: this.url }); + } + consensusState(A, k) { + return O.Query.ConsensusState(A, { headers: k, pathPrefix: this.url }); + } + consensusStates(A, k) { + return O.Query.ConsensusStates(A, { headers: k, pathPrefix: this.url }); + } + clientStatus(A, k) { + return O.Query.ClientStatus(A, { headers: k, pathPrefix: this.url }); + } + clientParams(A, k) { + return O.Query.ClientParams(A, { headers: k, pathPrefix: this.url }); + } + upgradedClientState(A, k) { + return O.Query.UpgradedClientState(A, { headers: k, pathPrefix: this.url }); + } + upgradedConsensusState(A, k) { + return O.Query.UpgradedConsensusState(A, { headers: k, pathPrefix: this.url }); + } + consensusStateHeights(A, k) { + return O.Query.ConsensusStateHeights(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 2840: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcConnectionQuerier = void 0; + const O = _(5258); + e.IbcConnectionQuerier = class { + constructor(A) { + this.url = A; + } + connection(A, k) { + return O.Query.Connection(A, { headers: k, pathPrefix: this.url }); + } + connections(A, k) { + return O.Query.Connections(A, { headers: k, pathPrefix: this.url }); + } + clientConnections(A, k) { + return O.Query.ClientConnections(A, { headers: k, pathPrefix: this.url }); + } + connectionClientState(A, k) { + return O.Query.ConnectionClientState(A, { headers: k, pathPrefix: this.url }); + } + connectionConsensusState(A, k) { + return O.Query.ConnectionConsensusState(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 5570: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcFeeQuerier = void 0; + const O = _(187); + e.IbcFeeQuerier = class { + constructor(A) { + this.url = A; + } + incentivizedPackets(A, k) { + return O.Query.IncentivizedPackets(A, { headers: k, pathPrefix: this.url }); + } + incentivizedPacket(A, k) { + return O.Query.IncentivizedPacket(A, { headers: k, pathPrefix: this.url }); + } + incentivizedPacketsForChannel(A, k) { + return O.Query.IncentivizedPacketsForChannel(A, { headers: k, pathPrefix: this.url }); + } + totalRecvFees(A, k) { + return O.Query.TotalRecvFees(A, { headers: k, pathPrefix: this.url }); + } + totalAckFees(A, k) { + return O.Query.TotalAckFees(A, { headers: k, pathPrefix: this.url }); + } + totalTimeoutFees(A, k) { + return O.Query.TotalTimeoutFees(A, { headers: k, pathPrefix: this.url }); + } + payee(A, k) { + return O.Query.Payee(A, { headers: k, pathPrefix: this.url }); + } + counterpartyPayee(A, k) { + return O.Query.CounterpartyPayee(A, { headers: k, pathPrefix: this.url }); + } + feeEnabledChannels(A, k) { + return O.Query.FeeEnabledChannels(A, { headers: k, pathPrefix: this.url }); + } + feeEnabledChannel(A, k) { + return O.Query.FeeEnabledChannel(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 5037: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcInterchainAccountsControllerQuerier = void 0; + const O = _(2847); + e.IbcInterchainAccountsControllerQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + interchainAccount(A, k) { + return O.Query.InterchainAccount(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 3635: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcInterchainAccountsHostQuerier = void 0; + const O = _(1154); + e.IbcInterchainAccountsHostQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 9637: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcPacketForwardQuerier = void 0; + const O = _(1692); + e.IbcPacketForwardQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 1387: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcTransferQuerier = void 0; + const O = _(4921); + e.IbcTransferQuerier = class { + constructor(A) { + this.url = A; + } + denomTrace(A, k) { + return O.Query.DenomTrace(A, { headers: k, pathPrefix: this.url }); + } + denomTraces(A, k) { + return O.Query.DenomTraces(A, { headers: k, pathPrefix: this.url }); + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + denomHash(A, k) { + return O.Query.DenomHash(A, { headers: k, pathPrefix: this.url }); + } + escrowAddress(A, k) { + return O.Query.EscrowAddress(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 9150: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(k, b, a, t) { + t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { + return b[a]; + } }); + } : function(k, b, a, t) { + t === void 0 && (t = a), k[t] = b[a]; + }), A = this && this.__exportStar || function(k, b) { + for (var a in k) + a === "default" || Object.prototype.hasOwnProperty.call(b, a) || O(b, k, a); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), A(_(2076), e), A(_(298), e), A(_(8622), e), A(_(8526), e), A(_(2012), e), A(_(3394), e), A(_(380), e), A(_(3095), e), A(_(7807), e), A(_(1654), e), A(_(2840), e), A(_(1387), e), A(_(5714), e), A(_(5932), e), A(_(8513), e), A(_(4482), e), A(_(7224), e), A(_(5562), e), A(_(7174), e), A(_(1743), e), A(_(6189), e), A(_(5468), e); + }, 5714: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MauthQuerier = void 0; + const O = _(9743); + e.MauthQuerier = class { + constructor(A) { + this.url = A; + } + interchainAccountFromAddress(A, k) { + return O.Query.InterchainAccountFromAddress(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 5932: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MintQuerier = void 0; + const O = _(468); + e.MintQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + inflation(A, k) { + return O.Query.Inflation(A, { headers: k, pathPrefix: this.url }); + } + annualProvisions(A, k) { + return O.Query.AnnualProvisions(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 8513: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.NodeQuerier = void 0; + const O = _(4210); + e.NodeQuerier = class { + constructor(A) { + this.url = A; + } + config(A, k) { + return O.Service.Config(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 4482: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ParamsQuerier = void 0; + const O = _(5440); + e.ParamsQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 7224: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.RegistrationQuerier = void 0; + const O = _(6402); + e.RegistrationQuerier = class { + constructor(A) { + this.url = A; + } + txKey(A, k) { + return O.Query.TxKey(A, { headers: k, pathPrefix: this.url }); + } + registrationKey(A, k) { + return O.Query.RegistrationKey(A, { headers: k, pathPrefix: this.url }); + } + encryptedSeed(A, k) { + return O.Query.EncryptedSeed(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 5562: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.SlashingQuerier = void 0; + const O = _(1575); + e.SlashingQuerier = class { + constructor(A) { + this.url = A; + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + signingInfo(A, k) { + return O.Query.SigningInfo(A, { headers: k, pathPrefix: this.url }); + } + signingInfos(A, k) { + return O.Query.SigningInfos(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 7174: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.StakingQuerier = void 0; + const O = _(4066); + e.StakingQuerier = class { + constructor(A) { + this.url = A; + } + validators(A, k) { + return O.Query.Validators(A, { headers: k, pathPrefix: this.url }); + } + validator(A, k) { + return O.Query.Validator(A, { headers: k, pathPrefix: this.url }); + } + validatorDelegations(A, k) { + return O.Query.ValidatorDelegations(A, { headers: k, pathPrefix: this.url }); + } + validatorUnbondingDelegations(A, k) { + return O.Query.ValidatorUnbondingDelegations(A, { headers: k, pathPrefix: this.url }); + } + delegation(A, k) { + return O.Query.Delegation(A, { headers: k, pathPrefix: this.url }); + } + unbondingDelegation(A, k) { + return O.Query.UnbondingDelegation(A, { headers: k, pathPrefix: this.url }); + } + delegatorDelegations(A, k) { + return O.Query.DelegatorDelegations(A, { headers: k, pathPrefix: this.url }); + } + delegatorUnbondingDelegations(A, k) { + return O.Query.DelegatorUnbondingDelegations(A, { headers: k, pathPrefix: this.url }); + } + redelegations(A, k) { + return O.Query.Redelegations(A, { headers: k, pathPrefix: this.url }); + } + delegatorValidators(A, k) { + return O.Query.DelegatorValidators(A, { headers: k, pathPrefix: this.url }); + } + delegatorValidator(A, k) { + return O.Query.DelegatorValidator(A, { headers: k, pathPrefix: this.url }); + } + historicalInfo(A, k) { + return O.Query.HistoricalInfo(A, { headers: k, pathPrefix: this.url }); + } + pool(A, k) { + return O.Query.Pool(A, { headers: k, pathPrefix: this.url }); + } + params(A, k) { + return O.Query.Params(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 1743: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.TendermintQuerier = void 0; + const O = _(2390); + e.TendermintQuerier = class { + constructor(A) { + this.url = A; + } + getNodeInfo(A, k) { + return O.Service.GetNodeInfo(A, { headers: k, pathPrefix: this.url }); + } + getSyncing(A, k) { + return O.Service.GetSyncing(A, { headers: k, pathPrefix: this.url }); + } + getLatestBlock(A, k) { + return O.Service.GetLatestBlock(A, { headers: k, pathPrefix: this.url }); + } + getBlockByHeight(A, k) { + return O.Service.GetBlockByHeight(A, { headers: k, pathPrefix: this.url }); + } + getLatestValidatorSet(A, k) { + return O.Service.GetLatestValidatorSet(A, { headers: k, pathPrefix: this.url }); + } + getValidatorSetByHeight(A, k) { + return O.Service.GetValidatorSetByHeight(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 6189: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.UpgradeQuerier = void 0; + const O = _(2265); + e.UpgradeQuerier = class { + constructor(A) { + this.url = A; + } + currentPlan(A, k) { + return O.Query.CurrentPlan(A, { headers: k, pathPrefix: this.url }); + } + appliedPlan(A, k) { + return O.Query.AppliedPlan(A, { headers: k, pathPrefix: this.url }); + } + upgradedConsensusState(A, k) { + return O.Query.UpgradedConsensusState(A, { headers: k, pathPrefix: this.url }); + } + moduleVersions(A, k) { + return O.Query.ModuleVersions(A, { headers: k, pathPrefix: this.url }); + } + }; + }, 1972: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(V, Q, G, H) { + H === void 0 && (H = G), Object.defineProperty(V, H, { enumerable: !0, get: function() { + return Q[G]; + } }); + } : function(V, Q, G, H) { + H === void 0 && (H = G), V[H] = Q[G]; + }), A = this && this.__setModuleDefault || (Object.create ? function(V, Q) { + Object.defineProperty(V, "default", { enumerable: !0, value: Q }); + } : function(V, Q) { + V.default = Q; + }), k = this && this.__importStar || function(V) { + if (V && V.__esModule) + return V; + var Q = {}; + if (V != null) + for (var G in V) + G !== "default" && Object.prototype.hasOwnProperty.call(V, G) && O(Q, V, G); + return A(Q, V), Q; + }, b = this && this.__awaiter || function(V, Q, G, H) { + return new (G || (G = Promise))(function(ie, se) { + function fe(me) { + try { + ve(H.next(me)); + } catch (ge) { + se(ge); + } + } + function he(me) { + try { + ve(H.throw(me)); + } catch (ge) { + se(ge); + } + } + function ve(me) { + var ge; + me.done ? ie(me.value) : (ge = me.value, ge instanceof G ? ge : new G(function(ye) { + ye(ge); + })).then(fe, he); + } + ve((H = H.apply(V, Q || [])).next()); + }); + }; + if (Object.defineProperty(e, "__esModule", { value: !0 }), e.TxResultCode = e.gasToFee = e.SecretNetworkClient = e.ReadonlySigner = e.BroadcastMode = void 0, typeof window > "u" || window.fetch === void 0) { + const V = _(4098); + _.g.fetch = V; + } + const a = _(8972), t = _(3061), u = _(3607), d = _(8136), s = _(3117), r = _(1610), n = _(4447), o = _(7350), i = _(8471), f = _(2412), c = _(6519), h = _(9849), p = _(5818), m = _(6010), M = _(6994), l = _(4191), N = _(2896), j = _(2076), R = _(298), I = _(8622), x = _(8526), P = _(2012), w = _(5468), g = _(3394), E = _(380), U = _(3095), C = _(7807), F = _(1654), re = _(2840), ee = _(5570), ne = _(5037), D = _(3635), Z = _(9637), $ = _(1387), X = _(5932), K = _(4482), Y = _(7224), L = _(5562), ae = _(7174), ce = _(1743), ue = _(6189), le = _(3745), be = _(6049), de = _(8772), pe = _(5498), _e = _(5360); + var W, v; + (function(V) { + V.Block = "Block", V.Sync = "Sync", V.Async = "Async"; + })(W = e.BroadcastMode || (e.BroadcastMode = {})); + class y { + getAccounts() { + throw new Error("getAccounts() is not supported in readonly mode."); + } + signAmino(Q, G) { + throw new Error("signAmino() is not supported in readonly mode."); + } + } + function S(V) { + return new Promise((Q) => setTimeout(Q, V)); + } + function T(V, Q) { + return Math.ceil(V * Q); + } + function B(V, Q, G, H, ie) { + return b(this, void 0, void 0, function* () { + ie || (ie = (yield Promise.resolve().then(() => k(_(8502)))).SignMode.SIGN_MODE_DIRECT); + const se = { signer_infos: z(V, ie), fee: { amount: [...Q], gas_limit: String(G), granter: H ?? "", payer: "" } }, { AuthInfo: fe } = yield Promise.resolve().then(() => k(_(6994))); + return fe.encode(fe.fromPartial(se)).finish(); + }); + } + function z(V, Q) { + return V.map(({ pubkey: G, sequence: H }) => ({ public_key: G, mode_info: { single: { mode: Q } }, sequence: String(H) })); + } + function q(V) { + return b(this, void 0, void 0, function* () { + const { Any: Q } = yield Promise.resolve().then(() => k(_(4191))); + if (function(G) { + return G.type === "tendermint/PubKeySecp256k1"; + }(V)) { + const { PubKey: G } = yield Promise.resolve().then(() => k(_(6010))), H = G.fromPartial({ key: (0, a.fromBase64)(V.value) }); + return Q.fromPartial({ type_url: "/cosmos.crypto.secp256k1.PubKey", value: Uint8Array.from(G.encode(H).finish()) }); + } + if (function(G) { + return G.type === "tendermint/PubKeyMultisigThreshold"; + }(V)) { + const { LegacyAminoPubKey: G } = yield Promise.resolve().then(() => k(_(5818))), H = G.fromPartial({ threshold: Number(V.value.threshold), public_keys: V.value.pubkeys.map(q) }); + return Q.fromPartial({ type_url: "/cosmos.crypto.multisig.LegacyAminoPubKey", value: Uint8Array.from(G.encode(H).finish()) }); + } + throw new Error(`Pubkey type ${V.type} not recognized`); + }); + } + function te(V) { + if (typeof V != "object" || V === null) + return V; + if (Array.isArray(V)) + return V.map(te); + if (Object.keys(V).length === 2 && typeof V.type_url == "string" && typeof V.value == "object") + return Object.assign({ "@type": V.type_url }, te(V.value)); + const Q = {}; + return Object.keys(V).forEach((G) => { + Q[G] = te(V[G]); + }), Q; + } + function oe() { + return { pub_key: { type: "tendermint/PubKeySecp256k1", value: (0, a.toBase64)(new Uint8Array(33).fill(0)) }, signature: (0, a.toBase64)(new Uint8Array(64).fill(0)) }; + } + e.ReadonlySigner = y, e.SecretNetworkClient = class { + constructor(V) { + var Q, G; + if (this.url = V.url.replace(/\/*$/g, ""), this.query = { auth: new j.AuthQuerier(V.url), authz: new R.AuthzQuerier(V.url), bank: new I.BankQuerier(V.url), compute: new x.ComputeQuerier(V.url), snip20: new i.Snip20Querier(V.url), snip721: new f.Snip721Querier(V.url), snip1155: new n.Snip1155Querier(V.url), distribution: new P.DistributionQuerier(V.url), evidence: new g.EvidenceQuerier(V.url), feegrant: new E.FeegrantQuerier(V.url), gov: new U.GovQuerier(V.url), ibc_channel: new C.IbcChannelQuerier(V.url), ibc_client: new F.IbcClientQuerier(V.url), ibc_connection: new re.IbcConnectionQuerier(V.url), ibc_transfer: new $.IbcTransferQuerier(V.url), ibc_iterchain_accounts_host: new D.IbcInterchainAccountsHostQuerier(V.url), ibc_iterchain_accounts_controller: new ne.IbcInterchainAccountsControllerQuerier(V.url), ibc_fee: new ee.IbcFeeQuerier(V.url), ibc_packet_forward: new Z.IbcPacketForwardQuerier(V.url), emergency_button: new w.EmergencyButtonQuerier(V.url), mauth: new u.MauthQuerier(V.url), mint: new X.MintQuerier(V.url), node: new u.NodeQuerier(V.url), params: new K.ParamsQuerier(V.url), registration: new Y.RegistrationQuerier(V.url), slashing: new L.SlashingQuerier(V.url), staking: new ae.StakingQuerier(V.url), tendermint: new ce.TendermintQuerier(V.url), upgrade: new ue.UpgradeQuerier(V.url), getTx: (ie, se) => this.getTx(ie, se), txsQuery: (ie, se, fe, he) => this.txsQuery(ie, se, fe, he) }, V.wallet && V.walletAddress === void 0) + throw new Error("Must also pass 'walletAddress' when passing 'wallet'"); + this.wallet = (Q = V.wallet) !== null && Q !== void 0 ? Q : new y(), this.address = (G = V.walletAddress) !== null && G !== void 0 ? G : "", this.chainId = V.chainId, this.utils = { accessControl: { permit: new s.PermitSigner(this.wallet) } }; + const H = (ie) => { + const se = (fe, he) => this.tx.broadcast([new ie(fe)], he); + return se.simulate = (fe, he) => this.tx.simulate([new ie(fe)], he), se; + }; + this.tx = { signTx: this.signTx.bind(this), broadcastSignedTx: this.broadcastSignedTx.bind(this), broadcast: this.signAndBroadcast.bind(this), simulate: this.simulate.bind(this), snip20: { send: H(i.MsgSnip20Send), transfer: H(i.MsgSnip20Transfer), increaseAllowance: H(i.MsgSnip20IncreaseAllowance), decreaseAllowance: H(i.MsgSnip20DecreaseAllowance), setViewingKey: H(r.MsgSetViewingKey), createViewingKey: H(r.MsgCreateViewingKey) }, snip721: { send: H(f.MsgSnip721Send), mint: H(u.MsgSnip721Mint), addMinter: H(u.MsgSnip721AddMinter), setViewingKey: H(r.MsgSetViewingKey), createViewingKey: H(r.MsgCreateViewingKey) }, snip1155: { changeAdmin: H(o.MsgSnip1155ChangeAdmin), removeAdmin: H(o.MsgSnip1155RemoveAdmin), addCurator: H(o.MsgSnip1155AddCurator), removeCurator: H(o.MsgSnip1155RemoveCurator), addMinter: H(o.MsgSnipAddMinter), removeMinter: H(o.MsgSnip1155RemoveMinter), send: H(o.MsgSnip1155Send), batchSend: H(o.MsgSnip1155BatchSend), transfer: H(o.MsgSnip1155Transfer), batchTransfer: H(o.MsgSnip1155BatchTransfer), curate: H(o.MsgSnip1155CurateTokens), mint: H(o.MsgSnip1155Mint), burn: H(o.MsgSnip1155Burn), changeMetaData: H(o.MsgSnip1155ChangeMetadata), setViewingKey: H(r.MsgSetViewingKey), createViewingKey: H(r.MsgCreateViewingKey) }, authz: { exec: H(u.MsgExec), grant: H(u.MsgGrant), revoke: H(u.MsgRevoke) }, bank: { multiSend: H(u.MsgMultiSend), send: H(u.MsgSend) }, compute: { storeCode: H(u.MsgStoreCode), instantiateContract: H(u.MsgInstantiateContract), executeContract: H(u.MsgExecuteContract), migrateContract: H(le.MsgMigrateContract), updateAdmin: H(le.MsgUpdateAdmin), clearAdmin: H(le.MsgClearAdmin) }, emergency_button: { toggleIbcSwitch: H(be.MsgToggleIbcSwitch) }, crisis: { verifyInvariant: H(u.MsgVerifyInvariant) }, distribution: { fundCommunityPool: H(u.MsgFundCommunityPool), setWithdrawAddress: H(u.MsgSetWithdrawAddress), withdrawDelegatorReward: H(u.MsgWithdrawDelegatorReward), withdrawValidatorCommission: H(u.MsgWithdrawValidatorCommission), setAutoRestake: H(le.MsgSetAutoRestake) }, evidence: { submitEvidence: H(u.MsgSubmitEvidence) }, feegrant: { grantAllowance: H(u.MsgGrantAllowance), revokeAllowance: H(u.MsgRevokeAllowance) }, gov: { deposit: H(u.MsgDeposit), submitProposal: H(u.MsgSubmitProposal), vote: H(u.MsgVote), voteWeighted: H(u.MsgVoteWeighted) }, ibc: { transfer: H(u.MsgTransfer) }, ibc_fee: { payPacketFee: H(le.MsgPayPacketFee), payPacketFeeAsync: H(le.MsgPayPacketFeeAsync), registerPayee: H(le.MsgRegisterPayee), registerCounterpartyPayee: H(le.MsgRegisterCounterpartyPayee) }, registration: { register: H(de.RaAuthenticate) }, slashing: { unjail: H(u.MsgUnjail) }, staking: { beginRedelegate: H(u.MsgBeginRedelegate), createValidator: H(u.MsgCreateValidator), delegate: H(u.MsgDelegate), editValidator: H(u.MsgEditValidator), undelegate: H(u.MsgUndelegate) }, vesting: { createVestingAccount: H(pe.MsgCreateVestingAccount) } }, V.encryptionUtils ? this.encryptionUtils = V.encryptionUtils : this.encryptionUtils = new d.EncryptionUtilsImpl(this.url, V.encryptionSeed, this.chainId), this.query.compute = new x.ComputeQuerier(this.url, this.encryptionUtils); + } + getTx(V, Q) { + return b(this, void 0, void 0, function* () { + try { + const { tx_response: G } = yield c.Service.GetTx({ hash: V }, { pathPrefix: this.url }); + return G ? this.decodeTxResponse(G, Q) : null; + } catch (G) { + if ((G == null ? void 0 : G.message) === `tx not found: ${V}`) + return null; + throw G; + } + }); + } + txsQuery(V, Q = { resolveResponses: !1 }, G = { key: void 0, offset: void 0, limit: void 0, count_total: void 0, reverse: void 0 }, H) { + return b(this, void 0, void 0, function* () { + const { tx_responses: ie } = yield c.Service.GetTxsEvent({ events: V.split(" AND ").map((se) => se.trim()), pagination: G, order_by: H }, { pathPrefix: this.url }); + return this.decodeTxResponses(ie ?? [], Q); + }); + } + waitForIbcResponse(V, Q, G, H, ie) { + return b(this, void 0, void 0, function* () { + return new Promise((se, fe) => b(this, void 0, void 0, function* () { + let he = H.resolveResponsesTimeoutMs / H.resolveResponsesCheckIntervalMs, ve = G; + G === "ack" && (ve = "acknowledge"); + const me = [`${ve}_packet.packet_src_channel = '${Q}'`, `${ve}_packet.packet_sequence = '${V}'`].join(" AND "); + for (; he > 0 && !ie.isDone; ) { + const ge = (yield this.txsQuery(me)).find((ye) => ye.code === 0); + ge && (ie.isDone = !0, se({ type: G, tx: ge })), he--, yield S(H.resolveResponsesCheckIntervalMs); + } + fe(`timed-out while trying to resolve IBC ${G} tx for packet_src_channel='${Q}' and packet_sequence='${V}'`); + })); + }); + } + decodeTxResponses(V, Q) { + return b(this, void 0, void 0, function* () { + return yield Promise.all(V.map((G) => this.decodeTxResponse(G, Q))); + }); + } + decodeTxResponse(V, Q) { + var G, H, ie, se; + return b(this, void 0, void 0, function* () { + let fe; + fe = Q ? { resolveResponses: typeof Q.resolveResponses != "boolean" || Q.resolveResponses, resolveResponsesTimeoutMs: typeof Q.resolveResponsesTimeoutMs == "number" ? Q.resolveResponsesTimeoutMs : 12e4, resolveResponsesCheckIntervalMs: typeof Q.resolveResponsesCheckIntervalMs == "number" ? Q.resolveResponsesCheckIntervalMs : 15e3 } : { resolveResponses: !0, resolveResponsesTimeoutMs: 12e4, resolveResponsesCheckIntervalMs: 15e3 }; + const he = [], ve = V.tx; + for (let ke = 0; !isNaN(Number((H = (G = ve == null ? void 0 : ve.body) === null || G === void 0 ? void 0 : G.messages) === null || H === void 0 ? void 0 : H.length)) && ke < Number((se = (ie = ve == null ? void 0 : ve.body) === null || ie === void 0 ? void 0 : ie.messages) === null || se === void 0 ? void 0 : se.length); ke++) { + const xe = ve.body.messages[ke]; + let we = ""; + if (xe["@type"] === "/secret.compute.v1beta1.MsgInstantiateContract" ? we = "init_msg" : xe["@type"] !== "/secret.compute.v1beta1.MsgExecuteContract" && xe["@type"] !== "/secret.compute.v1beta1.MsgMigrateContract" || (we = "msg"), we !== "") + try { + const Se = (0, a.fromBase64)(xe[we]), Re = Se.slice(0, 32), Oe = Se.slice(64), Me = yield this.encryptionUtils.decrypt(Oe, Re); + xe[we] = JSON.parse((0, a.fromUtf8)(Me).slice(64)), he[ke] = Re; + } catch { + } + ve.body.messages[ke] = xe; + } + let me, ge, ye = V.raw_log, Ee = []; + if (V.code === 0 && ye !== "") { + me = JSON.parse(ye), ge = []; + for (let ke = 0; ke < me.length; ke++) { + me[ke].msg_index === void 0 && (me[ke].msg_index = ke); + const xe = me[ke]; + for (const we of xe.events) + for (const Se of we.attributes) { + if (we.type === "wasm") { + const Re = he[ke]; + if (Re && Re.length === 32) { + try { + Se.key = (0, a.fromUtf8)(yield this.encryptionUtils.decrypt((0, a.fromBase64)(Se.key), Re)).trim(); + } catch { + } + try { + Se.value = (0, a.fromUtf8)(yield this.encryptionUtils.decrypt((0, a.fromBase64)(Se.value), Re)).trim(); + } catch { + } + } + } + ge.push({ msg: ke, type: we.type, key: Se.key, value: Se.value }); + } + } + } else if (V.code !== 0 && ye !== "") + try { + const ke = /; message index: (\d+):(?: dispatch: submessages:)* encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(ye); + if ((ke == null ? void 0 : ke.length) === 3) { + const xe = (0, a.fromBase64)(ke[2]), we = Number(ke[1]), Se = yield this.encryptionUtils.decrypt(xe, he[we]), Re = (0, a.fromUtf8)(Se); + ye = ye.replace(`encrypted: ${ke[2]}`, Re); + try { + me = JSON.parse(Re); + } catch { + } + } + } catch { + } + const Ae = h.TxMsgData.decode((0, a.fromHex)(V.data)), Pe = new Array(Ae.data.length); + for (let ke = 0; ke < Ae.data.length; ke++) { + Pe[ke] = Ae.data[ke].data; + const xe = he[ke]; + if (xe && xe.length === 32) + try { + const { "@type": we } = ve.body.messages[ke]; + if (we === "/secret.compute.v1beta1.MsgInstantiateContract") { + const Se = N.MsgInstantiateContractResponse.decode(Ae.data[ke].data), Re = (0, a.fromBase64)((0, a.fromUtf8)(yield this.encryptionUtils.decrypt(Se.data, xe))); + Pe[ke] = N.MsgInstantiateContractResponse.encode({ address: Se.address, data: Re }).finish(); + } else if (we === "/secret.compute.v1beta1.MsgExecuteContract") { + const Se = N.MsgExecuteContractResponse.decode(Ae.data[ke].data), Re = (0, a.fromBase64)((0, a.fromUtf8)(yield this.encryptionUtils.decrypt(Se.data, xe))); + Pe[ke] = N.MsgExecuteContractResponse.encode({ data: Re }).finish(); + } else if (we === "/secret.compute.v1beta1.MsgMigrateContract") { + const Se = N.MsgMigrateContractResponse.decode(Ae.data[ke].data), Re = (0, a.fromBase64)((0, a.fromUtf8)(yield this.encryptionUtils.decrypt(Se.data, xe))); + Pe[ke] = N.MsgMigrateContractResponse.encode({ data: Re }).finish(); + } + } catch { + } + } + if (V.code === v.Success) { + const ke = (ge == null ? void 0 : ge.filter((we) => we.type === "send_packet" && we.key === "packet_sequence")) || [], xe = (ge == null ? void 0 : ge.filter((we) => we.type === "send_packet" && we.key === "packet_src_channel")) || []; + if (fe.resolveResponses) + for (let we = 0; we < (ke == null ? void 0 : ke.length); we++) { + const Se = { isDone: !1 }; + Ee.push(Promise.race([this.waitForIbcResponse(ke[we].value, xe[we].value, "ack", fe, Se), this.waitForIbcResponse(ke[we].value, xe[we].value, "timeout", fe, Se)])); + } + } + return { height: Number(V.height), timestamp: V.timestamp, transactionHash: V.txhash, code: V.code, codespace: V.codespace, info: V.info, tx: ve, rawLog: ye, jsonLog: me, arrayLog: ge, events: V.events, data: Pe, gasUsed: Number(V.gas_used), gasWanted: Number(V.gas_wanted), ibcResponses: Ee }; + }); + } + broadcastTx(V, Q, G, H, ie, se) { + var fe, he, ve, me, ge, ye; + return b(this, void 0, void 0, function* () { + const Ee = Date.now(), Ae = (0, a.toHex)((0, t.sha256)(V)).toUpperCase(); + let Pe; + if (ie || H != W.Block || (H = W.Sync), H === W.Block) { + ie = !0; + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(_(6519))); + let xe = !1; + try { + ({ tx_response: Pe } = yield c.Service.BroadcastTx({ txBytes: (0, a.toBase64)(V), mode: ke.BROADCAST_MODE_BLOCK }, { pathPrefix: this.url })); + } catch (we) { + if (!JSON.stringify(we).toLowerCase().includes("timed out waiting for tx to be included in a block")) + throw new Error(`Failed to broadcast transaction ID ${Ae}: '${JSON.stringify(we)}'.`); + xe = !0; + } + if (!xe) { + Pe.tx = (yield Promise.resolve().then(() => k(_(6994)))).Tx.toJSON((yield Promise.resolve().then(() => k(_(6994)))).Tx.decode(V)); + const we = Pe.tx, Se = (Re) => { + if (Re.type_url === "/cosmos.crypto.multisig.LegacyAminoPubKey") { + const Oe = p.LegacyAminoPubKey.decode((0, a.fromBase64)(Re.value)); + for (let Me = 0; Me < Oe.public_keys.length; Me++) + Oe.public_keys[Me] = Se(Oe.public_keys[Me]); + return p.LegacyAminoPubKey.toJSON(Oe); + } + return { type_url: Re.type_url, value: m.PubKey.toJSON(m.PubKey.decode((0, a.fromBase64)(Re.value))) }; + }; + we.auth_info.signer_infos = (he = (fe = we.auth_info) === null || fe === void 0 ? void 0 : fe.signer_infos) === null || he === void 0 ? void 0 : he.map((Re) => (Re.public_key = Se(Re.public_key), Re)); + for (let Re = 0; !isNaN(Number((me = (ve = we.body) === null || ve === void 0 ? void 0 : ve.messages) === null || me === void 0 ? void 0 : me.length)) && Re < Number((ye = (ge = we.body) === null || ge === void 0 ? void 0 : ge.messages) === null || ye === void 0 ? void 0 : ye.length); Re++) { + let Oe = we.body.messages[Re]; + const { type_url: Me, value: Te } = Oe, Ne = le.MsgRegistry.get(Me); + Ne && (Oe = { type_url: Me, value: Ne.decode((0, a.fromBase64)(Te)) }, Oe.type_url === "/secret.compute.v1beta1.MsgInstantiateContract" ? (Oe.value.sender = (0, u.bytesToAddress)(Oe.value.sender), Oe.value.init_msg = (0, a.toBase64)(Oe.value.init_msg), Oe.value.callback_sig = null) : Oe.type_url === "/secret.compute.v1beta1.MsgExecuteContract" ? (Oe.value.sender = (0, u.bytesToAddress)(Oe.value.sender), Oe.value.contract = (0, u.bytesToAddress)(Oe.value.contract), Oe.value.msg = (0, a.toBase64)(Oe.value.msg), Oe.value.callback_sig = null) : Oe.type_url === "/secret.compute.v1beta1.MsgStoreCode" ? (Oe.value.sender = (0, u.bytesToAddress)(Oe.value.sender), Oe.value.wasm_byte_code = (0, a.toBase64)(Oe.value.wasm_byte_code)) : Oe.type_url === "/secret.compute.v1beta1.MsgMigrateContract" && (Oe.value.msg = (0, a.toBase64)(Oe.value.msg)), we.body.messages[Re] = Oe); + } + return Pe.tx = Object.assign({ "@type": "/cosmos.tx.v1beta1.Tx" }, te(Pe.tx)), yield this.decodeTxResponse(Pe, se); + } + } else if (H === W.Sync) { + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(_(6519))); + if ({ tx_response: Pe } = yield c.Service.BroadcastTx({ txBytes: (0, a.toBase64)(V), mode: ke.BROADCAST_MODE_SYNC }, { pathPrefix: this.url }), (Pe == null ? void 0 : Pe.code) !== 0) + throw new Error(`Broadcasting transaction failed with code ${Pe == null ? void 0 : Pe.code} (codespace: ${Pe == null ? void 0 : Pe.codespace}). Log: ${Pe == null ? void 0 : Pe.raw_log}`); + } else { + if (H !== W.Async) + throw new Error(`Unknown broadcast mode "${String(H)}", must be either "${String(W.Block)}", "${String(W.Sync)}" or "${String(W.Async)}".`); + { + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(_(6519))); + c.Service.BroadcastTx({ txBytes: (0, a.toBase64)(V), mode: ke.BROADCAST_MODE_ASYNC }, { pathPrefix: this.url }); + } + } + if (!ie) + return { transactionHash: Ae }; + for (yield S(G / 2); ; ) { + const ke = yield this.getTx(Ae, se); + if (ke) + return ke; + if (Ee + Q < Date.now()) + throw new Error(`Transaction ID ${Ae} was submitted but was not yet found on the chain. You might want to check later or increase broadcastTimeoutMs from '${Q}'.`); + yield S(G); + } + }); + } + signTx(V, Q) { + return b(this, void 0, void 0, function* () { + return this.prepareAndSign(V, Q); + }); + } + broadcastSignedTx(V, Q) { + var G, H, ie, se; + return b(this, void 0, void 0, function* () { + return this.broadcastTx(V, (G = Q == null ? void 0 : Q.broadcastTimeoutMs) !== null && G !== void 0 ? G : 6e4, (H = Q == null ? void 0 : Q.broadcastCheckIntervalMs) !== null && H !== void 0 ? H : 6e3, (ie = Q == null ? void 0 : Q.broadcastMode) !== null && ie !== void 0 ? ie : W.Block, (se = Q == null ? void 0 : Q.waitForCommit) === null || se === void 0 || se); + }); + } + prepareAndSign(V, Q, G = !1) { + var H, ie, se, fe; + return b(this, void 0, void 0, function* () { + const he = (H = Q == null ? void 0 : Q.gasLimit) !== null && H !== void 0 ? H : 25e3, ve = (ie = Q == null ? void 0 : Q.gasPriceInFeeDenom) !== null && ie !== void 0 ? ie : 0.1, me = (se = Q == null ? void 0 : Q.feeDenom) !== null && se !== void 0 ? se : "uscrt", ge = (fe = Q == null ? void 0 : Q.memo) !== null && fe !== void 0 ? fe : "", ye = Q == null ? void 0 : Q.feeGranter, Ee = Q == null ? void 0 : Q.explicitSignerData, Ae = yield this.sign(V, { gas: String(he), amount: [{ amount: String(T(he, ve)), denom: me }], granter: ye }, ge, Ee, G); + return M.TxRaw.encode(Ae).finish(); + }); + } + signAndBroadcast(V, Q) { + var G, H, ie, se; + return b(this, void 0, void 0, function* () { + const fe = yield this.prepareAndSign(V, Q); + return this.broadcastTx(fe, (G = Q == null ? void 0 : Q.broadcastTimeoutMs) !== null && G !== void 0 ? G : 6e4, (H = Q == null ? void 0 : Q.broadcastCheckIntervalMs) !== null && H !== void 0 ? H : 6e3, (ie = Q == null ? void 0 : Q.broadcastMode) !== null && ie !== void 0 ? ie : W.Block, (se = Q == null ? void 0 : Q.waitForCommit) === null || se === void 0 || se, Q == null ? void 0 : Q.ibcTxsOptions); + }); + } + simulate(V, Q) { + return b(this, void 0, void 0, function* () { + const G = yield this.prepareAndSign(V, Q, !0); + return c.Service.Simulate({ txBytes: (0, a.toBase64)(G) }, { pathPrefix: this.url }); + }); + } + sign(V, Q, G, H, ie = !1) { + var se, fe; + return b(this, void 0, void 0, function* () { + const he = (yield this.wallet.getAccounts()).find((me) => me.address === this.address); + if (!he) + throw new Error("Failed to retrieve account from signer"); + let ve; + if (H) + ve = H; + else { + const { account: me } = yield this.query.auth.account({ address: this.address }); + if (!me) + throw new Error(`Cannot find account "${this.address}", make sure it has a balance.`); + let ge; + if (me["@type"] === "/cosmos.auth.v1beta1.BaseAccount") + ge = me; + else if (me["@type"] === "/cosmos.vesting.v1beta1.ContinuousVestingAccount") + ge = (se = me.base_vesting_account) === null || se === void 0 ? void 0 : se.base_account; + else if (me["@type"] === "/cosmos.vesting.v1beta1.DelayedVestingAccount") + ge = (fe = me.base_vesting_account) === null || fe === void 0 ? void 0 : fe.base_account; + else { + if (me["@type"] !== "/cosmos.auth.v1beta1.ModuleAccount") + throw new Error(`Cannot sign with account of type "${me["@type"]}".`); + ge = me.base_account; + } + if (!ge) + throw new Error(`Cannot extract BaseAccount from "${JSON.stringify(me)}".`); + ve = { accountNumber: Number(ge.account_number), sequence: Number(ge.sequence), chainId: this.chainId }; + } + return (0, _e.isDirectSigner)(this.wallet) ? this.signDirect(he, V, Q, G, ve, ie) : this.signAmino(he, V, Q, G, ve, ie); + }); + } + signAmino(V, Q, G, H, { accountNumber: ie, sequence: se, chainId: fe }, he = !1) { + return b(this, void 0, void 0, function* () { + if ((0, _e.isDirectSigner)(this.wallet)) + throw new Error("Wrong signer type! Expected AminoSigner or AminoEip191Signer."); + let ve = (yield Promise.resolve().then(() => k(_(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON; + typeof this.wallet.getSignMode == "function" && (ve = yield this.wallet.getSignMode()); + const me = function(Se, Re, Oe, Me, Te, Ne) { + return { chain_id: Oe, account_number: String(Te), sequence: String(Ne), fee: Re, msgs: Se, memo: Me || "" }; + }(yield Promise.all(Q.map((Se) => b(this, void 0, void 0, function* () { + return yield this.populateCodeHash(Se), Se.toAmino(this.encryptionUtils); + }))), G, fe, H, ie, se); + let ge, ye; + he ? (ge = me, ye = oe()) : { signature: ye, signed: ge } = yield this.wallet.signAmino(V.address, me); + const Ee = { type_url: "/cosmos.tx.v1beta1.TxBody", value: { messages: yield Promise.all(Q.map((Se, Re) => b(this, void 0, void 0, function* () { + return yield this.populateCodeHash(Se), yield Se.toProto(this.encryptionUtils); + }))), memo: H } }, Ae = yield this.encodeTx(Ee), Pe = Number(ge.fee.gas), ke = Number(ge.sequence), xe = yield q((0, _e.encodeSecp256k1Pubkey)(V.pubkey)), we = yield B([{ pubkey: xe, sequence: ke }], ge.fee.amount, Pe, ge.fee.granter, ve); + return M.TxRaw.fromPartial({ body_bytes: Ae, auth_info_bytes: we, signatures: [(0, a.fromBase64)(ye.signature)] }); + }); + } + populateCodeHash(V) { + return b(this, void 0, void 0, function* () { + V instanceof u.MsgExecuteContract ? V.codeHash || (V.codeHash = (yield this.query.compute.codeHashByContractAddress({ contract_address: V.contractAddress })).code_hash) : (V instanceof u.MsgInstantiateContract || V instanceof le.MsgMigrateContract) && (V.codeHash || (V.codeHash = (yield this.query.compute.codeHashByCodeId({ code_id: V.codeId })).code_hash)); + }); + } + encodeTx(V) { + return b(this, void 0, void 0, function* () { + const Q = yield Promise.all(V.value.messages.map((H) => b(this, void 0, void 0, function* () { + const ie = yield H.encode(); + return l.Any.fromPartial({ type_url: H.type_url, value: ie }); + }))), G = M.TxBody.fromPartial(Object.assign(Object.assign({}, V.value), { messages: Q })); + return M.TxBody.encode(G).finish(); + }); + } + signDirect(V, Q, G, H, { accountNumber: ie, sequence: se, chainId: fe }, he = !1) { + return b(this, void 0, void 0, function* () { + if (!(0, _e.isDirectSigner)(this.wallet)) + throw new Error("Wrong signer type! Expected DirectSigner."); + const ve = { type_url: "/cosmos.tx.v1beta1.TxBody", value: { messages: yield Promise.all(Q.map((ke, xe) => b(this, void 0, void 0, function* () { + return yield this.populateCodeHash(ke), yield ke.toProto(this.encryptionUtils); + }))), memo: H } }, me = yield this.encodeTx(ve), ge = yield q((0, _e.encodeSecp256k1Pubkey)(V.pubkey)), ye = Number(G.gas), Ee = function(ke, xe, we, Se) { + return { body_bytes: ke, auth_info_bytes: xe, chain_id: we, account_number: String(Se), bodyBytes: ke, authInfoBytes: xe, chainId: we, accountNumber: String(Se) }; + }(me, yield B([{ pubkey: ge, sequence: se }], G.amount, ye, G.granter), fe, ie); + let Ae, Pe; + if (he ? (Ae = Ee, Pe = oe()) : { signature: Pe, signed: Ae } = yield this.wallet.signDirect(V.address, Ee), (0, _e.isSignDoc)(Ae)) + return M.TxRaw.fromPartial({ body_bytes: Ae.body_bytes, auth_info_bytes: Ae.auth_info_bytes, signatures: [(0, a.fromBase64)(Pe.signature)] }); + if ((0, _e.isSignDocCamelCase)(Ae)) + return M.TxRaw.fromPartial({ body_bytes: Ae.bodyBytes, auth_info_bytes: Ae.authInfoBytes, signatures: [(0, a.fromBase64)(Pe.signature)] }); + throw new Error(`unknown SignDoc instance: ${JSON.stringify(Ae)}`); + }); + } + }, e.gasToFee = T, function(V) { + V[V.Success = 0] = "Success", V[V.ErrInternal = 1] = "ErrInternal", V[V.ErrTxDecode = 2] = "ErrTxDecode", V[V.ErrInvalidSequence = 3] = "ErrInvalidSequence", V[V.ErrUnauthorized = 4] = "ErrUnauthorized", V[V.ErrInsufficientFunds = 5] = "ErrInsufficientFunds", V[V.ErrUnknownRequest = 6] = "ErrUnknownRequest", V[V.ErrInvalidAddress = 7] = "ErrInvalidAddress", V[V.ErrInvalidPubKey = 8] = "ErrInvalidPubKey", V[V.ErrUnknownAddress = 9] = "ErrUnknownAddress", V[V.ErrInvalidCoins = 10] = "ErrInvalidCoins", V[V.ErrOutOfGas = 11] = "ErrOutOfGas", V[V.ErrMemoTooLarge = 12] = "ErrMemoTooLarge", V[V.ErrInsufficientFee = 13] = "ErrInsufficientFee", V[V.ErrTooManySignatures = 14] = "ErrTooManySignatures", V[V.ErrNoSignatures = 15] = "ErrNoSignatures", V[V.ErrJSONMarshal = 16] = "ErrJSONMarshal", V[V.ErrJSONUnmarshal = 17] = "ErrJSONUnmarshal", V[V.ErrInvalidRequest = 18] = "ErrInvalidRequest", V[V.ErrTxInMempoolCache = 19] = "ErrTxInMempoolCache", V[V.ErrMempoolIsFull = 20] = "ErrMempoolIsFull", V[V.ErrTxTooLarge = 21] = "ErrTxTooLarge", V[V.ErrKeyNotFound = 22] = "ErrKeyNotFound", V[V.ErrWrongPassword = 23] = "ErrWrongPassword", V[V.ErrorInvalidSigner = 24] = "ErrorInvalidSigner", V[V.ErrorInvalidGasAdjustment = 25] = "ErrorInvalidGasAdjustment", V[V.ErrInvalidHeight = 26] = "ErrInvalidHeight", V[V.ErrInvalidVersion = 27] = "ErrInvalidVersion", V[V.ErrInvalidChainID = 28] = "ErrInvalidChainID", V[V.ErrInvalidType = 29] = "ErrInvalidType", V[V.ErrTxTimeoutHeight = 30] = "ErrTxTimeoutHeight", V[V.ErrUnknownExtensionOptions = 31] = "ErrUnknownExtensionOptions", V[V.ErrWrongSequence = 32] = "ErrWrongSequence", V[V.ErrPackAny = 33] = "ErrPackAny", V[V.ErrUnpackAny = 34] = "ErrUnpackAny", V[V.ErrLogic = 35] = "ErrLogic", V[V.ErrConflict = 36] = "ErrConflict", V[V.ErrNotSupported = 37] = "ErrNotSupported", V[V.ErrNotFound = 38] = "ErrNotFound", V[V.ErrIO = 39] = "ErrIO", V[V.ErrAppConfig = 40] = "ErrAppConfig", V[V.ErrPanic = 111222] = "ErrPanic"; + }(v = e.TxResultCode || (e.TxResultCode = {})); + }, 2132: function(J, e, _) { + var O = this && this.__awaiter || function(n, o, i, f) { + return new (i || (i = Promise))(function(c, h) { + function p(l) { + try { + M(f.next(l)); + } catch (N) { + h(N); + } + } + function m(l) { + try { + M(f.throw(l)); + } catch (N) { + h(N); + } + } + function M(l) { + var N; + l.done ? c(l.value) : (N = l.value, N instanceof i ? N : new i(function(j) { + j(N); + })).then(p, m); + } + M((f = f.apply(n, o || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRevoke = e.MsgExec = e.MsgGrant = e.StakeAuthorizationType = e.MsgGrantAuthorization = void 0; + const A = _(9094), k = _(5635), b = _(5939), a = _(837); + function t(n) { + return "msg" in n; + } + function u(n) { + return "spend_limit" in n; + } + function d(n) { + return "max_tokens" in n && "allow_list" in n && "deny_list" in n && "authorization_type" in n; + } + var s, r; + (r = e.MsgGrantAuthorization || (e.MsgGrantAuthorization = {})).MsgAcknowledgement = "/ibc.core.channel.v1.MsgAcknowledgement", r.MsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate", r.MsgChannelCloseConfirm = "/ibc.core.channel.v1.MsgChannelCloseConfirm", r.MsgChannelCloseInit = "/ibc.core.channel.v1.MsgChannelCloseInit", r.MsgChannelOpenAck = "/ibc.core.channel.v1.MsgChannelOpenAck", r.MsgChannelOpenConfirm = "/ibc.core.channel.v1.MsgChannelOpenConfirm", r.MsgChannelOpenInit = "/ibc.core.channel.v1.MsgChannelOpenInit", r.MsgChannelOpenTry = "/ibc.core.channel.v1.MsgChannelOpenTry", r.MsgConnectionOpenAck = "/ibc.core.connection.v1.MsgConnectionOpenAck", r.MsgConnectionOpenConfirm = "/ibc.core.connection.v1.MsgConnectionOpenConfirm", r.MsgConnectionOpenInit = "/ibc.core.connection.v1.MsgConnectionOpenInit", r.MsgConnectionOpenTry = "/ibc.core.connection.v1.MsgConnectionOpenTry", r.MsgCreateClient = "/ibc.core.client.v1.MsgCreateClient", r.MsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator", r.MsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate", r.MsgDeposit = "/cosmos.gov.v1beta1.MsgDeposit", r.MsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator", r.MsgExec = "/cosmos.authz.v1beta1.MsgExec", r.MsgExecuteContract = "/secret.compute.v1beta1.MsgExecuteContract", r.MsgFundCommunityPool = "/cosmos.distribution.v1beta1.MsgFundCommunityPool", r.MsgGrant = "/cosmos.authz.v1beta1.MsgGrant", r.MsgGrantAllowance = "/cosmos.feegrant.v1beta1.MsgGrantAllowance", r.MsgInstantiateContract = "/secret.compute.v1beta1.MsgInstantiateContract", r.MsgMultiSend = "/cosmos.bank.v1beta1.MsgMultiSend", r.MsgRecvPacket = "/ibc.core.channel.v1.MsgRecvPacket", r.MsgRevoke = "/cosmos.authz.v1beta1.MsgRevoke", r.MsgRevokeAllowance = "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", r.MsgSend = "/cosmos.bank.v1beta1.MsgSend", r.MsgSetWithdrawAddress = "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", r.MsgStoreCode = "/secret.compute.v1beta1.MsgStoreCode", r.MsgSubmitEvidence = "/cosmos.evidence.v1beta1.MsgSubmitEvidence", r.MsgSubmitMisbehaviour = "/ibc.core.client.v1.MsgSubmitMisbehaviour", r.MsgSubmitProposal = "/cosmos.gov.v1beta1.MsgSubmitProposal", r.MsgTimeout = "/ibc.core.channel.v1.MsgTimeout", r.MsgTimeoutOnClose = "/ibc.core.channel.v1.MsgTimeoutOnClose", r.MsgTransfer = "/ibc.applications.transfer.v1.MsgTransfer", r.MsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate", r.MsgUnjail = "/cosmos.slashing.v1beta1.MsgUnjail", r.MsgUpdateClient = "/ibc.core.client.v1.MsgUpdateClient", r.MsgUpgradeClient = "/ibc.core.client.v1.MsgUpgradeClient", r.MsgVerifyInvariant = "/cosmos.crisis.v1beta1.MsgVerifyInvariant", r.MsgVote = "/cosmos.gov.v1beta1.MsgVote", r.MsgVoteWeighted = "/cosmos.gov.v1beta1.MsgVoteWeighted", r.MsgWithdrawDelegatorReward = "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", r.MsgWithdrawValidatorCommission = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", (s = e.StakeAuthorizationType || (e.StakeAuthorizationType = {}))[s.Delegate = 1] = "Delegate", s[s.Undelegate = 2] = "Undelegate", s[s.Redelegate = 3] = "Redelegate", e.MsgGrant = class { + constructor(n) { + this.params = n; + } + toProto() { + var n, o; + return O(this, void 0, void 0, function* () { + let i; + const f = { seconds: String(Math.floor(this.params.expiration)), nanos: 0 }; + if (u(this.params.authorization)) + i = { authorization: { type_url: "/cosmos.bank.v1beta1.SendAuthorization", value: b.SendAuthorization.encode(this.params.authorization).finish() }, expiration: f }; + else if (d(this.params.authorization)) { + let h, p; + ((n = this.params.authorization.allow_list) === null || n === void 0 ? void 0 : n.length) > 0 ? h = { address: this.params.authorization.allow_list } : ((o = this.params.authorization.deny_list) === null || o === void 0 ? void 0 : o.length) > 0 && (p = { address: this.params.authorization.deny_list }), i = { authorization: { type_url: "/cosmos.staking.v1beta1.StakeAuthorization", value: a.StakeAuthorization.encode({ max_tokens: this.params.authorization.max_tokens, allow_list: h, deny_list: p, authorization_type: Number(this.params.authorization.authorization_type) }).finish() }, expiration: f }; + } else { + if (!t(this.params.authorization)) + throw new Error("Unknown authorization type."); + i = { authorization: { type_url: "/cosmos.authz.v1beta1.GenericAuthorization", value: A.GenericAuthorization.encode({ msg: String(this.params.authorization.msg) }).finish() }, expiration: f }; + } + const c = { granter: this.params.granter, grantee: this.params.grantee, grant: i }; + return { type_url: "/cosmos.authz.v1beta1.MsgGrant", value: c, encode: () => O(this, void 0, void 0, function* () { + return k.MsgGrant.encode(c).finish(); + }) }; + }); + } + toAmino() { + var n, o; + return O(this, void 0, void 0, function* () { + let i = { type: "cosmos-sdk/MsgGrant", value: { granter: this.params.granter, grantee: this.params.grantee, grant: { authorization: {}, expiration: new Date(1e3 * Math.floor(this.params.expiration)).toISOString().replace(/\.\d+Z/, "Z") } } }; + if (u(this.params.authorization)) + i.value.grant.authorization = { type: "cosmos-sdk/SendAuthorization", value: { spend_limit: this.params.authorization.spend_limit } }; + else if (d(this.params.authorization)) { + let f; + if (((n = this.params.authorization.allow_list) === null || n === void 0 ? void 0 : n.length) > 0) + f = { type: "cosmos-sdk/StakeAuthorization/AllowList", value: { allow_list: { address: this.params.authorization.allow_list } } }; + else { + if (!(((o = this.params.authorization.deny_list) === null || o === void 0 ? void 0 : o.length) > 0)) + throw new Error("Must pass in allow_list or deny_list."); + f = { type: "cosmos-sdk/StakeAuthorization/DenyList", value: { deny_list: { address: this.params.authorization.deny_list } } }; + } + i.value.grant.authorization = { type: "cosmos-sdk/StakeAuthorization", value: { max_tokens: this.params.authorization.max_tokens, authorization_type: this.params.authorization.authorization_type, Validators: f } }; + } else { + if (!t(this.params.authorization)) + throw new Error("Unknown authorization type."); + i.value.grant.authorization = { type: "cosmos-sdk/GenericAuthorization", value: { msg: this.params.authorization.msg } }; + } + return i; + }); + } + }, e.MsgExec = class { + constructor(n) { + this.params = n; + } + toProto(n) { + return O(this, void 0, void 0, function* () { + const o = []; + for (const f of this.params.msgs) { + const c = yield f.toProto(n); + o.push({ type_url: c.type_url, value: yield c.encode() }); + } + const i = { grantee: this.params.grantee, msgs: o }; + return { type_url: "/cosmos.authz.v1beta1.MsgExec", value: i, encode: () => O(this, void 0, void 0, function* () { + return k.MsgExec.encode(i).finish(); + }) }; + }); + } + toAmino(n) { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgExec", value: { grantee: this.params.grantee, msgs: yield Promise.all(this.params.msgs.map((o) => o.toAmino(n))) } }; + }); + } + }, e.MsgRevoke = class { + constructor(n) { + this.params = n; + } + toProto() { + return O(this, void 0, void 0, function* () { + const n = { granter: this.params.granter, grantee: this.params.grantee, msg_type_url: String(this.params.msg) }; + return { type_url: "/cosmos.authz.v1beta1.MsgRevoke", value: n, encode: () => O(this, void 0, void 0, function* () { + return k.MsgRevoke.encode(n).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgRevoke", value: { granter: this.params.granter, grantee: this.params.grantee, msg_type_url: String(this.params.msg) } }; + }); + } + }; + }, 587: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgMultiSend = e.MsgSend = void 0, e.MsgSend = class { + constructor({ from_address: a, to_address: t, amount: u }) { + this.from_address = a, this.to_address = t, this.amount = u; + } + toProto() { + return b(this, void 0, void 0, function* () { + const a = { from_address: this.from_address, to_address: this.to_address, amount: this.amount }; + return { type_url: "/cosmos.bank.v1beta1.MsgSend", value: a, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(810)))).MsgSend.encode(a).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgSend", value: { from_address: this.from_address, to_address: this.to_address, amount: this.amount } }; + }); + } + }, e.MsgMultiSend = class { + constructor({ inputs: a, outputs: t }) { + this.inputs = a, this.outputs = t; + } + toProto() { + return b(this, void 0, void 0, function* () { + const a = { inputs: this.inputs, outputs: this.outputs }; + return { type_url: "/cosmos.bank.v1beta1.MsgMultiSend", value: a, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(810)))).MsgMultiSend.encode(a).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgMultiSend", value: { inputs: this.inputs, outputs: this.outputs } }; + }); + } + }; + }, 7278: function(J, e, _) { + var O = _(5108), A = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), k = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), b = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && A(r, s, n); + return k(r, s), r; + }, a = this && this.__awaiter || function(s, r, n, o) { + return new (n || (n = Promise))(function(i, f) { + function c(m) { + try { + p(o.next(m)); + } catch (M) { + f(M); + } + } + function h(m) { + try { + p(o.throw(m)); + } catch (M) { + f(M); + } + } + function p(m) { + var M; + m.done ? i(m.value) : (M = m.value, M instanceof n ? M : new n(function(l) { + l(M); + })).then(c, h); + } + p((o = o.apply(s, r || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClearAdmin = e.MsgUpdateAdmin = e.MsgMigrateContract = e.MsgStoreCode = e.MsgExecuteContract = e.MsgInstantiateContract = e.getMissingCodeHashWarning = void 0; + const t = _(8972), u = _(8593); + function d(s) { + return `${(/* @__PURE__ */ new Date()).toISOString()} WARNING: ${s} was used without the "code_hash" parameter. This is discouraged and will result in much slower execution times for your app.`; + } + e.getMissingCodeHashWarning = d, e.MsgInstantiateContract = class { + constructor({ sender: s, code_id: r, label: n, init_msg: o, init_funds: i, code_hash: f, admin: c }) { + this.warnCodeHash = !1, this.sender = s, this.codeId = String(r), this.label = n, this.initMsg = o, this.initMsgEncrypted = null, this.initFunds = i ?? [], this.admin = c ?? "", f ? this.codeHash = f.replace(/^0x/, "").toLowerCase() : (this.codeHash = "", this.warnCodeHash = !0, O.warn(d("MsgInstantiateContract"))); + } + toProto(s) { + return a(this, void 0, void 0, function* () { + this.warnCodeHash && O.warn(d("MsgInstantiateContract")), this.initMsgEncrypted || (this.initMsgEncrypted = yield s.encrypt(this.codeHash, this.initMsg)); + const r = { sender: (0, u.addressToBytes)(this.sender), code_id: this.codeId, label: this.label, init_msg: this.initMsgEncrypted, init_funds: this.initFunds, callback_sig: new Uint8Array(0), callback_code_hash: "", admin: this.admin }; + return { type_url: "/secret.compute.v1beta1.MsgInstantiateContract", value: r, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgInstantiateContract.encode(r).finish(); + }) }; + }); + } + toAmino(s) { + return a(this, void 0, void 0, function* () { + return this.warnCodeHash && O.warn(d("MsgInstantiateContract")), this.initMsgEncrypted || (this.initMsgEncrypted = yield s.encrypt(this.codeHash, this.initMsg)), { type: "wasm/MsgInstantiateContract", value: { sender: this.sender, code_id: this.codeId, label: this.label, init_msg: (0, t.toBase64)(this.initMsgEncrypted), init_funds: this.initFunds, admin: this.admin.length > 0 ? this.admin : void 0 } }; + }); + } + }, e.MsgExecuteContract = class { + constructor({ sender: s, contract_address: r, msg: n, sent_funds: o, code_hash: i }) { + this.warnCodeHash = !1, this.sender = s, this.contractAddress = r, this.msg = n, this.msgEncrypted = null, this.sentFunds = o ?? [], i ? this.codeHash = i.replace(/^0x/, "").toLowerCase() : (this.codeHash = "", this.warnCodeHash = !0, O.warn(d("MsgExecuteContract"))); + } + toProto(s) { + return a(this, void 0, void 0, function* () { + this.warnCodeHash && O.warn(d("MsgExecuteContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)); + const r = { sender: (0, u.addressToBytes)(this.sender), contract: (0, u.addressToBytes)(this.contractAddress), msg: this.msgEncrypted, sent_funds: this.sentFunds, callback_sig: new Uint8Array(), callback_code_hash: "" }; + return { type_url: "/secret.compute.v1beta1.MsgExecuteContract", value: r, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgExecuteContract.encode(r).finish(); + }) }; + }); + } + toAmino(s) { + return a(this, void 0, void 0, function* () { + return this.warnCodeHash && O.warn(d("MsgExecuteContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)), { type: "wasm/MsgExecuteContract", value: { sender: this.sender, contract: this.contractAddress, msg: (0, t.toBase64)(this.msgEncrypted), sent_funds: this.sentFunds } }; + }); + } + }, e.MsgStoreCode = class { + constructor({ sender: s, wasm_byte_code: r, source: n, builder: o }) { + this.sender = s, this.source = n, this.builder = o, this.wasmByteCode = r; + } + gzipWasm() { + return a(this, void 0, void 0, function* () { + if (!(0, u.is_gzip)(this.wasmByteCode)) { + const s = yield Promise.resolve().then(() => b(_(9591))); + this.wasmByteCode = s.gzip(this.wasmByteCode, { level: 9 }); + } + }); + } + toProto() { + return a(this, void 0, void 0, function* () { + yield this.gzipWasm(); + const s = { sender: (0, u.addressToBytes)(this.sender), wasm_byte_code: this.wasmByteCode, source: this.source, builder: this.builder }; + return { type_url: "/secret.compute.v1beta1.MsgStoreCode", value: s, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgStoreCode.encode(s).finish(); + }) }; + }); + } + toAmino() { + return a(this, void 0, void 0, function* () { + return yield this.gzipWasm(), { type: "wasm/MsgStoreCode", value: { sender: this.sender, wasm_byte_code: (0, t.toBase64)(this.wasmByteCode), source: this.source.length > 0 ? this.source : void 0, builder: this.builder.length > 0 ? this.builder : void 0 } }; + }); + } + }, e.MsgMigrateContract = class { + constructor({ sender: s, contract_address: r, msg: n, code_id: o, code_hash: i }) { + this.warnCodeHash = !1, this.sender = s, this.contractAddress = r, this.msg = n, this.msgEncrypted = null, this.codeId = String(o), i ? this.codeHash = i.replace(/^0x/, "").toLowerCase() : (this.codeHash = "", this.warnCodeHash = !0, O.warn(d("MsgMigrateContract"))); + } + toProto(s) { + return a(this, void 0, void 0, function* () { + this.warnCodeHash && O.warn(d("MsgMigrateContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)); + const r = { sender: this.sender, contract: this.contractAddress, msg: this.msgEncrypted, code_id: this.codeId, callback_sig: new Uint8Array(), callback_code_hash: "" }; + return { type_url: "/secret.compute.v1beta1.MsgMigrateContract", value: r, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgMigrateContract.encode(r).finish(); + }) }; + }); + } + toAmino(s) { + return a(this, void 0, void 0, function* () { + return this.warnCodeHash && O.warn(d("MsgMigrateContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)), { type: "wasm/MsgMigrateContract", value: { sender: this.sender, contract: this.contractAddress, msg: (0, t.toBase64)(this.msgEncrypted), code_id: this.codeId } }; + }); + } + }, e.MsgUpdateAdmin = class { + constructor(s) { + this.params = s; + } + toProto() { + return a(this, void 0, void 0, function* () { + return { type_url: "/secret.compute.v1beta1.MsgUpdateAdmin", value: this.params, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgUpdateAdmin.encode({ sender: this.params.sender, new_admin: this.params.new_admin, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); + }) }; + }); + } + toAmino() { + return a(this, void 0, void 0, function* () { + return { type: "wasm/MsgUpdateAdmin", value: { sender: this.params.sender, new_admin: this.params.new_admin, contract: this.params.contract_address } }; + }); + } + }, e.MsgClearAdmin = class { + constructor(s) { + this.params = s; + } + toProto() { + return a(this, void 0, void 0, function* () { + return { type_url: "/secret.compute.v1beta1.MsgClearAdmin", value: this.params, encode: () => a(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => b(_(2896)))).MsgClearAdmin.encode({ sender: this.params.sender, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); + }) }; + }); + } + toAmino() { + return a(this, void 0, void 0, function* () { + return { type: "wasm/MsgClearAdmin", value: { sender: this.params.sender, contract: this.params.contract_address } }; + }); + } + }; + }, 7949: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgVerifyInvariant = void 0, e.MsgVerifyInvariant = class { + constructor(a) { + this.params = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4489)))).MsgVerifyInvariant.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgVerifyInvariant", value: { sender: this.params.sender || void 0, invariant_module_name: this.params.invariant_module_name || void 0, invariant_route: this.params.invariant_route || void 0 } }; + }); + } + }; + }, 1890: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(u, d, s, r) { + r === void 0 && (r = s), Object.defineProperty(u, r, { enumerable: !0, get: function() { + return d[s]; + } }); + } : function(u, d, s, r) { + r === void 0 && (r = s), u[r] = d[s]; + }), A = this && this.__setModuleDefault || (Object.create ? function(u, d) { + Object.defineProperty(u, "default", { enumerable: !0, value: d }); + } : function(u, d) { + u.default = d; + }), k = this && this.__importStar || function(u) { + if (u && u.__esModule) + return u; + var d = {}; + if (u != null) + for (var s in u) + s !== "default" && Object.prototype.hasOwnProperty.call(u, s) && O(d, u, s); + return A(d, u), d; + }, b = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + var p; + h.done ? n(h.value) : (p = h.value, p instanceof s ? p : new s(function(m) { + m(p); + })).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSetAutoRestake = e.MsgFundCommunityPool = e.MsgWithdrawValidatorCommission = e.MsgWithdrawDelegatorReward = e.MsgWithdrawDelegationReward = e.MsgModifyWithdrawAddress = e.MsgSetWithdrawAddress = void 0; + class a { + constructor(d) { + this.params = d; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4301)))).MsgSetWithdrawAddress.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgModifyWithdrawAddress", value: this.params }; + }); + } + } + e.MsgSetWithdrawAddress = a, e.MsgModifyWithdrawAddress = a; + class t { + constructor(d) { + this.params = d; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgWithdrawDelegationReward", value: this.params }; + }); + } + } + e.MsgWithdrawDelegatorReward = t, e.MsgWithdrawDelegationReward = t, e.MsgWithdrawValidatorCommission = class { + constructor(u) { + this.params = u; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgWithdrawValidatorCommission", value: this.params }; + }); + } + }, e.MsgFundCommunityPool = class { + constructor(u) { + this.params = u; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4301)))).MsgFundCommunityPool.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgFundCommunityPool", value: this.params }; + }); + } + }, e.MsgSetAutoRestake = class { + constructor(u) { + this.params = u; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.distribution.v1beta1.MsgSetAutoRestake", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4301)))).MsgSetAutoRestake.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgSetAutoRestake", value: Object.assign({}, this.params, { enabled: !!this.params.enabled || void 0 }) }; + }); + } + }; + }, 6049: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgToggleIbcSwitch = void 0, e.MsgToggleIbcSwitch = class { + constructor(a) { + this.params = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(4657)))).MsgToggleIbcSwitch.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "emergencybutton/MsgToggleIbcSwitch", value: this.params }; + }); + } + }; + }, 3651: function(J, e) { + var _ = this && this.__awaiter || function(O, A, k, b) { + return new (k || (k = Promise))(function(a, t) { + function u(r) { + try { + s(b.next(r)); + } catch (n) { + t(n); + } + } + function d(r) { + try { + s(b.throw(r)); + } catch (n) { + t(n); + } + } + function s(r) { + var n; + r.done ? a(r.value) : (n = r.value, n instanceof k ? n : new k(function(o) { + o(n); + })).then(u, d); + } + s((b = b.apply(O, A || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSubmitEvidence = void 0, e.MsgSubmitEvidence = class { + constructor(O) { + this.params = O; + } + toProto() { + return _(this, void 0, void 0, function* () { + throw new Error("MsgSubmitEvidence not implemented."); + }); + } + toAmino() { + return _(this, void 0, void 0, function* () { + throw new Error("MsgSubmitEvidence not implemented."); + }); + } + }; + }, 8434: function(J, e, _) { + var O = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + var p; + h.done ? n(h.value) : (p = h.value, p instanceof s ? p : new s(function(m) { + m(p); + })).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRevokeAllowance = e.MsgGrantAllowance = void 0; + const A = _(4932), k = _(6513); + function b(u) { + return "spend_limit" in u; + } + function a(u) { + return "period_spend_limit" in u; + } + function t(u) { + return "allowed_messages" in u; + } + e.MsgGrantAllowance = class { + constructor(u) { + this.params = u; + } + toProto() { + return O(this, void 0, void 0, function* () { + let u; + if (b(this.params.allowance)) + u = { type_url: "/cosmos.feegrant.v1beta1.BasicAllowance", value: A.BasicAllowance.encode(this.params.allowance).finish() }; + else if (a(this.params.allowance)) + u = { type_url: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: A.PeriodicAllowance.encode(this.params.allowance).finish() }; + else { + if (!t(this.params.allowance)) + throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`); + { + let d; + if (b(this.params.allowance.allowance)) + d = { type_url: "/cosmos.feegrant.v1beta1.BasicAllowance", value: A.BasicAllowance.encode(this.params.allowance.allowance).finish() }; + else { + if (!a(this.params.allowance.allowance)) + throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`); + d = { type_url: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: A.PeriodicAllowance.encode(this.params.allowance.allowance).finish() }; + } + u = { type_url: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", value: A.AllowedMsgAllowance.encode({ allowed_messages: this.params.allowance.allowed_messages, allowance: d }).finish() }; + } + } + return { type_url: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return k.MsgGrantAllowance.encode({ grantee: this.params.grantee, granter: this.params.granter, allowance: u }).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + let u; + if (b(this.params.allowance)) + u = { type: "cosmos-sdk/BasicAllowance", value: { spend_limit: this.params.allowance.spend_limit, expiration: this.params.allowance.expiration } }; + else if (a(this.params.allowance)) + u = { type: "cosmos-sdk/PeriodicAllowance", value: { basic: this.params.allowance.basic, period: this.params.allowance.period, period_spend_limit: this.params.allowance.period_spend_limit, period_can_spend: this.params.allowance.period_can_spend, period_reset: this.params.allowance.period_reset } }; + else { + if (!t(this.params.allowance)) + throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`); + { + let d; + if (b(this.params.allowance.allowance)) + d = { type: "cosmos-sdk/BasicAllowance", value: { spend_limit: this.params.allowance.allowance.spend_limit, expiration: this.params.allowance.allowance.expiration } }; + else { + if (!a(this.params.allowance.allowance)) + throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`); + d = { type: "cosmos-sdk/PeriodicAllowance", value: { basic: this.params.allowance.allowance.basic, period: this.params.allowance.allowance.period, period_spend_limit: this.params.allowance.allowance.period_spend_limit, period_can_spend: this.params.allowance.allowance.period_can_spend, period_reset: this.params.allowance.allowance.period_reset } }; + } + u = { type: "cosmos-sdk/AllowedMsgAllowance", value: { allowed_messages: this.params.allowance.allowed_messages, allowance: d } }; + } + } + return { type: "cosmos-sdk/MsgGrantAllowance", value: { granter: this.params.granter, grantee: this.params.grantee, allowance: u } }; + }); + } + }, e.MsgRevokeAllowance = class { + constructor(u) { + this.params = u; + } + toProto() { + return O(this, void 0, void 0, function* () { + return { type_url: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return k.MsgRevokeAllowance.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgRevokeAllowance", value: this.params }; + }); + } + }; + }, 4509: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(o, i, f, c) { + c === void 0 && (c = f), Object.defineProperty(o, c, { enumerable: !0, get: function() { + return i[f]; + } }); + } : function(o, i, f, c) { + c === void 0 && (c = f), o[c] = i[f]; + }), A = this && this.__setModuleDefault || (Object.create ? function(o, i) { + Object.defineProperty(o, "default", { enumerable: !0, value: i }); + } : function(o, i) { + o.default = i; + }), k = this && this.__importStar || function(o) { + if (o && o.__esModule) + return o; + var i = {}; + if (o != null) + for (var f in o) + f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && O(i, o, f); + return A(i, o), i; + }, b = this && this.__awaiter || function(o, i, f, c) { + return new (f || (f = Promise))(function(h, p) { + function m(N) { + try { + l(c.next(N)); + } catch (j) { + p(j); + } + } + function M(N) { + try { + l(c.throw(N)); + } catch (j) { + p(j); + } + } + function l(N) { + var j; + N.done ? h(N.value) : (j = N.value, j instanceof f ? j : new f(function(R) { + R(j); + })).then(m, M); + } + l((c = c.apply(o, i || [])).next()); + }); + }, a = this && this.__importDefault || function(o) { + return o && o.__esModule ? o : { default: o }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgDeposit = e.MsgVoteWeighted = e.MsgVote = e.MsgSubmitProposal = e.ProposalType = e.ProposalStatus = e.VoteOption = void 0; + const t = a(_(4431)), u = _(4191); + var d, s, r; + (r = e.VoteOption || (e.VoteOption = {}))[r.VOTE_OPTION_UNSPECIFIED = 0] = "VOTE_OPTION_UNSPECIFIED", r[r.VOTE_OPTION_YES = 1] = "VOTE_OPTION_YES", r[r.VOTE_OPTION_ABSTAIN = 2] = "VOTE_OPTION_ABSTAIN", r[r.VOTE_OPTION_NO = 3] = "VOTE_OPTION_NO", r[r.VOTE_OPTION_NO_WITH_VETO = 4] = "VOTE_OPTION_NO_WITH_VETO", (s = e.ProposalStatus || (e.ProposalStatus = {}))[s.PROPOSAL_STATUS_UNSPECIFIED = 0] = "PROPOSAL_STATUS_UNSPECIFIED", s[s.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD", s[s.PROPOSAL_STATUS_VOTING_PERIOD = 2] = "PROPOSAL_STATUS_VOTING_PERIOD", s[s.PROPOSAL_STATUS_PASSED = 3] = "PROPOSAL_STATUS_PASSED", s[s.PROPOSAL_STATUS_REJECTED = 4] = "PROPOSAL_STATUS_REJECTED", s[s.PROPOSAL_STATUS_FAILED = 5] = "PROPOSAL_STATUS_FAILED", s[s.UNRECOGNIZED = -1] = "UNRECOGNIZED", function(o) { + o.TextProposal = "TextProposal", o.CommunityPoolSpendProposal = "CommunityPoolSpendProposal", o.ParameterChangeProposal = "ParameterChangeProposal", o.ClientUpdateProposal = "ClientUpdateProposal", o.UpgradeProposal = "UpgradeProposal", o.SoftwareUpgradeProposal = "SoftwareUpgradeProposal", o.CancelSoftwareUpgradeProposal = "CancelSoftwareUpgradeProposal"; + }(d = e.ProposalType || (e.ProposalType = {})); + const n = /* @__PURE__ */ new Map([[d.TextProposal, "cosmos-sdk/TextProposal"], [d.CommunityPoolSpendProposal, "cosmos-sdk/CommunityPoolSpendProposal"], [d.ParameterChangeProposal, "cosmos-sdk/ParameterChangeProposal"], [d.SoftwareUpgradeProposal, "cosmos-sdk/SoftwareUpgradeProposal"], [d.CancelSoftwareUpgradeProposal, "cosmos-sdk/CancelSoftwareUpgradeProposal"]]); + e.MsgSubmitProposal = class { + constructor(o) { + this.params = o; + } + toProto() { + var o; + return b(this, void 0, void 0, function* () { + let i; + switch (this.params.type) { + case d.TextProposal: + const { TextProposal: c } = yield Promise.resolve().then(() => k(_(9074))); + i = u.Any.fromPartial({ type_url: "/cosmos.gov.v1beta1.TextProposal", value: c.encode(c.fromPartial(this.params.content)).finish() }); + break; + case d.CommunityPoolSpendProposal: + const { CommunityPoolSpendProposal: h } = yield Promise.resolve().then(() => k(_(8866))); + i = u.Any.fromPartial({ type_url: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: h.encode(h.fromPartial(this.params.content)).finish() }); + break; + case d.ParameterChangeProposal: + const { ParameterChangeProposal: p } = yield Promise.resolve().then(() => k(_(9913))); + i = u.Any.fromPartial({ type_url: "/cosmos.params.v1beta1.ParameterChangeProposal", value: p.encode(p.fromPartial(this.params.content)).finish() }); + break; + case d.ClientUpdateProposal: + const { ClientUpdateProposal: m } = yield Promise.resolve().then(() => k(_(5650))); + i = u.Any.fromPartial({ type_url: "/ibc.core.client.v1.ClientUpdateProposal", value: m.encode(m.fromPartial(this.params.content)).finish() }); + break; + case d.UpgradeProposal: + const { UpgradeProposal: M } = yield Promise.resolve().then(() => k(_(5650))); + i = u.Any.fromPartial({ type_url: "/ibc.core.client.v1.UpgradeProposal", value: M.encode(M.fromPartial(this.params.content)).finish() }); + break; + case d.SoftwareUpgradeProposal: + const { SoftwareUpgradeProposal: l } = yield Promise.resolve().then(() => k(_(8310))); + i = u.Any.fromPartial({ type_url: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: l.encode(l.fromPartial(this.params.content)).finish() }); + break; + case d.CancelSoftwareUpgradeProposal: + const { CancelSoftwareUpgradeProposal: N } = yield Promise.resolve().then(() => k(_(8310))); + i = u.Any.fromPartial({ type_url: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: N.encode(N.fromPartial(this.params.content)).finish() }); + break; + default: + throw new Error(`Unknown proposal type: "${this.params.type}" - ${JSON.stringify(this.params.content)}`); + } + const f = { content: i, initial_deposit: this.params.initial_deposit, proposer: this.params.proposer, is_expedited: (o = this.params.is_expedited) !== null && o !== void 0 && o }; + return { type_url: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: f, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(88)))).MsgSubmitProposal.encode(f).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + const o = n.get(this.params.type); + if (!o) + throw new Error(`Proposal of type "${String(this.params.type)}" is not supported with an Amino signer.`); + let i = this.params.content; + return this.params.type === d.SoftwareUpgradeProposal && i.plan && (i = Object.assign(Object.assign({}, i), { plan: Object.assign(Object.assign({}, i.plan), { time: "0001-01-01T00:00:00Z" }) })), { type: "cosmos-sdk/MsgSubmitProposal", value: { content: { type: o, value: i }, initial_deposit: this.params.initial_deposit, proposer: this.params.proposer, is_expedited: !!this.params.is_expedited || void 0 } }; + }); + } + }, e.MsgVote = class { + constructor(o) { + this.params = o; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.gov.v1beta1.MsgVote", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(88)))).MsgVote.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgVote", value: this.params }; + }); + } + }, e.MsgVoteWeighted = class { + constructor(o) { + this.params = o; + } + toProto() { + return b(this, void 0, void 0, function* () { + const o = { voter: this.params.voter, proposal_id: this.params.proposal_id, options: this.params.options.map((i) => ({ option: i.option, weight: new t.default(i.weight).toFixed(18).replace(/0\.0*/, "") })) }; + return { type_url: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: o, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(88)))).MsgVoteWeighted.encode(o).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgVoteWeighted", value: { voter: this.params.voter, proposal_id: this.params.proposal_id, options: this.params.options.map((o) => ({ option: o.option, weight: new t.default(o.weight).toFixed(18) })) } }; + }); + } + }, e.MsgDeposit = class { + constructor(o) { + this.params = o; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.gov.v1beta1.MsgDeposit", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(88)))).MsgDeposit.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgDeposit", value: this.params }; + }); + } + }; + }, 6130: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgChannelCloseConfirm = e.MsgChannelCloseInit = e.MsgChannelOpenConfirm = e.MsgChannelOpenAck = e.MsgChannelOpenTry = e.MsgAcknowledgement = e.MsgChannelOpenInit = e.MsgTimeoutOnClose = e.MsgTimeout = e.MsgRecvPacket = void 0, e.MsgRecvPacket = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgRecvPacket", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgRecvPacket.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgRecvPacket doesn't support Amino encoding."); + }); + } + }, e.MsgTimeout = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgTimeout", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgTimeout.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgTimeout doesn't support Amino encoding."); + }); + } + }, e.MsgTimeoutOnClose = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgTimeoutOnClose.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgTimeoutOnClose doesn't support Amino encoding."); + }); + } + }, e.MsgChannelOpenInit = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelOpenInit", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelOpenInit.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelOpenInit doesn't support Amino encoding."); + }); + } + }, e.MsgAcknowledgement = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgAcknowledgement", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgAcknowledgement.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgAcknowledgement doesn't support Amino encoding."); + }); + } + }, e.MsgChannelOpenTry = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelOpenTry", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelOpenTry.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelOpenTry doesn't support Amino encoding."); + }); + } + }, e.MsgChannelOpenAck = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelOpenAck", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelOpenAck.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelOpenAck doesn't support Amino encoding."); + }); + } + }, e.MsgChannelOpenConfirm = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelOpenConfirm doesn't support Amino encoding."); + }); + } + }, e.MsgChannelCloseInit = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelCloseInit", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelCloseInit.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelCloseInit doesn't support Amino encoding."); + }); + } + }, e.MsgChannelCloseConfirm = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgChannelCloseConfirm doesn't support Amino encoding."); + }); + } + }; + }, 574: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgCreateClient = e.MsgSubmitMisbehaviour = e.MsgUpgradeClient = e.MsgUpdateClient = void 0, e.MsgUpdateClient = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.client.v1.MsgUpdateClient", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(322)))).MsgUpdateClient.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgUpdateClient doesn't support Amino encoding."); + }); + } + }, e.MsgUpgradeClient = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.client.v1.MsgUpgradeClient", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(322)))).MsgUpgradeClient.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgUpgradeClient doesn't support Amino encoding."); + }); + } + }, e.MsgSubmitMisbehaviour = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgSubmitMisbehaviour doesn't support Amino encoding."); + }); + } + }, e.MsgCreateClient = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.client.v1.MsgCreateClient", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(322)))).MsgCreateClient.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgCreateClient doesn't support Amino encoding."); + }); + } + }; + }, 6187: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgConnectionOpenConfirm = e.MsgConnectionOpenAck = e.MsgConnectionOpenTry = e.MsgConnectionOpenInit = void 0, e.MsgConnectionOpenInit = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8344)))).MsgConnectionOpenInit.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgConnectionOpenInit doesn't support Amino encoding."); + }); + } + }, e.MsgConnectionOpenTry = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8344)))).MsgConnectionOpenTry.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgConnectionOpenTry doesn't support Amino encoding."); + }); + } + }, e.MsgConnectionOpenAck = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8344)))).MsgConnectionOpenAck.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgConnectionOpenAck doesn't support Amino encoding."); + }); + } + }, e.MsgConnectionOpenConfirm = class { + constructor(a) { + this.msg = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: this.msg, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgConnectionOpenConfirm doesn't support Amino encoding."); + }); + } + }; + }, 7989: function(J, e, _) { + var O = this && this.__awaiter || function(k, b, a, t) { + return new (a || (a = Promise))(function(u, d) { + function s(o) { + try { + n(t.next(o)); + } catch (i) { + d(i); + } + } + function r(o) { + try { + n(t.throw(o)); + } catch (i) { + d(i); + } + } + function n(o) { + var i; + o.done ? u(o.value) : (i = o.value, i instanceof a ? i : new a(function(f) { + f(i); + })).then(s, r); + } + n((t = t.apply(k, b || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgPayPacketFeeAsync = e.MsgPayPacketFee = e.MsgRegisterCounterpartyPayee = e.MsgRegisterPayee = void 0; + const A = _(6065); + e.MsgRegisterPayee = class { + constructor(k) { + this.params = k; + } + toProto() { + return O(this, void 0, void 0, function* () { + return { type_url: "/ibc.applications.fee.v1.MsgRegisterPayee", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return A.MsgRegisterPayee.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgRegisterPayee", value: this.params }; + }); + } + }, e.MsgRegisterCounterpartyPayee = class { + constructor(k) { + this.params = k; + } + toProto() { + return O(this, void 0, void 0, function* () { + return { type_url: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return A.MsgRegisterCounterpartyPayee.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgRegisterCounterpartyPayee", value: this.params }; + }); + } + }, e.MsgPayPacketFee = class { + constructor(k) { + this.params = k; + } + toProto() { + return O(this, void 0, void 0, function* () { + return { type_url: "/ibc.applications.fee.v1.MsgPayPacketFee", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return A.MsgPayPacketFee.encode({ fee: this.params.fee, source_port_id: this.params.source_port_id, source_channel_id: this.params.source_channel_id, signer: this.params.signer, relayers: this.params.relayers || [] }).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgPayPacketFee", value: this.params }; + }); + } + }, e.MsgPayPacketFeeAsync = class { + constructor(k) { + this.params = k; + } + toProto() { + return O(this, void 0, void 0, function* () { + return { type_url: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: this.params, encode: () => O(this, void 0, void 0, function* () { + return A.MsgPayPacketFeeAsync.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return O(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgPayPacketFeeAsync", value: this.params }; + }); + } + }; + }, 6272: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgTransfer = void 0, e.MsgTransfer = class { + constructor(a) { + this.params = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + const a = { source_port: this.params.source_port, source_channel: this.params.source_channel, token: this.params.token, sender: this.params.sender, receiver: this.params.receiver, timeout_height: this.params.timeout_height, timeout_timestamp: this.params.timeout_timestamp ? `${this.params.timeout_timestamp}000000000` : "0", memo: this.params.memo || "" }; + return { type_url: "/ibc.applications.transfer.v1.MsgTransfer", value: a, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(865)))).MsgTransfer.encode(a).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgTransfer", value: { source_port: this.params.source_port, source_channel: this.params.source_channel, token: this.params.token, sender: this.params.sender, receiver: this.params.receiver, timeout_height: this.params.timeout_height ? { revision_number: this.params.timeout_height.revision_number, revision_height: this.params.timeout_height.revision_height } : {}, timeout_timestamp: this.params.timeout_timestamp ? `${this.params.timeout_timestamp}000000000` : "0", memo: this.params.memo } }; + }); + } + }; + }, 3745: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(N, j, R, I) { + I === void 0 && (I = R), Object.defineProperty(N, I, { enumerable: !0, get: function() { + return j[R]; + } }); + } : function(N, j, R, I) { + I === void 0 && (I = R), N[I] = j[R]; + }), A = this && this.__exportStar || function(N, j) { + for (var R in N) + R === "default" || Object.prototype.hasOwnProperty.call(j, R) || O(j, N, R); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRegistry = void 0; + const k = _(5635), b = _(810), a = _(4489), t = _(4301), u = _(3676), d = _(6513), s = _(88), r = _(5925), n = _(7704), o = _(8644), i = _(6065), f = _(865), c = _(7579), h = _(322), p = _(8344), m = _(2896), M = _(4657), l = _(1901); + A(_(2132), e), A(_(587), e), A(_(7278), e), A(_(7949), e), A(_(1890), e), A(_(6049), e), A(_(3651), e), A(_(8434), e), A(_(4509), e), A(_(6130), e), A(_(574), e), A(_(6187), e), A(_(7989), e), A(_(6272), e), A(_(5656), e), A(_(2731), e), A(_(8382), e), A(_(5498), e), e.MsgRegistry = /* @__PURE__ */ new Map([["/cosmos.authz.v1beta1.MsgGrant", k.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", k.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", k.MsgRevoke], ["/cosmos.bank.v1beta1.MsgSend", b.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", b.MsgMultiSend], ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", a.MsgVerifyInvariant], ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", t.MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", t.MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", t.MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", t.MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgSetAutoRestake", t.MsgSetAutoRestake], ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", u.MsgSubmitEvidence], ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", d.MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", d.MsgRevokeAllowance], ["/cosmos.gov.v1beta1.MsgSubmitProposal", s.MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", s.MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", s.MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", s.MsgDeposit], ["/cosmos.slashing.v1beta1.MsgUnjail", r.MsgUnjail], ["/cosmos.staking.v1beta1.MsgCreateValidator", n.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", n.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", n.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", n.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", n.MsgUndelegate], ["/ibc.applications.transfer.v1.MsgTransfer", f.MsgTransfer], ["/ibc.applications.fee.v1.MsgPayPacketFee", i.MsgPayPacketFee], ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", i.MsgPayPacketFeeAsync], ["/ibc.applications.fee.v1.MsgRegisterPayee", i.MsgRegisterPayee], ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", i.MsgRegisterCounterpartyPayee], ["/ibc.core.channel.v1.MsgChannelOpenInit", c.MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelOpenTry", c.MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgChannelOpenAck", c.MsgChannelOpenAck], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", c.MsgChannelOpenConfirm], ["/ibc.core.channel.v1.MsgChannelCloseInit", c.MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", c.MsgChannelCloseConfirm], ["/ibc.core.channel.v1.MsgRecvPacket", c.MsgRecvPacket], ["/ibc.core.channel.v1.MsgTimeout", c.MsgTimeout], ["/ibc.core.channel.v1.MsgTimeoutOnClose", c.MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", c.MsgAcknowledgement], ["/ibc.core.client.v1.MsgCreateClient", h.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", h.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", h.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", h.MsgSubmitMisbehaviour], ["/ibc.core.connection.v1.MsgConnectionOpenInit", p.MsgConnectionOpenInit], ["/ibc.core.connection.v1.MsgConnectionOpenTry", p.MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAck", p.MsgConnectionOpenAck], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", p.MsgConnectionOpenConfirm], ["/secret.compute.v1beta1.MsgStoreCode", m.MsgStoreCode], ["/secret.compute.v1beta1.MsgInstantiateContract", m.MsgInstantiateContract], ["/secret.compute.v1beta1.MsgExecuteContract", m.MsgExecuteContract], ["/secret.compute.v1beta1.MsgMigrateContract", m.MsgMigrateContract], ["/secret.compute.v1beta1.MsgUpdateAdmin", m.MsgUpdateAdmin], ["/secret.compute.v1beta1.MsgClearAdmin", m.MsgClearAdmin], ["/secret.registration.v1beta1.RaAuthenticate", l.RaAuthenticate], ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", o.MsgCreateVestingAccount], ["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch", M.MsgToggleIbcSwitch]]); + }, 8772: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(u, d, s, r) { + r === void 0 && (r = s), Object.defineProperty(u, r, { enumerable: !0, get: function() { + return d[s]; + } }); + } : function(u, d, s, r) { + r === void 0 && (r = s), u[r] = d[s]; + }), A = this && this.__setModuleDefault || (Object.create ? function(u, d) { + Object.defineProperty(u, "default", { enumerable: !0, value: d }); + } : function(u, d) { + u.default = d; + }), k = this && this.__importStar || function(u) { + if (u && u.__esModule) + return u; + var d = {}; + if (u != null) + for (var s in u) + s !== "default" && Object.prototype.hasOwnProperty.call(u, s) && O(d, u, s); + return A(d, u), d; + }, b = this && this.__awaiter || function(u, d, s, r) { + return new (s || (s = Promise))(function(n, o) { + function i(h) { + try { + c(r.next(h)); + } catch (p) { + o(p); + } + } + function f(h) { + try { + c(r.throw(h)); + } catch (p) { + o(p); + } + } + function c(h) { + var p; + h.done ? n(h.value) : (p = h.value, p instanceof s ? p : new s(function(m) { + m(p); + })).then(i, f); + } + c((r = r.apply(u, d || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.RaAuthenticate = void 0; + const a = _(8972), t = _(3607); + e.RaAuthenticate = class { + constructor(u) { + this.params = u; + } + toProto() { + return b(this, void 0, void 0, function* () { + const u = { sender: (0, t.addressToBytes)(this.params.sender), certificate: this.params.certificate }; + return { type_url: "/secret.registration.v1beta1.RaAuthenticate", value: u, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(1901)))).RaAuthenticate.encode(u).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "reg/authenticate", value: { sender: this.params.sender, ra_cert: (0, a.toBase64)(this.params.certificate) } }; + }); + } + }; + }, 5656: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgUnjail = void 0, e.MsgUnjail = class { + constructor(a) { + this.params = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.slashing.v1beta1.MsgUnjail", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(5925)))).MsgUnjail.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgUnjail", value: { address: this.params.validator_addr } }; + }); + } + }; + }, 2731: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(n, o, i, f) { + f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { + return o[i]; + } }); + } : function(n, o, i, f) { + f === void 0 && (f = i), n[f] = o[i]; + }), A = this && this.__setModuleDefault || (Object.create ? function(n, o) { + Object.defineProperty(n, "default", { enumerable: !0, value: o }); + } : function(n, o) { + n.default = o; + }), k = this && this.__importStar || function(n) { + if (n && n.__esModule) + return n; + var o = {}; + if (n != null) + for (var i in n) + i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && O(o, n, i); + return A(o, n), o; + }, b = this && this.__awaiter || function(n, o, i, f) { + return new (i || (i = Promise))(function(c, h) { + function p(l) { + try { + M(f.next(l)); + } catch (N) { + h(N); + } + } + function m(l) { + try { + M(f.throw(l)); + } catch (N) { + h(N); + } + } + function M(l) { + var N; + l.done ? c(l.value) : (N = l.value, N instanceof i ? N : new i(function(j) { + j(N); + })).then(p, m); + } + M((f = f.apply(n, o || [])).next()); + }); + }, a = this && this.__importDefault || function(n) { + return n && n.__esModule ? n : { default: n }; + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgUndelegate = e.MsgBeginRedelegate = e.MsgDelegate = e.MsgEditValidator = e.MsgCreateValidator = void 0; + const t = _(8972), u = _(7715), d = a(_(4431)), s = _(7776), r = _(4191); + e.MsgCreateValidator = class { + constructor(n) { + this.params = n; + } + toProto() { + return b(this, void 0, void 0, function* () { + const n = { description: this.params.description, commission: { rate: new d.default(this.params.commission.rate).toFixed(18).replace(/0\.0*/, ""), max_rate: new d.default(this.params.commission.max_rate).toFixed(18).replace(/0\.0*/, ""), max_change_rate: new d.default(this.params.commission.max_change_rate).toFixed(18).replace(/0\.0*/, "") }, min_self_delegation: this.params.min_self_delegation, delegator_address: this.params.delegator_address, validator_address: u.bech32.encode("secretvaloper", u.bech32.decode(this.params.delegator_address).words), pubkey: r.Any.fromPartial({ type_url: "/cosmos.crypto.ed25519.PubKey", value: s.PubKey.encode(s.PubKey.fromPartial({ key: (0, t.fromBase64)(this.params.pubkey) })).finish() }), value: this.params.initial_delegation }; + return { type_url: "/cosmos.staking.v1beta1.MsgCreateValidator", value: n, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7704)))).MsgCreateValidator.encode(n).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgCreateValidator", value: { description: { moniker: this.params.description.moniker, identity: this.params.description.identity, website: this.params.description.website, security_contact: this.params.description.security_contact, details: this.params.description.details }, commission: { rate: new d.default(this.params.commission.rate).toFixed(18), max_rate: new d.default(this.params.commission.max_rate).toFixed(18), max_change_rate: new d.default(this.params.commission.max_change_rate).toFixed(18) }, min_self_delegation: this.params.min_self_delegation, delegator_address: this.params.delegator_address, validator_address: u.bech32.encode("secretvaloper", u.bech32.decode(this.params.delegator_address).words), pubkey: { type: "tendermint/PubKeyEd25519", value: this.params.pubkey }, value: this.params.initial_delegation } }; + }); + } + }, e.MsgEditValidator = class { + constructor(n) { + this.params = n; + } + toProto() { + return b(this, void 0, void 0, function* () { + const { Description: n } = yield Promise.resolve().then(() => k(_(2572))), o = { validator_address: this.params.validator_address, description: n.fromPartial(this.params.description || {}), commission_rate: this.params.commission_rate ? new d.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/, "") : "", min_self_delegation: this.params.min_self_delegation || "" }; + return { type_url: "/cosmos.staking.v1beta1.MsgEditValidator", value: o, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7704)))).MsgEditValidator.encode(o).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + let n, o; + return this.params.description && (n = { moniker: this.params.description.moniker, identity: this.params.description.identity, website: this.params.description.website, security_contact: this.params.description.security_contact, details: this.params.description.details }), this.params.commission_rate && (o = new d.default(this.params.commission_rate).toFixed(18)), { type: "cosmos-sdk/MsgEditValidator", value: { validator_address: this.params.validator_address, description: n, commission_rate: o, min_self_delegation: this.params.min_self_delegation } }; + }); + } + }, e.MsgDelegate = class { + constructor(n) { + this.params = n; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.staking.v1beta1.MsgDelegate", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7704)))).MsgDelegate.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgDelegate", value: this.params }; + }); + } + }, e.MsgBeginRedelegate = class { + constructor(n) { + this.params = n; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7704)))).MsgBeginRedelegate.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgBeginRedelegate", value: this.params }; + }); + } + }, e.MsgUndelegate = class { + constructor(n) { + this.params = n; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.staking.v1beta1.MsgUndelegate", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(7704)))).MsgUndelegate.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + return { type: "cosmos-sdk/MsgUndelegate", value: this.params }; + }); + } + }; + }, 8382: (J, e) => { + Object.defineProperty(e, "__esModule", { value: !0 }); + }, 5498: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(a, t, u, d) { + d === void 0 && (d = u), Object.defineProperty(a, d, { enumerable: !0, get: function() { + return t[u]; + } }); + } : function(a, t, u, d) { + d === void 0 && (d = u), a[d] = t[u]; + }), A = this && this.__setModuleDefault || (Object.create ? function(a, t) { + Object.defineProperty(a, "default", { enumerable: !0, value: t }); + } : function(a, t) { + a.default = t; + }), k = this && this.__importStar || function(a) { + if (a && a.__esModule) + return a; + var t = {}; + if (a != null) + for (var u in a) + u !== "default" && Object.prototype.hasOwnProperty.call(a, u) && O(t, a, u); + return A(t, a), t; + }, b = this && this.__awaiter || function(a, t, u, d) { + return new (u || (u = Promise))(function(s, r) { + function n(f) { + try { + i(d.next(f)); + } catch (c) { + r(c); + } + } + function o(f) { + try { + i(d.throw(f)); + } catch (c) { + r(c); + } + } + function i(f) { + var c; + f.done ? s(f.value) : (c = f.value, c instanceof u ? c : new u(function(h) { + h(c); + })).then(n, o); + } + i((d = d.apply(a, t || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgCreateVestingAccount = void 0, e.MsgCreateVestingAccount = class { + constructor(a) { + this.params = a; + } + toProto() { + return b(this, void 0, void 0, function* () { + return { type_url: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: this.params, encode: () => b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8644)))).MsgCreateVestingAccount.encode(this.params).finish(); + }) }; + }); + } + toAmino() { + return b(this, void 0, void 0, function* () { + throw new Error("MsgCreateVestingAccount not implemented."); + }); + } + }; + }, 8593: (J, e, _) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.bytesToAddress = e.addressToBytes = e.validateAddress = e.coinsFromString = e.stringToCoins = e.coinFromString = e.stringToCoin = e.ibcDenom = e.base64TendermintPubkeyToValconsAddress = e.tendermintPubkeyToValconsAddress = e.validatorAddressToSelfDelegatorAddress = e.selfDelegatorAddressToValidatorAddress = e.base64PubkeyToAddress = e.pubkeyToAddress = e.is_gzip = void 0; + const O = _(8972), A = _(830), k = _(3061), b = _(7715); + function a(u, d = "secret") { + return b.bech32.encode(d, b.bech32.toWords((0, A.ripemd160)((0, k.sha256)(u)))); + } + function t(u, d = "secret") { + return b.bech32.encode(`${d}valcons`, b.bech32.toWords((0, k.sha256)(u).slice(0, 20))); + } + e.is_gzip = (u) => !(!u || u.length < 3) && u[0] === 31 && u[1] === 139 && u[2] === 8, e.pubkeyToAddress = a, e.base64PubkeyToAddress = function(u, d = "secret") { + return a((0, O.fromBase64)(u), d); + }, e.selfDelegatorAddressToValidatorAddress = function(u, d = "secret") { + return b.bech32.encode(`${d}valoper`, b.bech32.decode(u).words); + }, e.validatorAddressToSelfDelegatorAddress = function(u, d = "secret") { + return b.bech32.encode(d, b.bech32.decode(u).words); + }, e.tendermintPubkeyToValconsAddress = t, e.base64TendermintPubkeyToValconsAddress = function(u, d = "secret") { + return t((0, O.fromBase64)(u), d); + }, e.ibcDenom = (u, d) => { + const s = []; + for (const n of u) + s.push(`${n.incomingPortId}/${n.incomingChannelId}`); + const r = `${s.join("/")}/${d}`; + return "ibc/" + (0, O.toHex)((0, k.sha256)((0, O.toUtf8)(r))).toUpperCase(); + }, e.stringToCoin = (u) => { + const d = u.match(/^(\d+)([a-z]+)$/); + if (d === null) + throw new Error(`cannot extract denom & amount from '${u}'`); + return { amount: d[1], denom: d[2] }; + }, e.coinFromString = e.stringToCoin, e.stringToCoins = (u) => u.split(",").map(e.stringToCoin), e.coinsFromString = e.stringToCoins, e.validateAddress = (u, d = "secret") => { + let s; + try { + s = b.bech32.decode(u); + } catch (n) { + let o = "failed to decode address as a bech32"; + return n instanceof Error && (o += `: ${n.message}`), { isValid: !1, reason: o }; + } + if (s.prefix !== d) + return { isValid: !1, reason: `wrong bech32 prefix, expected '${d}', got '${s.prefix}'` }; + const r = b.bech32.fromWords(s.words); + return r.length !== 20 && r.length !== 32 ? { isValid: !1, reason: `wrong address length, expected 20 or 32 bytes, got ${r.length}` } : { isValid: !0 }; + }, e.addressToBytes = function(u) { + return u === "" ? new Uint8Array(0) : Uint8Array.from(b.bech32.fromWords(b.bech32.decode(u).words)); + }, e.bytesToAddress = function(u, d = "secret") { + return u.length === 0 ? "" : b.bech32.encode(d, b.bech32.toWords(u)); + }; + }, 5360: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(c, h, p, m) { + m === void 0 && (m = p), Object.defineProperty(c, m, { enumerable: !0, get: function() { + return h[p]; + } }); + } : function(c, h, p, m) { + m === void 0 && (m = p), c[m] = h[p]; + }), A = this && this.__setModuleDefault || (Object.create ? function(c, h) { + Object.defineProperty(c, "default", { enumerable: !0, value: h }); + } : function(c, h) { + c.default = h; + }), k = this && this.__importStar || function(c) { + if (c && c.__esModule) + return c; + var h = {}; + if (c != null) + for (var p in c) + p !== "default" && Object.prototype.hasOwnProperty.call(c, p) && O(h, c, p); + return A(h, c), h; + }, b = this && this.__awaiter || function(c, h, p, m) { + return new (p || (p = Promise))(function(M, l) { + function N(I) { + try { + R(m.next(I)); + } catch (x) { + l(x); + } + } + function j(I) { + try { + R(m.throw(I)); + } catch (x) { + l(x); + } + } + function R(I) { + var x; + I.done ? M(I.value) : (x = I.value, x instanceof p ? x : new p(function(P) { + P(x); + })).then(N, j); + } + R((m = m.apply(c, h || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.isDirectSigner = e.isSignDocCamelCase = e.isSignDoc = e.serializeStdSignDoc = e.sortObject = e.encodeSecp256k1Pubkey = e.encodeSecp256k1Signature = e.AminoWallet = e.SECRET_BECH32_PREFIX = e.SECRET_COIN_TYPE = void 0; + const a = _(8972), t = _(3061), u = k(_(9656)), d = k(_(7786)), s = k(_(2153)), r = _(3607); + function n(c, h) { + if (h.length !== 64) + throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s."); + return { pub_key: o(c), signature: (0, a.toBase64)(h) }; + } + function o(c) { + if (c.length !== 33 || c[0] !== 2 && c[0] !== 3) + throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03"); + return { type: "tendermint/PubKeySecp256k1", value: (0, a.toBase64)(c) }; + } + function i(c) { + if (typeof c != "object" || c === null) + return c; + if (Array.isArray(c)) + return c.map(i); + const h = Object.keys(c).sort(), p = {}; + return h.forEach((m) => { + p[m] = i(c[m]); + }), p; + } + function f(c) { + return (0, a.toUtf8)((h = c, JSON.stringify(i(h)))); + var h; + } + e.SECRET_COIN_TYPE = 529, e.SECRET_BECH32_PREFIX = "secret", e.AminoWallet = class { + constructor(c = "", h = {}) { + var p, m, M; + c === "" && (c = s.generateMnemonic(256)), this.mnemonic = c, this.hdAccountIndex = (p = h.hdAccountIndex) !== null && p !== void 0 ? p : 0, this.coinType = (m = h.coinType) !== null && m !== void 0 ? m : e.SECRET_COIN_TYPE, this.bech32Prefix = (M = h.bech32Prefix) !== null && M !== void 0 ? M : e.SECRET_BECH32_PREFIX; + const l = s.mnemonicToSeedSync(this.mnemonic), N = d.fromSeed(l).derivePath(`m/44'/${this.coinType}'/0'/0/${this.hdAccountIndex}`).privateKey; + if (!N) + throw new Error("Failed to derive key pair"); + this.privateKey = new Uint8Array(N), this.publicKey = u.getPublicKey(this.privateKey, !0), this.address = (0, r.pubkeyToAddress)(this.publicKey, this.bech32Prefix); + } + getAccounts() { + return b(this, void 0, void 0, function* () { + return [{ address: this.address, algo: "secp256k1", pubkey: this.publicKey }]; + }); + } + signAmino(c, h) { + return b(this, void 0, void 0, function* () { + if (c !== this.address) + throw new Error(`Address ${c} not found in wallet`); + const p = (0, t.sha256)(f(h)), m = yield u.sign(p, this.privateKey, { extraEntropy: !0, der: !1 }); + return { signed: h, signature: n(this.publicKey, m) }; + }); + } + }, e.encodeSecp256k1Signature = n, e.encodeSecp256k1Pubkey = o, e.sortObject = i, e.serializeStdSignDoc = f, e.isSignDoc = function(c) { + return "body_bytes" in c && "auth_info_bytes" in c && "chain_id" in c && "account_number" in c; + }, e.isSignDocCamelCase = function(c) { + return "bodyBytes" in c && "authInfoBytes" in c && "chainId" in c && "accountNumber" in c; + }, e.isDirectSigner = function(c) { + return c.signDirect !== void 0; + }; + }, 1444: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(n, o, i, f) { + f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { + return o[i]; + } }); + } : function(n, o, i, f) { + f === void 0 && (f = i), n[f] = o[i]; + }), A = this && this.__setModuleDefault || (Object.create ? function(n, o) { + Object.defineProperty(n, "default", { enumerable: !0, value: o }); + } : function(n, o) { + n.default = o; + }), k = this && this.__importStar || function(n) { + if (n && n.__esModule) + return n; + var o = {}; + if (n != null) + for (var i in n) + i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && O(o, n, i); + return A(o, n), o; + }, b = this && this.__awaiter || function(n, o, i, f) { + return new (i || (i = Promise))(function(c, h) { + function p(l) { + try { + M(f.next(l)); + } catch (N) { + h(N); + } + } + function m(l) { + try { + M(f.throw(l)); + } catch (N) { + h(N); + } + } + function M(l) { + var N; + l.done ? c(l.value) : (N = l.value, N instanceof i ? N : new i(function(j) { + j(N); + })).then(p, m); + } + M((f = f.apply(n, o || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.MetaMaskWallet = void 0; + const a = _(5426), t = k(_(9656)), u = _(3061), d = _(3607), s = _(5360); + class r { + constructor(o, i, f) { + this.ethProvider = o, this.ethAddress = i, this.publicKey = f, this.address = (0, d.pubkeyToAddress)(this.publicKey); + } + static create(o, i) { + return b(this, void 0, void 0, function* () { + const f = `secretjs_${i}_pubkey`, c = localStorage.getItem(f); + if (c) { + const I = i.slice(2).toLocaleLowerCase(); + if ((0, d.toHex)((0, a.keccak_256)(function(P) { + return t.Point.fromHex(P).toRawBytes(!1); + }(c).slice(1)).slice(-20)).toLocaleLowerCase() === I) + return new r(o, i, (0, d.fromHex)(c)); + localStorage.removeItem(f); + } + const h = (0, d.toUtf8)("Get secret address"), p = `0x${(0, d.toHex)(h)}`, m = (yield o.request({ method: "personal_sign", params: [p, i] })).toString(), M = (0, d.fromHex)(m.slice(2, -2)); + let l = parseInt(m.slice(-2), 16) - 27; + l < 0 && (l += 27); + const N = (0, d.toUtf8)(`Ethereum Signed Message: +`), j = (0, d.toUtf8)(String(h.length)), R = t.recoverPublicKey((0, a.keccak_256)(new Uint8Array([...N, ...j, ...h])), M, l, !0); + return localStorage.setItem(f, (0, d.toHex)(R)), new r(o, i, R); + }); + } + getAccounts() { + return b(this, void 0, void 0, function* () { + return [{ address: this.address, algo: "secp256k1", pubkey: this.publicKey }]; + }); + } + getSignMode() { + return b(this, void 0, void 0, function* () { + return (yield Promise.resolve().then(() => k(_(8502)))).SignMode.SIGN_MODE_EIP_191; + }); + } + signAmino(o, i) { + return b(this, void 0, void 0, function* () { + if (o !== (0, d.pubkeyToAddress)(this.publicKey)) + throw new Error(`Address ${o} not found in wallet`); + const f = `0x${(0, d.toHex)(function(p) { + return (0, d.toUtf8)((m = p, JSON.stringify((0, s.sortObject)(m), null, 4))); + var m; + }(i))}`, c = yield this.ethProvider.request({ method: "personal_sign", params: [f, this.ethAddress] }), h = (0, d.fromHex)(c.slice(2, -2)); + return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, h) }; + }); + } + signPermit(o, i) { + return b(this, void 0, void 0, function* () { + if (o !== (0, d.pubkeyToAddress)(this.publicKey)) + throw new Error(`Address ${o} not found in wallet`); + const f = (0, u.sha256)((0, s.serializeStdSignDoc)(i)), c = yield this.ethProvider.request({ method: "eth_sign", params: [this.ethAddress, "0x" + (0, d.toHex)(f)] }), h = (0, d.fromHex)(c.slice(2, -2)); + return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, h) }; + }); + } + } + e.MetaMaskWallet = r; + }, 1049: function(J, e, _) { + var O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { + return r[n]; + } }); + } : function(s, r, n, o) { + o === void 0 && (o = n), s[o] = r[n]; + }), A = this && this.__setModuleDefault || (Object.create ? function(s, r) { + Object.defineProperty(s, "default", { enumerable: !0, value: r }); + } : function(s, r) { + s.default = r; + }), k = this && this.__importStar || function(s) { + if (s && s.__esModule) + return s; + var r = {}; + if (s != null) + for (var n in s) + n !== "default" && Object.prototype.hasOwnProperty.call(s, n) && O(r, s, n); + return A(r, s), r; + }, b = this && this.__awaiter || function(s, r, n, o) { + return new (n || (n = Promise))(function(i, f) { + function c(m) { + try { + p(o.next(m)); + } catch (M) { + f(M); + } + } + function h(m) { + try { + p(o.throw(m)); + } catch (M) { + f(M); + } + } + function p(m) { + var M; + m.done ? i(m.value) : (M = m.value, M instanceof n ? M : new n(function(l) { + l(M); + })).then(c, h); + } + p((o = o.apply(s, r || [])).next()); + }); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.Wallet = void 0; + const a = _(3061), t = k(_(9656)), u = _(5360); + class d extends u.AminoWallet { + signDirect(r, n) { + return b(this, void 0, void 0, function* () { + if (r !== this.address) + throw new Error(`Address ${r} not found in wallet`); + const o = (0, a.sha256)(yield function({ account_number: f, auth_info_bytes: c, body_bytes: h, chain_id: p }) { + return b(this, void 0, void 0, function* () { + const { SignDoc: m } = yield Promise.resolve().then(() => k(_(6994))); + return m.encode(m.fromPartial({ account_number: f, auth_info_bytes: c, body_bytes: h, chain_id: p })).finish(); + }); + }(n)), i = yield t.sign(o, this.privateKey, { extraEntropy: !0, der: !1 }); + return { signed: n, signature: (0, u.encodeSecp256k1Signature)(this.publicKey, i) }; + }); + } + } + e.Wallet = d; + }, 6647: (J, e, _) => { + var O = _(247); + function A(s) { + return s.name || s.toString().match(/function (.*?)\s*\(/)[1]; + } + function k(s) { + return O.Nil(s) ? "" : A(s.constructor); + } + function b(s, r) { + Error.captureStackTrace && Error.captureStackTrace(s, r); + } + function a(s) { + return O.Function(s) ? s.toJSON ? s.toJSON() : A(s) : O.Array(s) ? "Array" : s && O.Object(s) ? "Object" : s !== void 0 ? s : ""; + } + function t(s, r, n) { + var o = function(i) { + return O.Function(i) ? "" : O.String(i) ? JSON.stringify(i) : i && O.Object(i) ? "" : i; + }(r); + return "Expected " + a(s) + ", got" + (n !== "" ? " " + n : "") + (o !== "" ? " " + o : ""); + } + function u(s, r, n) { + n = n || k(r), this.message = t(s, r, n), b(this, u), this.__type = s, this.__value = r, this.__valueTypeName = n; + } + function d(s, r, n, o, i) { + s ? (i = i || k(o), this.message = function(f, c, h, p, m) { + var M = '" of type '; + return c === "key" && (M = '" with key type '), t('property "' + a(h) + M + a(f), p, m); + }(s, n, r, o, i)) : this.message = 'Unexpected property "' + r + '"', b(this, u), this.__label = n, this.__property = r, this.__type = s, this.__value = o, this.__valueTypeName = i; + } + u.prototype = Object.create(Error.prototype), u.prototype.constructor = u, d.prototype = Object.create(Error.prototype), d.prototype.constructor = u, J.exports = { TfTypeError: u, TfPropertyTypeError: d, tfCustomError: function(s, r) { + return new u(s, {}, r); + }, tfSubError: function(s, r, n) { + return s instanceof d ? (r = r + "." + s.__property, s = new d(s.__type, r, s.__label, s.__value, s.__valueTypeName)) : s instanceof u && (s = new d(s.__type, r, n, s.__value, s.__valueTypeName)), b(s), s; + }, tfJSON: a, getValueTypeName: k }; + }, 4307: (J, e, _) => { + var O = _(8764).Buffer, A = _(247), k = _(6647); + function b(f) { + return O.isBuffer(f); + } + function a(f) { + return typeof f == "string" && /^([0-9a-f]{2})+$/i.test(f); + } + function t(f, c) { + var h = f.toJSON(); + function p(m) { + if (!f(m)) + return !1; + if (m.length === c) + return !0; + throw k.tfCustomError(h + "(Length: " + c + ")", h + "(Length: " + m.length + ")"); + } + return p.toJSON = function() { + return h; + }, p; + } + var u = t.bind(null, A.Array), d = t.bind(null, b), s = t.bind(null, a), r = t.bind(null, A.String), n = Math.pow(2, 53) - 1, o = { ArrayN: u, Buffer: b, BufferN: d, Finite: function(f) { + return typeof f == "number" && isFinite(f); + }, Hex: a, HexN: s, Int8: function(f) { + return f << 24 >> 24 === f; + }, Int16: function(f) { + return f << 16 >> 16 === f; + }, Int32: function(f) { + return (0 | f) === f; + }, Int53: function(f) { + return typeof f == "number" && f >= -n && f <= n && Math.floor(f) === f; + }, Range: function(f, c, h) { + function p(m, M) { + return h(m, M) && m > f && m < c; + } + return h = h || A.Number, p.toJSON = function() { + return `${h.toJSON()} between [${f}, ${c}]`; + }, p; + }, StringN: r, UInt8: function(f) { + return (255 & f) === f; + }, UInt16: function(f) { + return (65535 & f) === f; + }, UInt32: function(f) { + return f >>> 0 === f; + }, UInt53: function(f) { + return typeof f == "number" && f >= 0 && f <= n && Math.floor(f) === f; + } }; + for (var i in o) + o[i].toJSON = (function(f) { + return f; + }).bind(null, i); + J.exports = o; + }, 2401: (J, e, _) => { + var O = _(6647), A = _(247), k = O.tfJSON, b = O.TfTypeError, a = O.TfPropertyTypeError, t = O.tfSubError, u = O.getValueTypeName, d = { arrayOf: function(i, f) { + function c(h, p) { + return !!A.Array(h) && !A.Nil(h) && !(f.minLength !== void 0 && h.length < f.minLength) && !(f.maxLength !== void 0 && h.length > f.maxLength) && (f.length === void 0 || h.length === f.length) && h.every(function(m, M) { + try { + return r(i, m, p); + } catch (l) { + throw t(l, M); + } + }); + } + return i = s(i), f = f || {}, c.toJSON = function() { + var h = "[" + k(i) + "]"; + return f.length !== void 0 ? h += "{" + f.length + "}" : f.minLength === void 0 && f.maxLength === void 0 || (h += "{" + (f.minLength === void 0 ? 0 : f.minLength) + "," + (f.maxLength === void 0 ? 1 / 0 : f.maxLength) + "}"), h; + }, c; + }, maybe: function i(f) { + function c(h, p) { + return A.Nil(h) || f(h, p, i); + } + return f = s(f), c.toJSON = function() { + return "?" + k(f); + }, c; + }, map: function(i, f) { + function c(h, p) { + if (!A.Object(h) || A.Nil(h)) + return !1; + for (var m in h) { + try { + f && r(f, m, p); + } catch (l) { + throw t(l, m, "key"); + } + try { + var M = h[m]; + r(i, M, p); + } catch (l) { + throw t(l, m); + } + } + return !0; + } + return i = s(i), f && (f = s(f)), c.toJSON = f ? function() { + return "{" + k(f) + ": " + k(i) + "}"; + } : function() { + return "{" + k(i) + "}"; + }, c; + }, object: function(i) { + var f = {}; + for (var c in i) + f[c] = s(i[c]); + function h(p, m) { + if (!A.Object(p) || A.Nil(p)) + return !1; + var M; + try { + for (M in f) + r(f[M], p[M], m); + } catch (l) { + throw t(l, M); + } + if (m) { + for (M in p) + if (!f[M]) + throw new a(void 0, M); + } + return !0; + } + return h.toJSON = function() { + return k(f); + }, h; + }, anyOf: function() { + var i = [].slice.call(arguments).map(s); + function f(c, h) { + return i.some(function(p) { + try { + return r(p, c, h); + } catch { + return !1; + } + }); + } + return f.toJSON = function() { + return i.map(k).join("|"); + }, f; + }, allOf: function() { + var i = [].slice.call(arguments).map(s); + function f(c, h) { + return i.every(function(p) { + try { + return r(p, c, h); + } catch { + return !1; + } + }); + } + return f.toJSON = function() { + return i.map(k).join(" & "); + }, f; + }, quacksLike: function(i) { + function f(c) { + return i === u(c); + } + return f.toJSON = function() { + return i; + }, f; + }, tuple: function() { + var i = [].slice.call(arguments).map(s); + function f(c, h) { + return !A.Nil(c) && !A.Nil(c.length) && (!h || c.length === i.length) && i.every(function(p, m) { + try { + return r(p, c[m], h); + } catch (M) { + throw t(M, m); + } + }); + } + return f.toJSON = function() { + return "(" + i.map(k).join(", ") + ")"; + }, f; + }, value: function(i) { + function f(c) { + return c === i; + } + return f.toJSON = function() { + return i; + }, f; + } }; + function s(i) { + if (A.String(i)) + return i[0] === "?" ? d.maybe(i.slice(1)) : A[i] || d.quacksLike(i); + if (i && A.Object(i)) { + if (A.Array(i)) { + if (i.length !== 1) + throw new TypeError("Expected compile() parameter of type Array of length 1"); + return d.arrayOf(i[0]); + } + return d.object(i); + } + return A.Function(i) ? i : d.value(i); + } + function r(i, f, c, h) { + if (A.Function(i)) { + if (i(f, c)) + return !0; + throw new b(h || i, f); + } + return r(s(i), f, c); + } + for (var n in d.oneOf = d.anyOf, A) + r[n] = A[n]; + for (n in d) + r[n] = d[n]; + var o = _(4307); + for (n in o) + r[n] = o[n]; + r.compile = s, r.TfTypeError = b, r.TfPropertyTypeError = a, J.exports = r; + }, 247: (J) => { + var e = { Array: function(O) { + return O != null && O.constructor === Array; + }, Boolean: function(O) { + return typeof O == "boolean"; + }, Function: function(O) { + return typeof O == "function"; + }, Nil: function(O) { + return O == null; + }, Number: function(O) { + return typeof O == "number"; + }, Object: function(O) { + return typeof O == "object"; + }, String: function(O) { + return typeof O == "string"; + }, "": function() { + return !0; + } }; + for (var _ in e.Null = e.Nil, e) + e[_].toJSON = (function(O) { + return O; + }).bind(null, _); + J.exports = e; + }, 4927: (J, e, _) => { + var O = _(5108); + function A(k) { + try { + if (!_.g.localStorage) + return !1; + } catch { + return !1; + } + var b = _.g.localStorage[k]; + return b != null && String(b).toLowerCase() === "true"; + } + J.exports = function(k, b) { + if (A("noDeprecation")) + return k; + var a = !1; + return function() { + if (!a) { + if (A("throwDeprecation")) + throw new Error(b); + A("traceDeprecation") ? O.trace(b) : O.warn(b), a = !0; + } + return k.apply(this, arguments); + }; + }; + }, 384: (J) => { + J.exports = function(e) { + return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function"; + }; + }, 5955: (J, e, _) => { + var O = _(2584), A = _(8662), k = _(6430), b = _(5692); + function a(C) { + return C.call.bind(C); + } + var t = typeof BigInt < "u", u = typeof Symbol < "u", d = a(Object.prototype.toString), s = a(Number.prototype.valueOf), r = a(String.prototype.valueOf), n = a(Boolean.prototype.valueOf); + if (t) + var o = a(BigInt.prototype.valueOf); + if (u) + var i = a(Symbol.prototype.valueOf); + function f(C, F) { + if (typeof C != "object") + return !1; + try { + return F(C), !0; + } catch { + return !1; + } + } + function c(C) { + return d(C) === "[object Map]"; + } + function h(C) { + return d(C) === "[object Set]"; + } + function p(C) { + return d(C) === "[object WeakMap]"; + } + function m(C) { + return d(C) === "[object WeakSet]"; + } + function M(C) { + return d(C) === "[object ArrayBuffer]"; + } + function l(C) { + return typeof ArrayBuffer < "u" && (M.working ? M(C) : C instanceof ArrayBuffer); + } + function N(C) { + return d(C) === "[object DataView]"; + } + function j(C) { + return typeof DataView < "u" && (N.working ? N(C) : C instanceof DataView); + } + e.isArgumentsObject = O, e.isGeneratorFunction = A, e.isTypedArray = b, e.isPromise = function(C) { + return typeof Promise < "u" && C instanceof Promise || C !== null && typeof C == "object" && typeof C.then == "function" && typeof C.catch == "function"; + }, e.isArrayBufferView = function(C) { + return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(C) : b(C) || j(C); + }, e.isUint8Array = function(C) { + return k(C) === "Uint8Array"; + }, e.isUint8ClampedArray = function(C) { + return k(C) === "Uint8ClampedArray"; + }, e.isUint16Array = function(C) { + return k(C) === "Uint16Array"; + }, e.isUint32Array = function(C) { + return k(C) === "Uint32Array"; + }, e.isInt8Array = function(C) { + return k(C) === "Int8Array"; + }, e.isInt16Array = function(C) { + return k(C) === "Int16Array"; + }, e.isInt32Array = function(C) { + return k(C) === "Int32Array"; + }, e.isFloat32Array = function(C) { + return k(C) === "Float32Array"; + }, e.isFloat64Array = function(C) { + return k(C) === "Float64Array"; + }, e.isBigInt64Array = function(C) { + return k(C) === "BigInt64Array"; + }, e.isBigUint64Array = function(C) { + return k(C) === "BigUint64Array"; + }, c.working = typeof Map < "u" && c(/* @__PURE__ */ new Map()), e.isMap = function(C) { + return typeof Map < "u" && (c.working ? c(C) : C instanceof Map); + }, h.working = typeof Set < "u" && h(/* @__PURE__ */ new Set()), e.isSet = function(C) { + return typeof Set < "u" && (h.working ? h(C) : C instanceof Set); + }, p.working = typeof WeakMap < "u" && p(/* @__PURE__ */ new WeakMap()), e.isWeakMap = function(C) { + return typeof WeakMap < "u" && (p.working ? p(C) : C instanceof WeakMap); + }, m.working = typeof WeakSet < "u" && m(/* @__PURE__ */ new WeakSet()), e.isWeakSet = function(C) { + return m(C); + }, M.working = typeof ArrayBuffer < "u" && M(new ArrayBuffer()), e.isArrayBuffer = l, N.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && N(new DataView(new ArrayBuffer(1), 0, 1)), e.isDataView = j; + var R = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0; + function I(C) { + return d(C) === "[object SharedArrayBuffer]"; + } + function x(C) { + return R !== void 0 && (I.working === void 0 && (I.working = I(new R())), I.working ? I(C) : C instanceof R); + } + function P(C) { + return f(C, s); + } + function w(C) { + return f(C, r); + } + function g(C) { + return f(C, n); + } + function E(C) { + return t && f(C, o); + } + function U(C) { + return u && f(C, i); + } + e.isSharedArrayBuffer = x, e.isAsyncFunction = function(C) { + return d(C) === "[object AsyncFunction]"; + }, e.isMapIterator = function(C) { + return d(C) === "[object Map Iterator]"; + }, e.isSetIterator = function(C) { + return d(C) === "[object Set Iterator]"; + }, e.isGeneratorObject = function(C) { + return d(C) === "[object Generator]"; + }, e.isWebAssemblyCompiledModule = function(C) { + return d(C) === "[object WebAssembly.Module]"; + }, e.isNumberObject = P, e.isStringObject = w, e.isBooleanObject = g, e.isBigIntObject = E, e.isSymbolObject = U, e.isBoxedPrimitive = function(C) { + return P(C) || w(C) || g(C) || E(C) || U(C); + }, e.isAnyArrayBuffer = function(C) { + return typeof Uint8Array < "u" && (l(C) || x(C)); + }, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(C) { + Object.defineProperty(e, C, { enumerable: !1, value: function() { + throw new Error(C + " is not supported in userland"); + } }); + }); + }, 9539: (J, e, _) => { + var O = _(4155), A = _(5108), k = Object.getOwnPropertyDescriptors || function(C) { + for (var F = Object.keys(C), re = {}, ee = 0; ee < F.length; ee++) + re[F[ee]] = Object.getOwnPropertyDescriptor(C, F[ee]); + return re; + }, b = /%[sdj%]/g; + e.format = function(C) { + if (!m(C)) { + for (var F = [], re = 0; re < arguments.length; re++) + F.push(d(arguments[re])); + return F.join(" "); + } + re = 1; + for (var ee = arguments, ne = ee.length, D = String(C).replace(b, function($) { + if ($ === "%%") + return "%"; + if (re >= ne) + return $; + switch ($) { + case "%s": + return String(ee[re++]); + case "%d": + return Number(ee[re++]); + case "%j": + try { + return JSON.stringify(ee[re++]); + } catch { + return "[Circular]"; + } + default: + return $; + } + }), Z = ee[re]; re < ne; Z = ee[++re]) + h(Z) || !N(Z) ? D += " " + Z : D += " " + d(Z); + return D; + }, e.deprecate = function(C, F) { + if (O !== void 0 && O.noDeprecation === !0) + return C; + if (O === void 0) + return function() { + return e.deprecate(C, F).apply(this, arguments); + }; + var re = !1; + return function() { + if (!re) { + if (O.throwDeprecation) + throw new Error(F); + O.traceDeprecation ? A.trace(F) : A.error(F), re = !0; + } + return C.apply(this, arguments); + }; + }; + var a = {}, t = /^$/; + if (O.env.NODE_DEBUG) { + var u = O.env.NODE_DEBUG; + u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), t = new RegExp("^" + u + "$", "i"); + } + function d(C, F) { + var re = { seen: [], stylize: r }; + return arguments.length >= 3 && (re.depth = arguments[2]), arguments.length >= 4 && (re.colors = arguments[3]), c(F) ? re.showHidden = F : F && e._extend(re, F), M(re.showHidden) && (re.showHidden = !1), M(re.depth) && (re.depth = 2), M(re.colors) && (re.colors = !1), M(re.customInspect) && (re.customInspect = !0), re.colors && (re.stylize = s), n(re, C, re.depth); + } + function s(C, F) { + var re = d.styles[F]; + return re ? "\x1B[" + d.colors[re][0] + "m" + C + "\x1B[" + d.colors[re][1] + "m" : C; + } + function r(C, F) { + return C; + } + function n(C, F, re) { + if (C.customInspect && F && I(F.inspect) && F.inspect !== e.inspect && (!F.constructor || F.constructor.prototype !== F)) { + var ee = F.inspect(re, C); + return m(ee) || (ee = n(C, ee, re)), ee; + } + var ne = function(ae, ce) { + if (M(ce)) + return ae.stylize("undefined", "undefined"); + if (m(ce)) { + var ue = "'" + JSON.stringify(ce).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; + return ae.stylize(ue, "string"); + } + return p(ce) ? ae.stylize("" + ce, "number") : c(ce) ? ae.stylize("" + ce, "boolean") : h(ce) ? ae.stylize("null", "null") : void 0; + }(C, F); + if (ne) + return ne; + var D = Object.keys(F), Z = function(ae) { + var ce = {}; + return ae.forEach(function(ue, le) { + ce[ue] = !0; + }), ce; + }(D); + if (C.showHidden && (D = Object.getOwnPropertyNames(F)), R(F) && (D.indexOf("message") >= 0 || D.indexOf("description") >= 0)) + return o(F); + if (D.length === 0) { + if (I(F)) { + var $ = F.name ? ": " + F.name : ""; + return C.stylize("[Function" + $ + "]", "special"); + } + if (l(F)) + return C.stylize(RegExp.prototype.toString.call(F), "regexp"); + if (j(F)) + return C.stylize(Date.prototype.toString.call(F), "date"); + if (R(F)) + return o(F); + } + var X, K = "", Y = !1, L = ["{", "}"]; + return f(F) && (Y = !0, L = ["[", "]"]), I(F) && (K = " [Function" + (F.name ? ": " + F.name : "") + "]"), l(F) && (K = " " + RegExp.prototype.toString.call(F)), j(F) && (K = " " + Date.prototype.toUTCString.call(F)), R(F) && (K = " " + o(F)), D.length !== 0 || Y && F.length != 0 ? re < 0 ? l(F) ? C.stylize(RegExp.prototype.toString.call(F), "regexp") : C.stylize("[Object]", "special") : (C.seen.push(F), X = Y ? function(ae, ce, ue, le, be) { + for (var de = [], pe = 0, _e = ce.length; pe < _e; ++pe) + g(ce, String(pe)) ? de.push(i(ae, ce, ue, le, String(pe), !0)) : de.push(""); + return be.forEach(function(W) { + W.match(/^\d+$/) || de.push(i(ae, ce, ue, le, W, !0)); + }), de; + }(C, F, re, Z, D) : D.map(function(ae) { + return i(C, F, re, Z, ae, Y); + }), C.seen.pop(), function(ae, ce, ue) { + return ae.reduce(function(le, be) { + return be.indexOf(` +`), le + be.replace(/\u001b\[\d\d?m/g, "").length + 1; + }, 0) > 60 ? ue[0] + (ce === "" ? "" : ce + ` + `) + " " + ae.join(`, + `) + " " + ue[1] : ue[0] + ce + " " + ae.join(", ") + " " + ue[1]; + }(X, K, L)) : L[0] + K + L[1]; + } + function o(C) { + return "[" + Error.prototype.toString.call(C) + "]"; + } + function i(C, F, re, ee, ne, D) { + var Z, $, X; + if ((X = Object.getOwnPropertyDescriptor(F, ne) || { value: F[ne] }).get ? $ = X.set ? C.stylize("[Getter/Setter]", "special") : C.stylize("[Getter]", "special") : X.set && ($ = C.stylize("[Setter]", "special")), g(ee, ne) || (Z = "[" + ne + "]"), $ || (C.seen.indexOf(X.value) < 0 ? ($ = h(re) ? n(C, X.value, null) : n(C, X.value, re - 1)).indexOf(` +`) > -1 && ($ = D ? $.split(` +`).map(function(K) { + return " " + K; + }).join(` +`).slice(2) : ` +` + $.split(` +`).map(function(K) { + return " " + K; + }).join(` +`)) : $ = C.stylize("[Circular]", "special")), M(Z)) { + if (D && ne.match(/^\d+$/)) + return $; + (Z = JSON.stringify("" + ne)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (Z = Z.slice(1, -1), Z = C.stylize(Z, "name")) : (Z = Z.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), Z = C.stylize(Z, "string")); + } + return Z + ": " + $; + } + function f(C) { + return Array.isArray(C); + } + function c(C) { + return typeof C == "boolean"; + } + function h(C) { + return C === null; + } + function p(C) { + return typeof C == "number"; + } + function m(C) { + return typeof C == "string"; + } + function M(C) { + return C === void 0; + } + function l(C) { + return N(C) && x(C) === "[object RegExp]"; + } + function N(C) { + return typeof C == "object" && C !== null; + } + function j(C) { + return N(C) && x(C) === "[object Date]"; + } + function R(C) { + return N(C) && (x(C) === "[object Error]" || C instanceof Error); + } + function I(C) { + return typeof C == "function"; + } + function x(C) { + return Object.prototype.toString.call(C); + } + function P(C) { + return C < 10 ? "0" + C.toString(10) : C.toString(10); + } + e.debuglog = function(C) { + if (C = C.toUpperCase(), !a[C]) + if (t.test(C)) { + var F = O.pid; + a[C] = function() { + var re = e.format.apply(e, arguments); + A.error("%s %d: %s", C, F, re); + }; + } else + a[C] = function() { + }; + return a[C]; + }, e.inspect = d, d.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] }, d.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, e.types = _(5955), e.isArray = f, e.isBoolean = c, e.isNull = h, e.isNullOrUndefined = function(C) { + return C == null; + }, e.isNumber = p, e.isString = m, e.isSymbol = function(C) { + return typeof C == "symbol"; + }, e.isUndefined = M, e.isRegExp = l, e.types.isRegExp = l, e.isObject = N, e.isDate = j, e.types.isDate = j, e.isError = R, e.types.isNativeError = R, e.isFunction = I, e.isPrimitive = function(C) { + return C === null || typeof C == "boolean" || typeof C == "number" || typeof C == "string" || typeof C == "symbol" || C === void 0; + }, e.isBuffer = _(384); + var w = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function g(C, F) { + return Object.prototype.hasOwnProperty.call(C, F); + } + e.log = function() { + var C, F; + A.log("%s - %s", (F = [P((C = /* @__PURE__ */ new Date()).getHours()), P(C.getMinutes()), P(C.getSeconds())].join(":"), [C.getDate(), w[C.getMonth()], F].join(" ")), e.format.apply(e, arguments)); + }, e.inherits = _(5717), e._extend = function(C, F) { + if (!F || !N(F)) + return C; + for (var re = Object.keys(F), ee = re.length; ee--; ) + C[re[ee]] = F[re[ee]]; + return C; + }; + var E = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0; + function U(C, F) { + if (!C) { + var re = new Error("Promise was rejected with a falsy value"); + re.reason = C, C = re; + } + return F(C); + } + e.promisify = function(C) { + if (typeof C != "function") + throw new TypeError('The "original" argument must be of type Function'); + if (E && C[E]) { + var F; + if (typeof (F = C[E]) != "function") + throw new TypeError('The "util.promisify.custom" argument must be of type Function'); + return Object.defineProperty(F, E, { value: F, enumerable: !1, writable: !1, configurable: !0 }), F; + } + function F() { + for (var re, ee, ne = new Promise(function($, X) { + re = $, ee = X; + }), D = [], Z = 0; Z < arguments.length; Z++) + D.push(arguments[Z]); + D.push(function($, X) { + $ ? ee($) : re(X); + }); + try { + C.apply(this, D); + } catch ($) { + ee($); + } + return ne; + } + return Object.setPrototypeOf(F, Object.getPrototypeOf(C)), E && Object.defineProperty(F, E, { value: F, enumerable: !1, writable: !1, configurable: !0 }), Object.defineProperties(F, k(C)); + }, e.promisify.custom = E, e.callbackify = function(C) { + if (typeof C != "function") + throw new TypeError('The "original" argument must be of type Function'); + function F() { + for (var re = [], ee = 0; ee < arguments.length; ee++) + re.push(arguments[ee]); + var ne = re.pop(); + if (typeof ne != "function") + throw new TypeError("The last argument must be of type Function"); + var D = this, Z = function() { + return ne.apply(D, arguments); + }; + C.apply(this, re).then(function($) { + O.nextTick(Z.bind(null, null, $)); + }, function($) { + O.nextTick(U.bind(null, $, Z)); + }); + } + return Object.setPrototypeOf(F, Object.getPrototypeOf(C)), Object.defineProperties(F, k(C)), F; + }; + }, 6430: (J, e, _) => { + var O = _(4029), A = _(3083), k = _(1924), b = _(7296), a = k("Object.prototype.toString"), t = _(6410)(), u = typeof globalThis > "u" ? _.g : globalThis, d = A(), s = k("String.prototype.slice"), r = {}, n = Object.getPrototypeOf; + t && b && n && O(d, function(i) { + if (typeof u[i] == "function") { + var f = new u[i](); + if (Symbol.toStringTag in f) { + var c = n(f), h = b(c, Symbol.toStringTag); + if (!h) { + var p = n(c); + h = b(p, Symbol.toStringTag); + } + r[i] = h.get; + } + } + }); + var o = _(5692); + J.exports = function(i) { + return !!o(i) && (t && Symbol.toStringTag in i ? function(f) { + var c = !1; + return O(r, function(h, p) { + if (!c) + try { + var m = h.call(f); + m === p && (c = m); + } catch { + } + }), c; + }(i) : s(a(i), 8, -1)); + }; + }, 9898: (J, e, _) => { + var O = _(8764).Buffer, A = _(8334); + function k(a, t) { + if (t !== void 0 && a[0] !== t) + throw new Error("Invalid network version"); + if (a.length === 33) + return { version: a[0], privateKey: a.slice(1, 33), compressed: !1 }; + if (a.length !== 34) + throw new Error("Invalid WIF length"); + if (a[33] !== 1) + throw new Error("Invalid compression flag"); + return { version: a[0], privateKey: a.slice(1, 33), compressed: !0 }; + } + function b(a, t, u) { + var d = new O(u ? 34 : 33); + return d.writeUInt8(a, 0), t.copy(d, 1), u && (d[33] = 1), d; + } + J.exports = { decode: function(a, t) { + return k(A.decode(a), t); + }, decodeRaw: k, encode: function(a, t, u) { + return typeof a == "number" ? A.encode(b(a, t, u)) : A.encode(b(a.version, a.privateKey, a.compressed)); + }, encodeRaw: b }; + }, 9159: () => { + }, 6601: () => { + }, 9214: () => { + }, 2361: () => { + }, 4616: () => { + }, 3954: () => { + }, 3083: (J, e, _) => { + var O = ["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], A = typeof globalThis > "u" ? _.g : globalThis; + J.exports = function() { + for (var k = [], b = 0; b < O.length; b++) + typeof A[O[b]] == "function" && (k[k.length] = O[b]); + return k; + }; + }, 6996: (J) => { + J.exports = JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]'); + }, 4262: (J) => { + J.exports = JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]'); + }, 32: (J) => { + J.exports = JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]'); + }, 4573: (J) => { + J.exports = JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]'); + }, 1848: (J) => { + J.exports = JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]'); + }, 2841: (J) => { + J.exports = JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]'); + }, 4472: (J) => { + J.exports = JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]'); + }, 8013: (J) => { + J.exports = JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]'); + }, 1945: (J) => { + J.exports = JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]'); + }, 659: (J) => { + J.exports = JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]'); + }, 8597: (J) => { + J.exports = { i8: "6.5.4" }; + } }, __webpack_module_cache__ = {}; + function __webpack_require__(J) { + var e = __webpack_module_cache__[J]; + if (e !== void 0) + return e.exports; + var _ = __webpack_module_cache__[J] = { id: J, loaded: !1, exports: {} }; + return __webpack_modules__[J].call(_.exports, _, _.exports, __webpack_require__), _.loaded = !0, _.exports; + } + __webpack_require__.g = function() { + if (typeof globalThis == "object") + return globalThis; + try { + return this || new Function("return this")(); + } catch { + if (typeof window == "object") + return window; + } + }(), __webpack_require__.nmd = (J) => (J.paths = [], J.children || (J.children = []), J); + var __webpack_exports__ = __webpack_require__(3607); + return __webpack_exports__; + })()); +})(browser); +var browserExports = browser.exports; +globalThis && globalThis.__awaiter; +function createFetchClient(J) { + return J.pipe(switchMap((e) => of(e)), first(), catchError((e) => { + throw e; + })); +} +const DEFAULT_SECRET_LCD_ENDPOINT = "https://lcd.secret.express/", SECRET_MAINNET_CHAIN_ID = "secret-4", getSecretNetworkClient$ = ({ walletAccount: J, lcdEndpoint: e, chainId: _ }) => createFetchClient(defer(() => of(J ? { + client: new browserExports.SecretNetworkClient({ + url: e, + wallet: J.signer, + walletAddress: J.walletAddress, + chainId: _, + encryptionUtils: J.encryptionUtils, + encryptionSeed: J.encryptionSeed + }), + endpoint: e, + chainId: _ +} : { + client: new browserExports.SecretNetworkClient({ + url: e, + chainId: _ + }), + endpoint: e, + chainId: _ +}))); +let activeClient; +function getActiveQueryClient$(J, e) { + return activeClient && J && J === activeClient.endpoint && e && e === activeClient.chainId ? of(activeClient) : getSecretNetworkClient$({ + lcdEndpoint: J ?? DEFAULT_SECRET_LCD_ENDPOINT, + chainId: e ?? SECRET_MAINNET_CHAIN_ID + }).pipe(tap(({ client: _ }) => { + activeClient = { + client: _, + endpoint: J ?? DEFAULT_SECRET_LCD_ENDPOINT, + chainId: e ?? SECRET_MAINNET_CHAIN_ID + }; + }), first()); +} +export { + getActiveQueryClient$, + getSecretNetworkClient$ +}; diff --git a/dist/my-lib.umd.cjs b/dist/my-lib.umd.cjs new file mode 100644 index 0000000..8a527a3 --- /dev/null +++ b/dist/my-lib.umd.cjs @@ -0,0 +1,70 @@ +(function(J,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(J=typeof globalThis<"u"?globalThis:J||self,e(J["my-lib"]={}))})(this,function(exports){"use strict";var extendStatics=function(J,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,O){_.__proto__=O}||function(_,O){for(var A in O)Object.prototype.hasOwnProperty.call(O,A)&&(_[A]=O[A])},extendStatics(J,e)};function __extends(J,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");extendStatics(J,e);function _(){this.constructor=J}J.prototype=e===null?Object.create(e):(_.prototype=e.prototype,new _)}function __awaiter(J,e,_,O){function A(k){return k instanceof _?k:new _(function(b){b(k)})}return new(_||(_=Promise))(function(k,b){function a(d){try{u(O.next(d))}catch(s){b(s)}}function t(d){try{u(O.throw(d))}catch(s){b(s)}}function u(d){d.done?k(d.value):A(d.value).then(a,t)}u((O=O.apply(J,e||[])).next())})}function __generator(J,e){var _={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},O,A,k,b;return b={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function a(u){return function(d){return t([u,d])}}function t(u){if(O)throw new TypeError("Generator is already executing.");for(;b&&(b=0,u[0]&&(_=0)),_;)try{if(O=1,A&&(k=u[0]&2?A.return:u[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,u[1])).done)return k;switch(A=0,k&&(u=[u[0]&2,k.value]),u[0]){case 0:case 1:k=u;break;case 4:return _.label++,{value:u[1],done:!1};case 5:_.label++,A=u[1],u=[0];continue;case 7:u=_.ops.pop(),_.trys.pop();continue;default:if(k=_.trys,!(k=k.length>0&&k[k.length-1])&&(u[0]===6||u[0]===2)){_=0;continue}if(u[0]===3&&(!k||u[1]>k[0]&&u[1]=J.length&&(J=void 0),{value:J&&J[O++],done:!J}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(J,e){var _=typeof Symbol=="function"&&J[Symbol.iterator];if(!_)return J;var O=_.call(J),A,k=[],b;try{for(;(e===void 0||e-- >0)&&!(A=O.next()).done;)k.push(A.value)}catch(a){b={error:a}}finally{try{A&&!A.done&&(_=O.return)&&_.call(O)}finally{if(b)throw b.error}}return k}function __spreadArray(J,e,_){if(_||arguments.length===2)for(var O=0,A=e.length,k;O1||a(r,n)})})}function a(r,n){try{t(O[r](n))}catch(o){s(k[0][3],o)}}function t(r){r.value instanceof __await?Promise.resolve(r.value.v).then(u,d):s(k[0][2],r)}function u(r){a("next",r)}function d(r){a("throw",r)}function s(r,n){r(n),k.shift(),k.length&&a(k[0][0],k[0][1])}}function __asyncValues(J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=J[Symbol.asyncIterator],_;return e?e.call(J):(J=typeof __values=="function"?__values(J):J[Symbol.iterator](),_={},O("next"),O("throw"),O("return"),_[Symbol.asyncIterator]=function(){return this},_);function O(k){_[k]=J[k]&&function(b){return new Promise(function(a,t){b=J[k](b),A(a,t,b.done,b.value)})}}function A(k,b,a,t){Promise.resolve(t).then(function(u){k({value:u,done:a})},b)}}typeof SuppressedError=="function"&&SuppressedError;function isFunction(J){return typeof J=="function"}function createErrorClass(J){var e=function(O){Error.call(O),O.stack=new Error().stack},_=J(e);return _.prototype=Object.create(Error.prototype),_.prototype.constructor=_,_}var UnsubscriptionError=createErrorClass(function(J){return function(_){J(this),this.message=_?_.length+` errors occurred during unsubscription: +`+_.map(function(O,A){return A+1+") "+O.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=_}});function arrRemove(J,e){if(J){var _=J.indexOf(e);0<=_&&J.splice(_,1)}}var Subscription=function(){function J(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return J.prototype.unsubscribe=function(){var e,_,O,A,k;if(!this.closed){this.closed=!0;var b=this._parentage;if(b)if(this._parentage=null,Array.isArray(b))try{for(var a=__values(b),t=a.next();!t.done;t=a.next()){var u=t.value;u.remove(this)}}catch(i){e={error:i}}finally{try{t&&!t.done&&(_=a.return)&&_.call(a)}finally{if(e)throw e.error}}else b.remove(this);var d=this.initialTeardown;if(isFunction(d))try{d()}catch(i){k=i instanceof UnsubscriptionError?i.errors:[i]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var r=__values(s),n=r.next();!n.done;n=r.next()){var o=n.value;try{execFinalizer(o)}catch(i){k=k??[],i instanceof UnsubscriptionError?k=__spreadArray(__spreadArray([],__read(k)),__read(i.errors)):k.push(i)}}}catch(i){O={error:i}}finally{try{n&&!n.done&&(A=r.return)&&A.call(r)}finally{if(O)throw O.error}}}if(k)throw new UnsubscriptionError(k)}},J.prototype.add=function(e){var _;if(e&&e!==this)if(this.closed)execFinalizer(e);else{if(e instanceof J){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(_=this._finalizers)!==null&&_!==void 0?_:[]).push(e)}},J.prototype._hasParent=function(e){var _=this._parentage;return _===e||Array.isArray(_)&&_.includes(e)},J.prototype._addParent=function(e){var _=this._parentage;this._parentage=Array.isArray(_)?(_.push(e),_):_?[_,e]:e},J.prototype._removeParent=function(e){var _=this._parentage;_===e?this._parentage=null:Array.isArray(_)&&arrRemove(_,e)},J.prototype.remove=function(e){var _=this._finalizers;_&&arrRemove(_,e),e instanceof J&&e._removeParent(this)},J.EMPTY=function(){var e=new J;return e.closed=!0,e}(),J}();Subscription.EMPTY;function isSubscription(J){return J instanceof Subscription||J&&"closed"in J&&isFunction(J.remove)&&isFunction(J.add)&&isFunction(J.unsubscribe)}function execFinalizer(J){isFunction(J)?J():J.unsubscribe()}var config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(J,e){for(var _=[],O=2;O=2;return function(O){return O.pipe(J?filter(function(A,k){return J(A,k,O)}):identity,take(1),_?defaultIfEmpty(e):throwIfEmpty(function(){return new EmptyError}))}}function switchMap(J,e){return operate(function(_,O){var A=null,k=0,b=!1,a=function(){return b&&!A&&O.complete()};_.subscribe(createOperatorSubscriber(O,function(t){A==null||A.unsubscribe();var u=0,d=k++;innerFrom(J(t,d)).subscribe(A=createOperatorSubscriber(O,function(s){return O.next(e?e(t,s,d,u++):s)},function(){A=null,a()}))},function(){b=!0,a()}))})}function tap(J,e,_){var O=isFunction(J)||e||_?{next:J,error:e,complete:_}:J;return O?operate(function(A,k){var b;(b=O.subscribe)===null||b===void 0||b.call(O);var a=!0;A.subscribe(createOperatorSubscriber(k,function(t){var u;(u=O.next)===null||u===void 0||u.call(O,t),k.next(t)},function(){var t;a=!1,(t=O.complete)===null||t===void 0||t.call(O),k.complete()},function(t){var u;a=!1,(u=O.error)===null||u===void 0||u.call(O,t),k.error(t)},function(){var t,u;a&&((t=O.unsubscribe)===null||t===void 0||t.call(O)),(u=O.finalize)===null||u===void 0||u.call(O)}))}):identity}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},browser={exports:{}};/*! For license information please see browser.js.LICENSE.txt */(function(module,exports){(function(J,e){module.exports=e()})(commonjsGlobal,()=>(()=>{var __webpack_modules__={7768:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromAscii=e.toAscii=void 0,e.toAscii=function(_){return Uint8Array.from(_.split("").map(O=>{const A=O.charCodeAt(0);if(A<32||A>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+A);return A}))},e.fromAscii=function(_){return(O=Array.from(_),O.map(A=>{if(A<32||A>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+A);return String.fromCharCode(A)})).join("");var O}},3431:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.fromBase64=e.toBase64=void 0;const b=k(_(9742));e.toBase64=function(a){return b.fromByteArray(a)},e.fromBase64=function(a){if(!a.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return b.toByteArray(a)}},5438:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Bech32=void 0;const b=k(_(3235));e.Bech32=class{static encode(a,t,u){return b.encode(a,b.toWords(t),u)}static decode(a,t=1/0){const u=b.decode(a,t);return{prefix:u.prefix,data:new Uint8Array(b.fromWords(u.words))}}}},6135:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromHex=e.toHex=void 0,e.toHex=function(_){let O="";for(const A of _)O+=("0"+A.toString(16)).slice(-2);return O},e.fromHex=function(_){if(_.length%2!=0)throw new Error("hex string length must be a multiple of 2");const O=[];for(let A=0;A<_.length;A+=2){const k=_.substr(A,2);if(!k.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");O.push(parseInt(k,16))}return new Uint8Array(O)}},8972:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=e.toRfc3339=e.fromRfc3339=e.toHex=e.fromHex=e.Bech32=e.toBase64=e.fromBase64=e.toAscii=e.fromAscii=void 0;var O=_(7768);Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return O.fromAscii}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return O.toAscii}});var A=_(3431);Object.defineProperty(e,"fromBase64",{enumerable:!0,get:function(){return A.fromBase64}}),Object.defineProperty(e,"toBase64",{enumerable:!0,get:function(){return A.toBase64}});var k=_(5438);Object.defineProperty(e,"Bech32",{enumerable:!0,get:function(){return k.Bech32}});var b=_(6135);Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return b.fromHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return b.toHex}});var a=_(7310);Object.defineProperty(e,"fromRfc3339",{enumerable:!0,get:function(){return a.fromRfc3339}}),Object.defineProperty(e,"toRfc3339",{enumerable:!0,get:function(){return a.toRfc3339}});var t=_(6081);Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return t.fromUtf8}}),Object.defineProperty(e,"toUtf8",{enumerable:!0,get:function(){return t.toUtf8}})},7310:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toRfc3339=e.fromRfc3339=void 0;const _=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function O(A,k=2){const b="00000"+A.toString();return b.substring(b.length-k)}e.fromRfc3339=function(A){const k=_.exec(A);if(!k)throw new Error("Date string is not in RFC3339 format");const b=+k[1],a=+k[2],t=+k[3],u=+k[4],d=+k[5],s=+k[6],r=k[7]?Math.floor(1e3*+k[7]):0;let n,o,i;k[8]==="Z"?(n=1,o=0,i=0):(n=k[8].substring(0,1)==="-"?-1:1,o=+k[8].substring(1,3),i=+k[8].substring(4,6));const f=n*(60*o+i)*60,c=Date.UTC(b,a-1,t,u,d,s,r)-1e3*f;return new Date(c)},e.toRfc3339=function(A){return`${A.getUTCFullYear()}-${O(A.getUTCMonth()+1)}-${O(A.getUTCDate())}T${O(A.getUTCHours())}:${O(A.getUTCMinutes())}:${O(A.getUTCSeconds())}.${O(A.getUTCMilliseconds(),3)}Z`}},6081:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromUtf8=e.toUtf8=void 0,e.toUtf8=function(_){return new TextEncoder().encode(_)},e.fromUtf8=function(_){return new TextDecoder("utf-8",{fatal:!0}).decode(_)}},3235:J=>{for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",_={},O=0;O<32;O++){var A=e.charAt(O);if(_[A]!==void 0)throw new TypeError(A+" is ambiguous");_[A]=O}function k(u){var d=u>>25;return(33554431&u)<<5^996825010&-(d>>0&1)^642813549&-(d>>1&1)^513874426&-(d>>2&1)^1027748829&-(d>>3&1)^705979059&-(d>>4&1)}function b(u){for(var d=1,s=0;s126)return"Invalid prefix ("+u+")";d=k(d)^r>>5}for(d=k(d),s=0;sd)return"Exceeds length limit";var s=u.toLowerCase(),r=u.toUpperCase();if(u!==s&&u!==r)return"Mixed-case string "+u;var n=(u=s).lastIndexOf("1");if(n===-1)return"No separator character for "+u;if(n===0)return"Missing prefix for "+u;var o=u.slice(0,n),i=u.slice(n+1);if(i.length<6)return"Data too short";var f=b(o);if(typeof f=="string")return f;for(var c=[],h=0;h=i.length||c.push(m)}return f!==1?"Invalid checksum for "+u:{prefix:o,words:c}}function t(u,d,s,r){for(var n=0,o=0,i=(1<=s;)o-=s,f.push(n>>o&i);if(r)o>0&&f.push(n<=d)return"Excess padding";if(n<s)throw new TypeError("Exceeds length limit");var r=b(u=u.toLowerCase());if(typeof r=="string")throw new Error(r);for(var n=u+"1",o=0;o>5)throw new Error("Non 5-bit word");r=k(r)^i,n+=e.charAt(i)}for(o=0;o<6;++o)r=k(r);for(r^=1,o=0;o<6;++o)n+=e.charAt(r>>5*(5-o)&31);return n},toWordsUnsafe:function(u){var d=t(u,8,5,!0);if(Array.isArray(d))return d},toWords:function(u){var d=t(u,8,5,!0);if(Array.isArray(d))return d;throw new Error(d)},fromWordsUnsafe:function(u){var d=t(u,5,8,!1);if(Array.isArray(d))return d},fromWords:function(u){var d=t(u,5,8,!1);if(Array.isArray(d))return d;throw new Error(d)}}},7505:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const O=_(8089);class A extends O.Hash{constructor(b,a,t,u){super(),this.blockLen=b,this.outputLen=a,this.padOffset=t,this.isLE=u,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(b),this.view=(0,O.createView)(this.buffer)}update(b){if(this.destroyed)throw new Error("instance is destroyed");const{view:a,buffer:t,blockLen:u,finished:d}=this;if(d)throw new Error("digest() was already called");const s=(b=(0,O.toBytes)(b)).length;for(let r=0;ru-s&&(this.process(t,0),s=0);for(let n=s;n>c&h),m=Number(i&h),M=f?4:0,l=f?0:4;n.setUint32(o+M,p,f),n.setUint32(o+l,m,f)})(t,u-8,BigInt(8*this.length),d),this.process(t,0);const r=(0,O.createView)(b);this.get().forEach((n,o)=>r.setUint32(4*o,n,d))}digest(){const{buffer:b,outputLen:a}=this;this.digestInto(b);const t=b.slice(0,a);return this.destroy(),t}_cloneInto(b){b||(b=new this.constructor),b.set(...this.get());const{blockLen:a,buffer:t,length:u,finished:d,destroyed:s,pos:r}=this;return b.length=u,b.pos=r,b.finished=d,b.destroyed=s,u%a&&b.buffer.set(t),b}}e.SHA2=A},6873:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.add5H=e.add5L=e.add4H=e.add4L=e.add3H=e.add3L=e.add=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=e.split=e.fromBig=void 0;const _=BigInt(2**32-1),O=BigInt(32);function A(k,b=!1){return b?{h:Number(k&_),l:Number(k>>O&_)}:{h:0|Number(k>>O&_),l:0|Number(k&_)}}e.fromBig=A,e.split=function(k,b=!1){let a=new Uint32Array(k.length),t=new Uint32Array(k.length);for(let u=0;uBigInt(k>>>0)<>>0),e.shrSH=(k,b,a)=>k>>>a,e.shrSL=(k,b,a)=>k<<32-a|b>>>a,e.rotrSH=(k,b,a)=>k>>>a|b<<32-a,e.rotrSL=(k,b,a)=>k<<32-a|b>>>a,e.rotrBH=(k,b,a)=>k<<64-a|b>>>a-32,e.rotrBL=(k,b,a)=>k>>>a-32|b<<64-a,e.rotr32H=(k,b)=>b,e.rotr32L=(k,b)=>k,e.rotlSH=(k,b,a)=>k<>>32-a,e.rotlSL=(k,b,a)=>b<>>32-a,e.rotlBH=(k,b,a)=>b<>>64-a,e.rotlBL=(k,b,a)=>k<>>64-a,e.add=function(k,b,a,t){const u=(b>>>0)+(t>>>0);return{h:k+a+(u/4294967296|0)|0,l:0|u}},e.add3L=(k,b,a)=>(k>>>0)+(b>>>0)+(a>>>0),e.add3H=(k,b,a,t)=>b+a+t+(k/4294967296|0)|0,e.add4L=(k,b,a,t)=>(k>>>0)+(b>>>0)+(a>>>0)+(t>>>0),e.add4H=(k,b,a,t,u)=>b+a+t+u+(k/4294967296|0)|0,e.add5L=(k,b,a,t,u)=>(k>>>0)+(b>>>0)+(a>>>0)+(t>>>0)+(u>>>0),e.add5H=(k,b,a,t,u,d)=>b+a+t+u+d+(k/4294967296|0)|0},4421:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}},4330:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=e.expand=e.extract=void 0;const O=_(8089),A=_(9569);function k(u,d,s){return(0,O.assertHash)(u),s===void 0&&(s=new Uint8Array(u.outputLen)),(0,A.hmac)(u,(0,O.toBytes)(s),(0,O.toBytes)(d))}e.extract=k;const b=new Uint8Array([0]),a=new Uint8Array;function t(u,d,s,r=32){if((0,O.assertHash)(u),(0,O.assertNumber)(r),r>255*u.outputLen)throw new Error("Length should be <= 255*HashLen");const n=Math.ceil(r/u.outputLen);s===void 0&&(s=a);const o=new Uint8Array(n*u.outputLen),i=A.hmac.create(u,d),f=i._cloneInto(),c=new Uint8Array(i.outputLen);for(let h=0;ht(u,k(u,d,s),r,n)},9569:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const O=_(8089);class A extends O.Hash{constructor(b,a){super(),this.finished=!1,this.destroyed=!1,(0,O.assertHash)(b);const t=(0,O.toBytes)(a);if(this.iHash=b.create(),!(this.iHash instanceof O.Hash))throw new TypeError("Expected instance of class which extends utils.Hash");const u=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const d=new Uint8Array(u);d.set(t.length>this.iHash.blockLen?b.create().update(t).digest():t);for(let s=0;snew A(k,b).update(a).digest(),e.hmac.create=(k,b)=>new A(k,b)},830:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.RIPEMD160=void 0;const O=_(7505),A=_(8089),k=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),b=Uint8Array.from({length:16},(p,m)=>m),a=b.map(p=>(9*p+5)%16);let t=[b],u=[a];for(let p=0;p<4;p++)for(let m of[t,u])m.push(m[p].map(M=>k[M]));const d=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(p=>new Uint8Array(p)),s=t.map((p,m)=>p.map(M=>d[m][M])),r=u.map((p,m)=>p.map(M=>d[m][M])),n=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),o=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),i=(p,m)=>p<>>32-m;function f(p,m,M,l){return p===0?m^M^l:p===1?m&M|~m&l:p===2?(m|~M)^l:p===3?m&l|M&~l:m^(M|~l)}const c=new Uint32Array(16);class h extends O.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:m,h1:M,h2:l,h3:N,h4:j}=this;return[m,M,l,N,j]}set(m,M,l,N,j){this.h0=0|m,this.h1=0|M,this.h2=0|l,this.h3=0|N,this.h4=0|j}process(m,M){for(let U=0;U<16;U++,M+=4)c[U]=m.getUint32(M,!0);let l=0|this.h0,N=l,j=0|this.h1,R=j,I=0|this.h2,x=I,P=0|this.h3,w=P,g=0|this.h4,E=g;for(let U=0;U<5;U++){const C=4-U,F=n[U],re=o[U],ee=t[U],ne=u[U],D=s[U],Z=r[U];for(let $=0;$<16;$++){const X=i(l+f(U,j,I,P)+c[ee[$]]+F,D[$])+g|0;l=g,g=P,P=0|i(I,10),I=j,j=X}for(let $=0;$<16;$++){const X=i(N+f(C,R,x,w)+c[ne[$]]+re,Z[$])+E|0;N=E,E=w,w=0|i(x,10),x=R,R=X}}this.set(this.h1+I+w|0,this.h2+P+E|0,this.h3+g+N|0,this.h4+l+R|0,this.h0+j+x|0)}roundClean(){c.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}e.RIPEMD160=h,e.ripemd160=(0,A.wrapConstructor)(()=>new h)},3061:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sha256=void 0;const O=_(7505),A=_(8089),k=(d,s,r)=>d&s^d&r^s&r,b=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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t=new Uint32Array(64);class u extends O.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:s,B:r,C:n,D:o,E:i,F:f,G:c,H:h}=this;return[s,r,n,o,i,f,c,h]}set(s,r,n,o,i,f,c,h){this.A=0|s,this.B=0|r,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|f,this.G=0|c,this.H=0|h}process(s,r){for(let l=0;l<16;l++,r+=4)t[l]=s.getUint32(r,!1);for(let l=16;l<64;l++){const N=t[l-15],j=t[l-2],R=(0,A.rotr)(N,7)^(0,A.rotr)(N,18)^N>>>3,I=(0,A.rotr)(j,17)^(0,A.rotr)(j,19)^j>>>10;t[l]=I+t[l-7]+R+t[l-16]|0}let{A:n,B:o,C:i,D:f,E:c,F:h,G:p,H:m}=this;for(let l=0;l<64;l++){const N=m+((0,A.rotr)(c,6)^(0,A.rotr)(c,11)^(0,A.rotr)(c,25))+((M=c)&h^~M&p)+b[l]+t[l]|0,j=((0,A.rotr)(n,2)^(0,A.rotr)(n,13)^(0,A.rotr)(n,22))+k(n,o,i)|0;m=p,p=h,h=c,c=f+N|0,f=i,i=o,o=n,n=N+j|0}var M;n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,f=f+this.D|0,c=c+this.E|0,h=h+this.F|0,p=p+this.G|0,m=m+this.H|0,this.set(n,o,i,f,c,h,p,m)}roundClean(){t.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}e.sha256=(0,A.wrapConstructor)(()=>new u)},5426:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(R,I,x,P){P===void 0&&(P=x),Object.defineProperty(R,P,{enumerable:!0,get:function(){return I[x]}})}:function(R,I,x,P){P===void 0&&(P=x),R[P]=I[x]}),A=this&&this.__setModuleDefault||(Object.create?function(R,I){Object.defineProperty(R,"default",{enumerable:!0,value:I})}:function(R,I){R.default=I}),k=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var I={};if(R!=null)for(var x in R)x!=="default"&&Object.prototype.hasOwnProperty.call(R,x)&&O(I,R,x);return A(I,R),I};Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const b=k(_(6873)),a=_(8089),[t,u,d]=[[],[],[]],s=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(7),i=BigInt(256),f=BigInt(113);for(let R=0,I=r,x=1,P=0;R<24;R++){[x,P]=[P,(2*x+3*P)%5],t.push(2*(5*P+x)),u.push((R+1)*(R+2)/2%64);let w=s;for(let g=0;g<7;g++)I=(I<>o)*f)%i,I&n&&(w^=r<<(r<x>32?b.rotlBH(R,I,x):b.rotlSH(R,I,x),m=(R,I,x)=>x>32?b.rotlBL(R,I,x):b.rotlSL(R,I,x);function M(R,I=24){const x=new Uint32Array(10);for(let P=24-I;P<24;P++){for(let E=0;E<10;E++)x[E]=R[E]^R[E+10]^R[E+20]^R[E+30]^R[E+40];for(let E=0;E<10;E+=2){const U=(E+8)%10,C=(E+2)%10,F=x[C],re=x[C+1],ee=p(F,re,1)^x[U],ne=m(F,re,1)^x[U+1];for(let D=0;D<50;D+=10)R[E+D]^=ee,R[E+D+1]^=ne}let w=R[2],g=R[3];for(let E=0;E<24;E++){const U=u[E],C=p(w,g,U),F=m(w,g,U),re=t[E];w=R[re],g=R[re+1],R[re]=C,R[re+1]=F}for(let E=0;E<50;E+=10){for(let U=0;U<10;U++)x[U]=R[E+U];for(let U=0;U<10;U++)R[E+U]^=~x[(U+2)%10]&x[(U+4)%10]}R[0]^=c[P],R[1]^=h[P]}x.fill(0)}e.keccakP=M;class l extends a.Hash{constructor(I,x,P,w=!1,g=24){if(super(),this.blockLen=I,this.suffix=x,this.outputLen=P,this.enableXOF=w,this.rounds=g,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.assertNumber)(P),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){M(this.state32,this.rounds),this.posOut=0,this.pos=0}update(I){if(this.destroyed)throw new Error("instance is destroyed");if(this.finished)throw new Error("digest() was already called");const{blockLen:x,state:P}=this,w=(I=(0,a.toBytes)(I)).length;for(let g=0;g=this.blockLen&&this.keccak();const w=Math.min(this.blockLen-this.posOut,P-x);I.set(this.state.subarray(this.posOut,this.posOut+w),x),this.posOut+=w,x+=w}return I}xofInto(I){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(I)}xof(I){return(0,a.assertNumber)(I),this.xofInto(new Uint8Array(I))}digestInto(I){if(I.length(0,a.wrapConstructor)(()=>new l(I,R,x));e.sha3_224=N(6,144,28),e.sha3_256=N(6,136,32),e.sha3_384=N(6,104,48),e.sha3_512=N(6,72,64),e.keccak_224=N(1,144,28),e.keccak_256=N(1,136,32),e.keccak_384=N(1,104,48),e.keccak_512=N(1,72,64);const j=(R,I,x)=>(0,a.wrapConstructorWithOpts)((P={})=>new l(I,R,P.dkLen!==void 0?P.dkLen:x,!0));e.shake128=j(31,168,16),e.shake256=j(31,136,32)},8089:(J,e,_)=>{J=_.nmd(J),Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.assertHash=e.assertBytes=e.assertBool=e.assertNumber=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const O=_(4421);if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,u)=>t<<32-u|t>>>u,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const A=Array.from({length:256},(t,u)=>u.toString(16).padStart(2,"0"));function k(t){if(typeof t!="string")throw new TypeError("utf8ToBytes expected string, got "+typeof t);return new TextEncoder().encode(t)}function b(t){if(typeof t=="string"&&(t=k(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}function a(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}e.bytesToHex=function(t){let u="";for(let d=0;d{const t=typeof J.require=="function"&&J.require.bind(J);try{if(t){const{setImmediate:u}=t("timers");return()=>new Promise(d=>u(d))}}catch{}return()=>new Promise(u=>setTimeout(u,0))})(),e.asyncLoop=async function(t,u,d){let s=Date.now();for(let r=0;r=0&&ns instanceof Uint8Array))throw new Error("Uint8Array list expected");if(t.length===1)return t[0];const u=t.reduce((s,r)=>s+r.length,0),d=new Uint8Array(u);for(let s=0,r=0;st().update(b(s)).digest(),d=t();return u.outputLen=d.outputLen,u.blockLen=d.blockLen,u.create=()=>t(),u},e.wrapConstructorWithOpts=function(t){const u=(s,r)=>t(r).update(b(s)).digest(),d=t({});return u.outputLen=d.outputLen,u.blockLen=d.blockLen,u.create=s=>t(s),u},e.randomBytes=function(t=32){if(O.crypto.web)return O.crypto.web.getRandomValues(new Uint8Array(t));if(O.crypto.node)return new Uint8Array(O.crypto.node.randomBytes(t).buffer);throw new Error("The environment doesn't have randomBytes function")}},9656:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const O=_(9159),A=BigInt(0),k=BigInt(1),b=BigInt(2),a=BigInt(3),t=BigInt(8),u=Object.freeze({a:A,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:k,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function d(Q){const{a:G,b:H}=u,ie=E(Q*Q),se=E(ie*Q);return E(se+G*Q+H)}e.CURVE=u;const s=u.a===A;class r extends Error{constructor(G){super(G)}}class n{constructor(G,H,ie){this.x=G,this.y=H,this.z=ie}static fromAffine(G){if(!(G instanceof i))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new n(G.x,G.y,k)}static toAffineBatch(G){const H=function(ie,se=u.P){const fe=new Array(ie.length),he=C(ie.reduce((ve,me,ge)=>me===A?ve:(fe[ge]=ve,E(ve*me,se)),k),se);return ie.reduceRight((ve,me,ge)=>me===A?ve:(fe[ge]=E(ve*fe[ge],se),E(ve*me,se)),he),fe}(G.map(ie=>ie.z));return G.map((ie,se)=>ie.toAffine(H[se]))}static normalizeZ(G){return n.toAffineBatch(G).map(n.fromAffine)}equals(G){if(!(G instanceof n))throw new TypeError("JacobianPoint expected");const{x:H,y:ie,z:se}=this,{x:fe,y:he,z:ve}=G,me=E(se*se),ge=E(ve*ve),ye=E(H*ge),Ee=E(fe*me),Ae=E(E(ie*ve)*ge),Pe=E(E(he*se)*me);return ye===Ee&&Ae===Pe}negate(){return new n(this.x,E(-this.y),this.z)}double(){const{x:G,y:H,z:ie}=this,se=E(G*G),fe=E(H*H),he=E(fe*fe),ve=G+fe,me=E(b*(E(ve*ve)-se-he)),ge=E(a*se),ye=E(ge*ge),Ee=E(ye-b*me),Ae=E(ge*(me-Ee)-t*he),Pe=E(b*H*ie);return new n(Ee,Ae,Pe)}add(G){if(!(G instanceof n))throw new TypeError("JacobianPoint expected");const{x:H,y:ie,z:se}=this,{x:fe,y:he,z:ve}=G;if(fe===A||he===A)return this;if(H===A||ie===A)return G;const me=E(se*se),ge=E(ve*ve),ye=E(H*ge),Ee=E(fe*me),Ae=E(E(ie*ve)*ge),Pe=E(E(he*se)*me),ke=E(Ee-ye),xe=E(Pe-Ae);if(ke===A)return xe===A?this.double():n.ZERO;const we=E(ke*ke),Se=E(ke*we),Re=E(ye*we),Oe=E(xe*xe-Se-b*Re),Me=E(xe*(Re-Oe)-Ae*Se),Te=E(se*ve*ke);return new n(Oe,Me,Te)}subtract(G){return this.add(G.negate())}multiplyUnsafe(G){const H=n.ZERO;if(typeof G=="bigint"&&G===A)return H;let ie=g(G);if(ie===k)return this;if(!s){let Ee=H,Ae=this;for(;ie>A;)ie&k&&(Ee=Ee.add(Ae)),Ae=Ae.double(),ie>>=k;return Ee}let{k1neg:se,k1:fe,k2neg:he,k2:ve}=ee(ie),me=H,ge=H,ye=this;for(;fe>A||ve>A;)fe&k&&(me=me.add(ye)),ve&k&&(ge=ge.add(ye)),ye=ye.double(),fe>>=k,ve>>=k;return se&&(me=me.negate()),he&&(ge=ge.negate()),ge=new n(E(ge.x*u.beta),ge.y,ge.z),me.add(ge)}precomputeWindow(G){const H=s?128/G+1:256/G+1,ie=[];let se=this,fe=se;for(let he=0;he>=Ee,ke>me&&(ke-=ye,G+=k),ke===0){let xe=se[Pe];Ae%2&&(xe=xe.negate()),he=he.add(xe)}else{let xe=se[Pe+Math.abs(ke)-1];ke<0&&(xe=xe.negate()),fe=fe.add(xe)}}return{p:fe,f:he}}multiply(G,H){let ie,se,fe=g(G);if(s){const{k1neg:he,k1:ve,k2neg:me,k2:ge}=ee(fe);let{p:ye,f:Ee}=this.wNAF(ve,H),{p:Ae,f:Pe}=this.wNAF(ge,H);he&&(ye=ye.negate()),me&&(Ae=Ae.negate()),Ae=new n(E(Ae.x*u.beta),Ae.y,Ae.z),ie=ye.add(Ae),se=Ee.add(Pe)}else{const{p:he,f:ve}=this.wNAF(fe,H);ie=he,se=ve}return n.normalizeZ([ie,se])[0]}toAffine(G=C(this.z)){const{x:H,y:ie,z:se}=this,fe=G,he=E(fe*fe),ve=E(he*fe),me=E(H*he),ge=E(ie*ve);if(E(se*fe)!==k)throw new Error("invZ was invalid");return new i(me,ge)}}n.BASE=new n(u.Gx,u.Gy,k),n.ZERO=new n(A,k,A);const o=new WeakMap;class i{constructor(G,H){this.x=G,this.y=H}_setWindowSize(G){this._WINDOW_SIZE=G,o.delete(this)}hasEvenY(){return this.y%b===A}static fromCompressedHex(G){const H=G.length===32,ie=P(H?G:G.subarray(1));if(!K(ie))throw new Error("Point is not on curve");let se=function(ve){const{P:me}=u,ge=BigInt(6),ye=BigInt(11),Ee=BigInt(22),Ae=BigInt(23),Pe=BigInt(44),ke=BigInt(88),xe=ve*ve*ve%me,we=xe*xe*ve%me,Se=U(we,a)*we%me,Re=U(Se,a)*we%me,Oe=U(Re,b)*xe%me,Me=U(Oe,ye)*Oe%me,Te=U(Me,Ee)*Me%me,Ne=U(Te,Pe)*Te%me,Ce=U(Ne,ke)*Ne%me,Be=U(Ce,Pe)*Te%me,Ie=U(Be,a)*we%me,je=U(Ie,Ae)*Me%me,De=U(je,ge)*xe%me;return U(De,b)}(d(ie));const fe=(se&k)===k;H?fe&&(se=E(-se)):(1&G[0])==1!==fe&&(se=E(-se));const he=new i(ie,se);return he.assertValidity(),he}static fromUncompressedHex(G){const H=P(G.subarray(1,33)),ie=P(G.subarray(33,65)),se=new i(H,ie);return se.assertValidity(),se}static fromHex(G){const H=w(G),ie=H.length,se=H[0];if(ie===32||ie===33&&(se===2||se===3))return this.fromCompressedHex(H);if(ie===65&&se===4)return this.fromUncompressedHex(H);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${ie}`)}static fromPrivateKey(G){return i.BASE.multiply(L(G))}static fromSignature(G,H,ie){const se=ne(G=w(G)),{r:fe,s:he}=ce(H);if(ie!==0&&ie!==1)throw new Error("Cannot recover signature: invalid recovery bit");const ve=1&ie?"03":"02",me=i.fromHex(ve+N(fe)),{n:ge}=u,ye=C(fe,ge),Ee=E(-se*ye,ge),Ae=E(he*ye,ge),Pe=i.BASE.multiplyAndAddUnsafe(me,Ee,Ae);if(!Pe)throw new Error("Cannot recover signature: point at infinify");return Pe.assertValidity(),Pe}toRawBytes(G=!1){return x(this.toHex(G))}toHex(G=!1){const H=N(this.x);return G?`${this.hasEvenY()?"02":"03"}${H}`:`04${H}${N(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const G="Point is not on elliptic curve",{x:H,y:ie}=this;if(!K(H)||!K(ie))throw new Error(G);const se=E(ie*ie);if(E(se-d(H))!==A)throw new Error(G)}equals(G){return this.x===G.x&&this.y===G.y}negate(){return new i(this.x,E(-this.y))}double(){return n.fromAffine(this).double().toAffine()}add(G){return n.fromAffine(this).add(n.fromAffine(G)).toAffine()}subtract(G){return this.add(G.negate())}multiply(G){return n.fromAffine(this).multiply(G,this).toAffine()}multiplyAndAddUnsafe(G,H,ie){const se=n.fromAffine(this),fe=H===A||H===k||this!==i.BASE?se.multiplyUnsafe(H):se.multiply(H),he=n.fromAffine(G).multiplyUnsafe(ie),ve=fe.add(he);return ve.equals(n.ZERO)?void 0:ve.toAffine()}}function f(Q){return Number.parseInt(Q[0],16)>=8?"00"+Q:Q}function c(Q){if(Q.length<2||Q[0]!==2)throw new Error(`Invalid signature integer tag: ${M(Q)}`);const G=Q[1],H=Q.subarray(2,G+2);if(!G||H.length!==G)throw new Error("Invalid signature integer: wrong length");if(H[0]===0&&H[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:P(H),left:Q.subarray(G+2)}}e.Point=i,i.BASE=new i(u.Gx,u.Gy),i.ZERO=new i(A,A);class h{constructor(G,H){this.r=G,this.s=H,this.assertValidity()}static fromCompact(G){const H=G instanceof Uint8Array,ie="Signature.fromCompact";if(typeof G!="string"&&!H)throw new TypeError(`${ie}: Expected string or Uint8Array`);const se=H?M(G):G;if(se.length!==128)throw new Error(`${ie}: Expected 64-byte hex`);return new h(I(se.slice(0,64)),I(se.slice(64,128)))}static fromDER(G){const H=G instanceof Uint8Array;if(typeof G!="string"&&!H)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:ie,s:se}=function(fe){if(fe.length<2||fe[0]!=48)throw new Error(`Invalid signature tag: ${M(fe)}`);if(fe[1]!==fe.length-2)throw new Error("Invalid signature: incorrect length");const{data:he,left:ve}=c(fe.subarray(2)),{data:me,left:ge}=c(ve);if(ge.length)throw new Error(`Invalid signature: left bytes after parsing: ${M(ge)}`);return{r:he,s:me}}(H?G:x(G));return new h(ie,se)}static fromHex(G){return this.fromDER(G)}assertValidity(){const{r:G,s:H}=this;if(!X(G))throw new Error("Invalid Signature: r must be 0 < r < n");if(!X(H))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const G=u.n>>k;return this.s>G}normalizeS(){return this.hasHighS()?new h(this.r,u.n-this.s):this}toDERRawBytes(G=!1){return x(this.toDERHex(G))}toDERHex(G=!1){const H=f(R(this.s));if(G)return H;const ie=f(R(this.r)),se=R(ie.length/2),fe=R(H.length/2);return`30${R(ie.length/2+H.length/2+4)}02${se}${ie}02${fe}${H}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return x(this.toCompactHex())}toCompactHex(){return N(this.r)+N(this.s)}}function p(...Q){if(!Q.every(ie=>ie instanceof Uint8Array))throw new Error("Uint8Array list expected");if(Q.length===1)return Q[0];const G=Q.reduce((ie,se)=>ie+se.length,0),H=new Uint8Array(G);for(let ie=0,se=0;ieG.toString(16).padStart(2,"0"));function M(Q){if(!(Q instanceof Uint8Array))throw new Error("Expected Uint8Array");let G="";for(let H=0;H0)return BigInt(Q);if(typeof Q=="bigint"&&X(Q))return Q;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function E(Q,G=u.P){const H=Q%G;return H>=A?H:G+H}function U(Q,G){const{P:H}=u;let ie=Q;for(;G-- >A;)ie*=ie,ie%=H;return ie}function C(Q,G=u.P){if(Q===A||G<=A)throw new Error(`invert: expected positive integers, got n=${Q} mod=${G}`);let H=E(Q,G),ie=G,se=A,fe=k;for(;H!==A;){const he=ie/H,ve=ie%H,me=se-fe*he;ie=H,H=ve,se=fe,fe=me}if(ie!==k)throw new Error("invert: does not exist");return E(se,G)}const F=(Q,G)=>(Q+G/b)/G,re={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-k*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function ee(Q){const{n:G}=u,{a1:H,b1:ie,a2:se,b2:fe,POW_2_128:he}=re,ve=F(fe*Q,G),me=F(-ie*Q,G);let ge=E(Q-ve*H-me*se,G),ye=E(-ve*ie-me*fe,G);const Ee=ge>he,Ae=ye>he;if(Ee&&(ge=G-ge),Ae&&(ye=G-ye),ge>he||ye>he)throw new Error("splitScalarEndo: Endomorphism failed, k="+Q);return{k1neg:Ee,k1:ge,k2neg:Ae,k2:ye}}function ne(Q){const{n:G}=u,H=8*Q.length-256;let ie=P(Q);return H>0&&(ie>>=BigInt(H)),ie>=G&&(ie-=G),ie}let D,Z;class ${constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...G){return e.utils.hmacSha256(this.k,...G)}hmacSync(...G){return Z(this.k,...G)}checkSync(){if(typeof Z!="function")throw new r("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(G=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),G),this.v=await this.hmac(this.v),G.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),G),this.v=await this.hmac(this.v))}reseedSync(G=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),G),this.v=this.hmacSync(this.v),G.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),G),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function X(Q){return A0)G=BigInt(Q);else if(typeof Q=="string"){if(Q.length!==64)throw new Error("Expected 32 bytes of private key");G=I(Q)}else{if(!(Q instanceof Uint8Array))throw new TypeError("Expected valid private key");if(Q.length!==32)throw new Error("Expected 32 bytes of private key");G=P(Q)}if(!X(G))throw new Error("Expected private key: 0 < key < n");return G}function ae(Q){return Q instanceof i?(Q.assertValidity(),Q):i.fromHex(Q)}function ce(Q){if(Q instanceof h)return Q.assertValidity(),Q;try{return h.fromDER(Q)}catch{return h.fromCompact(Q)}}function ue(Q){const G=Q instanceof Uint8Array,H=typeof Q=="string",ie=(G||H)&&Q.length;return G?ie===33||ie===65:H?ie===66||ie===130:Q instanceof i}function le(Q){return P(Q.length>32?Q.slice(0,32):Q)}function be(Q){const G=le(Q),H=E(G,u.n);return de(H{if((Q=w(Q)).length<40||Q.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return j(E(P(Q),u.n-k)+k)},randomBytes:(Q=32)=>{if(te.web)return te.web.getRandomValues(new Uint8Array(Q));if(te.node){const{randomBytes:G}=te.node;return Uint8Array.from(G(Q))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(40)),sha256:async(...Q)=>{if(te.web){const G=await te.web.subtle.digest("SHA-256",p(...Q));return new Uint8Array(G)}if(te.node){const{createHash:G}=te.node,H=G("sha256");return Q.forEach(ie=>H.update(ie)),Uint8Array.from(H.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(Q,...G)=>{if(te.web){const H=await te.web.subtle.importKey("raw",Q,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),ie=p(...G),se=await te.web.subtle.sign("HMAC",H,ie);return new Uint8Array(se)}if(te.node){const{createHmac:H}=te.node,ie=H("sha256",Q);return G.forEach(se=>ie.update(se)),Uint8Array.from(ie.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(Q,...G)=>{let H=V[Q];if(H===void 0){const ie=await e.utils.sha256(Uint8Array.from(Q,se=>se.charCodeAt(0)));H=p(ie,ie),V[Q]=H}return e.utils.sha256(H,...G)},taggedHashSync:(Q,...G)=>{if(typeof D!="function")throw new r("sha256Sync is undefined, you need to set it");let H=V[Q];if(H===void 0){const ie=D(Uint8Array.from(Q,se=>se.charCodeAt(0)));H=p(ie,ie),V[Q]=H}return D(H,...G)},precompute(Q=8,G=i.BASE){const H=G===i.BASE?G:new i(G.x,G.y);return H._setWindowSize(Q),H.multiply(a),H}},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get:()=>D,set(Q){D||(D=Q)}},hmacSha256Sync:{configurable:!1,get:()=>Z,set(Q){Z||(Z=Q)}}})},4537:J=>{J.exports=function(e,_){for(var O=new Array(arguments.length-1),A=0,k=2,b=!0;k{var _=e;_.length=function(a){var t=a.length;if(!t)return 0;for(var u=0;--t%4>1&&a.charAt(t)==="=";)++u;return Math.ceil(3*a.length)/4-u};for(var O=new Array(64),A=new Array(123),k=0;k<64;)A[O[k]=k<26?k+65:k<52?k+71:k<62?k-4:k-59|43]=k++;_.encode=function(a,t,u){for(var d,s=null,r=[],n=0,o=0;t>2],d=(3&i)<<4,o=1;break;case 1:r[n++]=O[d|i>>4],d=(15&i)<<2,o=2;break;case 2:r[n++]=O[d|i>>6],r[n++]=O[63&i],o=0}n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,r)),n=0)}return o&&(r[n++]=O[d],r[n++]=61,o===1&&(r[n++]=61)),s?(n&&s.push(String.fromCharCode.apply(String,r.slice(0,n))),s.join("")):String.fromCharCode.apply(String,r.slice(0,n))};var b="invalid encoding";_.decode=function(a,t,u){for(var d,s=u,r=0,n=0;n1)break;if((o=A[o])===void 0)throw Error(b);switch(r){case 0:d=o,r=1;break;case 1:t[u++]=d<<2|(48&o)>>4,d=o,r=2;break;case 2:t[u++]=(15&d)<<4|(60&o)>>2,d=o,r=3;break;case 3:t[u++]=(3&d)<<6|o,r=0}}if(r===1)throw Error(b);return u-s},_.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},9211:J=>{function e(){this._listeners={}}J.exports=e,e.prototype.on=function(_,O,A){return(this._listeners[_]||(this._listeners[_]=[])).push({fn:O,ctx:A||this}),this},e.prototype.off=function(_,O){if(_===void 0)this._listeners={};else if(O===void 0)this._listeners[_]=[];else for(var A=this._listeners[_],k=0;k{function e(b){return typeof Float32Array<"u"?function(){var a=new Float32Array([-0]),t=new Uint8Array(a.buffer),u=t[3]===128;function d(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3]}function s(o,i,f){a[0]=o,i[f]=t[3],i[f+1]=t[2],i[f+2]=t[1],i[f+3]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],a[0]}function n(o,i){return t[3]=o[i],t[2]=o[i+1],t[1]=o[i+2],t[0]=o[i+3],a[0]}b.writeFloatLE=u?d:s,b.writeFloatBE=u?s:d,b.readFloatLE=u?r:n,b.readFloatBE=u?n:r}():function(){function a(u,d,s,r){var n=d<0?1:0;if(n&&(d=-d),d===0)u(1/d>0?0:2147483648,s,r);else if(isNaN(d))u(2143289344,s,r);else if(d>34028234663852886e22)u((n<<31|2139095040)>>>0,s,r);else if(d<11754943508222875e-54)u((n<<31|Math.round(d/1401298464324817e-60))>>>0,s,r);else{var o=Math.floor(Math.log(d)/Math.LN2);u((n<<31|o+127<<23|8388607&Math.round(d*Math.pow(2,-o)*8388608))>>>0,s,r)}}function t(u,d,s){var r=u(d,s),n=2*(r>>31)+1,o=r>>>23&255,i=8388607&r;return o===255?i?NaN:n*(1/0):o===0?1401298464324817e-60*n*i:n*Math.pow(2,o-150)*(i+8388608)}b.writeFloatLE=a.bind(null,_),b.writeFloatBE=a.bind(null,O),b.readFloatLE=t.bind(null,A),b.readFloatBE=t.bind(null,k)}(),typeof Float64Array<"u"?function(){var a=new Float64Array([-0]),t=new Uint8Array(a.buffer),u=t[7]===128;function d(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3],i[f+4]=t[4],i[f+5]=t[5],i[f+6]=t[6],i[f+7]=t[7]}function s(o,i,f){a[0]=o,i[f]=t[7],i[f+1]=t[6],i[f+2]=t[5],i[f+3]=t[4],i[f+4]=t[3],i[f+5]=t[2],i[f+6]=t[1],i[f+7]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],t[4]=o[i+4],t[5]=o[i+5],t[6]=o[i+6],t[7]=o[i+7],a[0]}function n(o,i){return t[7]=o[i],t[6]=o[i+1],t[5]=o[i+2],t[4]=o[i+3],t[3]=o[i+4],t[2]=o[i+5],t[1]=o[i+6],t[0]=o[i+7],a[0]}b.writeDoubleLE=u?d:s,b.writeDoubleBE=u?s:d,b.readDoubleLE=u?r:n,b.readDoubleBE=u?n:r}():function(){function a(u,d,s,r,n,o){var i=r<0?1:0;if(i&&(r=-r),r===0)u(0,n,o+d),u(1/r>0?0:2147483648,n,o+s);else if(isNaN(r))u(0,n,o+d),u(2146959360,n,o+s);else if(r>17976931348623157e292)u(0,n,o+d),u((i<<31|2146435072)>>>0,n,o+s);else{var f;if(r<22250738585072014e-324)u((f=r/5e-324)>>>0,n,o+d),u((i<<31|f/4294967296)>>>0,n,o+s);else{var c=Math.floor(Math.log(r)/Math.LN2);c===1024&&(c=1023),u(4503599627370496*(f=r*Math.pow(2,-c))>>>0,n,o+d),u((i<<31|c+1023<<20|1048576*f&1048575)>>>0,n,o+s)}}}function t(u,d,s,r,n){var o=u(r,n+d),i=u(r,n+s),f=2*(i>>31)+1,c=i>>>20&2047,h=4294967296*(1048575&i)+o;return c===2047?h?NaN:f*(1/0):c===0?5e-324*f*h:f*Math.pow(2,c-1075)*(h+4503599627370496)}b.writeDoubleLE=a.bind(null,_,0,4),b.writeDoubleBE=a.bind(null,O,4,0),b.readDoubleLE=t.bind(null,A,0,4),b.readDoubleBE=t.bind(null,k,4,0)}(),b}function _(b,a,t){a[t]=255&b,a[t+1]=b>>>8&255,a[t+2]=b>>>16&255,a[t+3]=b>>>24}function O(b,a,t){a[t]=b>>>24,a[t+1]=b>>>16&255,a[t+2]=b>>>8&255,a[t+3]=255&b}function A(b,a){return(b[a]|b[a+1]<<8|b[a+2]<<16|b[a+3]<<24)>>>0}function k(b,a){return(b[a]<<24|b[a+1]<<16|b[a+2]<<8|b[a+3])>>>0}J.exports=e(e)},7199:module=>{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(J){}return null}module.exports=inquire},6662:J=>{J.exports=function(e,_,O){var A=O||8192,k=A>>>1,b=null,a=A;return function(t){if(t<1||t>k)return e(t);a+t>A&&(b=e(A),a=0);var u=_.call(b,a,a+=t);return 7&a&&(a=1+(7|a)),u}}},4997:(J,e)=>{var _=e;_.length=function(O){for(var A=0,k=0,b=0;b191&&b<224?t[u++]=(31&b)<<6|63&O[A++]:b>239&&b<365?(b=((7&b)<<18|(63&O[A++])<<12|(63&O[A++])<<6|63&O[A++])-65536,t[u++]=55296+(b>>10),t[u++]=56320+(1023&b)):t[u++]=(15&b)<<12|(63&O[A++])<<6|63&O[A++],u>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,t)),u=0);return a?(u&&a.push(String.fromCharCode.apply(String,t.slice(0,u))),a.join("")):String.fromCharCode.apply(String,t.slice(0,u))},_.write=function(O,A,k){for(var b,a,t=k,u=0;u>6|192,A[k++]=63&b|128):(64512&b)==55296&&(64512&(a=O.charCodeAt(u+1)))==56320?(b=65536+((1023&b)<<10)+(1023&a),++u,A[k++]=b>>18|240,A[k++]=b>>12&63|128,A[k++]=b>>6&63|128,A[k++]=63&b|128):(A[k++]=b>>12|224,A[k++]=b>>6&63|128,A[k++]=63&b|128);return k-t}},9282:(J,e,_)=>{var O=_(4155),A=_(5108);function k(ee){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},k(ee)}var b,a,t=_(2136).codes,u=t.ERR_AMBIGUOUS_ARGUMENT,d=t.ERR_INVALID_ARG_TYPE,s=t.ERR_INVALID_ARG_VALUE,r=t.ERR_INVALID_RETURN_VALUE,n=t.ERR_MISSING_ARGS,o=_(5961),i=_(9539).inspect,f=_(9539).types,c=f.isPromise,h=f.isRegExp,p=Object.assign?Object.assign:_(8091).assign,m=Object.is?Object.is:_(609);function M(){var ee=_(9158);b=ee.isDeepEqual,a=ee.isDeepStrictEqual}var l=!1,N=J.exports=x,j={};function R(ee){throw ee.message instanceof Error?ee.message:new o(ee)}function I(ee,ne,D,Z){if(!D){var $=!1;if(ne===0)$=!0,Z="No value argument passed to `assert.ok()`";else if(Z instanceof Error)throw Z;var X=new o({actual:D,expected:!0,message:Z,operator:"==",stackStartFn:ee});throw X.generatedMessage=$,X}}function x(){for(var ee=arguments.length,ne=new Array(ee),D=0;D1?D-1:0),$=1;$1?D-1:0),$=1;$1?D-1:0),$=1;$1?D-1:0),$=1;${var O=_(4155);function A(j,R,I){return R in j?Object.defineProperty(j,R,{value:I,enumerable:!0,configurable:!0,writable:!0}):j[R]=I,j}function k(j,R){for(var I=0;I"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(x,P,w){var g=[null];g.push.apply(g,P);var E=new(Function.bind.apply(x,g));return w&&d(E,w.prototype),E},u.apply(null,arguments)}function d(j,R){return d=Object.setPrototypeOf||function(I,x){return I.__proto__=x,I},d(j,R)}function s(j){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},s(j)}function r(j){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},r(j)}var n=_(9539).inspect,o=_(2136).codes.ERR_INVALID_ARG_TYPE;function i(j,R,I){return(I===void 0||I>j.length)&&(I=j.length),j.substring(I-R.length,I)===R}var f="",c="",h="",p="",m={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function M(j){var R=Object.keys(j),I=Object.create(Object.getPrototypeOf(j));return R.forEach(function(x){I[x]=j[x]}),Object.defineProperty(I,"message",{value:j.message}),I}function l(j){return n(j,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var N=function(j){function R(P){var w;if(function(X,K){if(!(X instanceof K))throw new TypeError("Cannot call a class as a function")}(this,R),r(P)!=="object"||P===null)throw new o("options","Object",P);var g=P.message,E=P.operator,U=P.stackStartFn,C=P.actual,F=P.expected,re=Error.stackTraceLimit;if(Error.stackTraceLimit=0,g!=null)w=b(this,s(R).call(this,String(g)));else if(O.stderr&&O.stderr.isTTY&&(O.stderr&&O.stderr.getColorDepth&&O.stderr.getColorDepth()!==1?(f="\x1B[34m",c="\x1B[32m",p="\x1B[39m",h="\x1B[31m"):(f="",c="",p="",h="")),r(C)==="object"&&C!==null&&r(F)==="object"&&F!==null&&"stack"in C&&C instanceof Error&&"stack"in F&&F instanceof Error&&(C=M(C),F=M(F)),E==="deepStrictEqual"||E==="strictEqual")w=b(this,s(R).call(this,function(X,K,Y){var L="",ae="",ce=0,ue="",le=!1,be=l(X),de=be.split(` +`),pe=l(K).split(` +`),_e=0,W="";if(Y==="strictEqual"&&r(X)==="object"&&r(K)==="object"&&X!==null&&K!==null&&(Y="strictEqualObject"),de.length===1&&pe.length===1&&de[0]!==pe[0]){var v=de[0].length+pe[0].length;if(v<=10){if(!(r(X)==="object"&&X!==null||r(K)==="object"&&K!==null||X===0&&K===0))return"".concat(m[Y],` + +`)+"".concat(de[0]," !== ").concat(pe[0],` +`)}else if(Y!=="strictEqualObject"&&v<(O.stderr&&O.stderr.isTTY?O.stderr.columns:80)){for(;de[0][_e]===pe[0][_e];)_e++;_e>2&&(W=` + `.concat(function(H,ie){if(ie=Math.floor(ie),H.length==0||ie==0)return"";var se=H.length*ie;for(ie=Math.floor(Math.log(ie)/Math.log(2));ie;)H+=H,ie--;return H+H.substring(0,se-H.length)}(" ",_e),"^"),_e=0)}}for(var y=de[de.length-1],S=pe[pe.length-1];y===S&&(_e++<2?ue=` + `.concat(y).concat(ue):L=y,de.pop(),pe.pop(),de.length!==0&&pe.length!==0);)y=de[de.length-1],S=pe[pe.length-1];var T=Math.max(de.length,pe.length);if(T===0){var B=be.split(` +`);if(B.length>30)for(B[26]="".concat(f,"...").concat(p);B.length>27;)B.pop();return"".concat(m.notIdentical,` + +`).concat(B.join(` +`),` +`)}_e>3&&(ue=` +`.concat(f,"...").concat(p).concat(ue),le=!0),L!==""&&(ue=` + `.concat(L).concat(ue),L="");var z=0,q=m[Y]+` +`.concat(c,"+ actual").concat(p," ").concat(h,"- expected").concat(p),te=" ".concat(f,"...").concat(p," Lines skipped");for(_e=0;_e1&&_e>2&&(oe>4?(ae+=` +`.concat(f,"...").concat(p),le=!0):oe>3&&(ae+=` + `.concat(pe[_e-2]),z++),ae+=` + `.concat(pe[_e-1]),z++),ce=_e,L+=` +`.concat(h,"-").concat(p," ").concat(pe[_e]),z++;else if(pe.length<_e+1)oe>1&&_e>2&&(oe>4?(ae+=` +`.concat(f,"...").concat(p),le=!0):oe>3&&(ae+=` + `.concat(de[_e-2]),z++),ae+=` + `.concat(de[_e-1]),z++),ce=_e,ae+=` +`.concat(c,"+").concat(p," ").concat(de[_e]),z++;else{var V=pe[_e],Q=de[_e],G=Q!==V&&(!i(Q,",")||Q.slice(0,-1)!==V);G&&i(V,",")&&V.slice(0,-1)===Q&&(G=!1,Q+=","),G?(oe>1&&_e>2&&(oe>4?(ae+=` +`.concat(f,"...").concat(p),le=!0):oe>3&&(ae+=` + `.concat(de[_e-2]),z++),ae+=` + `.concat(de[_e-1]),z++),ce=_e,ae+=` +`.concat(c,"+").concat(p," ").concat(Q),L+=` +`.concat(h,"-").concat(p," ").concat(V),z+=2):(ae+=L,L="",oe!==1&&_e!==0||(ae+=` + `.concat(Q),z++))}if(z>20&&_e30)for(ne[26]="".concat(f,"...").concat(p);ne.length>27;)ne.pop();w=ne.length===1?b(this,s(R).call(this,"".concat(ee," ").concat(ne[0]))):b(this,s(R).call(this,"".concat(ee,` + +`).concat(ne.join(` +`),` +`)))}else{var D=l(C),Z="",$=m[E];E==="notDeepEqual"||E==="notEqual"?(D="".concat(m[E],` + +`).concat(D)).length>1024&&(D="".concat(D.slice(0,1021),"...")):(Z="".concat(l(F)),D.length>512&&(D="".concat(D.slice(0,509),"...")),Z.length>512&&(Z="".concat(Z.slice(0,509),"...")),E==="deepEqual"||E==="equal"?D="".concat($,` + +`).concat(D,` + +should equal + +`):Z=" ".concat(E," ").concat(Z)),w=b(this,s(R).call(this,"".concat(D).concat(Z)))}return Error.stackTraceLimit=re,w.generatedMessage=!g,Object.defineProperty(a(w),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),w.code="ERR_ASSERTION",w.actual=C,w.expected=F,w.operator=E,Error.captureStackTrace&&Error.captureStackTrace(a(w),U),w.stack,w.name="AssertionError",b(w)}var I,x;return function(P,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(w&&w.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),w&&d(P,w)}(R,j),I=R,x=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:n.custom,value:function(P,w){return n(this,function(g){for(var E=1;E{function O(s){return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(s)}function A(s){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(s)}function k(s,r){return k=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},k(s,r)}var b,a,t={};function u(s,r,n){n||(n=Error);var o=function(i){function f(c,h,p){var m;return function(M,l){if(!(M instanceof l))throw new TypeError("Cannot call a class as a function")}(this,f),m=function(M,l){return!l||O(l)!=="object"&&typeof l!="function"?function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(M):l}(this,A(f).call(this,function(M,l,N){return typeof r=="string"?r:r(M,l,N)}(c,h,p))),m.code=s,m}return function(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),h&&k(c,h)}(f,i),f}(n);t[s]=o}function d(s,r){if(Array.isArray(s)){var n=s.length;return s=s.map(function(o){return String(o)}),n>2?"one of ".concat(r," ").concat(s.slice(0,n-1).join(", "),", or ")+s[n-1]:n===2?"one of ".concat(r," ").concat(s[0]," or ").concat(s[1]):"of ".concat(r," ").concat(s[0])}return"of ".concat(r," ").concat(String(s))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(s,r,n){var o,i,f,c,h;if(b===void 0&&(b=_(9282)),b(typeof s=="string","'name' must be a string"),typeof r=="string"&&(i="not ",r.substr(0,4)===i)?(o="must not be",r=r.replace(/^not /,"")):o="must be",function(m,M,l){return(l===void 0||l>m.length)&&(l=m.length),m.substring(l-9,l)===M}(s," argument"))f="The ".concat(s," ").concat(o," ").concat(d(r,"type"));else{var p=(typeof h!="number"&&(h=0),h+1>(c=s).length||c.indexOf(".",h)===-1?"argument":"property");f='The "'.concat(s,'" ').concat(p," ").concat(o," ").concat(d(r,"type"))}return f+". Received type ".concat(O(n))},TypeError),u("ERR_INVALID_ARG_VALUE",function(s,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=_(9539));var o=a.inspect(r);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(s,"' ").concat(n,". Received ").concat(o)},TypeError),u("ERR_INVALID_RETURN_VALUE",function(s,r,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(O(n)),"Expected ".concat(s,' to be returned from the "').concat(r,'"')+" function but got ".concat(o,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var s=arguments.length,r=new Array(s),n=0;n0,"At least one arg needs to be specified");var o="The ",i=r.length;switch(r=r.map(function(f){return'"'.concat(f,'"')}),i){case 1:o+="".concat(r[0]," argument");break;case 2:o+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:o+=r.slice(0,i-1).join(", "),o+=", and ".concat(r[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),J.exports.codes=t},9158:(J,e,_)=>{function O(ce,ue){return function(le){if(Array.isArray(le))return le}(ce)||function(le,be){var de=[],pe=!0,_e=!1,W=void 0;try{for(var v,y=le[Symbol.iterator]();!(pe=(v=y.next()).done)&&(de.push(v.value),!be||de.length!==be);pe=!0);}catch(S){_e=!0,W=S}finally{try{pe||y.return==null||y.return()}finally{if(_e)throw W}}return de}(ce,ue)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function A(ce){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ue){return typeof ue}:function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},A(ce)}var k=/a/g.flags!==void 0,b=function(ce){var ue=[];return ce.forEach(function(le){return ue.push(le)}),ue},a=function(ce){var ue=[];return ce.forEach(function(le,be){return ue.push([be,le])}),ue},t=Object.is?Object.is:_(609),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:_(360);function s(ce){return ce.call.bind(ce)}var r=s(Object.prototype.hasOwnProperty),n=s(Object.prototype.propertyIsEnumerable),o=s(Object.prototype.toString),i=_(9539).types,f=i.isAnyArrayBuffer,c=i.isArrayBufferView,h=i.isDate,p=i.isMap,m=i.isRegExp,M=i.isSet,l=i.isNativeError,N=i.isBoxedPrimitive,j=i.isNumberObject,R=i.isStringObject,I=i.isBooleanObject,x=i.isBigIntObject,P=i.isSymbolObject,w=i.isFloat32Array,g=i.isFloat64Array;function E(ce){if(ce.length===0||ce.length>10)return!0;for(var ue=0;ue57)return!0}return ce.length===10&&ce>=Math.pow(2,32)}function U(ce){return Object.keys(ce).filter(E).concat(u(ce).filter(Object.prototype.propertyIsEnumerable.bind(ce)))}function C(ce,ue){if(ce===ue)return 0;for(var le=ce.length,be=ue.length,de=0,pe=Math.min(le,be);de{var O=_(9509).Buffer;J.exports=function(A){if(A.length>=255)throw new TypeError("Alphabet too long");for(var k=new Uint8Array(256),b=0;b>>0,m=new Uint8Array(p);i[f];){var M=k[i.charCodeAt(f)];if(M===255)return;for(var l=0,N=p-1;(M!==0||l>>0,m[N]=M%256>>>0,M=M/256>>>0;if(M!==0)throw new Error("Non-zero carry");h=l,f++}for(var j=p-h;j!==p&&m[j]===0;)j++;var R=O.allocUnsafe(c+(p-j));R.fill(0,0,c);for(var I=c;j!==p;)R[I++]=m[j++];return R}return{encode:function(i){if((Array.isArray(i)||i instanceof Uint8Array)&&(i=O.from(i)),!O.isBuffer(i))throw new TypeError("Expected Buffer");if(i.length===0)return"";for(var f=0,c=0,h=0,p=i.length;h!==p&&i[h]===0;)h++,f++;for(var m=(p-h)*n+1>>>0,M=new Uint8Array(m);h!==p;){for(var l=i[h],N=0,j=m-1;(l!==0||N>>0,M[j]=l%d>>>0,l=l/d>>>0;if(l!==0)throw new Error("Non-zero carry");c=N,h++}for(var R=m-c;R!==m&&M[R]===0;)R++;for(var I=s.repeat(f);R{e.byteLength=function(u){var d=a(u),s=d[0],r=d[1];return 3*(s+r)/4-r},e.toByteArray=function(u){var d,s,r=a(u),n=r[0],o=r[1],i=new A(function(h,p,m){return 3*(p+m)/4-m}(0,n,o)),f=0,c=o>0?n-4:n;for(s=0;s>16&255,i[f++]=d>>8&255,i[f++]=255&d;return o===2&&(d=O[u.charCodeAt(s)]<<2|O[u.charCodeAt(s+1)]>>4,i[f++]=255&d),o===1&&(d=O[u.charCodeAt(s)]<<10|O[u.charCodeAt(s+1)]<<4|O[u.charCodeAt(s+2)]>>2,i[f++]=d>>8&255,i[f++]=255&d),i},e.fromByteArray=function(u){for(var d,s=u.length,r=s%3,n=[],o=16383,i=0,f=s-r;if?f:i+o));return r===1?(d=u[s-1],n.push(_[d>>2]+_[d<<4&63]+"==")):r===2&&(d=(u[s-2]<<8)+u[s-1],n.push(_[d>>10]+_[d>>4&63]+_[d<<2&63]+"=")),n.join("")};for(var _=[],O=[],A=typeof Uint8Array<"u"?Uint8Array:Array,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0;b<64;++b)_[b]=k[b],O[k.charCodeAt(b)]=b;function a(u){var d=u.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=u.indexOf("=");return s===-1&&(s=d),[s,s===d?0:4-s%4]}function t(u,d,s){for(var r,n,o=[],i=d;i>18&63]+_[n>>12&63]+_[n>>6&63]+_[63&n]);return o.join("")}O["-".charCodeAt(0)]=62,O["_".charCodeAt(0)]=63},7715:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bech32m=e.bech32=void 0;const _="qpzry9x8gf2tvdw0s3jn54khce6mua7l",O={};for(let s=0;s<32;s++){const r=_.charAt(s);O[r]=s}function A(s){const r=s>>25;return(33554431&s)<<5^996825010&-(r>>0&1)^642813549&-(r>>1&1)^513874426&-(r>>2&1)^1027748829&-(r>>3&1)^705979059&-(r>>4&1)}function k(s){let r=1;for(let n=0;n126)return"Invalid prefix ("+s+")";r=A(r)^o>>5}r=A(r);for(let n=0;n=n;)f-=n,h.push(i>>f&c);if(o)f>0&&h.push(i<=r)return"Excess padding";if(i<i)return"Exceeds length limit";const f=o.toLowerCase(),c=o.toUpperCase();if(o!==f&&o!==c)return"Mixed-case string "+o;const h=(o=f).lastIndexOf("1");if(h===-1)return"No separator character for "+o;if(h===0)return"Missing prefix for "+o;const p=o.slice(0,h),m=o.slice(h+1);if(m.length<6)return"Data too short";let M=k(p);if(typeof M=="string")return M;const l=[];for(let N=0;N=m.length||l.push(R)}return M!==r?"Invalid checksum for "+o:{prefix:p,words:l}}return r=s==="bech32"?1:734539939,{decodeUnsafe:function(o,i){const f=n(o,i);if(typeof f=="object")return f},decode:function(o,i){const f=n(o,i);if(typeof f=="object")return f;throw new Error(f)},encode:function(o,i,f){if(f=f||90,o.length+7+i.length>f)throw new TypeError("Exceeds length limit");let c=k(o=o.toLowerCase());if(typeof c=="string")throw new Error(c);let h=o+"1";for(let p=0;p>5)throw new Error("Non 5-bit word");c=A(c)^m,h+=_.charAt(m)}for(let p=0;p<6;++p)c=A(c);c^=r;for(let p=0;p<6;++p)h+=_.charAt(c>>5*(5-p)&31);return h},toWords:a,fromWordsUnsafe:t,fromWords:u}}e.bech32=d("bech32"),e.bech32m=d("bech32m")},4736:(J,e,_)=>{var O;J=_.nmd(J);var A=function(k){var b=1e7,a=7,t=9007199254740992,u=c(t),d="0123456789abcdefghijklmnopqrstuvwxyz",s=typeof BigInt=="function";function r(T,B,z,q){return T===void 0?r[0]:B===void 0||+B==10&&!z?y(T):de(T,B,z,q)}function n(T,B){this.value=T,this.sign=B,this.isSmall=!1}function o(T){this.value=T,this.sign=T<0,this.isSmall=!0}function i(T){this.value=T}function f(T){return-t0?Math.floor(T):Math.ceil(T)}function l(T,B){var z,q,te=T.length,oe=B.length,V=new Array(te),Q=0,G=b;for(q=0;q=G?1:0,V[q]=z-Q*G;for(;q0&&V.push(Q),V}function N(T,B){return T.length>=B.length?l(T,B):l(B,T)}function j(T,B){var z,q,te=T.length,oe=new Array(te),V=b;for(q=0;q0;)oe[q++]=B%V,B=Math.floor(B/V);return oe}function R(T,B){var z,q,te=T.length,oe=B.length,V=new Array(te),Q=0,G=b;for(z=0;z0;)oe[q++]=Q%V,Q=Math.floor(Q/V);return oe}function w(T,B){for(var z=[];B-- >0;)z.push(0);return z.concat(T)}function g(T,B){var z=Math.max(T.length,B.length);if(z<=30)return x(T,B);z=Math.ceil(z/2);var q=T.slice(z),te=T.slice(0,z),oe=B.slice(z),V=B.slice(0,z),Q=g(te,V),G=g(q,oe),H=g(N(te,q),N(V,oe)),ie=N(N(Q,w(R(R(H,Q),G),z)),w(G,2*z));return p(ie),ie}function E(T,B,z){return new n(T=0;--z)te=(oe=te*G+T[z])-(q=M(oe/B))*B,Q[z]=0|q;return[Q,0|te]}function F(T,B){var z,q=y(B);if(s)return[new i(T.value/q.value),new i(T.value%q.value)];var te,oe=T.value,V=q.value;if(V===0)throw new Error("Cannot divide by zero");if(T.isSmall)return q.isSmall?[new o(M(oe/V)),new o(oe%V)]:[r[0],T];if(q.isSmall){if(V===1)return[T,r[0]];if(V==-1)return[T.negate(),r[0]];var Q=Math.abs(V);if(Q=0;ge--){for(me=Se-1,Te[ge+we]!==Oe&&(me=Math.floor((Te[ge+we]*Se+Te[ge+we-1])/Oe)),ye=0,Ee=0,Pe=Ne.length,Ae=0;Aeke&&(ye=(ye+1)*Se),me=Math.ceil(ye/Ee);do{if(re(Ae=P(ve,me),we)<=0)break;me--}while(me);xe.push(me),we=R(we,Ae)}return xe.reverse(),[h(xe),h(we)]}(oe,V),te=z[0];var ie=T.sign!==q.sign,se=z[1],fe=T.sign;return typeof te=="number"?(ie&&(te=-te),te=new o(te)):te=new n(te,ie),typeof se=="number"?(fe&&(se=-se),se=new o(se)):se=new n(se,fe),[te,se]}function re(T,B){if(T.length!==B.length)return T.length>B.length?1:-1;for(var z=T.length-1;z>=0;z--)if(T[z]!==B[z])return T[z]>B[z]?1:-1;return 0}function ee(T){var B=T.abs();return!B.isUnit()&&(!!(B.equals(2)||B.equals(3)||B.equals(5))||!(B.isEven()||B.isDivisibleBy(3)||B.isDivisibleBy(5))&&(!!B.lesser(49)||void 0))}function ne(T,B){for(var z,q,te,oe=T.prev(),V=oe,Q=0;V.isEven();)V=V.divide(2),Q++;e:for(q=0;q=0?Q=R(te,oe):(Q=R(oe,te),V=!V),typeof(Q=h(Q))=="number"?(V&&(Q=-Q),new o(Q)):new n(Q,V)}(z,q,this.sign)},n.prototype.minus=n.prototype.subtract,o.prototype.subtract=function(T){var B=y(T),z=this.value;if(z<0!==B.sign)return this.add(B.negate());var q=B.value;return B.isSmall?new o(z-q):I(q,Math.abs(z),z>=0)},o.prototype.minus=o.prototype.subtract,i.prototype.subtract=function(T){return new i(this.value-y(T).value)},i.prototype.minus=i.prototype.subtract,n.prototype.negate=function(){return new n(this.value,!this.sign)},o.prototype.negate=function(){var T=this.sign,B=new o(-this.value);return B.sign=!T,B},i.prototype.negate=function(){return new i(-this.value)},n.prototype.abs=function(){return new n(this.value,!1)},o.prototype.abs=function(){return new o(Math.abs(this.value))},i.prototype.abs=function(){return new i(this.value>=0?this.value:-this.value)},n.prototype.multiply=function(T){var B,z,q,te=y(T),oe=this.value,V=te.value,Q=this.sign!==te.sign;if(te.isSmall){if(V===0)return r[0];if(V===1)return this;if(V===-1)return this.negate();if((B=Math.abs(V))0?g(oe,V):x(oe,V),Q)},n.prototype.times=n.prototype.multiply,o.prototype._multiplyBySmall=function(T){return f(T.value*this.value)?new o(T.value*this.value):E(Math.abs(T.value),c(Math.abs(this.value)),this.sign!==T.sign)},n.prototype._multiplyBySmall=function(T){return T.value===0?r[0]:T.value===1?this:T.value===-1?this.negate():E(Math.abs(T.value),this.value,this.sign!==T.sign)},o.prototype.multiply=function(T){return y(T)._multiplyBySmall(this)},o.prototype.times=o.prototype.multiply,i.prototype.multiply=function(T){return new i(this.value*y(T).value)},i.prototype.times=i.prototype.multiply,n.prototype.square=function(){return new n(U(this.value),!1)},o.prototype.square=function(){var T=this.value*this.value;return f(T)?new o(T):new n(U(c(Math.abs(this.value))),!1)},i.prototype.square=function(T){return new i(this.value*this.value)},n.prototype.divmod=function(T){var B=F(this,T);return{quotient:B[0],remainder:B[1]}},i.prototype.divmod=o.prototype.divmod=n.prototype.divmod,n.prototype.divide=function(T){return F(this,T)[0]},i.prototype.over=i.prototype.divide=function(T){return new i(this.value/y(T).value)},o.prototype.over=o.prototype.divide=n.prototype.over=n.prototype.divide,n.prototype.mod=function(T){return F(this,T)[1]},i.prototype.mod=i.prototype.remainder=function(T){return new i(this.value%y(T).value)},o.prototype.remainder=o.prototype.mod=n.prototype.remainder=n.prototype.mod,n.prototype.pow=function(T){var B,z,q,te=y(T),oe=this.value,V=te.value;if(V===0)return r[1];if(oe===0)return r[0];if(oe===1)return r[1];if(oe===-1)return te.isEven()?r[1]:r[-1];if(te.sign)return r[0];if(!te.isSmall)throw new Error("The exponent "+te.toString()+" is too large.");if(this.isSmall&&f(B=Math.pow(oe,V)))return new o(M(B));for(z=this,q=r[1];!0&V&&(q=q.times(z),--V),V!==0;)V/=2,z=z.square();return q},o.prototype.pow=n.prototype.pow,i.prototype.pow=function(T){var B=y(T),z=this.value,q=B.value,te=BigInt(0),oe=BigInt(1),V=BigInt(2);if(q===te)return r[1];if(z===te)return r[0];if(z===oe)return r[1];if(z===BigInt(-1))return B.isEven()?r[1]:r[-1];if(B.isNegative())return new i(te);for(var Q=this,G=r[1];(q&oe)===oe&&(G=G.times(Q),--q),q!==te;)q/=V,Q=Q.square();return G},n.prototype.modPow=function(T,B){if(T=y(T),(B=y(B)).isZero())throw new Error("Cannot take modPow with modulus 0");var z=r[1],q=this.mod(B);for(T.isNegative()&&(T=T.multiply(r[-1]),q=q.modInv(B));T.isPositive();){if(q.isZero())return r[0];T.isOdd()&&(z=z.multiply(q).mod(B)),T=T.divide(2),q=q.square().mod(B)}return z},i.prototype.modPow=o.prototype.modPow=n.prototype.modPow,n.prototype.compareAbs=function(T){var B=y(T),z=this.value,q=B.value;return B.isSmall?1:re(z,q)},o.prototype.compareAbs=function(T){var B=y(T),z=Math.abs(this.value),q=B.value;return B.isSmall?z===(q=Math.abs(q))?0:z>q?1:-1:-1},i.prototype.compareAbs=function(T){var B=this.value,z=y(T).value;return(B=B>=0?B:-B)===(z=z>=0?z:-z)?0:B>z?1:-1},n.prototype.compare=function(T){if(T===1/0)return-1;if(T===-1/0)return 1;var B=y(T),z=this.value,q=B.value;return this.sign!==B.sign?B.sign?1:-1:B.isSmall?this.sign?-1:1:re(z,q)*(this.sign?-1:1)},n.prototype.compareTo=n.prototype.compare,o.prototype.compare=function(T){if(T===1/0)return-1;if(T===-1/0)return 1;var B=y(T),z=this.value,q=B.value;return B.isSmall?z==q?0:z>q?1:-1:z<0!==B.sign?z<0?-1:1:z<0?1:-1},o.prototype.compareTo=o.prototype.compare,i.prototype.compare=function(T){if(T===1/0)return-1;if(T===-1/0)return 1;var B=this.value,z=y(T).value;return B===z?0:B>z?1:-1},i.prototype.compareTo=i.prototype.compare,n.prototype.equals=function(T){return this.compare(T)===0},i.prototype.eq=i.prototype.equals=o.prototype.eq=o.prototype.equals=n.prototype.eq=n.prototype.equals,n.prototype.notEquals=function(T){return this.compare(T)!==0},i.prototype.neq=i.prototype.notEquals=o.prototype.neq=o.prototype.notEquals=n.prototype.neq=n.prototype.notEquals,n.prototype.greater=function(T){return this.compare(T)>0},i.prototype.gt=i.prototype.greater=o.prototype.gt=o.prototype.greater=n.prototype.gt=n.prototype.greater,n.prototype.lesser=function(T){return this.compare(T)<0},i.prototype.lt=i.prototype.lesser=o.prototype.lt=o.prototype.lesser=n.prototype.lt=n.prototype.lesser,n.prototype.greaterOrEquals=function(T){return this.compare(T)>=0},i.prototype.geq=i.prototype.greaterOrEquals=o.prototype.geq=o.prototype.greaterOrEquals=n.prototype.geq=n.prototype.greaterOrEquals,n.prototype.lesserOrEquals=function(T){return this.compare(T)<=0},i.prototype.leq=i.prototype.lesserOrEquals=o.prototype.leq=o.prototype.lesserOrEquals=n.prototype.leq=n.prototype.lesserOrEquals,n.prototype.isEven=function(){return(1&this.value[0])==0},o.prototype.isEven=function(){return(1&this.value)==0},i.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},n.prototype.isOdd=function(){return(1&this.value[0])==1},o.prototype.isOdd=function(){return(1&this.value)==1},i.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},n.prototype.isPositive=function(){return!this.sign},o.prototype.isPositive=function(){return this.value>0},i.prototype.isPositive=o.prototype.isPositive,n.prototype.isNegative=function(){return this.sign},o.prototype.isNegative=function(){return this.value<0},i.prototype.isNegative=o.prototype.isNegative,n.prototype.isUnit=function(){return!1},o.prototype.isUnit=function(){return Math.abs(this.value)===1},i.prototype.isUnit=function(){return this.abs().value===BigInt(1)},n.prototype.isZero=function(){return!1},o.prototype.isZero=function(){return this.value===0},i.prototype.isZero=function(){return this.value===BigInt(0)},n.prototype.isDivisibleBy=function(T){var B=y(T);return!B.isZero()&&(!!B.isUnit()||(B.compareAbs(2)===0?this.isEven():this.mod(B).isZero()))},i.prototype.isDivisibleBy=o.prototype.isDivisibleBy=n.prototype.isDivisibleBy,n.prototype.isPrime=function(T){var B=ee(this);if(B!==k)return B;var z=this.abs(),q=z.bitLength();if(q<=64)return ne(z,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var te=Math.log(2)*q.toJSNumber(),oe=Math.ceil(T===!0?2*Math.pow(te,2):te),V=[],Q=0;Q-t?new o(T-1):new n(u,!0)},i.prototype.prev=function(){return new i(this.value-BigInt(1))};for(var D=[1];2*D[D.length-1]<=b;)D.push(2*D[D.length-1]);var Z=D.length,$=D[Z-1];function X(T){return Math.abs(T)<=b}function K(T,B,z){B=y(B);for(var q=T.isNegative(),te=B.isNegative(),oe=q?T.not():T,V=te?B.not():B,Q=0,G=0,H=null,ie=null,se=[];!oe.isZero()||!V.isZero();)Q=(H=F(oe,$))[1].toJSNumber(),q&&(Q=$-1-Q),G=(ie=F(V,$))[1].toJSNumber(),te&&(G=$-1-G),oe=H[0],V=ie[0],se.push(z(Q,G));for(var fe=z(q?1:0,te?1:0)!==0?A(-1):A(0),he=se.length-1;he>=0;he-=1)fe=fe.multiply($).add(A(se[he]));return fe}n.prototype.shiftLeft=function(T){var B=y(T).toJSNumber();if(!X(B))throw new Error(String(B)+" is too large for shifting.");if(B<0)return this.shiftRight(-B);var z=this;if(z.isZero())return z;for(;B>=Z;)z=z.multiply($),B-=Z-1;return z.multiply(D[B])},i.prototype.shiftLeft=o.prototype.shiftLeft=n.prototype.shiftLeft,n.prototype.shiftRight=function(T){var B,z=y(T).toJSNumber();if(!X(z))throw new Error(String(z)+" is too large for shifting.");if(z<0)return this.shiftLeft(-z);for(var q=this;z>=Z;){if(q.isZero()||q.isNegative()&&q.isUnit())return q;q=(B=F(q,$))[1].isNegative()?B[0].prev():B[0],z-=Z-1}return(B=F(q,D[z]))[1].isNegative()?B[0].prev():B[0]},i.prototype.shiftRight=o.prototype.shiftRight=n.prototype.shiftRight,n.prototype.not=function(){return this.negate().prev()},i.prototype.not=o.prototype.not=n.prototype.not,n.prototype.and=function(T){return K(this,T,function(B,z){return B&z})},i.prototype.and=o.prototype.and=n.prototype.and,n.prototype.or=function(T){return K(this,T,function(B,z){return B|z})},i.prototype.or=o.prototype.or=n.prototype.or,n.prototype.xor=function(T){return K(this,T,function(B,z){return B^z})},i.prototype.xor=o.prototype.xor=n.prototype.xor;var Y=1<<30,L=(b&-b)*(b&-b)|Y;function ae(T){var B=T.value,z=typeof B=="number"?B|Y:typeof B=="bigint"?B|BigInt(Y):B[0]+B[1]*b|L;return z&-z}function ce(T,B){if(B.compareTo(T)<=0){var z=ce(T,B.square(B)),q=z.p,te=z.e,oe=q.multiply(B);return oe.compareTo(T)<=0?{p:oe,e:2*te+1}:{p:q,e:2*te}}return{p:A(1),e:0}}function ue(T,B){return T=y(T),B=y(B),T.greater(B)?T:B}function le(T,B){return T=y(T),B=y(B),T.lesser(B)?T:B}function be(T,B){if(T=y(T).abs(),B=y(B).abs(),T.equals(B))return T;if(T.isZero())return B;if(B.isZero())return T;for(var z,q,te=r[1];T.isEven()&&B.isEven();)z=le(ae(T),ae(B)),T=T.divide(z),B=B.divide(z),te=te.multiply(z);for(;T.isEven();)T=T.divide(ae(T));do{for(;B.isEven();)B=B.divide(ae(B));T.greater(B)&&(q=B,B=T,T=q),B=B.subtract(T)}while(!B.isZero());return te.isUnit()?T:T.multiply(te)}n.prototype.bitLength=function(){var T=this;return T.compareTo(A(0))<0&&(T=T.negate().subtract(A(1))),T.compareTo(A(0))===0?A(0):A(ce(T,A(2)).e).add(A(1))},i.prototype.bitLength=o.prototype.bitLength=n.prototype.bitLength;var de=function(T,B,z,q){z=z||d,T=String(T),q||(T=T.toLowerCase(),z=z.toLowerCase());var te,oe=T.length,V=Math.abs(B),Q={};for(te=0;te=V){if(ie==="1"&&V===1)continue;throw new Error(ie+" is not a valid digit in base "+B+".")}B=y(B);var G=[],H=T[0]==="-";for(te=H?1:0;te"&&te=0;q--)te=te.add(T[q].times(oe)),oe=oe.times(B);return z?te.negate():te}function _e(T,B){if((B=A(B)).isZero()){if(T.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(B.equals(-1)){if(T.isZero())return{value:[0],isNegative:!1};if(T.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-T.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var z=Array.apply(null,Array(T.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return z.unshift([1]),{value:[].concat.apply([],z),isNegative:!1}}var q=!1;if(T.isNegative()&&B.isPositive()&&(q=!0,T=T.abs()),B.isUnit())return T.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(T.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:q};for(var te,oe=[],V=T;V.isNegative()||V.compareAbs(B)>=0;){te=V.divmod(B),V=te.quotient;var Q=te.remainder;Q.isNegative()&&(Q=B.minus(Q).abs(),V=V.next()),oe.push(Q.toJSNumber())}return oe.push(V.toJSNumber()),{value:oe.reverse(),isNegative:q}}function W(T,B,z){var q=_e(T,B);return(q.isNegative?"-":"")+q.value.map(function(te){return function(oe,V){return oe<(V=V||d).length?V[oe]:"<"+oe+">"}(te,z)}).join("")}function v(T){if(f(+T)){var B=+T;if(B===M(B))return s?new i(BigInt(B)):new o(B);throw new Error("Invalid integer: "+T)}var z=T[0]==="-";z&&(T=T.slice(1));var q=T.split(/e/i);if(q.length>2)throw new Error("Invalid integer: "+q.join("e"));if(q.length===2){var te=q[1];if(te[0]==="+"&&(te=te.slice(1)),(te=+te)!==M(te)||!f(te))throw new Error("Invalid integer: "+te+" is not a valid exponent.");var oe=q[0],V=oe.indexOf(".");if(V>=0&&(te-=oe.length-V-1,oe=oe.slice(0,V)+oe.slice(V+1)),te<0)throw new Error("Cannot include negative exponent part for integers");T=oe+=new Array(te+1).join("0")}if(!/^([0-9][0-9]*)$/.test(T))throw new Error("Invalid integer: "+T);if(s)return new i(BigInt(z?"-"+T:T));for(var Q=[],G=T.length,H=a,ie=G-H;G>0;)Q.push(+T.slice(ie,G)),(ie-=H)<0&&(ie=0),G-=H;return p(Q),new n(Q,z)}function y(T){return typeof T=="number"?function(B){if(s)return new i(BigInt(B));if(f(B)){if(B!==M(B))throw new Error(B+" is not an integer.");return new o(B)}return v(B.toString())}(T):typeof T=="string"?v(T):typeof T=="bigint"?new i(T):T}n.prototype.toArray=function(T){return _e(this,T)},o.prototype.toArray=function(T){return _e(this,T)},i.prototype.toArray=function(T){return _e(this,T)},n.prototype.toString=function(T,B){if(T===k&&(T=10),T!==10)return W(this,T,B);for(var z,q=this.value,te=q.length,oe=String(q[--te]);--te>=0;)z=String(q[te]),oe+="0000000".slice(z.length)+z;return(this.sign?"-":"")+oe},o.prototype.toString=function(T,B){return T===k&&(T=10),T!=10?W(this,T,B):String(this.value)},i.prototype.toString=o.prototype.toString,i.prototype.toJSON=n.prototype.toJSON=o.prototype.toJSON=function(){return this.toString()},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSNumber=n.prototype.valueOf,o.prototype.valueOf=function(){return this.value},o.prototype.toJSNumber=o.prototype.valueOf,i.prototype.valueOf=i.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var S=0;S<1e3;S++)r[S]=y(S),S>0&&(r[-S]=y(-S));return r.one=r[1],r.zero=r[0],r.minusOne=r[-1],r.max=ue,r.min=le,r.gcd=be,r.lcm=function(T,B){return T=y(T).abs(),B=y(B).abs(),T.divide(be(T,B)).multiply(B)},r.isInstance=function(T){return T instanceof n||T instanceof o||T instanceof i},r.randBetween=function(T,B,z){T=y(T),B=y(B);var q=z||Math.random,te=le(T,B),oe=ue(T,B).subtract(te).add(1);if(oe.isSmall)return te.add(Math.floor(q()*oe));for(var V=_e(oe,b).value,Q=[],G=!0,H=0;H0||j===R?R:R-1}function h(j){for(var R,I,x=1,P=j.length,w=j[0]+"";xC^I?1:-1;for(E=(U=P.length)<(C=w.length)?U:C,g=0;gw[g]^I?1:-1;return U==C?0:U>C^I?1:-1}function m(j,R,I,x){if(jI||j!==t(j))throw Error(u+(x||"Argument")+(typeof j=="number"?jI?" out of range: ":" not an integer: ":" not a primitive number: ")+String(j))}function M(j){var R=j.c.length-1;return c(j.e/r)==R&&j.c[R]%2!=0}function l(j,R){return(j.length>1?j.charAt(0)+"."+j.slice(1):j)+(R<0?"e":"e+")+R}function N(j,R,I){var x,P;if(R<0){for(P=I+".";++R;P+=I);j=P+j}else if(++R>(x=j.length)){for(P=I,R-=x;--R;P+=I);j+=P}else RY?H.c=H.e=null:S.e=10;oe/=10,te++);return void(te>Y?H.c=H.e=null:(H.e=te,H.c=[S]))}G=String(S)}else{if(!b.test(G=String(S)))return P(H,G,V);H.s=G.charCodeAt(0)==45?(G=G.slice(1),-1):1}(te=G.indexOf("."))>-1&&(G=G.replace(".","")),(oe=G.search(/e/i))>0?(te<0&&(te=oe),te+=+G.slice(oe+1),G=G.substring(0,oe)):te<0&&(te=G.length)}else{if(m(T,2,le.length,"Base"),T==10&&be)return v(H=new de(S),D+H.e+1,Z);if(G=String(S),V=typeof S=="number"){if(0*S!=0)return P(H,G,V,T);if(H.s=1/S<0?(G=G.slice(1),-1):1,de.DEBUG&&G.replace(/^0\.0*|\./,"").length>15)throw Error(d+S)}else H.s=G.charCodeAt(0)===45?(G=G.slice(1),-1):1;for(B=le.slice(0,T),te=oe=0,Q=G.length;oete){te=Q;continue}}else if(!q&&(G==G.toUpperCase()&&(G=G.toLowerCase())||G==G.toLowerCase()&&(G=G.toUpperCase()))){q=!0,oe=-1,te=0;continue}return P(H,String(S),V,T)}V=!1,(te=(G=x(G,T,10,H.s)).indexOf("."))>-1?G=G.replace(".",""):te=G.length}for(oe=0;G.charCodeAt(oe)===48;oe++);for(Q=G.length;G.charCodeAt(--Q)===48;);if(G=G.slice(oe,++Q)){if(Q-=oe,V&&de.DEBUG&&Q>15&&(S>n||S!==t(S)))throw Error(d+H.s*S);if((te=te-oe-1)>Y)H.c=H.e=null;else if(te=X)?l(Q,oe):N(Q,oe,"0");else if(te=(S=v(new de(S),T,B)).e,V=(Q=h(S.c)).length,z==1||z==2&&(T<=te||te<=$)){for(;VV){if(--T>0)for(Q+=".";T--;Q+="0");}else if((T+=te-V)>0)for(te+1==V&&(Q+=".");T--;Q+="0");return S.s<0&&q?"-"+Q:Q}function _e(S,T){for(var B,z=1,q=new de(S[0]);z=10;q/=10,z++);return(B=z+B*r-1)>Y?S.c=S.e=null:B=10;V/=10,q++);if((te=T-q)<0)te+=r,oe=T,H=(Q=ie[G=0])/se[q-oe-1]%10|0;else if((G=a((te+1)/r))>=ie.length){if(!z)break e;for(;ie.length<=G;ie.push(0));Q=H=0,q=1,oe=(te%=r)-r+1}else{for(Q=V=ie[G],q=1;V>=10;V/=10,q++);H=(oe=(te%=r)-r+q)<0?0:Q/se[q-oe-1]%10|0}if(z=z||T<0||ie[G+1]!=null||(oe<0?Q:Q%se[q-oe-1]),z=B<4?(H||z)&&(B==0||B==(S.s<0?3:2)):H>5||H==5&&(B==4||z||B==6&&(te>0?oe>0?Q/se[q-oe]:0:ie[G-1])%10&1||B==(S.s<0?8:7)),T<1||!ie[0])return ie.length=0,z?(T-=S.e+1,ie[0]=se[(r-T%r)%r],S.e=-T||0):ie[0]=S.e=0,S;if(te==0?(ie.length=G,V=1,G--):(ie.length=G+1,V=se[r-te],ie[G]=oe>0?t(Q/se[q-oe]%se[oe])*V:0),z)for(;;){if(G==0){for(te=1,oe=ie[0];oe>=10;oe/=10,te++);for(oe=ie[0]+=V,V=1;oe>=10;oe/=10,V++);te!=V&&(S.e++,ie[0]==s&&(ie[0]=1));break}if(ie[G]+=V,ie[G]!=s)break;ie[G--]=0,V=1}for(te=ie.length;ie[--te]===0;ie.pop());}S.e>Y?S.c=S.e=null:S.e=X?l(T,B):N(T,B,"0"),S.s<0?"-"+T:T)}return de.clone=j,de.ROUND_UP=0,de.ROUND_DOWN=1,de.ROUND_CEIL=2,de.ROUND_FLOOR=3,de.ROUND_HALF_UP=4,de.ROUND_HALF_DOWN=5,de.ROUND_HALF_EVEN=6,de.ROUND_HALF_CEIL=7,de.ROUND_HALF_FLOOR=8,de.EUCLID=9,de.config=de.set=function(S){var T,B;if(S!=null){if(typeof S!="object")throw Error(u+"Object expected: "+S);if(S.hasOwnProperty(T="DECIMAL_PLACES")&&(m(B=S[T],0,f,T),D=B),S.hasOwnProperty(T="ROUNDING_MODE")&&(m(B=S[T],0,8,T),Z=B),S.hasOwnProperty(T="EXPONENTIAL_AT")&&((B=S[T])&&B.pop?(m(B[0],-f,0,T),m(B[1],0,f,T),$=B[0],X=B[1]):(m(B,-f,f,T),$=-(X=B<0?-B:B))),S.hasOwnProperty(T="RANGE"))if((B=S[T])&&B.pop)m(B[0],-f,-1,T),m(B[1],1,f,T),K=B[0],Y=B[1];else{if(m(B,-f,f,T),!B)throw Error(u+T+" cannot be zero: "+B);K=-(Y=B<0?-B:B)}if(S.hasOwnProperty(T="CRYPTO")){if((B=S[T])!==!!B)throw Error(u+T+" not true or false: "+B);if(B){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw L=!B,Error(u+"crypto unavailable");L=B}else L=B}if(S.hasOwnProperty(T="MODULO_MODE")&&(m(B=S[T],0,9,T),ae=B),S.hasOwnProperty(T="POW_PRECISION")&&(m(B=S[T],0,f,T),ce=B),S.hasOwnProperty(T="FORMAT")){if(typeof(B=S[T])!="object")throw Error(u+T+" not an object: "+B);ue=B}if(S.hasOwnProperty(T="ALPHABET")){if(typeof(B=S[T])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(B))throw Error(u+T+" invalid: "+B);be=B.slice(0,10)=="0123456789",le=B}}return{DECIMAL_PLACES:D,ROUNDING_MODE:Z,EXPONENTIAL_AT:[$,X],RANGE:[K,Y],CRYPTO:L,MODULO_MODE:ae,POW_PRECISION:ce,FORMAT:ue,ALPHABET:le}},de.isBigNumber=function(S){if(!S||S._isBigNumber!==!0)return!1;if(!de.DEBUG)return!0;var T,B,z=S.c,q=S.e,te=S.s;e:if({}.toString.call(z)=="[object Array]"){if((te===1||te===-1)&&q>=-f&&q<=f&&q===t(q)){if(z[0]===0){if(q===0&&z.length===1)return!0;break e}if((T=(q+1)%r)<1&&(T+=r),String(z[0]).length==T){for(T=0;T=s||B!==t(B))break e;if(B!==0)return!0}}}else if(z===null&&q===null&&(te===null||te===1||te===-1))return!0;throw Error(u+"Invalid BigNumber: "+S)},de.maximum=de.max=function(){return _e(arguments,ee.lt)},de.minimum=de.min=function(){return _e(arguments,ee.gt)},de.random=(w=9007199254740992,g=Math.random()*w&2097151?function(){return t(Math.random()*w)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(S){var T,B,z,q,te,oe=0,V=[],Q=new de(ne);if(S==null?S=D:m(S,0,f),q=a(S/r),L)if(crypto.getRandomValues){for(T=crypto.getRandomValues(new Uint32Array(q*=2));oe>>11))>=9e15?(B=crypto.getRandomValues(new Uint32Array(2)),T[oe]=B[0],T[oe+1]=B[1]):(V.push(te%1e14),oe+=2);oe=q/2}else{if(!crypto.randomBytes)throw L=!1,Error(u+"crypto unavailable");for(T=crypto.randomBytes(q*=7);oe=9e15?crypto.randomBytes(7).copy(T,oe):(V.push(te%1e14),oe+=7);oe=q/7}if(!L)for(;oe=10;te/=10,oe++);oeq-1&&(Q[oe+1]==null&&(Q[oe+1]=0),Q[oe+1]+=Q[oe]/q|0,Q[oe]%=q)}return Q.reverse()}return function(B,z,q,te,oe){var V,Q,G,H,ie,se,fe,he,ve=B.indexOf("."),me=D,ge=Z;for(ve>=0&&(H=ce,ce=0,B=B.replace(".",""),se=(he=new de(z)).pow(B.length-ve),ce=H,he.c=T(N(h(se.c),se.e,"0"),10,q,S),he.e=he.c.length),G=H=(fe=T(B,z,q,oe?(V=le,S):(V=S,le))).length;fe[--H]==0;fe.pop());if(!fe[0])return V.charAt(0);if(ve<0?--G:(se.c=fe,se.e=G,se.s=te,fe=(se=I(se,he,me,ge,q)).c,ie=se.r,G=se.e),ve=fe[Q=G+me+1],H=q/2,ie=ie||Q<0||fe[Q+1]!=null,ie=ge<4?(ve!=null||ie)&&(ge==0||ge==(se.s<0?3:2)):ve>H||ve==H&&(ge==4||ie||ge==6&&1&fe[Q-1]||ge==(se.s<0?8:7)),Q<1||!fe[0])B=ie?N(V.charAt(1),-me,V.charAt(0)):V.charAt(0);else{if(fe.length=Q,ie)for(--q;++fe[--Q]>q;)fe[Q]=0,Q||(++G,fe=[1].concat(fe));for(H=fe.length;!fe[--H];);for(ve=0,B="";ve<=H;B+=V.charAt(fe[ve++]));B=N(B,G,V.charAt(0))}return B}}(),I=function(){function S(z,q,te){var oe,V,Q,G,H=0,ie=z.length,se=q%i,fe=q/i|0;for(z=z.slice();ie--;)H=((V=se*(Q=z[ie]%i)+(oe=fe*Q+(G=z[ie]/i|0)*se)%i*i+H)/te|0)+(oe/i|0)+fe*G,z[ie]=V%te;return H&&(z=[H].concat(z)),z}function T(z,q,te,oe){var V,Q;if(te!=oe)Q=te>oe?1:-1;else for(V=Q=0;Vq[V]?1:-1;break}return Q}function B(z,q,te,oe){for(var V=0;te--;)z[te]-=V,V=z[te]1;z.splice(0,1));}return function(z,q,te,oe,V){var Q,G,H,ie,se,fe,he,ve,me,ge,ye,Ee,Ae,Pe,ke,xe,we,Se=z.s==q.s?1:-1,Re=z.c,Oe=q.c;if(!(Re&&Re[0]&&Oe&&Oe[0]))return new de(z.s&&q.s&&(Re?!Oe||Re[0]!=Oe[0]:Oe)?Re&&Re[0]==0||!Oe?0*Se:Se/0:NaN);for(me=(ve=new de(Se)).c=[],Se=te+(G=z.e-q.e)+1,V||(V=s,G=c(z.e/r)-c(q.e/r),Se=Se/r|0),H=0;Oe[H]==(Re[H]||0);H++);if(Oe[H]>(Re[H]||0)&&G--,Se<0)me.push(1),ie=!0;else{for(Pe=Re.length,xe=Oe.length,H=0,Se+=2,(se=t(V/(Oe[0]+1)))>1&&(Oe=S(Oe,se,V),Re=S(Re,se,V),xe=Oe.length,Pe=Re.length),Ae=xe,ye=(ge=Re.slice(0,xe)).length;ye=V/2&&ke++;do{if(se=0,(Q=T(Oe,ge,xe,ye))<0){if(Ee=ge[0],xe!=ye&&(Ee=Ee*V+(ge[1]||0)),(se=t(Ee/ke))>1)for(se>=V&&(se=V-1),he=(fe=S(Oe,se,V)).length,ye=ge.length;T(fe,ge,he,ye)==1;)se--,B(fe,xe=10;Se/=10,H++);v(ve,te+(ve.e=H+G*r-1)+1,oe,ie)}else ve.e=G,ve.r=+ie;return ve}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,U=/^([^.]+)\.$/,C=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,re=/^\s*\+(?=[\w.])|^\s+|\s+$/g,P=function(S,T,B,z){var q,te=B?T:T.replace(re,"");if(F.test(te))S.s=isNaN(te)?null:te<0?-1:1;else{if(!B&&(te=te.replace(E,function(oe,V,Q){return q=(Q=Q.toLowerCase())=="x"?16:Q=="b"?2:8,z&&z!=q?oe:V}),z&&(q=z,te=te.replace(U,"$1").replace(C,"0.$1")),T!=te))return new de(te,q);if(de.DEBUG)throw Error(u+"Not a"+(z?" base "+z:"")+" number: "+T);S.s=null}S.c=S.e=null},ee.absoluteValue=ee.abs=function(){var S=new de(this);return S.s<0&&(S.s=1),S},ee.comparedTo=function(S,T){return p(this,new de(S,T))},ee.decimalPlaces=ee.dp=function(S,T){var B,z,q,te=this;if(S!=null)return m(S,0,f),T==null?T=Z:m(T,0,8),v(new de(te),S+te.e+1,T);if(!(B=te.c))return null;if(z=((q=B.length-1)-c(this.e/r))*r,q=B[q])for(;q%10==0;q/=10,z--);return z<0&&(z=0),z},ee.dividedBy=ee.div=function(S,T){return I(this,new de(S,T),D,Z)},ee.dividedToIntegerBy=ee.idiv=function(S,T){return I(this,new de(S,T),0,1)},ee.exponentiatedBy=ee.pow=function(S,T){var B,z,q,te,oe,V,Q,G,H=this;if((S=new de(S)).c&&!S.isInteger())throw Error(u+"Exponent not an integer: "+y(S));if(T!=null&&(T=new de(T)),oe=S.e>14,!H.c||!H.c[0]||H.c[0]==1&&!H.e&&H.c.length==1||!S.c||!S.c[0])return G=new de(Math.pow(+y(H),oe?2-M(S):+y(S))),T?G.mod(T):G;if(V=S.s<0,T){if(T.c?!T.c[0]:!T.s)return new de(NaN);(z=!V&&H.isInteger()&&T.isInteger())&&(H=H.mod(T))}else{if(S.e>9&&(H.e>0||H.e<-1||(H.e==0?H.c[0]>1||oe&&H.c[1]>=24e7:H.c[0]<8e13||oe&&H.c[0]<=9999975e7)))return te=H.s<0&&M(S)?-0:0,H.e>-1&&(te=1/te),new de(V?1/te:te);ce&&(te=a(ce/r+2))}for(oe?(B=new de(.5),V&&(S.s=1),Q=M(S)):Q=(q=Math.abs(+y(S)))%2,G=new de(ne);;){if(Q){if(!(G=G.times(H)).c)break;te?G.c.length>te&&(G.c.length=te):z&&(G=G.mod(T))}if(q){if((q=t(q/2))===0)break;Q=q%2}else if(v(S=S.times(B),S.e+1,1),S.e>14)Q=M(S);else{if((q=+y(S))==0)break;Q=q%2}H=H.times(H),te?H.c&&H.c.length>te&&(H.c.length=te):z&&(H=H.mod(T))}return z?G:(V&&(G=ne.div(G)),T?G.mod(T):te?v(G,ce,Z,void 0):G)},ee.integerValue=function(S){var T=new de(this);return S==null?S=Z:m(S,0,8),v(T,T.e+1,S)},ee.isEqualTo=ee.eq=function(S,T){return p(this,new de(S,T))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(S,T){return p(this,new de(S,T))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(S,T){return(T=p(this,new de(S,T)))===1||T===0},ee.isInteger=function(){return!!this.c&&c(this.e/r)>this.c.length-2},ee.isLessThan=ee.lt=function(S,T){return p(this,new de(S,T))<0},ee.isLessThanOrEqualTo=ee.lte=function(S,T){return(T=p(this,new de(S,T)))===-1||T===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(S,T){var B,z,q,te,oe=this,V=oe.s;if(T=(S=new de(S,T)).s,!V||!T)return new de(NaN);if(V!=T)return S.s=-T,oe.plus(S);var Q=oe.e/r,G=S.e/r,H=oe.c,ie=S.c;if(!Q||!G){if(!H||!ie)return H?(S.s=-T,S):new de(ie?oe:NaN);if(!H[0]||!ie[0])return ie[0]?(S.s=-T,S):new de(H[0]?oe:Z==3?-0:0)}if(Q=c(Q),G=c(G),H=H.slice(),V=Q-G){for((te=V<0)?(V=-V,q=H):(G=Q,q=ie),q.reverse(),T=V;T--;q.push(0));q.reverse()}else for(z=(te=(V=H.length)<(T=ie.length))?V:T,V=T=0;T0)for(;T--;H[B++]=0);for(T=s-1;z>V;){if(H[--z]=0;){for(B=0,se=Ee[q]%me,fe=Ee[q]/me|0,te=q+(oe=Q);te>q;)B=((G=se*(G=ye[--oe]%me)+(V=fe*G+(H=ye[oe]/me|0)*se)%me*me+he[te]+B)/ve|0)+(V/me|0)+fe*H,he[te--]=G%ve;he[te]=B}return B?++z:he.splice(0,1),W(S,he,z)},ee.negated=function(){var S=new de(this);return S.s=-S.s||null,S},ee.plus=function(S,T){var B,z=this,q=z.s;if(T=(S=new de(S,T)).s,!q||!T)return new de(NaN);if(q!=T)return S.s=-T,z.minus(S);var te=z.e/r,oe=S.e/r,V=z.c,Q=S.c;if(!te||!oe){if(!V||!Q)return new de(q/0);if(!V[0]||!Q[0])return Q[0]?S:new de(V[0]?z:0*q)}if(te=c(te),oe=c(oe),V=V.slice(),q=te-oe){for(q>0?(oe=te,B=Q):(q=-q,B=V),B.reverse();q--;B.push(0));B.reverse()}for((q=V.length)-(T=Q.length)<0&&(B=Q,Q=V,V=B,T=q),q=0;T;)q=(V[--T]=V[T]+Q[T]+q)/s|0,V[T]=s===V[T]?0:V[T]%s;return q&&(V=[q].concat(V),++oe),W(S,V,oe)},ee.precision=ee.sd=function(S,T){var B,z,q,te=this;if(S!=null&&S!==!!S)return m(S,1,f),T==null?T=Z:m(T,0,8),v(new de(te),S,T);if(!(B=te.c))return null;if(z=(q=B.length-1)*r+1,q=B[q]){for(;q%10==0;q/=10,z--);for(q=B[0];q>=10;q/=10,z++);}return S&&te.e+1>z&&(z=te.e+1),z},ee.shiftedBy=function(S){return m(S,-9007199254740991,n),this.times("1e"+S)},ee.squareRoot=ee.sqrt=function(){var S,T,B,z,q,te=this,oe=te.c,V=te.s,Q=te.e,G=D+4,H=new de("0.5");if(V!==1||!oe||!oe[0])return new de(!V||V<0&&(!oe||oe[0])?NaN:oe?te:1/0);if((V=Math.sqrt(+y(te)))==0||V==1/0?(((T=h(oe)).length+Q)%2==0&&(T+="0"),V=Math.sqrt(+T),Q=c((Q+1)/2)-(Q<0||Q%2),B=new de(T=V==1/0?"5e"+Q:(T=V.toExponential()).slice(0,T.indexOf("e")+1)+Q)):B=new de(V+""),B.c[0]){for((V=(Q=B.e)+G)<3&&(V=0);;)if(q=B,B=H.times(q.plus(I(te,q,G,1))),h(q.c).slice(0,V)===(T=h(B.c)).slice(0,V)){if(B.e0&&he>0){for(te=he%V||V,H=fe.substr(0,te);te0&&(H+=G+fe.slice(te)),se&&(H="-"+H)}z=ie?H+(B.decimalSeparator||"")+((Q=+B.fractionGroupSize)?ie.replace(new RegExp("\\d{"+Q+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):ie):H}return(B.prefix||"")+z+(B.suffix||"")},ee.toFraction=function(S){var T,B,z,q,te,oe,V,Q,G,H,ie,se,fe=this,he=fe.c;if(S!=null&&(!(V=new de(S)).isInteger()&&(V.c||V.s!==1)||V.lt(ne)))throw Error(u+"Argument "+(V.isInteger()?"out of range: ":"not an integer: ")+y(V));if(!he)return new de(fe);for(T=new de(ne),G=B=new de(ne),z=Q=new de(ne),se=h(he),te=T.e=se.length-fe.e-1,T.c[0]=o[(oe=te%r)<0?r+oe:oe],S=!S||V.comparedTo(T)>0?te>0?T:G:V,oe=Y,Y=1/0,V=new de(se),Q.c[0]=0;H=I(V,T,0,1),(q=B.plus(H.times(z))).comparedTo(S)!=1;)B=z,z=q,G=Q.plus(H.times(q=G)),Q=q,T=V.minus(H.times(q=T)),V=q;return q=I(S.minus(B),z,0,1),Q=Q.plus(q.times(G)),B=B.plus(q.times(z)),Q.s=G.s=fe.s,ie=I(G,z,te*=2,Z).minus(fe).abs().comparedTo(I(Q,B,te,Z).minus(fe).abs())<1?[G,z]:[Q,B],Y=oe,ie},ee.toNumber=function(){return+y(this)},ee.toPrecision=function(S,T){return S!=null&&m(S,1,f),pe(this,S,T,2)},ee.toString=function(S){var T,B=this,z=B.s,q=B.e;return q===null?z?(T="Infinity",z<0&&(T="-"+T)):T="NaN":(S==null?T=q<=$||q>=X?l(h(B.c),q):N(h(B.c),q,"0"):S===10&&be?T=N(h((B=v(new de(B),D+q+1,Z)).c),B.e,"0"):(m(S,2,le.length,"Base"),T=x(N(h(B.c),q,"0"),10,S,z,!0)),z<0&&B.c[0]&&(T="-"+T)),T},ee.valueOf=ee.toJSON=function(){return y(this)},ee._isBigNumber=!0,R!=null&&de.set(R),de}(),k.default=k.BigNumber=k,(O=(function(){return k}).call(e,_,e,J))===void 0||(J.exports=O)})()},4090:(J,e,_)=>{var O=_(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const A=_(6903),k=_(8334),b=_(5892),a=_(2401),t=_(9898),u=a.BufferN(32),d=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),s={messagePrefix:`Bitcoin Signed Message: +`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},r=2147483648,n=Math.pow(2,31)-1;function o(m){return a.String(m)&&m.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function i(m){return a.UInt32(m)&&m<=n}class f{constructor(M,l,N,j,R=0,I=0,x=0){this.__D=M,this.__Q=l,this.chainCode=N,this.network=j,this.__DEPTH=R,this.__INDEX=I,this.__PARENT_FINGERPRINT=x,a(d,j),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return this.__Q===void 0&&(this.__Q=b.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return A.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return this.__D===void 0}neutered(){return p(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const M=this.network,l=this.isNeutered()?M.bip32.public:M.bip32.private,N=O.allocUnsafe(78);return N.writeUInt32BE(l,0),N.writeUInt8(this.depth,4),N.writeUInt32BE(this.parentFingerprint,5),N.writeUInt32BE(this.index,9),this.chainCode.copy(N,13),this.isNeutered()?this.publicKey.copy(N,45):(N.writeUInt8(0,45),this.privateKey.copy(N,46)),k.encode(N)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return t.encode(this.network.wif,this.privateKey,!0)}derive(M){a(a.UInt32,M);const l=M>=r,N=O.allocUnsafe(37);if(l){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");N[0]=0,this.privateKey.copy(N,1),N.writeUInt32BE(M,33)}else this.publicKey.copy(N,0),N.writeUInt32BE(M,33);const j=A.hmacSHA512(this.chainCode,N),R=j.slice(0,32),I=j.slice(32);if(!b.isPrivate(R))return this.derive(M+1);let x;if(this.isNeutered()){const P=b.pointAddScalar(this.publicKey,R,!0);if(P===null)return this.derive(M+1);x=p(P,I,this.network,this.depth+1,M,this.fingerprint.readUInt32BE(0))}else{const P=b.privateAdd(this.privateKey,R);if(P==null)return this.derive(M+1);x=h(P,I,this.network,this.depth+1,M,this.fingerprint.readUInt32BE(0))}return x}deriveHardened(M){return a(i,M),this.derive(M+r)}derivePath(M){a(o,M);let l=M.split("/");if(l[0]==="m"){if(this.parentFingerprint)throw new TypeError("Expected master, got child");l=l.slice(1)}return l.reduce((N,j)=>{let R;return j.slice(-1)==="'"?(R=parseInt(j.slice(0,-1),10),N.deriveHardened(R)):(R=parseInt(j,10),N.derive(R))},this)}sign(M,l){if(!this.privateKey)throw new Error("Missing private key");if(l===void 0&&(l=this.lowR),l===!1)return b.sign(M,this.privateKey);{let N=b.sign(M,this.privateKey);const j=O.alloc(32,0);let R=0;for(;N[0]>127;)R++,j.writeUIntLE(R,0,6),N=b.signWithEntropy(M,this.privateKey,j);return N}}verify(M,l){return b.verify(M,this.publicKey,l)}}function c(m,M,l){return h(m,M,l)}function h(m,M,l,N,j,R){if(a({privateKey:u,chainCode:u},{privateKey:m,chainCode:M}),l=l||s,!b.isPrivate(m))throw new TypeError("Private key not in range [1, n)");return new f(m,void 0,M,l,N,j,R)}function p(m,M,l,N,j,R){if(a({publicKey:a.BufferN(33),chainCode:u},{publicKey:m,chainCode:M}),l=l||s,!b.isPoint(m))throw new TypeError("Point is not on the curve");return new f(void 0,m,M,l,N,j,R)}e.fromBase58=function(m,M){const l=k.decode(m);if(l.length!==78)throw new TypeError("Invalid buffer length");M=M||s;const N=l.readUInt32BE(0);if(N!==M.bip32.private&&N!==M.bip32.public)throw new TypeError("Invalid network version");const j=l[4],R=l.readUInt32BE(5);if(j===0&&R!==0)throw new TypeError("Invalid parent fingerprint");const I=l.readUInt32BE(9);if(j===0&&I!==0)throw new TypeError("Invalid index");const x=l.slice(13,45);let P;if(N===M.bip32.private){if(l.readUInt8(45)!==0)throw new TypeError("Invalid private key");P=h(l.slice(46,78),x,M,j,I,R)}else P=p(l.slice(45,78),x,M,j,I,R);return P},e.fromPrivateKey=c,e.fromPublicKey=function(m,M,l){return p(m,M,l)},e.fromSeed=function(m,M){if(a(a.Buffer,m),m.length<16)throw new TypeError("Seed should be at least 128 bits");if(m.length>64)throw new TypeError("Seed should be at most 512 bits");M=M||s;const l=A.hmacSHA512(O.from("Bitcoin seed","utf8"),m);return c(l.slice(0,32),l.slice(32),M)}},6903:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});const O=_(3482),A=_(8355);e.hash160=function(k){const b=O("sha256").update(k).digest();try{return O("rmd160").update(b).digest()}catch{return O("ripemd160").update(b).digest()}},e.hmacSHA512=function(k,b){return A("sha512",k).update(b).digest()}},7786:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});var O=_(4090);e.fromSeed=O.fromSeed,e.fromBase58=O.fromBase58,e.fromPublicKey=O.fromPublicKey,e.fromPrivateKey=O.fromPrivateKey},2314:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});const O={};let A;e.wordlists=O,e._default=A;try{e._default=A=_(32),O.czech=A}catch{}try{e._default=A=_(6996),O.chinese_simplified=A}catch{}try{e._default=A=_(4262),O.chinese_traditional=A}catch{}try{e._default=A=_(8013),O.korean=A}catch{}try{e._default=A=_(1848),O.french=A}catch{}try{e._default=A=_(2841),O.italian=A}catch{}try{e._default=A=_(659),O.spanish=A}catch{}try{e._default=A=_(4472),O.japanese=A,O.JA=A}catch{}try{e._default=A=_(1945),O.portuguese=A}catch{}try{e._default=A=_(4573),O.english=A,O.EN=A}catch{}},2153:(J,e,_)=>{var O=_(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const A=_(3482),k=_(5632),b=_(1798),a=_(2314);let t=a._default;const u="Invalid mnemonic",d="Invalid entropy",s=`A wordlist is required but a default could not be found. +Please pass a 2048 word array explicitly.`;function r(M){return(M||"").normalize("NFKD")}function n(M,l,N){for(;M.lengthn(l.toString(2),"0",8)).join("")}function f(M){const l=8*M.length/32,N=A("sha256").update(M).digest();return i(Array.from(N)).slice(0,l)}function c(M){return"mnemonic"+(M||"")}function h(M,l){if(!(l=l||t))throw new Error(s);const N=r(M).split(" ");if(N.length%3!=0)throw new Error(u);const j=N.map(g=>{const E=l.indexOf(g);if(E===-1)throw new Error(u);return n(E.toString(2),"0",11)}).join(""),R=32*Math.floor(j.length/33),I=j.slice(0,R),x=j.slice(R),P=I.match(/(.{1,8})/g).map(o);if(P.length<16)throw new Error(d);if(P.length>32)throw new Error(d);if(P.length%4!=0)throw new Error(d);const w=O.from(P);if(f(w)!==x)throw new Error("Invalid mnemonic checksum");return w.toString("hex")}function p(M,l){if(O.isBuffer(M)||(M=O.from(M,"hex")),!(l=l||t))throw new Error(s);if(M.length<16)throw new TypeError(d);if(M.length>32)throw new TypeError(d);if(M.length%4!=0)throw new TypeError(d);const N=(i(Array.from(M))+f(M)).match(/(.{1,11})/g).map(j=>{const R=o(j);return l[R]});return l[0]==="あいこくしん"?N.join(" "):N.join(" ")}e.mnemonicToSeedSync=function(M,l){const N=O.from(r(M),"utf8"),j=O.from(c(r(l)),"utf8");return k.pbkdf2Sync(N,j,2048,64,"sha512")},e.mnemonicToSeed=function(M,l){return Promise.resolve().then(()=>function(N,j,R,I,x){return Promise.resolve().then(()=>new Promise((P,w)=>{k.pbkdf2(N,j,2048,64,"sha512",(g,E)=>g?w(g):P(E))}))}(O.from(r(M),"utf8"),O.from(c(r(l)),"utf8")))},e.mnemonicToEntropy=h,e.entropyToMnemonic=p,e.generateMnemonic=function(M,l,N){if((M=M||128)%32!=0)throw new TypeError(d);return p((l=l||b)(M/8),N)},e.validateMnemonic=function(M,l){try{h(M,l)}catch{return!1}return!0},e.setDefaultWordlist=function(M){const l=a.wordlists[M];if(!l)throw new Error('Could not find wordlist for language "'+M+'"');t=l},e.getDefaultWordlist=function(){if(!t)throw new Error("No Default Wordlist set");return Object.keys(a.wordlists).filter(M=>M!=="JA"&&M!=="EN"&&a.wordlists[M].every((l,N)=>l===t[N]))[0]};var m=_(2314);e.wordlists=m.wordlists},3550:function(J,e,_){(function(O,A){function k(x,P){if(!x)throw new Error(P||"Assertion failed")}function b(x,P){x.super_=P;var w=function(){};w.prototype=P.prototype,x.prototype=new w,x.prototype.constructor=x}function a(x,P,w){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&(P!=="le"&&P!=="be"||(w=P,P=10),this._init(x||0,P||10,w||"be"))}var t;typeof O=="object"?O.exports=a:A.BN=a,a.BN=a,a.wordSize=26;try{t=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:_(6601).Buffer}catch{}function u(x,P){var w=x.charCodeAt(P);return w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:w-48&15}function d(x,P,w){var g=u(x,w);return w-1>=P&&(g|=u(x,w-1)<<4),g}function s(x,P,w,g){for(var E=0,U=Math.min(x.length,w),C=P;C=49?F-49+10:F>=17?F-17+10:F}return E}a.isBN=function(x){return x instanceof a||x!==null&&typeof x=="object"&&x.constructor.wordSize===a.wordSize&&Array.isArray(x.words)},a.max=function(x,P){return x.cmp(P)>0?x:P},a.min=function(x,P){return x.cmp(P)<0?x:P},a.prototype._init=function(x,P,w){if(typeof x=="number")return this._initNumber(x,P,w);if(typeof x=="object")return this._initArray(x,P,w);P==="hex"&&(P=16),k(P===(0|P)&&P>=2&&P<=36);var g=0;(x=x.toString().replace(/\s+/g,""))[0]==="-"&&(g++,this.negative=1),g=0;g-=3)U=x[g]|x[g-1]<<8|x[g-2]<<16,this.words[E]|=U<>>26-C&67108863,(C+=24)>=26&&(C-=26,E++);else if(w==="le")for(g=0,E=0;g>>26-C&67108863,(C+=24)>=26&&(C-=26,E++);return this.strip()},a.prototype._parseHex=function(x,P,w){this.length=Math.ceil((x.length-P)/6),this.words=new Array(this.length);for(var g=0;g=P;g-=2)E=d(x,P,g)<=18?(U-=18,C+=1,this.words[C]|=E>>>26):U+=8;else for(g=(x.length-P)%2==0?P+1:P;g=18?(U-=18,C+=1,this.words[C]|=E>>>26):U+=8;this.strip()},a.prototype._parseBase=function(x,P,w){this.words=[0],this.length=1;for(var g=0,E=1;E<=67108863;E*=P)g++;g--,E=E/P|0;for(var U=x.length-w,C=U%g,F=Math.min(U,U-C)+w,re=0,ee=w;ee1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var r=["","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"],n=[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],o=[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];function i(x,P,w){w.negative=P.negative^x.negative;var g=x.length+P.length|0;w.length=g,g=g-1|0;var E=0|x.words[0],U=0|P.words[0],C=E*U,F=67108863&C,re=C/67108864|0;w.words[0]=F;for(var ee=1;ee>>26,D=67108863&re,Z=Math.min(ee,P.length-1),$=Math.max(0,ee-x.length+1);$<=Z;$++){var X=ee-$|0;ne+=(C=(E=0|x.words[X])*(U=0|P.words[$])+D)/67108864|0,D=67108863&C}w.words[ee]=0|D,re=0|ne}return re!==0?w.words[ee]=0|re:w.length--,w.strip()}a.prototype.toString=function(x,P){var w;if(P=0|P||1,(x=x||10)===16||x==="hex"){w="";for(var g=0,E=0,U=0;U>>24-g&16777215)!=0||U!==this.length-1?r[6-F.length]+F+w:F+w,(g+=2)>=26&&(g-=26,U--)}for(E!==0&&(w=E.toString(16)+w);w.length%P!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(x===(0|x)&&x>=2&&x<=36){var re=n[x],ee=o[x];w="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var D=ne.modn(ee).toString(x);w=(ne=ne.idivn(ee)).isZero()?D+w:r[re-D.length]+D+w}for(this.isZero()&&(w="0"+w);w.length%P!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}k(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=67108864*this.words[1]:this.length===3&&this.words[2]===1?x+=4503599627370496+67108864*this.words[1]:this.length>2&&k(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(x,P){return k(t!==void 0),this.toArrayLike(t,x,P)},a.prototype.toArray=function(x,P){return this.toArrayLike(Array,x,P)},a.prototype.toArrayLike=function(x,P,w){var g=this.byteLength(),E=w||Math.max(1,g);k(g<=E,"byte array longer than desired length"),k(E>0,"Requested array length <= 0"),this.strip();var U,C,F=P==="le",re=new x(E),ee=this.clone();if(F){for(C=0;!ee.isZero();C++)U=ee.andln(255),ee.iushrn(8),re[C]=U;for(;C=4096&&(w+=13,P>>>=13),P>=64&&(w+=7,P>>>=7),P>=8&&(w+=4,P>>>=4),P>=2&&(w+=2,P>>>=2),w+P},a.prototype._zeroBits=function(x){if(x===0)return 26;var P=x,w=0;return!(8191&P)&&(w+=13,P>>>=13),!(127&P)&&(w+=7,P>>>=7),!(15&P)&&(w+=4,P>>>=4),!(3&P)&&(w+=2,P>>>=2),!(1&P)&&w++,w},a.prototype.bitLength=function(){var x=this.words[this.length-1],P=this._countBits(x);return 26*(this.length-1)+P},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,P=0;Px.length?this.clone().ior(x):x.clone().ior(this)},a.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},a.prototype.iuand=function(x){var P;P=this.length>x.length?x:this;for(var w=0;wx.length?this.clone().iand(x):x.clone().iand(this)},a.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},a.prototype.iuxor=function(x){var P,w;this.length>x.length?(P=this,w=x):(P=x,w=this);for(var g=0;gx.length?this.clone().ixor(x):x.clone().ixor(this)},a.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},a.prototype.inotn=function(x){k(typeof x=="number"&&x>=0);var P=0|Math.ceil(x/26),w=x%26;this._expand(P),w>0&&P--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-w),this.strip()},a.prototype.notn=function(x){return this.clone().inotn(x)},a.prototype.setn=function(x,P){k(typeof x=="number"&&x>=0);var w=x/26|0,g=x%26;return this._expand(w+1),this.words[w]=P?this.words[w]|1<x.length?(w=this,g=x):(w=x,g=this);for(var E=0,U=0;U>>26;for(;E!==0&&U>>26;if(this.length=w.length,E!==0)this.words[this.length]=E,this.length++;else if(w!==this)for(;Ux.length?this.clone().iadd(x):x.clone().iadd(this)},a.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var P=this.iadd(x);return x.negative=1,P._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var w,g,E=this.cmp(x);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(w=this,g=x):(w=x,g=this);for(var U=0,C=0;C>26,this.words[C]=67108863&P;for(;U!==0&&C>26,this.words[C]=67108863&P;if(U===0&&C>>13,$=0|C[1],X=8191&$,K=$>>>13,Y=0|C[2],L=8191&Y,ae=Y>>>13,ce=0|C[3],ue=8191&ce,le=ce>>>13,be=0|C[4],de=8191&be,pe=be>>>13,_e=0|C[5],W=8191&_e,v=_e>>>13,y=0|C[6],S=8191&y,T=y>>>13,B=0|C[7],z=8191&B,q=B>>>13,te=0|C[8],oe=8191&te,V=te>>>13,Q=0|C[9],G=8191&Q,H=Q>>>13,ie=0|F[0],se=8191&ie,fe=ie>>>13,he=0|F[1],ve=8191&he,me=he>>>13,ge=0|F[2],ye=8191&ge,Ee=ge>>>13,Ae=0|F[3],Pe=8191&Ae,ke=Ae>>>13,xe=0|F[4],we=8191&xe,Se=xe>>>13,Re=0|F[5],Oe=8191&Re,Me=Re>>>13,Te=0|F[6],Ne=8191&Te,Ce=Te>>>13,Be=0|F[7],Ie=8191&Be,je=Be>>>13,De=0|F[8],Ue=8191&De,Je=De>>>13,st=0|F[9],ze=8191&st,qe=st>>>13;w.negative=x.negative^P.negative,w.length=19;var Le=(ee+(g=Math.imul(D,se))|0)+((8191&(E=(E=Math.imul(D,fe))+Math.imul(Z,se)|0))<<13)|0;ee=((U=Math.imul(Z,fe))+(E>>>13)|0)+(Le>>>26)|0,Le&=67108863,g=Math.imul(X,se),E=(E=Math.imul(X,fe))+Math.imul(K,se)|0,U=Math.imul(K,fe);var Fe=(ee+(g=g+Math.imul(D,ve)|0)|0)+((8191&(E=(E=E+Math.imul(D,me)|0)+Math.imul(Z,ve)|0))<<13)|0;ee=((U=U+Math.imul(Z,me)|0)+(E>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,g=Math.imul(L,se),E=(E=Math.imul(L,fe))+Math.imul(ae,se)|0,U=Math.imul(ae,fe),g=g+Math.imul(X,ve)|0,E=(E=E+Math.imul(X,me)|0)+Math.imul(K,ve)|0,U=U+Math.imul(K,me)|0;var We=(ee+(g=g+Math.imul(D,ye)|0)|0)+((8191&(E=(E=E+Math.imul(D,Ee)|0)+Math.imul(Z,ye)|0))<<13)|0;ee=((U=U+Math.imul(Z,Ee)|0)+(E>>>13)|0)+(We>>>26)|0,We&=67108863,g=Math.imul(ue,se),E=(E=Math.imul(ue,fe))+Math.imul(le,se)|0,U=Math.imul(le,fe),g=g+Math.imul(L,ve)|0,E=(E=E+Math.imul(L,me)|0)+Math.imul(ae,ve)|0,U=U+Math.imul(ae,me)|0,g=g+Math.imul(X,ye)|0,E=(E=E+Math.imul(X,Ee)|0)+Math.imul(K,ye)|0,U=U+Math.imul(K,Ee)|0;var Ve=(ee+(g=g+Math.imul(D,Pe)|0)|0)+((8191&(E=(E=E+Math.imul(D,ke)|0)+Math.imul(Z,Pe)|0))<<13)|0;ee=((U=U+Math.imul(Z,ke)|0)+(E>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,g=Math.imul(de,se),E=(E=Math.imul(de,fe))+Math.imul(pe,se)|0,U=Math.imul(pe,fe),g=g+Math.imul(ue,ve)|0,E=(E=E+Math.imul(ue,me)|0)+Math.imul(le,ve)|0,U=U+Math.imul(le,me)|0,g=g+Math.imul(L,ye)|0,E=(E=E+Math.imul(L,Ee)|0)+Math.imul(ae,ye)|0,U=U+Math.imul(ae,Ee)|0,g=g+Math.imul(X,Pe)|0,E=(E=E+Math.imul(X,ke)|0)+Math.imul(K,Pe)|0,U=U+Math.imul(K,ke)|0;var Ge=(ee+(g=g+Math.imul(D,we)|0)|0)+((8191&(E=(E=E+Math.imul(D,Se)|0)+Math.imul(Z,we)|0))<<13)|0;ee=((U=U+Math.imul(Z,Se)|0)+(E>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,g=Math.imul(W,se),E=(E=Math.imul(W,fe))+Math.imul(v,se)|0,U=Math.imul(v,fe),g=g+Math.imul(de,ve)|0,E=(E=E+Math.imul(de,me)|0)+Math.imul(pe,ve)|0,U=U+Math.imul(pe,me)|0,g=g+Math.imul(ue,ye)|0,E=(E=E+Math.imul(ue,Ee)|0)+Math.imul(le,ye)|0,U=U+Math.imul(le,Ee)|0,g=g+Math.imul(L,Pe)|0,E=(E=E+Math.imul(L,ke)|0)+Math.imul(ae,Pe)|0,U=U+Math.imul(ae,ke)|0,g=g+Math.imul(X,we)|0,E=(E=E+Math.imul(X,Se)|0)+Math.imul(K,we)|0,U=U+Math.imul(K,Se)|0;var He=(ee+(g=g+Math.imul(D,Oe)|0)|0)+((8191&(E=(E=E+Math.imul(D,Me)|0)+Math.imul(Z,Oe)|0))<<13)|0;ee=((U=U+Math.imul(Z,Me)|0)+(E>>>13)|0)+(He>>>26)|0,He&=67108863,g=Math.imul(S,se),E=(E=Math.imul(S,fe))+Math.imul(T,se)|0,U=Math.imul(T,fe),g=g+Math.imul(W,ve)|0,E=(E=E+Math.imul(W,me)|0)+Math.imul(v,ve)|0,U=U+Math.imul(v,me)|0,g=g+Math.imul(de,ye)|0,E=(E=E+Math.imul(de,Ee)|0)+Math.imul(pe,ye)|0,U=U+Math.imul(pe,Ee)|0,g=g+Math.imul(ue,Pe)|0,E=(E=E+Math.imul(ue,ke)|0)+Math.imul(le,Pe)|0,U=U+Math.imul(le,ke)|0,g=g+Math.imul(L,we)|0,E=(E=E+Math.imul(L,Se)|0)+Math.imul(ae,we)|0,U=U+Math.imul(ae,Se)|0,g=g+Math.imul(X,Oe)|0,E=(E=E+Math.imul(X,Me)|0)+Math.imul(K,Oe)|0,U=U+Math.imul(K,Me)|0;var $e=(ee+(g=g+Math.imul(D,Ne)|0)|0)+((8191&(E=(E=E+Math.imul(D,Ce)|0)+Math.imul(Z,Ne)|0))<<13)|0;ee=((U=U+Math.imul(Z,Ce)|0)+(E>>>13)|0)+($e>>>26)|0,$e&=67108863,g=Math.imul(z,se),E=(E=Math.imul(z,fe))+Math.imul(q,se)|0,U=Math.imul(q,fe),g=g+Math.imul(S,ve)|0,E=(E=E+Math.imul(S,me)|0)+Math.imul(T,ve)|0,U=U+Math.imul(T,me)|0,g=g+Math.imul(W,ye)|0,E=(E=E+Math.imul(W,Ee)|0)+Math.imul(v,ye)|0,U=U+Math.imul(v,Ee)|0,g=g+Math.imul(de,Pe)|0,E=(E=E+Math.imul(de,ke)|0)+Math.imul(pe,Pe)|0,U=U+Math.imul(pe,ke)|0,g=g+Math.imul(ue,we)|0,E=(E=E+Math.imul(ue,Se)|0)+Math.imul(le,we)|0,U=U+Math.imul(le,Se)|0,g=g+Math.imul(L,Oe)|0,E=(E=E+Math.imul(L,Me)|0)+Math.imul(ae,Oe)|0,U=U+Math.imul(ae,Me)|0,g=g+Math.imul(X,Ne)|0,E=(E=E+Math.imul(X,Ce)|0)+Math.imul(K,Ne)|0,U=U+Math.imul(K,Ce)|0;var Ke=(ee+(g=g+Math.imul(D,Ie)|0)|0)+((8191&(E=(E=E+Math.imul(D,je)|0)+Math.imul(Z,Ie)|0))<<13)|0;ee=((U=U+Math.imul(Z,je)|0)+(E>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,g=Math.imul(oe,se),E=(E=Math.imul(oe,fe))+Math.imul(V,se)|0,U=Math.imul(V,fe),g=g+Math.imul(z,ve)|0,E=(E=E+Math.imul(z,me)|0)+Math.imul(q,ve)|0,U=U+Math.imul(q,me)|0,g=g+Math.imul(S,ye)|0,E=(E=E+Math.imul(S,Ee)|0)+Math.imul(T,ye)|0,U=U+Math.imul(T,Ee)|0,g=g+Math.imul(W,Pe)|0,E=(E=E+Math.imul(W,ke)|0)+Math.imul(v,Pe)|0,U=U+Math.imul(v,ke)|0,g=g+Math.imul(de,we)|0,E=(E=E+Math.imul(de,Se)|0)+Math.imul(pe,we)|0,U=U+Math.imul(pe,Se)|0,g=g+Math.imul(ue,Oe)|0,E=(E=E+Math.imul(ue,Me)|0)+Math.imul(le,Oe)|0,U=U+Math.imul(le,Me)|0,g=g+Math.imul(L,Ne)|0,E=(E=E+Math.imul(L,Ce)|0)+Math.imul(ae,Ne)|0,U=U+Math.imul(ae,Ce)|0,g=g+Math.imul(X,Ie)|0,E=(E=E+Math.imul(X,je)|0)+Math.imul(K,Ie)|0,U=U+Math.imul(K,je)|0;var Qe=(ee+(g=g+Math.imul(D,Ue)|0)|0)+((8191&(E=(E=E+Math.imul(D,Je)|0)+Math.imul(Z,Ue)|0))<<13)|0;ee=((U=U+Math.imul(Z,Je)|0)+(E>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,g=Math.imul(G,se),E=(E=Math.imul(G,fe))+Math.imul(H,se)|0,U=Math.imul(H,fe),g=g+Math.imul(oe,ve)|0,E=(E=E+Math.imul(oe,me)|0)+Math.imul(V,ve)|0,U=U+Math.imul(V,me)|0,g=g+Math.imul(z,ye)|0,E=(E=E+Math.imul(z,Ee)|0)+Math.imul(q,ye)|0,U=U+Math.imul(q,Ee)|0,g=g+Math.imul(S,Pe)|0,E=(E=E+Math.imul(S,ke)|0)+Math.imul(T,Pe)|0,U=U+Math.imul(T,ke)|0,g=g+Math.imul(W,we)|0,E=(E=E+Math.imul(W,Se)|0)+Math.imul(v,we)|0,U=U+Math.imul(v,Se)|0,g=g+Math.imul(de,Oe)|0,E=(E=E+Math.imul(de,Me)|0)+Math.imul(pe,Oe)|0,U=U+Math.imul(pe,Me)|0,g=g+Math.imul(ue,Ne)|0,E=(E=E+Math.imul(ue,Ce)|0)+Math.imul(le,Ne)|0,U=U+Math.imul(le,Ce)|0,g=g+Math.imul(L,Ie)|0,E=(E=E+Math.imul(L,je)|0)+Math.imul(ae,Ie)|0,U=U+Math.imul(ae,je)|0,g=g+Math.imul(X,Ue)|0,E=(E=E+Math.imul(X,Je)|0)+Math.imul(K,Ue)|0,U=U+Math.imul(K,Je)|0;var Ze=(ee+(g=g+Math.imul(D,ze)|0)|0)+((8191&(E=(E=E+Math.imul(D,qe)|0)+Math.imul(Z,ze)|0))<<13)|0;ee=((U=U+Math.imul(Z,qe)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,g=Math.imul(G,ve),E=(E=Math.imul(G,me))+Math.imul(H,ve)|0,U=Math.imul(H,me),g=g+Math.imul(oe,ye)|0,E=(E=E+Math.imul(oe,Ee)|0)+Math.imul(V,ye)|0,U=U+Math.imul(V,Ee)|0,g=g+Math.imul(z,Pe)|0,E=(E=E+Math.imul(z,ke)|0)+Math.imul(q,Pe)|0,U=U+Math.imul(q,ke)|0,g=g+Math.imul(S,we)|0,E=(E=E+Math.imul(S,Se)|0)+Math.imul(T,we)|0,U=U+Math.imul(T,Se)|0,g=g+Math.imul(W,Oe)|0,E=(E=E+Math.imul(W,Me)|0)+Math.imul(v,Oe)|0,U=U+Math.imul(v,Me)|0,g=g+Math.imul(de,Ne)|0,E=(E=E+Math.imul(de,Ce)|0)+Math.imul(pe,Ne)|0,U=U+Math.imul(pe,Ce)|0,g=g+Math.imul(ue,Ie)|0,E=(E=E+Math.imul(ue,je)|0)+Math.imul(le,Ie)|0,U=U+Math.imul(le,je)|0,g=g+Math.imul(L,Ue)|0,E=(E=E+Math.imul(L,Je)|0)+Math.imul(ae,Ue)|0,U=U+Math.imul(ae,Je)|0;var Ye=(ee+(g=g+Math.imul(X,ze)|0)|0)+((8191&(E=(E=E+Math.imul(X,qe)|0)+Math.imul(K,ze)|0))<<13)|0;ee=((U=U+Math.imul(K,qe)|0)+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,g=Math.imul(G,ye),E=(E=Math.imul(G,Ee))+Math.imul(H,ye)|0,U=Math.imul(H,Ee),g=g+Math.imul(oe,Pe)|0,E=(E=E+Math.imul(oe,ke)|0)+Math.imul(V,Pe)|0,U=U+Math.imul(V,ke)|0,g=g+Math.imul(z,we)|0,E=(E=E+Math.imul(z,Se)|0)+Math.imul(q,we)|0,U=U+Math.imul(q,Se)|0,g=g+Math.imul(S,Oe)|0,E=(E=E+Math.imul(S,Me)|0)+Math.imul(T,Oe)|0,U=U+Math.imul(T,Me)|0,g=g+Math.imul(W,Ne)|0,E=(E=E+Math.imul(W,Ce)|0)+Math.imul(v,Ne)|0,U=U+Math.imul(v,Ce)|0,g=g+Math.imul(de,Ie)|0,E=(E=E+Math.imul(de,je)|0)+Math.imul(pe,Ie)|0,U=U+Math.imul(pe,je)|0,g=g+Math.imul(ue,Ue)|0,E=(E=E+Math.imul(ue,Je)|0)+Math.imul(le,Ue)|0,U=U+Math.imul(le,Je)|0;var Xe=(ee+(g=g+Math.imul(L,ze)|0)|0)+((8191&(E=(E=E+Math.imul(L,qe)|0)+Math.imul(ae,ze)|0))<<13)|0;ee=((U=U+Math.imul(ae,qe)|0)+(E>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,g=Math.imul(G,Pe),E=(E=Math.imul(G,ke))+Math.imul(H,Pe)|0,U=Math.imul(H,ke),g=g+Math.imul(oe,we)|0,E=(E=E+Math.imul(oe,Se)|0)+Math.imul(V,we)|0,U=U+Math.imul(V,Se)|0,g=g+Math.imul(z,Oe)|0,E=(E=E+Math.imul(z,Me)|0)+Math.imul(q,Oe)|0,U=U+Math.imul(q,Me)|0,g=g+Math.imul(S,Ne)|0,E=(E=E+Math.imul(S,Ce)|0)+Math.imul(T,Ne)|0,U=U+Math.imul(T,Ce)|0,g=g+Math.imul(W,Ie)|0,E=(E=E+Math.imul(W,je)|0)+Math.imul(v,Ie)|0,U=U+Math.imul(v,je)|0,g=g+Math.imul(de,Ue)|0,E=(E=E+Math.imul(de,Je)|0)+Math.imul(pe,Ue)|0,U=U+Math.imul(pe,Je)|0;var et=(ee+(g=g+Math.imul(ue,ze)|0)|0)+((8191&(E=(E=E+Math.imul(ue,qe)|0)+Math.imul(le,ze)|0))<<13)|0;ee=((U=U+Math.imul(le,qe)|0)+(E>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(G,we),E=(E=Math.imul(G,Se))+Math.imul(H,we)|0,U=Math.imul(H,Se),g=g+Math.imul(oe,Oe)|0,E=(E=E+Math.imul(oe,Me)|0)+Math.imul(V,Oe)|0,U=U+Math.imul(V,Me)|0,g=g+Math.imul(z,Ne)|0,E=(E=E+Math.imul(z,Ce)|0)+Math.imul(q,Ne)|0,U=U+Math.imul(q,Ce)|0,g=g+Math.imul(S,Ie)|0,E=(E=E+Math.imul(S,je)|0)+Math.imul(T,Ie)|0,U=U+Math.imul(T,je)|0,g=g+Math.imul(W,Ue)|0,E=(E=E+Math.imul(W,Je)|0)+Math.imul(v,Ue)|0,U=U+Math.imul(v,Je)|0;var tt=(ee+(g=g+Math.imul(de,ze)|0)|0)+((8191&(E=(E=E+Math.imul(de,qe)|0)+Math.imul(pe,ze)|0))<<13)|0;ee=((U=U+Math.imul(pe,qe)|0)+(E>>>13)|0)+(tt>>>26)|0,tt&=67108863,g=Math.imul(G,Oe),E=(E=Math.imul(G,Me))+Math.imul(H,Oe)|0,U=Math.imul(H,Me),g=g+Math.imul(oe,Ne)|0,E=(E=E+Math.imul(oe,Ce)|0)+Math.imul(V,Ne)|0,U=U+Math.imul(V,Ce)|0,g=g+Math.imul(z,Ie)|0,E=(E=E+Math.imul(z,je)|0)+Math.imul(q,Ie)|0,U=U+Math.imul(q,je)|0,g=g+Math.imul(S,Ue)|0,E=(E=E+Math.imul(S,Je)|0)+Math.imul(T,Ue)|0,U=U+Math.imul(T,Je)|0;var rt=(ee+(g=g+Math.imul(W,ze)|0)|0)+((8191&(E=(E=E+Math.imul(W,qe)|0)+Math.imul(v,ze)|0))<<13)|0;ee=((U=U+Math.imul(v,qe)|0)+(E>>>13)|0)+(rt>>>26)|0,rt&=67108863,g=Math.imul(G,Ne),E=(E=Math.imul(G,Ce))+Math.imul(H,Ne)|0,U=Math.imul(H,Ce),g=g+Math.imul(oe,Ie)|0,E=(E=E+Math.imul(oe,je)|0)+Math.imul(V,Ie)|0,U=U+Math.imul(V,je)|0,g=g+Math.imul(z,Ue)|0,E=(E=E+Math.imul(z,Je)|0)+Math.imul(q,Ue)|0,U=U+Math.imul(q,Je)|0;var nt=(ee+(g=g+Math.imul(S,ze)|0)|0)+((8191&(E=(E=E+Math.imul(S,qe)|0)+Math.imul(T,ze)|0))<<13)|0;ee=((U=U+Math.imul(T,qe)|0)+(E>>>13)|0)+(nt>>>26)|0,nt&=67108863,g=Math.imul(G,Ie),E=(E=Math.imul(G,je))+Math.imul(H,Ie)|0,U=Math.imul(H,je),g=g+Math.imul(oe,Ue)|0,E=(E=E+Math.imul(oe,Je)|0)+Math.imul(V,Ue)|0,U=U+Math.imul(V,Je)|0;var ot=(ee+(g=g+Math.imul(z,ze)|0)|0)+((8191&(E=(E=E+Math.imul(z,qe)|0)+Math.imul(q,ze)|0))<<13)|0;ee=((U=U+Math.imul(q,qe)|0)+(E>>>13)|0)+(ot>>>26)|0,ot&=67108863,g=Math.imul(G,Ue),E=(E=Math.imul(G,Je))+Math.imul(H,Ue)|0,U=Math.imul(H,Je);var it=(ee+(g=g+Math.imul(oe,ze)|0)|0)+((8191&(E=(E=E+Math.imul(oe,qe)|0)+Math.imul(V,ze)|0))<<13)|0;ee=((U=U+Math.imul(V,qe)|0)+(E>>>13)|0)+(it>>>26)|0,it&=67108863;var at=(ee+(g=Math.imul(G,ze))|0)+((8191&(E=(E=Math.imul(G,qe))+Math.imul(H,ze)|0))<<13)|0;return ee=((U=Math.imul(H,qe))+(E>>>13)|0)+(at>>>26)|0,at&=67108863,re[0]=Le,re[1]=Fe,re[2]=We,re[3]=Ve,re[4]=Ge,re[5]=He,re[6]=$e,re[7]=Ke,re[8]=Qe,re[9]=Ze,re[10]=Ye,re[11]=Xe,re[12]=et,re[13]=tt,re[14]=rt,re[15]=nt,re[16]=ot,re[17]=it,re[18]=at,ee!==0&&(re[19]=ee,w.length++),w};function c(x,P,w){return new h().mulp(x,P,w)}function h(x,P){this.x=x,this.y=P}Math.imul||(f=i),a.prototype.mulTo=function(x,P){var w,g=this.length+x.length;return w=this.length===10&&x.length===10?f(this,x,P):g<63?i(this,x,P):g<1024?function(E,U,C){C.negative=U.negative^E.negative,C.length=E.length+U.length;for(var F=0,re=0,ee=0;ee>>26)|0)>>>26,ne&=67108863}C.words[ee]=D,F=ne,ne=re}return F!==0?C.words[ee]=F:C.length--,C.strip()}(this,x,P):c(this,x,P),w},h.prototype.makeRBT=function(x){for(var P=new Array(x),w=a.prototype._countBits(x)-1,g=0;g>=1;return g},h.prototype.permute=function(x,P,w,g,E,U){for(var C=0;C>>=1)E++;return 1<>>=13,w[2*U+1]=8191&E,E>>>=13;for(U=2*P;U>=26,P+=g/67108864|0,P+=E>>>26,this.words[w]=67108863&E}return P!==0&&(this.words[w]=P,this.length++),this},a.prototype.muln=function(x){return this.clone().imuln(x)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(x){var P=function(U){for(var C=new Array(U.bitLength()),F=0;F>>ee}return C}(x);if(P.length===0)return new a(1);for(var w=this,g=0;g=0);var P,w=x%26,g=(x-w)/26,E=67108863>>>26-w<<26-w;if(w!==0){var U=0;for(P=0;P>>26-w}U&&(this.words[P]=U,this.length++)}if(g!==0){for(P=this.length-1;P>=0;P--)this.words[P+g]=this.words[P];for(P=0;P=0),g=P?(P-P%26)/26:0;var E=x%26,U=Math.min((x-E)/26,this.length),C=67108863^67108863>>>E<U)for(this.length-=U,re=0;re=0&&(ee!==0||re>=g);re--){var ne=0|this.words[re];this.words[re]=ee<<26-E|ne>>>E,ee=ne&C}return F&&ee!==0&&(F.words[F.length++]=ee),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(x,P,w){return k(this.negative===0),this.iushrn(x,P,w)},a.prototype.shln=function(x){return this.clone().ishln(x)},a.prototype.ushln=function(x){return this.clone().iushln(x)},a.prototype.shrn=function(x){return this.clone().ishrn(x)},a.prototype.ushrn=function(x){return this.clone().iushrn(x)},a.prototype.testn=function(x){k(typeof x=="number"&&x>=0);var P=x%26,w=(x-P)/26,g=1<=0);var P=x%26,w=(x-P)/26;if(k(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(P!==0&&w++,this.length=Math.min(w,this.length),P!==0){var g=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(x){if(k(typeof x=="number"),k(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(F/67108864|0),this.words[g+w]=67108863&E}for(;g>26,this.words[g+w]=67108863&E;if(C===0)return this.strip();for(k(C===-1),C=0,g=0;g>26,this.words[g]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(x,P){var w=(this.length,x.length),g=this.clone(),E=x,U=0|E.words[E.length-1];(w=26-this._countBits(U))!=0&&(E=E.ushln(w),g.iushln(w),U=0|E.words[E.length-1]);var C,F=g.length-E.length;if(P!=="mod"){(C=new a(null)).length=F+1,C.words=new Array(C.length);for(var re=0;re=0;ne--){var D=67108864*(0|g.words[E.length+ne])+(0|g.words[E.length+ne-1]);for(D=Math.min(D/U|0,67108863),g._ishlnsubmul(E,D,ne);g.negative!==0;)D--,g.negative=0,g._ishlnsubmul(E,1,ne),g.isZero()||(g.negative^=1);C&&(C.words[ne]=D)}return C&&C.strip(),g.strip(),P!=="div"&&w!==0&&g.iushrn(w),{div:C||null,mod:g}},a.prototype.divmod=function(x,P,w){return k(!x.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&x.negative===0?(U=this.neg().divmod(x,P),P!=="mod"&&(g=U.div.neg()),P!=="div"&&(E=U.mod.neg(),w&&E.negative!==0&&E.iadd(x)),{div:g,mod:E}):this.negative===0&&x.negative!==0?(U=this.divmod(x.neg(),P),P!=="mod"&&(g=U.div.neg()),{div:g,mod:U.mod}):this.negative&x.negative?(U=this.neg().divmod(x.neg(),P),P!=="div"&&(E=U.mod.neg(),w&&E.negative!==0&&E.isub(x)),{div:U.div,mod:E}):x.length>this.length||this.cmp(x)<0?{div:new a(0),mod:this}:x.length===1?P==="div"?{div:this.divn(x.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new a(this.modn(x.words[0]))}:this._wordDiv(x,P);var g,E,U},a.prototype.div=function(x){return this.divmod(x,"div",!1).div},a.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},a.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},a.prototype.divRound=function(x){var P=this.divmod(x);if(P.mod.isZero())return P.div;var w=P.div.negative!==0?P.mod.isub(x):P.mod,g=x.ushrn(1),E=x.andln(1),U=w.cmp(g);return U<0||E===1&&U===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(x){k(x<=67108863);for(var P=67108864%x,w=0,g=this.length-1;g>=0;g--)w=(P*w+(0|this.words[g]))%x;return w},a.prototype.idivn=function(x){k(x<=67108863);for(var P=0,w=this.length-1;w>=0;w--){var g=(0|this.words[w])+67108864*P;this.words[w]=g/x|0,P=g%x}return this.strip()},a.prototype.divn=function(x){return this.clone().idivn(x)},a.prototype.egcd=function(x){k(x.negative===0),k(!x.isZero());var P=this,w=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var g=new a(1),E=new a(0),U=new a(0),C=new a(1),F=0;P.isEven()&&w.isEven();)P.iushrn(1),w.iushrn(1),++F;for(var re=w.clone(),ee=P.clone();!P.isZero();){for(var ne=0,D=1;!(P.words[0]&D)&&ne<26;++ne,D<<=1);if(ne>0)for(P.iushrn(ne);ne-- >0;)(g.isOdd()||E.isOdd())&&(g.iadd(re),E.isub(ee)),g.iushrn(1),E.iushrn(1);for(var Z=0,$=1;!(w.words[0]&$)&&Z<26;++Z,$<<=1);if(Z>0)for(w.iushrn(Z);Z-- >0;)(U.isOdd()||C.isOdd())&&(U.iadd(re),C.isub(ee)),U.iushrn(1),C.iushrn(1);P.cmp(w)>=0?(P.isub(w),g.isub(U),E.isub(C)):(w.isub(P),U.isub(g),C.isub(E))}return{a:U,b:C,gcd:w.iushln(F)}},a.prototype._invmp=function(x){k(x.negative===0),k(!x.isZero());var P=this,w=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var g,E=new a(1),U=new a(0),C=w.clone();P.cmpn(1)>0&&w.cmpn(1)>0;){for(var F=0,re=1;!(P.words[0]&re)&&F<26;++F,re<<=1);if(F>0)for(P.iushrn(F);F-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);for(var ee=0,ne=1;!(w.words[0]&ne)&&ee<26;++ee,ne<<=1);if(ee>0)for(w.iushrn(ee);ee-- >0;)U.isOdd()&&U.iadd(C),U.iushrn(1);P.cmp(w)>=0?(P.isub(w),E.isub(U)):(w.isub(P),U.isub(E))}return(g=P.cmpn(1)===0?E:U).cmpn(0)<0&&g.iadd(x),g},a.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var P=this.clone(),w=x.clone();P.negative=0,w.negative=0;for(var g=0;P.isEven()&&w.isEven();g++)P.iushrn(1),w.iushrn(1);for(;;){for(;P.isEven();)P.iushrn(1);for(;w.isEven();)w.iushrn(1);var E=P.cmp(w);if(E<0){var U=P;P=w,w=U}else if(E===0||w.cmpn(1)===0)break;P.isub(w)}return w.iushln(g)},a.prototype.invm=function(x){return this.egcd(x).a.umod(x)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(x){return this.words[0]&x},a.prototype.bincn=function(x){k(typeof x=="number");var P=x%26,w=(x-P)/26,g=1<>>26,C&=67108863,this.words[U]=C}return E!==0&&(this.words[U]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(x){var P,w=x<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this.strip(),this.length>1)P=1;else{w&&(x=-x),k(x<=67108863,"Number is too big");var g=0|this.words[0];P=g===x?0:gx.length)return 1;if(this.length=0;w--){var g=0|this.words[w],E=0|x.words[w];if(g!==E){gE&&(P=1);break}}return P},a.prototype.gtn=function(x){return this.cmpn(x)===1},a.prototype.gt=function(x){return this.cmp(x)===1},a.prototype.gten=function(x){return this.cmpn(x)>=0},a.prototype.gte=function(x){return this.cmp(x)>=0},a.prototype.ltn=function(x){return this.cmpn(x)===-1},a.prototype.lt=function(x){return this.cmp(x)===-1},a.prototype.lten=function(x){return this.cmpn(x)<=0},a.prototype.lte=function(x){return this.cmp(x)<=0},a.prototype.eqn=function(x){return this.cmpn(x)===0},a.prototype.eq=function(x){return this.cmp(x)===0},a.red=function(x){return new R(x)},a.prototype.toRed=function(x){return k(!this.red,"Already a number in reduction context"),k(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},a.prototype.fromRed=function(){return k(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(x){return this.red=x,this},a.prototype.forceRed=function(x){return k(!this.red,"Already a number in reduction context"),this._forceRed(x)},a.prototype.redAdd=function(x){return k(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},a.prototype.redIAdd=function(x){return k(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},a.prototype.redSub=function(x){return k(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},a.prototype.redISub=function(x){return k(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},a.prototype.redShl=function(x){return k(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},a.prototype.redMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},a.prototype.redIMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},a.prototype.redSqr=function(){return k(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return k(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return k(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return k(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return k(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(x){return k(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var p={k256:null,p224:null,p192:null,p25519:null};function m(x,P){this.name=x,this.p=new a(P,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function N(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function j(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(x){if(typeof x=="string"){var P=a._prime(x);this.m=P.p,this.prime=P}else k(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function I(x){R.call(this,x),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)}m.prototype._tmp=function(){var x=new a(null);return x.words=new Array(Math.ceil(this.n/13)),x},m.prototype.ireduce=function(x){var P,w=x;do this.split(w,this.tmp),P=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(P>this.n);var g=P0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},m.prototype.split=function(x,P){x.iushrn(this.n,0,P)},m.prototype.imulK=function(x){return x.imul(this.k)},b(M,m),M.prototype.split=function(x,P){for(var w=4194303,g=Math.min(x.length,9),E=0;E>>22,U=C}U>>>=22,x.words[E-10]=U,U===0&&x.length>10?x.length-=10:x.length-=9},M.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var P=0,w=0;w>>=26,x.words[w]=E,P=g}return P!==0&&(x.words[x.length++]=P),x},a._prime=function(x){if(p[x])return p[x];var P;if(x==="k256")P=new M;else if(x==="p224")P=new l;else if(x==="p192")P=new N;else{if(x!=="p25519")throw new Error("Unknown prime "+x);P=new j}return p[x]=P,P},R.prototype._verify1=function(x){k(x.negative===0,"red works only with positives"),k(x.red,"red works only with red numbers")},R.prototype._verify2=function(x,P){k((x.negative|P.negative)==0,"red works only with positives"),k(x.red&&x.red===P.red,"red works only with red numbers")},R.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):x.umod(this.m)._forceRed(this)},R.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},R.prototype.add=function(x,P){this._verify2(x,P);var w=x.add(P);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},R.prototype.iadd=function(x,P){this._verify2(x,P);var w=x.iadd(P);return w.cmp(this.m)>=0&&w.isub(this.m),w},R.prototype.sub=function(x,P){this._verify2(x,P);var w=x.sub(P);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},R.prototype.isub=function(x,P){this._verify2(x,P);var w=x.isub(P);return w.cmpn(0)<0&&w.iadd(this.m),w},R.prototype.shl=function(x,P){return this._verify1(x),this.imod(x.ushln(P))},R.prototype.imul=function(x,P){return this._verify2(x,P),this.imod(x.imul(P))},R.prototype.mul=function(x,P){return this._verify2(x,P),this.imod(x.mul(P))},R.prototype.isqr=function(x){return this.imul(x,x.clone())},R.prototype.sqr=function(x){return this.mul(x,x)},R.prototype.sqrt=function(x){if(x.isZero())return x.clone();var P=this.m.andln(3);if(k(P%2==1),P===3){var w=this.m.add(new a(1)).iushrn(2);return this.pow(x,w)}for(var g=this.m.subn(1),E=0;!g.isZero()&&g.andln(1)===0;)E++,g.iushrn(1);k(!g.isZero());var U=new a(1).toRed(this),C=U.redNeg(),F=this.m.subn(1).iushrn(1),re=this.m.bitLength();for(re=new a(2*re*re).toRed(this);this.pow(re,F).cmp(C)!==0;)re.redIAdd(C);for(var ee=this.pow(re,g),ne=this.pow(x,g.addn(1).iushrn(1)),D=this.pow(x,g),Z=E;D.cmp(U)!==0;){for(var $=D,X=0;$.cmp(U)!==0;X++)$=$.redSqr();k(X=0;g--){for(var re=P.words[g],ee=F-1;ee>=0;ee--){var ne=re>>ee&1;E!==w[0]&&(E=this.sqr(E)),ne!==0||U!==0?(U<<=1,U|=ne,(++C==4||g===0&&ee===0)&&(E=this.mul(E,w[U]),C=0,U=0)):C=0}F=26}return E},R.prototype.convertTo=function(x){var P=x.umod(this.m);return P===x?P.clone():P},R.prototype.convertFrom=function(x){var P=x.clone();return P.red=null,P},a.mont=function(x){return new I(x)},b(I,R),I.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},I.prototype.convertFrom=function(x){var P=this.imod(x.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(x,P){if(x.isZero()||P.isZero())return x.words[0]=0,x.length=1,x;var w=x.imul(P),g=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=w.isub(g).iushrn(this.shift),U=E;return E.cmp(this.m)>=0?U=E.isub(this.m):E.cmpn(0)<0&&(U=E.iadd(this.m)),U._forceRed(this)},I.prototype.mul=function(x,P){if(x.isZero()||P.isZero())return new a(0)._forceRed(this);var w=x.mul(P),g=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=w.isub(g).iushrn(this.shift),U=E;return E.cmp(this.m)>=0?U=E.isub(this.m):E.cmpn(0)<0&&(U=E.iadd(this.m)),U._forceRed(this)},I.prototype.invm=function(x){return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this)}})(J=_.nmd(J),this)},9931:(J,e,_)=>{var O;function A(b){this.rand=b}if(J.exports=function(b){return O||(O=new A(null)),O.generate(b)},J.exports.Rand=A,A.prototype.generate=function(b){return this._rand(b)},A.prototype._rand=function(b){if(this.rand.getBytes)return this.rand.getBytes(b);for(var a=new Uint8Array(b),t=0;t{var O=_(8162);J.exports=O("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},3310:(J,e,_)=>{var O=_(7191),A=_(9509).Buffer;J.exports=function(k){function b(a){var t=a.slice(0,-4),u=a.slice(-4),d=k(t);if(!(u[0]^d[0]|u[1]^d[1]|u[2]^d[2]|u[3]^d[3]))return t}return{encode:function(a){var t=k(a);return O.encode(A.concat([a,t],a.length+4))},decode:function(a){var t=b(O.decode(a));if(!t)throw new Error("Invalid checksum");return t},decodeUnsafe:function(a){var t=O.decodeUnsafe(a);if(t)return b(t)}}}},8334:(J,e,_)=>{var O=_(3482),A=_(3310);J.exports=A(function(k){var b=O("sha256").update(k).digest();return O("sha256").update(b).digest()})},8764:(J,e,_)=>{var O=_(5108);const A=_(9742),k=_(645),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(y){return+y!=y&&(y=0),u.alloc(+y)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function t(y){if(y>a)throw new RangeError('The value "'+y+'" is invalid for option "size"');const S=new Uint8Array(y);return Object.setPrototypeOf(S,u.prototype),S}function u(y,S,T){if(typeof y=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r(y)}return d(y,S,T)}function d(y,S,T){if(typeof y=="string")return function(q,te){if(typeof te=="string"&&te!==""||(te="utf8"),!u.isEncoding(te))throw new TypeError("Unknown encoding: "+te);const oe=0|f(q,te);let V=t(oe);const Q=V.write(q,te);return Q!==oe&&(V=V.slice(0,Q)),V}(y,S);if(ArrayBuffer.isView(y))return function(q){if(de(q,Uint8Array)){const te=new Uint8Array(q);return o(te.buffer,te.byteOffset,te.byteLength)}return n(q)}(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(de(y,ArrayBuffer)||y&&de(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(y,SharedArrayBuffer)||y&&de(y.buffer,SharedArrayBuffer)))return o(y,S,T);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const B=y.valueOf&&y.valueOf();if(B!=null&&B!==y)return u.from(B,S,T);const z=function(q){if(u.isBuffer(q)){const te=0|i(q.length),oe=t(te);return oe.length===0||q.copy(oe,0,0,te),oe}return q.length!==void 0?typeof q.length!="number"||pe(q.length)?t(0):n(q):q.type==="Buffer"&&Array.isArray(q.data)?n(q.data):void 0}(y);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return u.from(y[Symbol.toPrimitive]("string"),S,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function s(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function r(y){return s(y),t(y<0?0:0|i(y))}function n(y){const S=y.length<0?0:0|i(y.length),T=t(S);for(let B=0;B=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|y}function f(y,S){if(u.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||de(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const T=y.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&T===0)return 0;let z=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return ue(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return le(y).length;default:if(z)return B?-1:ue(y).length;S=(""+S).toLowerCase(),z=!0}}function c(y,S,T){let B=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0)<=(S>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return E(this,S,T);case"utf8":case"utf-8":return x(this,S,T);case"ascii":return w(this,S,T);case"latin1":case"binary":return g(this,S,T);case"base64":return I(this,S,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,S,T);default:if(B)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),B=!0}}function h(y,S,T){const B=y[S];y[S]=y[T],y[T]=B}function p(y,S,T,B,z){if(y.length===0)return-1;if(typeof T=="string"?(B=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),pe(T=+T)&&(T=z?0:y.length-1),T<0&&(T=y.length+T),T>=y.length){if(z)return-1;T=y.length-1}else if(T<0){if(!z)return-1;T=0}if(typeof S=="string"&&(S=u.from(S,B)),u.isBuffer(S))return S.length===0?-1:m(y,S,T,B,z);if(typeof S=="number")return S&=255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(y,S,T):Uint8Array.prototype.lastIndexOf.call(y,S,T):m(y,[S],T,B,z);throw new TypeError("val must be string, number or Buffer")}function m(y,S,T,B,z){let q,te=1,oe=y.length,V=S.length;if(B!==void 0&&((B=String(B).toLowerCase())==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(y.length<2||S.length<2)return-1;te=2,oe/=2,V/=2,T/=2}function Q(G,H){return te===1?G[H]:G.readUInt16BE(H*te)}if(z){let G=-1;for(q=T;qoe&&(T=oe-V),q=T;q>=0;q--){let G=!0;for(let H=0;Hz&&(B=z):B=z;const q=S.length;let te;for(B>q/2&&(B=q/2),te=0;te>8,V=te%256,Q.push(V),Q.push(oe);return Q}(S,y.length-T),y,T,B)}function I(y,S,T){return S===0&&T===y.length?A.fromByteArray(y):A.fromByteArray(y.slice(S,T))}function x(y,S,T){T=Math.min(y.length,T);const B=[];let z=S;for(;z239?4:q>223?3:q>191?2:1;if(z+oe<=T){let V,Q,G,H;switch(oe){case 1:q<128&&(te=q);break;case 2:V=y[z+1],(192&V)==128&&(H=(31&q)<<6|63&V,H>127&&(te=H));break;case 3:V=y[z+1],Q=y[z+2],(192&V)==128&&(192&Q)==128&&(H=(15&q)<<12|(63&V)<<6|63&Q,H>2047&&(H<55296||H>57343)&&(te=H));break;case 4:V=y[z+1],Q=y[z+2],G=y[z+3],(192&V)==128&&(192&Q)==128&&(192&G)==128&&(H=(15&q)<<18|(63&V)<<12|(63&Q)<<6|63&G,H>65535&&H<1114112&&(te=H))}}te===null?(te=65533,oe=1):te>65535&&(te-=65536,B.push(te>>>10&1023|55296),te=56320|1023&te),B.push(te),z+=oe}return function(q){const te=q.length;if(te<=P)return String.fromCharCode.apply(String,q);let oe="",V=0;for(;VB.length?(u.isBuffer(q)||(q=u.from(q)),q.copy(B,z)):Uint8Array.prototype.set.call(B,q,z);else{if(!u.isBuffer(q))throw new TypeError('"list" argument must be an Array of Buffers');q.copy(B,z)}z+=q.length}return B},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(y+=" ... "),""},b&&(u.prototype[b]=u.prototype.inspect),u.prototype.compare=function(y,S,T,B,z){if(de(y,Uint8Array)&&(y=u.from(y,y.offset,y.byteLength)),!u.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(S===void 0&&(S=0),T===void 0&&(T=y?y.length:0),B===void 0&&(B=0),z===void 0&&(z=this.length),S<0||T>y.length||B<0||z>this.length)throw new RangeError("out of range index");if(B>=z&&S>=T)return 0;if(B>=z)return-1;if(S>=T)return 1;if(this===y)return 0;let q=(z>>>=0)-(B>>>=0),te=(T>>>=0)-(S>>>=0);const oe=Math.min(q,te),V=this.slice(B,z),Q=y.slice(S,T);for(let G=0;G>>=0,isFinite(T)?(T>>>=0,B===void 0&&(B="utf8")):(B=T,T=void 0)}const z=this.length-S;if((T===void 0||T>z)&&(T=z),y.length>0&&(T<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");B||(B="utf8");let q=!1;for(;;)switch(B){case"hex":return M(this,y,S,T);case"utf8":case"utf-8":return l(this,y,S,T);case"ascii":case"latin1":case"binary":return N(this,y,S,T);case"base64":return j(this,y,S,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,y,S,T);default:if(q)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),q=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function w(y,S,T){let B="";T=Math.min(y.length,T);for(let z=S;zB)&&(T=B);let z="";for(let q=S;qT)throw new RangeError("Trying to access beyond buffer length")}function F(y,S,T,B,z,q){if(!u.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>z||Sy.length)throw new RangeError("Index out of range")}function re(y,S,T,B,z){Y(S,B,z,y,T,7);let q=Number(S&BigInt(4294967295));y[T++]=q,q>>=8,y[T++]=q,q>>=8,y[T++]=q,q>>=8,y[T++]=q;let te=Number(S>>BigInt(32)&BigInt(4294967295));return y[T++]=te,te>>=8,y[T++]=te,te>>=8,y[T++]=te,te>>=8,y[T++]=te,T}function ee(y,S,T,B,z){Y(S,B,z,y,T,7);let q=Number(S&BigInt(4294967295));y[T+7]=q,q>>=8,y[T+6]=q,q>>=8,y[T+5]=q,q>>=8,y[T+4]=q;let te=Number(S>>BigInt(32)&BigInt(4294967295));return y[T+3]=te,te>>=8,y[T+2]=te,te>>=8,y[T+1]=te,te>>=8,y[T]=te,T+8}function ne(y,S,T,B,z,q){if(T+B>y.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function D(y,S,T,B,z){return S=+S,T>>>=0,z||ne(y,0,T,4),k.write(y,S,T,B,23,4),T+4}function Z(y,S,T,B,z){return S=+S,T>>>=0,z||ne(y,0,T,8),k.write(y,S,T,B,52,8),T+8}u.prototype.slice=function(y,S){const T=this.length;(y=~~y)<0?(y+=T)<0&&(y=0):y>T&&(y=T),(S=S===void 0?T:~~S)<0?(S+=T)<0&&(S=0):S>T&&(S=T),S>>=0,S>>>=0,T||C(y,S,this.length);let B=this[y],z=1,q=0;for(;++q>>=0,S>>>=0,T||C(y,S,this.length);let B=this[y+--S],z=1;for(;S>0&&(z*=256);)B+=this[y+--S]*z;return B},u.prototype.readUint8=u.prototype.readUInt8=function(y,S){return y>>>=0,S||C(y,1,this.length),this[y]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(y,S){return y>>>=0,S||C(y,2,this.length),this[y]|this[y+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(y,S){return y>>>=0,S||C(y,2,this.length),this[y]<<8|this[y+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(y,S){return y>>>=0,S||C(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(y,S){return y>>>=0,S||C(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},u.prototype.readBigUInt64LE=W(function(y){L(y>>>=0,"offset");const S=this[y],T=this[y+7];S!==void 0&&T!==void 0||ae(y,this.length-8);const B=S+256*this[++y]+65536*this[++y]+this[++y]*2**24,z=this[++y]+256*this[++y]+65536*this[++y]+T*2**24;return BigInt(B)+(BigInt(z)<>>=0,"offset");const S=this[y],T=this[y+7];S!==void 0&&T!==void 0||ae(y,this.length-8);const B=S*2**24+65536*this[++y]+256*this[++y]+this[++y],z=this[++y]*2**24+65536*this[++y]+256*this[++y]+T;return(BigInt(B)<>>=0,S>>>=0,T||C(y,S,this.length);let B=this[y],z=1,q=0;for(;++q=z&&(B-=Math.pow(2,8*S)),B},u.prototype.readIntBE=function(y,S,T){y>>>=0,S>>>=0,T||C(y,S,this.length);let B=S,z=1,q=this[y+--B];for(;B>0&&(z*=256);)q+=this[y+--B]*z;return z*=128,q>=z&&(q-=Math.pow(2,8*S)),q},u.prototype.readInt8=function(y,S){return y>>>=0,S||C(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},u.prototype.readInt16LE=function(y,S){y>>>=0,S||C(y,2,this.length);const T=this[y]|this[y+1]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt16BE=function(y,S){y>>>=0,S||C(y,2,this.length);const T=this[y+1]|this[y]<<8;return 32768&T?4294901760|T:T},u.prototype.readInt32LE=function(y,S){return y>>>=0,S||C(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},u.prototype.readInt32BE=function(y,S){return y>>>=0,S||C(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},u.prototype.readBigInt64LE=W(function(y){L(y>>>=0,"offset");const S=this[y],T=this[y+7];S!==void 0&&T!==void 0||ae(y,this.length-8);const B=this[y+4]+256*this[y+5]+65536*this[y+6]+(T<<24);return(BigInt(B)<>>=0,"offset");const S=this[y],T=this[y+7];S!==void 0&&T!==void 0||ae(y,this.length-8);const B=(S<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(B)<>>=0,S||C(y,4,this.length),k.read(this,y,!0,23,4)},u.prototype.readFloatBE=function(y,S){return y>>>=0,S||C(y,4,this.length),k.read(this,y,!1,23,4)},u.prototype.readDoubleLE=function(y,S){return y>>>=0,S||C(y,8,this.length),k.read(this,y,!0,52,8)},u.prototype.readDoubleBE=function(y,S){return y>>>=0,S||C(y,8,this.length),k.read(this,y,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(y,S,T,B){y=+y,S>>>=0,T>>>=0,B||F(this,y,S,T,Math.pow(2,8*T)-1,0);let z=1,q=0;for(this[S]=255&y;++q>>=0,T>>>=0,B||F(this,y,S,T,Math.pow(2,8*T)-1,0);let z=T-1,q=1;for(this[S+z]=255&y;--z>=0&&(q*=256);)this[S+z]=y/q&255;return S+T},u.prototype.writeUint8=u.prototype.writeUInt8=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,1,255,0),this[S]=255&y,S+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,2,65535,0),this[S]=255&y,this[S+1]=y>>>8,S+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,2,65535,0),this[S]=y>>>8,this[S+1]=255&y,S+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,4,4294967295,0),this[S+3]=y>>>24,this[S+2]=y>>>16,this[S+1]=y>>>8,this[S]=255&y,S+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,4,4294967295,0),this[S]=y>>>24,this[S+1]=y>>>16,this[S+2]=y>>>8,this[S+3]=255&y,S+4},u.prototype.writeBigUInt64LE=W(function(y,S=0){return re(this,y,S,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=W(function(y,S=0){return ee(this,y,S,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(y,S,T,B){if(y=+y,S>>>=0,!B){const oe=Math.pow(2,8*T-1);F(this,y,S,T,oe-1,-oe)}let z=0,q=1,te=0;for(this[S]=255&y;++z>0)-te&255;return S+T},u.prototype.writeIntBE=function(y,S,T,B){if(y=+y,S>>>=0,!B){const oe=Math.pow(2,8*T-1);F(this,y,S,T,oe-1,-oe)}let z=T-1,q=1,te=0;for(this[S+z]=255&y;--z>=0&&(q*=256);)y<0&&te===0&&this[S+z+1]!==0&&(te=1),this[S+z]=(y/q>>0)-te&255;return S+T},u.prototype.writeInt8=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,1,127,-128),y<0&&(y=255+y+1),this[S]=255&y,S+1},u.prototype.writeInt16LE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,2,32767,-32768),this[S]=255&y,this[S+1]=y>>>8,S+2},u.prototype.writeInt16BE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,2,32767,-32768),this[S]=y>>>8,this[S+1]=255&y,S+2},u.prototype.writeInt32LE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,4,2147483647,-2147483648),this[S]=255&y,this[S+1]=y>>>8,this[S+2]=y>>>16,this[S+3]=y>>>24,S+4},u.prototype.writeInt32BE=function(y,S,T){return y=+y,S>>>=0,T||F(this,y,S,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[S]=y>>>24,this[S+1]=y>>>16,this[S+2]=y>>>8,this[S+3]=255&y,S+4},u.prototype.writeBigInt64LE=W(function(y,S=0){return re(this,y,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=W(function(y,S=0){return ee(this,y,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(y,S,T){return D(this,y,S,!0,T)},u.prototype.writeFloatBE=function(y,S,T){return D(this,y,S,!1,T)},u.prototype.writeDoubleLE=function(y,S,T){return Z(this,y,S,!0,T)},u.prototype.writeDoubleBE=function(y,S,T){return Z(this,y,S,!1,T)},u.prototype.copy=function(y,S,T,B){if(!u.isBuffer(y))throw new TypeError("argument should be a Buffer");if(T||(T=0),B||B===0||(B=this.length),S>=y.length&&(S=y.length),S||(S=0),B>0&&B=this.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("sourceEnd out of bounds");B>this.length&&(B=this.length),y.length-S>>=0,T=T===void 0?this.length:T>>>0,y||(y=0),typeof y=="number")for(z=S;z=B+4;T-=3)S=`_${y.slice(T-3,T)}${S}`;return`${y.slice(0,T)}${S}`}function Y(y,S,T,B,z,q){if(y>T||y3?S===0||S===BigInt(0)?`>= 0${te} and < 2${te} ** ${8*(q+1)}${te}`:`>= -(2${te} ** ${8*(q+1)-1}${te}) and < 2 ** ${8*(q+1)-1}${te}`:`>= ${S}${te} and <= ${T}${te}`,new $.ERR_OUT_OF_RANGE("value",oe,y)}(function(te,oe,V){L(oe,"offset"),te[oe]!==void 0&&te[oe+V]!==void 0||ae(oe,te.length-(V+1))})(B,z,q)}function L(y,S){if(typeof y!="number")throw new $.ERR_INVALID_ARG_TYPE(S,"number",y)}function ae(y,S,T){throw Math.floor(y)!==y?(L(y,T),new $.ERR_OUT_OF_RANGE(T||"offset","an integer",y)):S<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${S}`,y)}X("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(y,S){return`The "${y}" argument must be of type number. Received type ${typeof S}`},TypeError),X("ERR_OUT_OF_RANGE",function(y,S,T){let B=`The value of "${y}" is out of range.`,z=T;return Number.isInteger(T)&&Math.abs(T)>4294967296?z=K(String(T)):typeof T=="bigint"&&(z=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(z=K(z)),z+="n"),B+=` It must be ${S}. Received ${z}`,B},RangeError);const ce=/[^+/0-9A-Za-z-_]/g;function ue(y,S){let T;S=S||1/0;const B=y.length;let z=null;const q=[];for(let te=0;te55295&&T<57344){if(!z){if(T>56319){(S-=3)>-1&&q.push(239,191,189);continue}if(te+1===B){(S-=3)>-1&&q.push(239,191,189);continue}z=T;continue}if(T<56320){(S-=3)>-1&&q.push(239,191,189),z=T;continue}T=65536+(z-55296<<10|T-56320)}else z&&(S-=3)>-1&&q.push(239,191,189);if(z=null,T<128){if((S-=1)<0)break;q.push(T)}else if(T<2048){if((S-=2)<0)break;q.push(T>>6|192,63&T|128)}else if(T<65536){if((S-=3)<0)break;q.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;q.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return q}function le(y){return A.toByteArray(function(S){if((S=(S=S.split("=")[0]).trim().replace(ce,"")).length<2)return"";for(;S.length%4!=0;)S+="=";return S}(y))}function be(y,S,T,B){let z;for(z=0;z=S.length||z>=y.length);++z)S[z+T]=y[z];return z}function de(y,S){return y instanceof S||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===S.name}function pe(y){return y!=y}const _e=function(){const y="0123456789abcdef",S=new Array(256);for(let T=0;T<16;++T){const B=16*T;for(let z=0;z<16;++z)S[B+z]=y[T]+y[z]}return S}();function W(y){return typeof BigInt>"u"?v:y}function v(){throw new Error("BigInt not supported")}},1924:(J,e,_)=>{var O=_(210),A=_(5559),k=A(O("String.prototype.indexOf"));J.exports=function(b,a){var t=O(b,!!a);return typeof t=="function"&&k(b,".prototype.")>-1?A(t):t}},5559:(J,e,_)=>{var O=_(8612),A=_(210),k=A("%Function.prototype.apply%"),b=A("%Function.prototype.call%"),a=A("%Reflect.apply%",!0)||O.call(b,k),t=A("%Object.getOwnPropertyDescriptor%",!0),u=A("%Object.defineProperty%",!0),d=A("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}J.exports=function(r){var n=a(O,b,arguments);return t&&u&&t(n,"length").configurable&&u(n,"length",{value:1+d(0,r.length-(arguments.length-1))}),n};var s=function(){return a(O,k,arguments)};u?u(J.exports,"apply",{value:s}):J.exports.apply=s},1027:(J,e,_)=>{var O=_(9509).Buffer,A=_(2830).Transform,k=_(2553).s;function b(a){A.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}_(5717)(b,A),b.prototype.update=function(a,t,u){typeof a=="string"&&(a=O.from(a,t));var d=this._update(a);return this.hashMode?this:(u&&(d=this._toString(d,u)),d)},b.prototype.setAutoPadding=function(){},b.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},b.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},b.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},b.prototype._transform=function(a,t,u){var d;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(s){d=s}finally{u(d)}},b.prototype._flush=function(a){var t;try{this.push(this.__final())}catch(u){t=u}a(t)},b.prototype._finalOrDigest=function(a){var t=this.__final()||O.alloc(0);return a&&(t=this._toString(t,a,!0)),t},b.prototype._toString=function(a,t,u){if(this._decoder||(this._decoder=new k(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var d=this._decoder.write(a);return u&&(d+=this._decoder.end()),d},J.exports=b},5108:(J,e,_)=>{var O=_(9539),A=_(9282);function k(){return new Date().getTime()}var b,a=Array.prototype.slice,t={};b=_.g!==void 0&&_.g.console?_.g.console:typeof window<"u"&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){b.log.apply(b,arguments)},"info"],[function(){b.log.apply(b,arguments)},"warn"],[function(){b.warn.apply(b,arguments)},"error"],[function(o){t[o]=k()},"time"],[function(o){var i=t[o];if(!i)throw new Error("No such label: "+o);delete t[o];var f=k()-i;b.log(o+": "+f+"ms")},"timeEnd"],[function(){var o=new Error;o.name="Trace",o.message=O.format.apply(null,arguments),b.error(o.stack)},"trace"],[function(o){b.log(O.inspect(o)+` +`)},"dir"],[function(o){if(!o){var i=a.call(arguments,1);A.ok(!1,O.format.apply(null,i))}},"assert"]],d=0;d{var O=_(5717),A=_(2318),k=_(9785),b=_(9072),a=_(1027);function t(u){a.call(this,"digest"),this._hash=u}O(t,a),t.prototype._update=function(u){this._hash.update(u)},t.prototype._final=function(){return this._hash.digest()},J.exports=function(u){return(u=u.toLowerCase())==="md5"?new A:u==="rmd160"||u==="ripemd160"?new k:new t(b(u))}},8028:(J,e,_)=>{var O=_(2318);J.exports=function(A){return new O().update(A).digest()}},8355:(J,e,_)=>{var O=_(5717),A=_(1031),k=_(1027),b=_(9509).Buffer,a=_(8028),t=_(9785),u=_(9072),d=b.alloc(128);function s(r,n){k.call(this,"digest"),typeof n=="string"&&(n=b.from(n));var o=r==="sha512"||r==="sha384"?128:64;this._alg=r,this._key=n,n.length>o?n=(r==="rmd160"?new t:u(r)).update(n).digest():n.length{var O=_(5717),A=_(9509).Buffer,k=_(1027),b=A.alloc(128),a=64;function t(u,d){k.call(this,"digest"),typeof d=="string"&&(d=A.from(d)),this._alg=u,this._key=d,d.length>a?d=u(d):d.length-1};function d(R){if(typeof R!="string"&&(R=String(R)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(R))throw new TypeError("Invalid character in header field name");return R.toLowerCase()}function s(R){return typeof R!="string"&&(R=String(R)),R}function r(R){var I={next:function(){var x=R.shift();return{done:x===void 0,value:x}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function n(R){this.map={},R instanceof n?R.forEach(function(I,x){this.append(x,I)},this):Array.isArray(R)?R.forEach(function(I){this.append(I[0],I[1])},this):R&&Object.getOwnPropertyNames(R).forEach(function(I){this.append(I,R[I])},this)}function o(R){if(R.bodyUsed)return Promise.reject(new TypeError("Already read"));R.bodyUsed=!0}function i(R){return new Promise(function(I,x){R.onload=function(){I(R.result)},R.onerror=function(){x(R.error)}})}function f(R){var I=new FileReader,x=i(I);return I.readAsArrayBuffer(R),x}function c(R){if(R.slice)return R.slice(0);var I=new Uint8Array(R.byteLength);return I.set(new Uint8Array(R)),I.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(R){var I;this._bodyInit=R,R?typeof R=="string"?this._bodyText=R:a.blob&&Blob.prototype.isPrototypeOf(R)?this._bodyBlob=R:a.formData&&FormData.prototype.isPrototypeOf(R)?this._bodyFormData=R:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)?this._bodyText=R.toString():a.arrayBuffer&&a.blob&&(I=R)&&DataView.prototype.isPrototypeOf(I)?(this._bodyArrayBuffer=c(R.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(R)||u(R))?this._bodyArrayBuffer=c(R):this._bodyText=R=Object.prototype.toString.call(R):this._bodyText="",this.headers.get("content-type")||(typeof R=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(R)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var R=o(this);if(R)return R;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var R,I,x,P=o(this);if(P)return P;if(this._bodyBlob)return R=this._bodyBlob,x=i(I=new FileReader),I.readAsText(R),x;if(this._bodyArrayBuffer)return Promise.resolve(function(w){for(var g=new Uint8Array(w),E=new Array(g.length),U=0;U-1?P:x),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&w)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(w)}function M(R){var I=new FormData;return R.trim().split("&").forEach(function(x){if(x){var P=x.split("="),w=P.shift().replace(/\+/g," "),g=P.join("=").replace(/\+/g," ");I.append(decodeURIComponent(w),decodeURIComponent(g))}}),I}function l(R,I){I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in I?I.statusText:"OK",this.headers=new n(I.headers),this.url=I.url||"",this._initBody(R)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},l.error=function(){var R=new l(null,{status:0,statusText:""});return R.type="error",R};var N=[301,302,303,307,308];l.redirect=function(R,I){if(N.indexOf(I)===-1)throw new RangeError("Invalid status code");return new l(null,{status:I,headers:{location:R}})},b.DOMException=k.DOMException;try{new b.DOMException}catch{b.DOMException=function(I,x){this.message=I,this.name=x;var P=Error(I);this.stack=P.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function j(R,I){return new Promise(function(x,P){var w=new m(R,I);if(w.signal&&w.signal.aborted)return P(new b.DOMException("Aborted","AbortError"));var g=new XMLHttpRequest;function E(){g.abort()}g.onload=function(){var U,C,F={status:g.status,statusText:g.statusText,headers:(U=g.getAllResponseHeaders()||"",C=new n,U.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(ee){var ne=ee.split(":"),D=ne.shift().trim();if(D){var Z=ne.join(":").trim();C.append(D,Z)}}),C)};F.url="responseURL"in g?g.responseURL:F.headers.get("X-Request-URL");var re="response"in g?g.response:g.responseText;x(new l(re,F))},g.onerror=function(){P(new TypeError("Network request failed"))},g.ontimeout=function(){P(new TypeError("Network request failed"))},g.onabort=function(){P(new b.DOMException("Aborted","AbortError"))},g.open(w.method,w.url,!0),w.credentials==="include"?g.withCredentials=!0:w.credentials==="omit"&&(g.withCredentials=!1),"responseType"in g&&a.blob&&(g.responseType="blob"),w.headers.forEach(function(U,C){g.setRequestHeader(C,U)}),w.signal&&(w.signal.addEventListener("abort",E),g.onreadystatechange=function(){g.readyState===4&&w.signal.removeEventListener("abort",E)}),g.send(w._bodyInit===void 0?null:w._bodyInit)})}j.polyfill=!0,k.fetch||(k.fetch=j,k.Headers=n,k.Request=m,k.Response=l),b.Headers=n,b.Request=m,b.Response=l,b.fetch=j,Object.defineProperty(b,"__esModule",{value:!0})})({})})(O),O.fetch.ponyfill=!0,delete O.fetch.polyfill;var A=O;(e=A.fetch).default=A.fetch,e.fetch=A.fetch,e.Headers=A.Headers,e.Request=A.Request,e.Response=A.Response,J.exports=e},4063:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0});let _=new Uint8Array(32);function O(X){var K,Y=new Float64Array(16);if(X)for(K=0;K>24&255,X[K+1]=Y>>16&255,X[K+2]=Y>>8&255,X[K+3]=255&Y,X[K+4]=L>>24&255,X[K+5]=L>>16&255,X[K+6]=L>>8&255,X[K+7]=255&L}function n(X,K,Y,L){return function(ae,ce,ue,le,be){var de,pe=0;for(de=0;de<32;de++)pe|=ae[ce+de]^ue[le+de];return(1&pe-1>>>8)-1}(X,K,Y,L)}function o(X,K){var Y;for(Y=0;Y<16;Y++)X[Y]=0|K[Y]}function i(X){var K,Y,L=1;for(K=0;K<16;K++)Y=X[K]+L+65535,L=Math.floor(Y/65536),X[K]=Y-65536*L;X[0]+=L-1+37*(L-1)}function f(X,K,Y){for(var L,ae=~(Y-1),ce=0;ce<16;ce++)L=ae&(X[ce]^K[ce]),X[ce]^=L,K[ce]^=L}function c(X,K){var Y,L,ae,ce=O(),ue=O();for(Y=0;Y<16;Y++)ue[Y]=K[Y];for(i(ue),i(ue),i(ue),L=0;L<2;L++){for(ce[0]=ue[0]-65517,Y=1;Y<15;Y++)ce[Y]=ue[Y]-65535-(ce[Y-1]>>16&1),ce[Y-1]&=65535;ce[15]=ue[15]-32767-(ce[14]>>16&1),ae=ce[15]>>16&1,ce[14]&=65535,f(ue,ce,1-ae)}for(Y=0;Y<16;Y++)X[2*Y]=255&ue[Y],X[2*Y+1]=ue[Y]>>8}function h(X,K){var Y=new Uint8Array(32),L=new Uint8Array(32);return c(Y,X),c(L,K),n(Y,0,L,0)}function p(X){var K=new Uint8Array(32);return c(K,X),1&K[0]}function m(X,K){var Y;for(Y=0;Y<16;Y++)X[Y]=K[2*Y]+(K[2*Y+1]<<8);X[15]&=32767}function M(X,K,Y){for(var L=0;L<16;L++)X[L]=K[L]+Y[L]}function l(X,K,Y){for(var L=0;L<16;L++)X[L]=K[L]-Y[L]}function N(X,K,Y){var L,ae,ce=0,ue=0,le=0,be=0,de=0,pe=0,_e=0,W=0,v=0,y=0,S=0,T=0,B=0,z=0,q=0,te=0,oe=0,V=0,Q=0,G=0,H=0,ie=0,se=0,fe=0,he=0,ve=0,me=0,ge=0,ye=0,Ee=0,Ae=0,Pe=Y[0],ke=Y[1],xe=Y[2],we=Y[3],Se=Y[4],Re=Y[5],Oe=Y[6],Me=Y[7],Te=Y[8],Ne=Y[9],Ce=Y[10],Be=Y[11],Ie=Y[12],je=Y[13],De=Y[14],Ue=Y[15];ce+=(L=K[0])*Pe,ue+=L*ke,le+=L*xe,be+=L*we,de+=L*Se,pe+=L*Re,_e+=L*Oe,W+=L*Me,v+=L*Te,y+=L*Ne,S+=L*Ce,T+=L*Be,B+=L*Ie,z+=L*je,q+=L*De,te+=L*Ue,ue+=(L=K[1])*Pe,le+=L*ke,be+=L*xe,de+=L*we,pe+=L*Se,_e+=L*Re,W+=L*Oe,v+=L*Me,y+=L*Te,S+=L*Ne,T+=L*Ce,B+=L*Be,z+=L*Ie,q+=L*je,te+=L*De,oe+=L*Ue,le+=(L=K[2])*Pe,be+=L*ke,de+=L*xe,pe+=L*we,_e+=L*Se,W+=L*Re,v+=L*Oe,y+=L*Me,S+=L*Te,T+=L*Ne,B+=L*Ce,z+=L*Be,q+=L*Ie,te+=L*je,oe+=L*De,V+=L*Ue,be+=(L=K[3])*Pe,de+=L*ke,pe+=L*xe,_e+=L*we,W+=L*Se,v+=L*Re,y+=L*Oe,S+=L*Me,T+=L*Te,B+=L*Ne,z+=L*Ce,q+=L*Be,te+=L*Ie,oe+=L*je,V+=L*De,Q+=L*Ue,de+=(L=K[4])*Pe,pe+=L*ke,_e+=L*xe,W+=L*we,v+=L*Se,y+=L*Re,S+=L*Oe,T+=L*Me,B+=L*Te,z+=L*Ne,q+=L*Ce,te+=L*Be,oe+=L*Ie,V+=L*je,Q+=L*De,G+=L*Ue,pe+=(L=K[5])*Pe,_e+=L*ke,W+=L*xe,v+=L*we,y+=L*Se,S+=L*Re,T+=L*Oe,B+=L*Me,z+=L*Te,q+=L*Ne,te+=L*Ce,oe+=L*Be,V+=L*Ie,Q+=L*je,G+=L*De,H+=L*Ue,_e+=(L=K[6])*Pe,W+=L*ke,v+=L*xe,y+=L*we,S+=L*Se,T+=L*Re,B+=L*Oe,z+=L*Me,q+=L*Te,te+=L*Ne,oe+=L*Ce,V+=L*Be,Q+=L*Ie,G+=L*je,H+=L*De,ie+=L*Ue,W+=(L=K[7])*Pe,v+=L*ke,y+=L*xe,S+=L*we,T+=L*Se,B+=L*Re,z+=L*Oe,q+=L*Me,te+=L*Te,oe+=L*Ne,V+=L*Ce,Q+=L*Be,G+=L*Ie,H+=L*je,ie+=L*De,se+=L*Ue,v+=(L=K[8])*Pe,y+=L*ke,S+=L*xe,T+=L*we,B+=L*Se,z+=L*Re,q+=L*Oe,te+=L*Me,oe+=L*Te,V+=L*Ne,Q+=L*Ce,G+=L*Be,H+=L*Ie,ie+=L*je,se+=L*De,fe+=L*Ue,y+=(L=K[9])*Pe,S+=L*ke,T+=L*xe,B+=L*we,z+=L*Se,q+=L*Re,te+=L*Oe,oe+=L*Me,V+=L*Te,Q+=L*Ne,G+=L*Ce,H+=L*Be,ie+=L*Ie,se+=L*je,fe+=L*De,he+=L*Ue,S+=(L=K[10])*Pe,T+=L*ke,B+=L*xe,z+=L*we,q+=L*Se,te+=L*Re,oe+=L*Oe,V+=L*Me,Q+=L*Te,G+=L*Ne,H+=L*Ce,ie+=L*Be,se+=L*Ie,fe+=L*je,he+=L*De,ve+=L*Ue,T+=(L=K[11])*Pe,B+=L*ke,z+=L*xe,q+=L*we,te+=L*Se,oe+=L*Re,V+=L*Oe,Q+=L*Me,G+=L*Te,H+=L*Ne,ie+=L*Ce,se+=L*Be,fe+=L*Ie,he+=L*je,ve+=L*De,me+=L*Ue,B+=(L=K[12])*Pe,z+=L*ke,q+=L*xe,te+=L*we,oe+=L*Se,V+=L*Re,Q+=L*Oe,G+=L*Me,H+=L*Te,ie+=L*Ne,se+=L*Ce,fe+=L*Be,he+=L*Ie,ve+=L*je,me+=L*De,ge+=L*Ue,z+=(L=K[13])*Pe,q+=L*ke,te+=L*xe,oe+=L*we,V+=L*Se,Q+=L*Re,G+=L*Oe,H+=L*Me,ie+=L*Te,se+=L*Ne,fe+=L*Ce,he+=L*Be,ve+=L*Ie,me+=L*je,ge+=L*De,ye+=L*Ue,q+=(L=K[14])*Pe,te+=L*ke,oe+=L*xe,V+=L*we,Q+=L*Se,G+=L*Re,H+=L*Oe,ie+=L*Me,se+=L*Te,fe+=L*Ne,he+=L*Ce,ve+=L*Be,me+=L*Ie,ge+=L*je,ye+=L*De,Ee+=L*Ue,te+=(L=K[15])*Pe,ue+=38*(V+=L*xe),le+=38*(Q+=L*we),be+=38*(G+=L*Se),de+=38*(H+=L*Re),pe+=38*(ie+=L*Oe),_e+=38*(se+=L*Me),W+=38*(fe+=L*Te),v+=38*(he+=L*Ne),y+=38*(ve+=L*Ce),S+=38*(me+=L*Be),T+=38*(ge+=L*Ie),B+=38*(ye+=L*je),z+=38*(Ee+=L*De),q+=38*(Ae+=L*Ue),ce=(L=(ce+=38*(oe+=L*ke))+(ae=1)+65535)-65536*(ae=Math.floor(L/65536)),ue=(L=ue+ae+65535)-65536*(ae=Math.floor(L/65536)),le=(L=le+ae+65535)-65536*(ae=Math.floor(L/65536)),be=(L=be+ae+65535)-65536*(ae=Math.floor(L/65536)),de=(L=de+ae+65535)-65536*(ae=Math.floor(L/65536)),pe=(L=pe+ae+65535)-65536*(ae=Math.floor(L/65536)),_e=(L=_e+ae+65535)-65536*(ae=Math.floor(L/65536)),W=(L=W+ae+65535)-65536*(ae=Math.floor(L/65536)),v=(L=v+ae+65535)-65536*(ae=Math.floor(L/65536)),y=(L=y+ae+65535)-65536*(ae=Math.floor(L/65536)),S=(L=S+ae+65535)-65536*(ae=Math.floor(L/65536)),T=(L=T+ae+65535)-65536*(ae=Math.floor(L/65536)),B=(L=B+ae+65535)-65536*(ae=Math.floor(L/65536)),z=(L=z+ae+65535)-65536*(ae=Math.floor(L/65536)),q=(L=q+ae+65535)-65536*(ae=Math.floor(L/65536)),te=(L=te+ae+65535)-65536*(ae=Math.floor(L/65536)),ce=(L=(ce+=ae-1+37*(ae-1))+(ae=1)+65535)-65536*(ae=Math.floor(L/65536)),ue=(L=ue+ae+65535)-65536*(ae=Math.floor(L/65536)),le=(L=le+ae+65535)-65536*(ae=Math.floor(L/65536)),be=(L=be+ae+65535)-65536*(ae=Math.floor(L/65536)),de=(L=de+ae+65535)-65536*(ae=Math.floor(L/65536)),pe=(L=pe+ae+65535)-65536*(ae=Math.floor(L/65536)),_e=(L=_e+ae+65535)-65536*(ae=Math.floor(L/65536)),W=(L=W+ae+65535)-65536*(ae=Math.floor(L/65536)),v=(L=v+ae+65535)-65536*(ae=Math.floor(L/65536)),y=(L=y+ae+65535)-65536*(ae=Math.floor(L/65536)),S=(L=S+ae+65535)-65536*(ae=Math.floor(L/65536)),T=(L=T+ae+65535)-65536*(ae=Math.floor(L/65536)),B=(L=B+ae+65535)-65536*(ae=Math.floor(L/65536)),z=(L=z+ae+65535)-65536*(ae=Math.floor(L/65536)),q=(L=q+ae+65535)-65536*(ae=Math.floor(L/65536)),te=(L=te+ae+65535)-65536*(ae=Math.floor(L/65536)),ce+=ae-1+37*(ae-1),X[0]=ce,X[1]=ue,X[2]=le,X[3]=be,X[4]=de,X[5]=pe,X[6]=_e,X[7]=W,X[8]=v,X[9]=y,X[10]=S,X[11]=T,X[12]=B,X[13]=z,X[14]=q,X[15]=te}function j(X,K){N(X,K,K)}function R(X,K){var Y,L=O();for(Y=0;Y<16;Y++)L[Y]=K[Y];for(Y=253;Y>=0;Y--)j(L,L),Y!==2&&Y!==4&&N(L,L,K);for(Y=0;Y<16;Y++)X[Y]=L[Y]}function I(X,K,Y){var L,ae,ce=new Uint8Array(32),ue=new Float64Array(80),le=O(),be=O(),de=O(),pe=O(),_e=O(),W=O();for(ae=0;ae<31;ae++)ce[ae]=K[ae];for(ce[31]=127&K[31]|64,ce[0]&=248,m(ue,Y),ae=0;ae<16;ae++)be[ae]=ue[ae],pe[ae]=le[ae]=de[ae]=0;for(le[0]=pe[0]=1,ae=254;ae>=0;--ae)f(le,be,L=ce[ae>>>3]>>>(7&ae)&1),f(de,pe,L),M(_e,le,de),l(le,le,de),M(de,be,pe),l(be,be,pe),j(pe,_e),j(W,le),N(le,de,le),N(de,be,_e),M(_e,le,de),l(le,le,de),j(be,le),l(de,pe,W),N(le,de,b),M(le,le,pe),N(de,de,le),N(le,pe,W),N(pe,be,ue),j(be,_e),f(le,be,L),f(de,pe,L);for(ae=0;ae<16;ae++)ue[ae+16]=le[ae],ue[ae+32]=de[ae],ue[ae+48]=be[ae],ue[ae+64]=pe[ae];var v=ue.subarray(32),y=ue.subarray(16);return R(v,v),N(y,y,v),c(X,y),0}var x=[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];function P(X,K,Y,L){for(var ae,ce,ue,le,be,de,pe,_e,W,v,y,S,T,B,z,q,te,oe,V,Q,G,H,ie,se,fe,he,ve=new Int32Array(16),me=new Int32Array(16),ge=X[0],ye=X[1],Ee=X[2],Ae=X[3],Pe=X[4],ke=X[5],xe=X[6],we=X[7],Se=K[0],Re=K[1],Oe=K[2],Me=K[3],Te=K[4],Ne=K[5],Ce=K[6],Be=K[7],Ie=0;L>=128;){for(V=0;V<16;V++)Q=8*V+Ie,ve[V]=Y[Q+0]<<24|Y[Q+1]<<16|Y[Q+2]<<8|Y[Q+3],me[V]=Y[Q+4]<<24|Y[Q+5]<<16|Y[Q+6]<<8|Y[Q+7];for(V=0;V<80;V++)if(ae=ge,ce=ye,ue=Ee,le=Ae,be=Pe,de=ke,pe=xe,W=Se,v=Re,y=Oe,S=Me,T=Te,B=Ne,z=Ce,ie=65535&(H=Be),se=H>>>16,fe=65535&(G=we),he=G>>>16,ie+=65535&(H=(Te>>>14|Pe<<18)^(Te>>>18|Pe<<14)^(Pe>>>9|Te<<23)),se+=H>>>16,fe+=65535&(G=(Pe>>>14|Te<<18)^(Pe>>>18|Te<<14)^(Te>>>9|Pe<<23)),he+=G>>>16,ie+=65535&(H=Te&Ne^~Te&Ce),se+=H>>>16,fe+=65535&(G=Pe&ke^~Pe&xe),he+=G>>>16,G=x[2*V],ie+=65535&(H=x[2*V+1]),se+=H>>>16,fe+=65535&G,he+=G>>>16,G=ve[V%16],se+=(H=me[V%16])>>>16,fe+=65535&G,he+=G>>>16,fe+=(se+=(ie+=65535&H)>>>16)>>>16,ie=65535&(H=oe=65535&ie|se<<16),se=H>>>16,fe=65535&(G=te=65535&fe|(he+=fe>>>16)<<16),he=G>>>16,ie+=65535&(H=(Se>>>28|ge<<4)^(ge>>>2|Se<<30)^(ge>>>7|Se<<25)),se+=H>>>16,fe+=65535&(G=(ge>>>28|Se<<4)^(Se>>>2|ge<<30)^(Se>>>7|ge<<25)),he+=G>>>16,se+=(H=Se&Re^Se&Oe^Re&Oe)>>>16,fe+=65535&(G=ge&ye^ge&Ee^ye&Ee),he+=G>>>16,_e=65535&(fe+=(se+=(ie+=65535&H)>>>16)>>>16)|(he+=fe>>>16)<<16,q=65535&ie|se<<16,ie=65535&(H=S),se=H>>>16,fe=65535&(G=le),he=G>>>16,se+=(H=oe)>>>16,fe+=65535&(G=te),he+=G>>>16,ye=ae,Ee=ce,Ae=ue,Pe=le=65535&(fe+=(se+=(ie+=65535&H)>>>16)>>>16)|(he+=fe>>>16)<<16,ke=be,xe=de,we=pe,ge=_e,Re=W,Oe=v,Me=y,Te=S=65535&ie|se<<16,Ne=T,Ce=B,Be=z,Se=q,V%16==15)for(Q=0;Q<16;Q++)G=ve[Q],ie=65535&(H=me[Q]),se=H>>>16,fe=65535&G,he=G>>>16,G=ve[(Q+9)%16],ie+=65535&(H=me[(Q+9)%16]),se+=H>>>16,fe+=65535&G,he+=G>>>16,te=ve[(Q+1)%16],ie+=65535&(H=((oe=me[(Q+1)%16])>>>1|te<<31)^(oe>>>8|te<<24)^(oe>>>7|te<<25)),se+=H>>>16,fe+=65535&(G=(te>>>1|oe<<31)^(te>>>8|oe<<24)^te>>>7),he+=G>>>16,te=ve[(Q+14)%16],se+=(H=((oe=me[(Q+14)%16])>>>19|te<<13)^(te>>>29|oe<<3)^(oe>>>6|te<<26))>>>16,fe+=65535&(G=(te>>>19|oe<<13)^(oe>>>29|te<<3)^te>>>6),he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,ve[Q]=65535&fe|he<<16,me[Q]=65535&ie|se<<16;ie=65535&(H=Se),se=H>>>16,fe=65535&(G=ge),he=G>>>16,G=X[0],se+=(H=K[0])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[0]=ge=65535&fe|he<<16,K[0]=Se=65535&ie|se<<16,ie=65535&(H=Re),se=H>>>16,fe=65535&(G=ye),he=G>>>16,G=X[1],se+=(H=K[1])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[1]=ye=65535&fe|he<<16,K[1]=Re=65535&ie|se<<16,ie=65535&(H=Oe),se=H>>>16,fe=65535&(G=Ee),he=G>>>16,G=X[2],se+=(H=K[2])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[2]=Ee=65535&fe|he<<16,K[2]=Oe=65535&ie|se<<16,ie=65535&(H=Me),se=H>>>16,fe=65535&(G=Ae),he=G>>>16,G=X[3],se+=(H=K[3])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[3]=Ae=65535&fe|he<<16,K[3]=Me=65535&ie|se<<16,ie=65535&(H=Te),se=H>>>16,fe=65535&(G=Pe),he=G>>>16,G=X[4],se+=(H=K[4])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[4]=Pe=65535&fe|he<<16,K[4]=Te=65535&ie|se<<16,ie=65535&(H=Ne),se=H>>>16,fe=65535&(G=ke),he=G>>>16,G=X[5],se+=(H=K[5])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[5]=ke=65535&fe|he<<16,K[5]=Ne=65535&ie|se<<16,ie=65535&(H=Ce),se=H>>>16,fe=65535&(G=xe),he=G>>>16,G=X[6],se+=(H=K[6])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[6]=xe=65535&fe|he<<16,K[6]=Ce=65535&ie|se<<16,ie=65535&(H=Be),se=H>>>16,fe=65535&(G=we),he=G>>>16,G=X[7],se+=(H=K[7])>>>16,fe+=65535&G,he+=G>>>16,he+=(fe+=(se+=(ie+=65535&H)>>>16)>>>16)>>>16,X[7]=we=65535&fe|he<<16,K[7]=Be=65535&ie|se<<16,Ie+=128,L-=128}return L}function w(X,K,Y){var L,ae=new Int32Array(8),ce=new Int32Array(8),ue=new Uint8Array(256),le=Y;for(ae[0]=1779033703,ae[1]=3144134277,ae[2]=1013904242,ae[3]=2773480762,ae[4]=1359893119,ae[5]=2600822924,ae[6]=528734635,ae[7]=1541459225,ce[0]=4089235720,ce[1]=2227873595,ce[2]=4271175723,ce[3]=1595750129,ce[4]=2917565137,ce[5]=725511199,ce[6]=4215389547,ce[7]=327033209,P(ae,ce,K,Y),Y%=128,L=0;L=0;--ae)E(X,K,L=Y[ae/8|0]>>(7&ae)&1),g(K,X),g(X,X),E(X,K,L)}function F(X,K){var Y=[O(),O(),O(),O()];o(Y[0],u),o(Y[1],d),o(Y[2],k),N(Y[3],u,d),C(X,Y,K)}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ee(X,K){var Y,L,ae,ce;for(L=63;L>=32;--L){for(Y=0,ae=L-32,ce=L-12;ae>8,K[ae]-=256*Y;K[ae]+=Y,K[L]=0}for(Y=0,ae=0;ae<32;ae++)K[ae]+=Y-(K[31]>>4)*re[ae],Y=K[ae]>>8,K[ae]&=255;for(ae=0;ae<32;ae++)K[ae]-=Y*re[ae];for(L=0;L<32;L++)K[L+1]+=K[L]>>8,X[L]=255&K[L]}function ne(X){var K,Y=new Float64Array(64);for(K=0;K<64;K++)Y[K]=X[K];for(K=0;K<64;K++)X[K]=0;ee(X,Y)}function D(X,K,Y,L,ae){for(var ce=new Uint8Array(64),ue=[O(),O(),O(),O()],le=0;le<32;le++)ce[le]=L[le];ce[0]&=248,ce[31]&=127,ce[31]|=64,F(ue,ce),U(ce.subarray(32),ue);var be,de=128&ce[63];return be=ae?function(pe,_e,W,v,y){var S,T,B=new Uint8Array(64),z=new Uint8Array(64),q=new Float64Array(64),te=[O(),O(),O(),O()];for(pe[0]=254,S=1;S<32;S++)pe[S]=255;for(S=0;S<32;S++)pe[32+S]=v[S];for(S=0;S=0;H--)j(ie,ie),H!==1&&N(ie,ie,G);for(H=0;H<16;H++)Q[H]=ie[H]}(T,T),N(T,T,z),N(T,T,q),N(T,T,q),N(y[0],T,q),j(B,y[0]),N(B,B,q),h(B,z)&&N(y[0],y[0],s),j(B,y[0]),N(B,B,q),h(B,z)?-1:(p(y[0])===S[31]>>7&&l(y[0],A,y[0]),N(y[3],y[0],y[1]),0)}(v,be))return-1;for(de=0;de=0},e.generateKeyPair=function(X){if($(X),X.length!==32)throw new Error("wrong seed length");for(var K=new Uint8Array(32),Y=new Uint8Array(32),L=0;L<32;L++)K[L]=X[L];return I(Y,K,_),K[0]&=248,K[31]&=127,K[31]|=64,Y[31]&=127,{public:Y,private:K}},e.default={}},4289:(J,e,_)=>{var O=_(2215),A=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",k=Object.prototype.toString,b=Array.prototype.concat,a=Object.defineProperty,t=_(1044)(),u=a&&t,d=function(r,n,o,i){if(n in r){if(i===!0){if(r[n]===o)return}else if(typeof(f=i)!="function"||k.call(f)!=="[object Function]"||!i())return}var f;u?a(r,n,{configurable:!0,enumerable:!1,value:o,writable:!0}):r[n]=o},s=function(r,n){var o=arguments.length>2?arguments[2]:{},i=O(n);A&&(i=b.call(i,Object.getOwnPropertySymbols(n)));for(var f=0;f{var O=e;O.version=_(8597).i8,O.utils=_(953),O.rand=_(9931),O.curve=_(8254),O.curves=_(5427),O.ec=_(7954),O.eddsa=_(5980)},4918:(J,e,_)=>{var O=_(3550),A=_(953),k=A.getNAF,b=A.getJSF,a=A.assert;function t(d,s){this.type=d,this.p=new O(s.p,16),this.red=s.prime?O.red(s.prime):O.mont(this.p),this.zero=new O(0).toRed(this.red),this.one=new O(1).toRed(this.red),this.two=new O(2).toRed(this.red),this.n=s.n&&new O(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(d,s){this.curve=d,this.type=s,this.precomputed=null}J.exports=t,t.prototype.point=function(){throw new Error("Not implemented")},t.prototype.validate=function(){throw new Error("Not implemented")},t.prototype._fixedNafMul=function(d,s){a(d.precomputed);var r=d._getDoubles(),n=k(s,1,this._bitLength),o=(1<=i;h--)f=(f<<1)+n[h];c.push(f)}for(var p=this.jpoint(null,null,null),m=this.jpoint(null,null,null),M=o;M>0;M--){for(i=0;i=0;c--){for(var h=0;c>=0&&i[c]===0;c--)h++;if(c>=0&&h++,f=f.dblp(h),c<0)break;var p=i[c];a(p!==0),f=d.type==="affine"?p>0?f.mixedAdd(o[p-1>>1]):f.mixedAdd(o[-p-1>>1].neg()):p>0?f.add(o[p-1>>1]):f.add(o[-p-1>>1].neg())}return d.type==="affine"?f.toP():f},t.prototype._wnafMulAdd=function(d,s,r,n,o){var i,f,c,h=this._wnafT1,p=this._wnafT2,m=this._wnafT3,M=0;for(i=0;i=1;i-=2){var N=i-1,j=i;if(h[N]===1&&h[j]===1){var R=[s[N],null,null,s[j]];s[N].y.cmp(s[j].y)===0?(R[1]=s[N].add(s[j]),R[2]=s[N].toJ().mixedAdd(s[j].neg())):s[N].y.cmp(s[j].y.redNeg())===0?(R[1]=s[N].toJ().mixedAdd(s[j]),R[2]=s[N].add(s[j].neg())):(R[1]=s[N].toJ().mixedAdd(s[j]),R[2]=s[N].toJ().mixedAdd(s[j].neg()));var I=[-3,-1,-5,-7,0,7,5,1,3],x=b(r[N],r[j]);for(M=Math.max(x[0].length,M),m[N]=new Array(M),m[j]=new Array(M),f=0;f=0;i--){for(var U=0;i>=0;){var C=!0;for(f=0;f=0&&U++,g=g.dblp(U),i<0)break;for(f=0;f0?c=p[f][F-1>>1]:F<0&&(c=p[f][-F-1>>1].neg()),g=c.type==="affine"?g.mixedAdd(c):g.add(c))}}for(i=0;i=Math.ceil((d.bitLength()+1)/s.step)},u.prototype._getDoubles=function(d,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o{var O=_(953),A=_(3550),k=_(5717),b=_(4918),a=O.assert;function t(d){this.twisted=(0|d.a)!=1,this.mOneA=this.twisted&&(0|d.a)==-1,this.extended=this.mOneA,b.call(this,"edwards",d),this.a=new A(d.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new A(d.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new A(d.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|d.c)==1}function u(d,s,r,n,o){b.BasePoint.call(this,d,"projective"),s===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new A(s,16),this.y=new A(r,16),this.z=n?new A(n,16):this.curve.one,this.t=o&&new A(o,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()))))}k(t,b),J.exports=t,t.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},t.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},t.prototype.jpoint=function(d,s,r,n){return this.point(d,s,r,n)},t.prototype.pointFromX=function(d,s){(d=new A(d,16)).red||(d=d.toRed(this.red));var r=d.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),i=n.redMul(o.redInvm()),f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var c=f.fromRed().isOdd();return(s&&!c||!s&&c)&&(f=f.redNeg()),this.point(d,f)},t.prototype.pointFromY=function(d,s){(d=new A(d,16)).red||(d=d.toRed(this.red));var r=d.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),i=n.redMul(o.redInvm());if(i.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,d)}var f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");return f.fromRed().isOdd()!==s&&(f=f.redNeg()),this.point(f,d)},t.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var s=d.x.redSqr(),r=d.y.redSqr(),n=s.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(r)));return n.cmp(o)===0},k(u,b.BasePoint),t.prototype.pointFromJSON=function(d){return u.fromJSON(this,d)},t.prototype.point=function(d,s,r,n){return new u(this,d,s,r,n)},u.fromJSON=function(d,s){return new u(d,s[0],s[1],s[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},u.prototype._extDbl=function(){var d=this.x.redSqr(),s=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(d),o=this.x.redAdd(this.y).redSqr().redISub(d).redISub(s),i=n.redAdd(s),f=i.redSub(r),c=n.redSub(s),h=o.redMul(f),p=i.redMul(c),m=o.redMul(c),M=f.redMul(i);return this.curve.point(h,p,M,m)},u.prototype._projDbl=function(){var d,s,r,n,o,i,f=this.x.redAdd(this.y).redSqr(),c=this.x.redSqr(),h=this.y.redSqr();if(this.curve.twisted){var p=(n=this.curve._mulA(c)).redAdd(h);this.zOne?(d=f.redSub(c).redSub(h).redMul(p.redSub(this.curve.two)),s=p.redMul(n.redSub(h)),r=p.redSqr().redSub(p).redSub(p)):(o=this.z.redSqr(),i=p.redSub(o).redISub(o),d=f.redSub(c).redISub(h).redMul(i),s=p.redMul(n.redSub(h)),r=p.redMul(i))}else n=c.redAdd(h),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),d=this.curve._mulC(f.redISub(n)).redMul(i),s=this.curve._mulC(n).redMul(c.redISub(h)),r=n.redMul(i);return this.curve.point(d,s,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(d){var s=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),r=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),n=this.t.redMul(this.curve.dd).redMul(d.t),o=this.z.redMul(d.z.redAdd(d.z)),i=r.redSub(s),f=o.redSub(n),c=o.redAdd(n),h=r.redAdd(s),p=i.redMul(f),m=c.redMul(h),M=i.redMul(h),l=f.redMul(c);return this.curve.point(p,m,l,M)},u.prototype._projAdd=function(d){var s,r,n=this.z.redMul(d.z),o=n.redSqr(),i=this.x.redMul(d.x),f=this.y.redMul(d.y),c=this.curve.d.redMul(i).redMul(f),h=o.redSub(c),p=o.redAdd(c),m=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(i).redISub(f),M=n.redMul(h).redMul(m);return this.curve.twisted?(s=n.redMul(p).redMul(f.redSub(this.curve._mulA(i))),r=h.redMul(p)):(s=n.redMul(p).redMul(f.redSub(i)),r=this.curve._mulC(h).redMul(p)),this.curve.point(M,s,r)},u.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},u.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},u.prototype.mulAdd=function(d,s,r){return this.curve._wnafMulAdd(1,[this,s],[d,r],2,!1)},u.prototype.jmulAdd=function(d,s,r){return this.curve._wnafMulAdd(1,[this,s],[d,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},u.prototype.eqXToP=function(d){var s=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var r=d.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(n),this.x.cmp(s)===0)return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},8254:(J,e,_)=>{var O=e;O.base=_(4918),O.short=_(6673),O.mont=_(2881),O.edwards=_(1138)},2881:(J,e,_)=>{var O=_(3550),A=_(5717),k=_(4918),b=_(953);function a(u){k.call(this,"mont",u),this.a=new O(u.a,16).toRed(this.red),this.b=new O(u.b,16).toRed(this.red),this.i4=new O(4).toRed(this.red).redInvm(),this.two=new O(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function t(u,d,s){k.BasePoint.call(this,u,"projective"),d===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new O(d,16),this.z=new O(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}A(a,k),J.exports=a,a.prototype.validate=function(u){var d=u.normalize().x,s=d.redSqr(),r=s.redMul(d).redAdd(s.redMul(this.a)).redAdd(d);return r.redSqrt().redSqr().cmp(r)===0},A(t,k.BasePoint),a.prototype.decodePoint=function(u,d){return this.point(b.toArray(u,d),1)},a.prototype.point=function(u,d){return new t(this,u,d)},a.prototype.pointFromJSON=function(u){return t.fromJSON(this,u)},t.prototype.precompute=function(){},t.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},t.fromJSON=function(u,d){return new t(u,d[0],d[1]||u.one)},t.prototype.inspect=function(){return this.isInfinity()?"":""},t.prototype.isInfinity=function(){return this.z.cmpn(0)===0},t.prototype.dbl=function(){var u=this.x.redAdd(this.z).redSqr(),d=this.x.redSub(this.z).redSqr(),s=u.redSub(d),r=u.redMul(d),n=s.redMul(d.redAdd(this.curve.a24.redMul(s)));return this.curve.point(r,n)},t.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.diffAdd=function(u,d){var s=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=u.x.redAdd(u.z),o=u.x.redSub(u.z).redMul(s),i=n.redMul(r),f=d.z.redMul(o.redAdd(i).redSqr()),c=d.x.redMul(o.redISub(i).redSqr());return this.curve.point(f,c)},t.prototype.mul=function(u){for(var d=u.clone(),s=this,r=this.curve.point(null,null),n=[];d.cmpn(0)!==0;d.iushrn(1))n.push(d.andln(1));for(var o=n.length-1;o>=0;o--)n[o]===0?(s=s.diffAdd(r,this),r=r.dbl()):(r=s.diffAdd(r,this),s=s.dbl());return r},t.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},t.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},t.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(J,e,_)=>{var O=_(953),A=_(3550),k=_(5717),b=_(4918),a=O.assert;function t(s){b.call(this,"short",s),this.a=new A(s.a,16).toRed(this.red),this.b=new A(s.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(s,r,n,o){b.BasePoint.call(this,s,"affine"),r===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new A(r,16),this.y=new A(n,16),o&&(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=!1)}function d(s,r,n,o){b.BasePoint.call(this,s,"jacobian"),r===null&&n===null&&o===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new A(0)):(this.x=new A(r,16),this.y=new A(n,16),this.z=new A(o,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}k(t,b),J.exports=t,t.prototype._getEndomorphism=function(s){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var r,n;if(s.beta)r=new A(s.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);r=(r=o[0].cmp(o[1])<0?o[0]:o[1]).toRed(this.red)}if(s.lambda)n=new A(s.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))===0?n=i[0]:(n=i[1],a(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}return{beta:r,lambda:n,basis:s.basis?s.basis.map(function(f){return{a:new A(f.a,16),b:new A(f.b,16)}}):this._getEndoBasis(n)}}},t.prototype._getEndoRoots=function(s){var r=s===this.p?this.red:A.mont(s),n=new A(2).toRed(r).redInvm(),o=n.redNeg(),i=new A(3).toRed(r).redNeg().redSqrt().redMul(n);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},t.prototype._getEndoBasis=function(s){for(var r,n,o,i,f,c,h,p,m,M=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=s,N=this.n.clone(),j=new A(1),R=new A(0),I=new A(0),x=new A(1),P=0;l.cmpn(0)!==0;){var w=N.div(l);p=N.sub(w.mul(l)),m=I.sub(w.mul(j));var g=x.sub(w.mul(R));if(!o&&p.cmp(M)<0)r=h.neg(),n=j,o=p.neg(),i=m;else if(o&&++P==2)break;h=p,N=l,l=p,I=j,j=m,x=R,R=g}f=p.neg(),c=m;var E=o.sqr().add(i.sqr());return f.sqr().add(c.sqr()).cmp(E)>=0&&(f=r,c=n),o.negative&&(o=o.neg(),i=i.neg()),f.negative&&(f=f.neg(),c=c.neg()),[{a:o,b:i},{a:f,b:c}]},t.prototype._endoSplit=function(s){var r=this.endo.basis,n=r[0],o=r[1],i=o.b.mul(s).divRound(this.n),f=n.b.neg().mul(s).divRound(this.n),c=i.mul(n.a),h=f.mul(o.a),p=i.mul(n.b),m=f.mul(o.b);return{k1:s.sub(c).sub(h),k2:p.add(m).neg()}},t.prototype.pointFromX=function(s,r){(s=new A(s,16)).red||(s=s.toRed(this.red));var n=s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b),o=n.redSqrt();if(o.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=o.fromRed().isOdd();return(r&&!i||!r&&i)&&(o=o.redNeg()),this.point(s,o)},t.prototype.validate=function(s){if(s.inf)return!0;var r=s.x,n=s.y,o=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(o).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0},t.prototype._endoWnafMulAdd=function(s,r,n){for(var o=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(s){if(this.inf)return s;if(s.inf)return this;if(this.eq(s))return this.dbl();if(this.neg().eq(s))return this.curve.point(null,null);if(this.x.cmp(s.x)===0)return this.curve.point(null,null);var r=this.y.redSub(s.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(s.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(s.x),o=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,o)},u.prototype.dbl=function(){if(this.inf)return this;var s=this.y.redAdd(this.y);if(s.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),o=s.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(o),f=i.redSqr().redISub(this.x.redAdd(this.x)),c=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,c)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(s){return s=new A(s,16),this.isInfinity()?this:this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve.endo?this.curve._endoWnafMulAdd([this],[s]):this.curve._wnafMul(this,s)},u.prototype.mulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i):this.curve._wnafMulAdd(1,o,i,2)},u.prototype.jmulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i,!0):this.curve._wnafMulAdd(1,o,i,2,!0)},u.prototype.eq=function(s){return this===s||this.inf===s.inf&&(this.inf||this.x.cmp(s.x)===0&&this.y.cmp(s.y)===0)},u.prototype.neg=function(s){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(s&&this.precomputed){var n=this.precomputed,o=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(o)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(o)}}}return r},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},k(d,b.BasePoint),t.prototype.jpoint=function(s,r,n){return new d(this,s,r,n)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var s=this.z.redInvm(),r=s.redSqr(),n=this.x.redMul(r),o=this.y.redMul(r).redMul(s);return this.curve.point(n,o)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(s){if(this.isInfinity())return s;if(s.isInfinity())return this;var r=s.z.redSqr(),n=this.z.redSqr(),o=this.x.redMul(r),i=s.x.redMul(n),f=this.y.redMul(r.redMul(s.z)),c=s.y.redMul(n.redMul(this.z)),h=o.redSub(i),p=f.redSub(c);if(h.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=h.redSqr(),M=m.redMul(h),l=o.redMul(m),N=p.redSqr().redIAdd(M).redISub(l).redISub(l),j=p.redMul(l.redISub(N)).redISub(f.redMul(M)),R=this.z.redMul(s.z).redMul(h);return this.curve.jpoint(N,j,R)},d.prototype.mixedAdd=function(s){if(this.isInfinity())return s.toJ();if(s.isInfinity())return this;var r=this.z.redSqr(),n=this.x,o=s.x.redMul(r),i=this.y,f=s.y.redMul(r).redMul(this.z),c=n.redSub(o),h=i.redSub(f);if(c.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=c.redSqr(),m=p.redMul(c),M=n.redMul(p),l=h.redSqr().redIAdd(m).redISub(M).redISub(M),N=h.redMul(M.redISub(l)).redISub(i.redMul(m)),j=this.z.redMul(c);return this.curve.jpoint(l,N,j)},d.prototype.dblp=function(s){if(s===0)return this;if(this.isInfinity())return this;if(!s)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(J,e,_)=>{var O,A=e,k=_(3715),b=_(8254),a=_(953).assert;function t(d){d.type==="short"?this.curve=new b.short(d):d.type==="edwards"?this.curve=new b.edwards(d):this.curve=new b.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(d,s){Object.defineProperty(A,d,{configurable:!0,enumerable:!0,get:function(){var r=new t(s);return Object.defineProperty(A,d,{configurable:!0,enumerable:!0,value:r}),r}})}A.PresetCurve=t,u("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:k.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("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:k.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("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:k.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("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:k.sha384,gRed:!1,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"]}),u("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:k.sha512,gRed:!1,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"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:k.sha256,gRed:!1,g:["9"]}),u("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:k.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{O=_(1037)}catch{O=void 0}u("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:k.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",O]})},7954:(J,e,_)=>{var O=_(3550),A=_(2156),k=_(953),b=_(5427),a=_(9931),t=k.assert,u=_(1251),d=_(611);function s(r){if(!(this instanceof s))return new s(r);typeof r=="string"&&(t(Object.prototype.hasOwnProperty.call(b,r),"Unknown curve "+r),r=b[r]),r instanceof b.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}J.exports=s,s.prototype.keyPair=function(r){return new u(this,r)},s.prototype.keyFromPrivate=function(r,n){return u.fromPrivate(this,r,n)},s.prototype.keyFromPublic=function(r,n){return u.fromPublic(this,r,n)},s.prototype.genKeyPair=function(r){r||(r={});for(var n=new A({hash:this.hash,pers:r.pers,persEnc:r.persEnc||"utf8",entropy:r.entropy||a(this.hash.hmacStrength),entropyEnc:r.entropy&&r.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),i=this.n.sub(new O(2));;){var f=new O(n.generate(o));if(!(f.cmp(i)>0))return f.iaddn(1),this.keyFromPrivate(f)}},s.prototype._truncateToN=function(r,n){var o=8*r.byteLength()-this.n.bitLength();return o>0&&(r=r.ushrn(o)),!n&&r.cmp(this.n)>=0?r.sub(this.n):r},s.prototype.sign=function(r,n,o,i){typeof o=="object"&&(i=o,o=null),i||(i={}),n=this.keyFromPrivate(n,o),r=this._truncateToN(new O(r,16));for(var f=this.n.byteLength(),c=n.getPrivate().toArray("be",f),h=r.toArray("be",f),p=new A({hash:this.hash,entropy:c,nonce:h,pers:i.pers,persEnc:i.persEnc||"utf8"}),m=this.n.sub(new O(1)),M=0;;M++){var l=i.k?i.k(M):new O(p.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(m)>=0)){var N=this.g.mul(l);if(!N.isInfinity()){var j=N.getX(),R=j.umod(this.n);if(R.cmpn(0)!==0){var I=l.invm(this.n).mul(R.mul(n.getPrivate()).iadd(r));if((I=I.umod(this.n)).cmpn(0)!==0){var x=(N.getY().isOdd()?1:0)|(j.cmp(R)!==0?2:0);return i.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),x^=1),new d({r:R,s:I,recoveryParam:x})}}}}}},s.prototype.verify=function(r,n,o,i){r=this._truncateToN(new O(r,16)),o=this.keyFromPublic(o,i);var f=(n=new d(n,"hex")).r,c=n.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0||c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;var h,p=c.invm(this.n),m=p.mul(r).umod(this.n),M=p.mul(f).umod(this.n);return this.curve._maxwellTrick?!(h=this.g.jmulAdd(m,o.getPublic(),M)).isInfinity()&&h.eqXToP(f):!(h=this.g.mulAdd(m,o.getPublic(),M)).isInfinity()&&h.getX().umod(this.n).cmp(f)===0},s.prototype.recoverPubKey=function(r,n,o,i){t((3&o)===o,"The recovery param is more than two bits"),n=new d(n,i);var f=this.n,c=new O(r),h=n.r,p=n.s,m=1&o,M=o>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&M)throw new Error("Unable to find sencond key candinate");h=M?this.curve.pointFromX(h.add(this.curve.n),m):this.curve.pointFromX(h,m);var l=n.r.invm(f),N=f.sub(c).mul(l).umod(f),j=p.mul(l).umod(f);return this.g.mulAdd(N,h,j)},s.prototype.getKeyRecoveryParam=function(r,n,o,i){if((n=new d(n,i)).recoveryParam!==null)return n.recoveryParam;for(var f=0;f<4;f++){var c;try{c=this.recoverPubKey(r,n,f)}catch{continue}if(c.eq(o))return f}throw new Error("Unable to find valid recovery factor")}},1251:(J,e,_)=>{var O=_(3550),A=_(953).assert;function k(b,a){this.ec=b,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}J.exports=k,k.fromPublic=function(b,a,t){return a instanceof k?a:new k(b,{pub:a,pubEnc:t})},k.fromPrivate=function(b,a,t){return a instanceof k?a:new k(b,{priv:a,privEnc:t})},k.prototype.validate=function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},k.prototype.getPublic=function(b,a){return typeof b=="string"&&(a=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,b):this.pub},k.prototype.getPrivate=function(b){return b==="hex"?this.priv.toString(16,2):this.priv},k.prototype._importPrivate=function(b,a){this.priv=new O(b,a||16),this.priv=this.priv.umod(this.ec.curve.n)},k.prototype._importPublic=function(b,a){if(b.x||b.y)return this.ec.curve.type==="mont"?A(b.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||A(b.x&&b.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(b.x,b.y));this.pub=this.ec.curve.decodePoint(b,a)},k.prototype.derive=function(b){return b.validate()||A(b.validate(),"public point not validated"),b.mul(this.priv).getX()},k.prototype.sign=function(b,a,t){return this.ec.sign(b,this,a,t)},k.prototype.verify=function(b,a){return this.ec.verify(b,a,this)},k.prototype.inspect=function(){return""}},611:(J,e,_)=>{var O=_(3550),A=_(953),k=A.assert;function b(s,r){if(s instanceof b)return s;this._importDER(s,r)||(k(s.r&&s.s,"Signature without r or s"),this.r=new O(s.r,16),this.s=new O(s.s,16),s.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=s.recoveryParam)}function a(){this.place=0}function t(s,r){var n=s[r.place++];if(!(128&n))return n;var o=15&n;if(o===0||o>4)return!1;for(var i=0,f=0,c=r.place;f>>=0;return!(i<=127)&&(r.place=c,i)}function u(s){for(var r=0,n=s.length-1;!s[r]&&!(128&s[r+1])&&r>>3);for(s.push(128|n);--n;)s.push(r>>>(n<<3)&255);s.push(r)}}J.exports=b,b.prototype._importDER=function(s,r){s=A.toArray(s,r);var n=new a;if(s[n.place++]!==48)return!1;var o=t(s,n);if(o===!1||o+n.place!==s.length||s[n.place++]!==2)return!1;var i=t(s,n);if(i===!1)return!1;var f=s.slice(n.place,i+n.place);if(n.place+=i,s[n.place++]!==2)return!1;var c=t(s,n);if(c===!1||s.length!==c+n.place)return!1;var h=s.slice(n.place,c+n.place);if(f[0]===0){if(!(128&f[1]))return!1;f=f.slice(1)}if(h[0]===0){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new O(f),this.s=new O(h),this.recoveryParam=null,!0},b.prototype.toDER=function(s){var r=this.r.toArray(),n=this.s.toArray();for(128&r[0]&&(r=[0].concat(r)),128&n[0]&&(n=[0].concat(n)),r=u(r),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var o=[2];d(o,r.length),(o=o.concat(r)).push(2),d(o,n.length);var i=o.concat(n),f=[48];return d(f,i.length),f=f.concat(i),A.encode(f,s)}},5980:(J,e,_)=>{var O=_(3715),A=_(5427),k=_(953),b=k.assert,a=k.parseBytes,t=_(9087),u=_(3622);function d(s){if(b(s==="ed25519","only tested with ed25519 so far"),!(this instanceof d))return new d(s);s=A[s].curve,this.curve=s,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=O.sha512}J.exports=d,d.prototype.sign=function(s,r){s=a(s);var n=this.keyFromSecret(r),o=this.hashInt(n.messagePrefix(),s),i=this.g.mul(o),f=this.encodePoint(i),c=this.hashInt(f,n.pubBytes(),s).mul(n.priv()),h=o.add(c).umod(this.curve.n);return this.makeSignature({R:i,S:h,Rencoded:f})},d.prototype.verify=function(s,r,n){s=a(s),r=this.makeSignature(r);var o=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),o.pubBytes(),s),f=this.g.mul(r.S());return r.R().add(o.pub().mul(i)).eq(f)},d.prototype.hashInt=function(){for(var s=this.hash(),r=0;r{var O=_(953),A=O.assert,k=O.parseBytes,b=O.cachedProperty;function a(t,u){this.eddsa=t,this._secret=k(u.secret),t.isPoint(u.pub)?this._pub=u.pub:this._pubBytes=k(u.pub)}a.fromPublic=function(t,u){return u instanceof a?u:new a(t,{pub:u})},a.fromSecret=function(t,u){return u instanceof a?u:new a(t,{secret:u})},a.prototype.secret=function(){return this._secret},b(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),b(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),b(a,"privBytes",function(){var t=this.eddsa,u=this.hash(),d=t.encodingLength-1,s=u.slice(0,t.encodingLength);return s[0]&=248,s[d]&=127,s[d]|=64,s}),b(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),b(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),b(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return A(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,u){return this.eddsa.verify(t,u,this)},a.prototype.getSecret=function(t){return A(this._secret,"KeyPair is public only"),O.encode(this.secret(),t)},a.prototype.getPublic=function(t){return O.encode(this.pubBytes(),t)},J.exports=a},3622:(J,e,_)=>{var O=_(3550),A=_(953),k=A.assert,b=A.cachedProperty,a=A.parseBytes;function t(u,d){this.eddsa=u,typeof d!="object"&&(d=a(d)),Array.isArray(d)&&(d={R:d.slice(0,u.encodingLength),S:d.slice(u.encodingLength)}),k(d.R&&d.S,"Signature without R or S"),u.isPoint(d.R)&&(this._R=d.R),d.S instanceof O&&(this._S=d.S),this._Rencoded=Array.isArray(d.R)?d.R:d.Rencoded,this._Sencoded=Array.isArray(d.S)?d.S:d.Sencoded}b(t,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),b(t,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),b(t,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),b(t,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),t.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},t.prototype.toHex=function(){return A.encode(this.toBytes(),"hex").toUpperCase()},J.exports=t},1037:J=>{J.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"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","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"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","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"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","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"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","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","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["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"]]}}},953:(J,e,_)=>{var O=e,A=_(3550),k=_(9746),b=_(4504);O.assert=k,O.toArray=b.toArray,O.zero2=b.zero2,O.toHex=b.toHex,O.encode=b.encode,O.getNAF=function(a,t,u){var d=new Array(Math.max(a.bitLength(),u)+1);d.fill(0);for(var s=1<(s>>1)-1?(s>>1)-i:i,r.isubn(o)):o=0,d[n]=o,r.iushrn(1)}return d},O.getJSF=function(a,t){var u=[[],[]];a=a.clone(),t=t.clone();for(var d,s=0,r=0;a.cmpn(-s)>0||t.cmpn(-r)>0;){var n,o,i=a.andln(3)+s&3,f=t.andln(3)+r&3;i===3&&(i=-1),f===3&&(f=-1),n=1&i?(d=a.andln(7)+s&7)!=3&&d!==5||f!==2?i:-i:0,u[0].push(n),o=1&f?(d=t.andln(7)+r&7)!=3&&d!==5||i!==2?f:-f:0,u[1].push(o),2*s===n+1&&(s=1-s),2*r===o+1&&(r=1-r),a.iushrn(1),t.iushrn(1)}return u},O.cachedProperty=function(a,t,u){var d="_"+t;a.prototype[t]=function(){return this[d]!==void 0?this[d]:this[d]=u.call(this)}},O.parseBytes=function(a){return typeof a=="string"?O.toArray(a,"hex"):a},O.intFromLE=function(a){return new A(a,"hex","le")}},8091:J=>{function e(_,O){if(_==null)throw new TypeError("Cannot convert first argument to object");for(var A=Object(_),k=1;k{var O,A=_(5108),k=typeof Reflect=="object"?Reflect:null,b=k&&typeof k.apply=="function"?k.apply:function(p,m,M){return Function.prototype.apply.call(p,m,M)};O=k&&typeof k.ownKeys=="function"?k.ownKeys:Object.getOwnPropertySymbols?function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:function(p){return Object.getOwnPropertyNames(p)};var a=Number.isNaN||function(p){return p!=p};function t(){t.init.call(this)}J.exports=t,J.exports.once=function(p,m){return new Promise(function(M,l){function N(R){p.removeListener(m,j),l(R)}function j(){typeof p.removeListener=="function"&&p.removeListener("error",N),M([].slice.call(arguments))}h(p,m,j,{once:!0}),m!=="error"&&function(R,I,x){typeof R.on=="function"&&h(R,"error",I,{once:!0})}(p,N)})},t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var u=10;function d(p){if(typeof p!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof p)}function s(p){return p._maxListeners===void 0?t.defaultMaxListeners:p._maxListeners}function r(p,m,M,l){var N,j,R,I;if(d(M),(j=p._events)===void 0?(j=p._events=Object.create(null),p._eventsCount=0):(j.newListener!==void 0&&(p.emit("newListener",m,M.listener?M.listener:M),j=p._events),R=j[m]),R===void 0)R=j[m]=M,++p._eventsCount;else if(typeof R=="function"?R=j[m]=l?[M,R]:[R,M]:l?R.unshift(M):R.push(M),(N=s(p))>0&&R.length>N&&!R.warned){R.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=p,x.type=m,x.count=R.length,I=x,A&&A.warn&&A.warn(I)}return p}function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(p,m,M){var l={fired:!1,wrapFn:void 0,target:p,type:m,listener:M},N=n.bind(l);return N.listener=M,l.wrapFn=N,N}function i(p,m,M){var l=p._events;if(l===void 0)return[];var N=l[m];return N===void 0?[]:typeof N=="function"?M?[N.listener||N]:[N]:M?function(j){for(var R=new Array(j.length),I=0;I0&&(j=m[0]),j instanceof Error)throw j;var R=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw R.context=j,R}var I=N[p];if(I===void 0)return!1;if(typeof I=="function")b(I,this,m);else{var x=I.length,P=c(I,x);for(M=0;M=0;j--)if(M[j]===m||M[j].listener===m){R=M[j].listener,N=j;break}if(N<0)return this;N===0?M.shift():function(I,x){for(;x+1=0;l--)this.removeListener(p,m[l]);return this},t.prototype.listeners=function(p){return i(this,p,!0)},t.prototype.rawListeners=function(p){return i(this,p,!1)},t.listenerCount=function(p,m){return typeof p.listenerCount=="function"?p.listenerCount(m):f.call(p,m)},t.prototype.listenerCount=f,t.prototype.eventNames=function(){return this._eventsCount>0?O(this._events):[]}},4029:(J,e,_)=>{var O=_(5320),A=Object.prototype.toString,k=Object.prototype.hasOwnProperty;J.exports=function(b,a,t){if(!O(a))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=t),A.call(b)==="[object Array]"?function(d,s,r){for(var n=0,o=d.length;n{var e=Array.prototype.slice,_=Object.prototype.toString;J.exports=function(O){var A=this;if(typeof A!="function"||_.call(A)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+A);for(var k,b=e.call(arguments,1),a=Math.max(0,A.length-b.length),t=[],u=0;u{var O=_(7648);J.exports=Function.prototype.bind||O},210:(J,e,_)=>{var O,A=SyntaxError,k=Function,b=TypeError,a=function(w){try{return k('"use strict"; return ('+w+").constructor;")()}catch{}},t=Object.getOwnPropertyDescriptor;if(t)try{t({},"")}catch{t=null}var u=function(){throw new b},d=t?function(){try{return u}catch{try{return t(arguments,"callee").get}catch{return u}}}():u,s=_(1405)(),r=Object.getPrototypeOf||function(w){return w.__proto__},n={},o=typeof Uint8Array>"u"?O:r(Uint8Array),i={"%AggregateError%":typeof AggregateError>"u"?O:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?O:ArrayBuffer,"%ArrayIteratorPrototype%":s?r([][Symbol.iterator]()):O,"%AsyncFromSyncIteratorPrototype%":O,"%AsyncFunction%":n,"%AsyncGenerator%":n,"%AsyncGeneratorFunction%":n,"%AsyncIteratorPrototype%":n,"%Atomics%":typeof Atomics>"u"?O:Atomics,"%BigInt%":typeof BigInt>"u"?O:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?O:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?O:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?O:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?O:Float32Array,"%Float64Array%":typeof Float64Array>"u"?O:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?O:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":n,"%Int8Array%":typeof Int8Array>"u"?O:Int8Array,"%Int16Array%":typeof Int16Array>"u"?O:Int16Array,"%Int32Array%":typeof Int32Array>"u"?O:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?r(r([][Symbol.iterator]())):O,"%JSON%":typeof JSON=="object"?JSON:O,"%Map%":typeof Map>"u"?O:Map,"%MapIteratorPrototype%":typeof Map<"u"&&s?r(new Map()[Symbol.iterator]()):O,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?O:Promise,"%Proxy%":typeof Proxy>"u"?O:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?O:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?O:Set,"%SetIteratorPrototype%":typeof Set<"u"&&s?r(new Set()[Symbol.iterator]()):O,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?O:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s?r(""[Symbol.iterator]()):O,"%Symbol%":s?Symbol:O,"%SyntaxError%":A,"%ThrowTypeError%":d,"%TypedArray%":o,"%TypeError%":b,"%Uint8Array%":typeof Uint8Array>"u"?O:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?O:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?O:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?O:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?O:WeakMap,"%WeakRef%":typeof WeakRef>"u"?O:WeakRef,"%WeakSet%":typeof WeakSet>"u"?O:WeakSet};try{null.error}catch(w){var f=r(r(w));i["%Error.prototype%"]=f}var c=function w(g){var E;if(g==="%AsyncFunction%")E=a("async function () {}");else if(g==="%GeneratorFunction%")E=a("function* () {}");else if(g==="%AsyncGeneratorFunction%")E=a("async function* () {}");else if(g==="%AsyncGenerator%"){var U=w("%AsyncGeneratorFunction%");U&&(E=U.prototype)}else if(g==="%AsyncIteratorPrototype%"){var C=w("%AsyncGenerator%");C&&(E=r(C.prototype))}return i[g]=E,E},h={"%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"]},p=_(8612),m=_(7642),M=p.call(Function.call,Array.prototype.concat),l=p.call(Function.apply,Array.prototype.splice),N=p.call(Function.call,String.prototype.replace),j=p.call(Function.call,String.prototype.slice),R=p.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,P=function(w,g){var E,U=w;if(m(h,U)&&(U="%"+(E=h[U])[0]+"%"),m(i,U)){var C=i[U];if(C===n&&(C=c(U)),C===void 0&&!g)throw new b("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:E,name:U,value:C}}throw new A("intrinsic "+w+" does not exist!")};J.exports=function(w,g){if(typeof w!="string"||w.length===0)throw new b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof g!="boolean")throw new b('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,w)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var E=function(L){var ae=j(L,0,1),ce=j(L,-1);if(ae==="%"&&ce!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(ce==="%"&&ae!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var ue=[];return N(L,I,function(le,be,de,pe){ue[ue.length]=de?N(pe,x,"$1"):be||le}),ue}(w),U=E.length>0?E[0]:"",C=P("%"+U+"%",g),F=C.name,re=C.value,ee=!1,ne=C.alias;ne&&(U=ne[0],l(E,M([0,1],ne)));for(var D=1,Z=!0;D=E.length){var Y=t(re,$);re=(Z=!!Y)&&"get"in Y&&!("originalValue"in Y.get)?Y.get:re[$]}else Z=m(re,$),re=re[$];Z&&!ee&&(i[F]=re)}}return re}},7296:(J,e,_)=>{var O=_(210)("%Object.getOwnPropertyDescriptor%",!0);if(O)try{O([],"length")}catch{O=null}J.exports=O},1044:(J,e,_)=>{var O=_(210)("%Object.defineProperty%",!0),A=function(){if(O)try{return O({},"a",{value:1}),!0}catch{return!1}return!1};A.hasArrayLengthDefineBug=function(){if(!A())return null;try{return O([],"length",{value:1}).length!==1}catch{return!0}},J.exports=A},1405:(J,e,_)=>{var O=typeof Symbol<"u"&&Symbol,A=_(5419);J.exports=function(){return typeof O=="function"&&typeof Symbol=="function"&&typeof O("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&A()}},5419:J=>{J.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},_=Symbol("test"),O=Object(_);if(typeof _=="string"||Object.prototype.toString.call(_)!=="[object Symbol]"||Object.prototype.toString.call(O)!=="[object Symbol]")return!1;for(_ in e[_]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var A=Object.getOwnPropertySymbols(e);if(A.length!==1||A[0]!==_||!Object.prototype.propertyIsEnumerable.call(e,_))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var k=Object.getOwnPropertyDescriptor(e,_);if(k.value!==42||k.enumerable!==!0)return!1}return!0}},6410:(J,e,_)=>{var O=_(5419);J.exports=function(){return O()&&!!Symbol.toStringTag}},7642:(J,e,_)=>{var O=_(8612);J.exports=O.call(Function.call,Object.prototype.hasOwnProperty)},3349:(J,e,_)=>{var O=_(9509).Buffer,A=_(8473).Transform;function k(b){A.call(this),this._block=O.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}_(5717)(k,A),k.prototype._transform=function(b,a,t){var u=null;try{this.update(b,a)}catch(d){u=d}t(u)},k.prototype._flush=function(b){var a=null;try{this.push(this.digest())}catch(t){a=t}b(a)},k.prototype.update=function(b,a){if(function(n,o){if(!O.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer")}(b),this._finalized)throw new Error("Digest already called");O.isBuffer(b)||(b=O.from(b,a));for(var t=this._block,u=0;this._blockOffset+b.length-u>=this._blockSize;){for(var d=this._blockOffset;d0;++s)this._length[s]+=r,(r=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*r);return this},k.prototype._update=function(){throw new Error("_update is not implemented")},k.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();b!==void 0&&(a=a.toString(b)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return a},k.prototype._digest=function(){throw new Error("_digest is not implemented")},J.exports=k},3715:(J,e,_)=>{var O=e;O.utils=_(6436),O.common=_(5772),O.sha=_(9041),O.ripemd=_(2949),O.hmac=_(2344),O.sha1=O.sha.sha1,O.sha256=O.sha.sha256,O.sha224=O.sha.sha224,O.sha384=O.sha.sha384,O.sha512=O.sha.sha512,O.ripemd160=O.ripemd.ripemd160},5772:(J,e,_)=>{var O=_(6436),A=_(9746);function k(){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}e.BlockHash=k,k.prototype.update=function(b,a){if(b=O.toArray(b,a),this.pending?this.pending=this.pending.concat(b):this.pending=b,this.pendingTotal+=b.length,this.pending.length>=this._delta8){var t=(b=this.pending).length%this._delta8;this.pending=b.slice(b.length-t,b.length),this.pending.length===0&&(this.pending=null),b=O.join32(b,0,b.length-t,this.endian);for(var u=0;u>>24&255,u[d++]=b>>>16&255,u[d++]=b>>>8&255,u[d++]=255&b}else for(u[d++]=255&b,u[d++]=b>>>8&255,u[d++]=b>>>16&255,u[d++]=b>>>24&255,u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=0,s=8;s{var O=_(6436),A=_(9746);function k(b,a,t){if(!(this instanceof k))return new k(b,a,t);this.Hash=b,this.blockSize=b.blockSize/8,this.outSize=b.outSize/8,this.inner=null,this.outer=null,this._init(O.toArray(a,t))}J.exports=k,k.prototype._init=function(b){b.length>this.blockSize&&(b=new this.Hash().update(b).digest()),A(b.length<=this.blockSize);for(var a=b.length;a{var O=_(6436),A=_(5772),k=O.rotl32,b=O.sum32,a=O.sum32_3,t=O.sum32_4,u=A.BlockHash;function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(h,p,m,M){return h<=15?p^m^M:h<=31?p&m|~p&M:h<=47?(p|~m)^M:h<=63?p&M|m&~M:p^(m|~M)}function r(h){return h<=15?0:h<=31?1518500249:h<=47?1859775393:h<=63?2400959708:2840853838}function n(h){return h<=15?1352829926:h<=31?1548603684:h<=47?1836072691:h<=63?2053994217:0}O.inherits(d,u),e.ripemd160=d,d.blockSize=512,d.outSize=160,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(h,p){for(var m=this.h[0],M=this.h[1],l=this.h[2],N=this.h[3],j=this.h[4],R=m,I=M,x=l,P=N,w=j,g=0;g<80;g++){var E=b(k(t(m,s(g,M,l,N),h[o[g]+p],r(g)),f[g]),j);m=j,j=N,N=k(l,10),l=M,M=E,E=b(k(t(R,s(79-g,I,x,P),h[i[g]+p],n(g)),c[g]),w),R=w,w=P,P=k(x,10),x=I,I=E}E=a(this.h[1],l,P),this.h[1]=a(this.h[2],N,w),this.h[2]=a(this.h[3],j,R),this.h[3]=a(this.h[4],m,I),this.h[4]=a(this.h[0],M,x),this.h[0]=E},d.prototype._digest=function(h){return h==="hex"?O.toHex32(this.h,"little"):O.split32(this.h,"little")};var o=[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],i=[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],f=[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],c=[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]},9041:(J,e,_)=>{e.sha1=_(4761),e.sha224=_(799),e.sha256=_(9344),e.sha384=_(772),e.sha512=_(5900)},4761:(J,e,_)=>{var O=_(6436),A=_(5772),k=_(7038),b=O.rotl32,a=O.sum32,t=O.sum32_5,u=k.ft_1,d=A.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function r(){if(!(this instanceof r))return new r;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}O.inherits(r,d),J.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(n,o){for(var i=this.W,f=0;f<16;f++)i[f]=n[o+f];for(;f{var O=_(6436),A=_(9344);function k(){if(!(this instanceof k))return new k;A.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}O.inherits(k,A),J.exports=k,k.blockSize=512,k.outSize=224,k.hmacStrength=192,k.padLength=64,k.prototype._digest=function(b){return b==="hex"?O.toHex32(this.h.slice(0,7),"big"):O.split32(this.h.slice(0,7),"big")}},9344:(J,e,_)=>{var O=_(6436),A=_(5772),k=_(7038),b=_(9746),a=O.sum32,t=O.sum32_4,u=O.sum32_5,d=k.ch32,s=k.maj32,r=k.s0_256,n=k.s1_256,o=k.g0_256,i=k.g1_256,f=A.BlockHash,c=[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];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=c,this.W=new Array(64)}O.inherits(h,f),J.exports=h,h.blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(p,m){for(var M=this.W,l=0;l<16;l++)M[l]=p[m+l];for(;l{var O=_(6436),A=_(5900);function k(){if(!(this instanceof k))return new k;A.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}O.inherits(k,A),J.exports=k,k.blockSize=1024,k.outSize=384,k.hmacStrength=192,k.padLength=128,k.prototype._digest=function(b){return b==="hex"?O.toHex32(this.h.slice(0,12),"big"):O.split32(this.h.slice(0,12),"big")}},5900:(J,e,_)=>{var O=_(6436),A=_(5772),k=_(9746),b=O.rotr64_hi,a=O.rotr64_lo,t=O.shr64_hi,u=O.shr64_lo,d=O.sum64,s=O.sum64_hi,r=O.sum64_lo,n=O.sum64_4_hi,o=O.sum64_4_lo,i=O.sum64_5_hi,f=O.sum64_5_lo,c=A.BlockHash,h=[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];function p(){if(!(this instanceof p))return new p;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=h,this.W=new Array(160)}function m(g,E,U,C,F){var re=g&U^~g&F;return re<0&&(re+=4294967296),re}function M(g,E,U,C,F,re){var ee=E&C^~E&re;return ee<0&&(ee+=4294967296),ee}function l(g,E,U,C,F){var re=g&U^g&F^U&F;return re<0&&(re+=4294967296),re}function N(g,E,U,C,F,re){var ee=E&C^E&re^C&re;return ee<0&&(ee+=4294967296),ee}function j(g,E){var U=b(g,E,28)^b(E,g,2)^b(E,g,7);return U<0&&(U+=4294967296),U}function R(g,E){var U=a(g,E,28)^a(E,g,2)^a(E,g,7);return U<0&&(U+=4294967296),U}function I(g,E){var U=a(g,E,14)^a(g,E,18)^a(E,g,9);return U<0&&(U+=4294967296),U}function x(g,E){var U=b(g,E,1)^b(g,E,8)^t(g,E,7);return U<0&&(U+=4294967296),U}function P(g,E){var U=a(g,E,1)^a(g,E,8)^u(g,E,7);return U<0&&(U+=4294967296),U}function w(g,E){var U=a(g,E,19)^a(E,g,29)^u(g,E,6);return U<0&&(U+=4294967296),U}O.inherits(p,c),J.exports=p,p.blockSize=1024,p.outSize=512,p.hmacStrength=192,p.padLength=128,p.prototype._prepareBlock=function(g,E){for(var U=this.W,C=0;C<32;C++)U[C]=g[E+C];for(;C{var O=_(6436).rotr32;function A(a,t,u){return a&t^~a&u}function k(a,t,u){return a&t^a&u^t&u}function b(a,t,u){return a^t^u}e.ft_1=function(a,t,u,d){return a===0?A(t,u,d):a===1||a===3?b(t,u,d):a===2?k(t,u,d):void 0},e.ch32=A,e.maj32=k,e.p32=b,e.s0_256=function(a){return O(a,2)^O(a,13)^O(a,22)},e.s1_256=function(a){return O(a,6)^O(a,11)^O(a,25)},e.g0_256=function(a){return O(a,7)^O(a,18)^a>>>3},e.g1_256=function(a){return O(a,17)^O(a,19)^a>>>10}},6436:(J,e,_)=>{var O=_(9746),A=_(5717);function k(u,d){return(64512&u.charCodeAt(d))==55296&&!(d<0||d+1>=u.length)&&(64512&u.charCodeAt(d+1))==56320}function b(u){return(u>>>24|u>>>8&65280|u<<8&16711680|(255&u)<<24)>>>0}function a(u){return u.length===1?"0"+u:u}function t(u){return u.length===7?"0"+u:u.length===6?"00"+u:u.length===5?"000"+u:u.length===4?"0000"+u:u.length===3?"00000"+u:u.length===2?"000000"+u:u.length===1?"0000000"+u:u}e.inherits=A,e.toArray=function(u,d){if(Array.isArray(u))return u.slice();if(!u)return[];var s=[];if(typeof u=="string")if(d){if(d==="hex")for((u=u.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(u="0"+u),n=0;n>6|192,s[r++]=63&o|128):k(u,n)?(o=65536+((1023&o)<<10)+(1023&u.charCodeAt(++n)),s[r++]=o>>18|240,s[r++]=o>>12&63|128,s[r++]=o>>6&63|128,s[r++]=63&o|128):(s[r++]=o>>12|224,s[r++]=o>>6&63|128,s[r++]=63&o|128)}else for(n=0;n>>0}return o},e.split32=function(u,d){for(var s=new Array(4*u.length),r=0,n=0;r>>24,s[n+1]=o>>>16&255,s[n+2]=o>>>8&255,s[n+3]=255&o):(s[n+3]=o>>>24,s[n+2]=o>>>16&255,s[n+1]=o>>>8&255,s[n]=255&o)}return s},e.rotr32=function(u,d){return u>>>d|u<<32-d},e.rotl32=function(u,d){return u<>>32-d},e.sum32=function(u,d){return u+d>>>0},e.sum32_3=function(u,d,s){return u+d+s>>>0},e.sum32_4=function(u,d,s,r){return u+d+s+r>>>0},e.sum32_5=function(u,d,s,r,n){return u+d+s+r+n>>>0},e.sum64=function(u,d,s,r){var n=u[d],o=r+u[d+1]>>>0,i=(o>>0,u[d+1]=o},e.sum64_hi=function(u,d,s,r){return(d+r>>>0>>0},e.sum64_lo=function(u,d,s,r){return d+r>>>0},e.sum64_4_hi=function(u,d,s,r,n,o,i,f){var c=0,h=d;return c+=(h=h+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(u,d,s,r,n,o,i,f){return d+r+o+f>>>0},e.sum64_5_hi=function(u,d,s,r,n,o,i,f,c,h){var p=0,m=d;return p+=(m=m+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(u,d,s,r,n,o,i,f,c,h){return d+r+o+f+h>>>0},e.rotr64_hi=function(u,d,s){return(d<<32-s|u>>>s)>>>0},e.rotr64_lo=function(u,d,s){return(u<<32-s|d>>>s)>>>0},e.shr64_hi=function(u,d,s){return u>>>s},e.shr64_lo=function(u,d,s){return(u<<32-s|d>>>s)>>>0}},2156:(J,e,_)=>{var O=_(3715),A=_(4504),k=_(9746);function b(a){if(!(this instanceof b))return new b(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=A.toArray(a.entropy,a.entropyEnc||"hex"),u=A.toArray(a.nonce,a.nonceEnc||"hex"),d=A.toArray(a.pers,a.persEnc||"hex");k(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,u,d)}J.exports=b,b.prototype._init=function(a,t,u){var d=a.concat(t).concat(u);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(u||[])),this._reseed=1},b.prototype.generate=function(a,t,u,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(d=u,u=t,t=null),u&&(u=A.toArray(u,d||"hex"),this._update(u));for(var s=[];s.length{e.read=function(_,O,A,k,b){var a,t,u=8*b-k-1,d=(1<>1,r=-7,n=A?b-1:0,o=A?-1:1,i=_[O+n];for(n+=o,a=i&(1<<-r)-1,i>>=-r,r+=u;r>0;a=256*a+_[O+n],n+=o,r-=8);for(t=a&(1<<-r)-1,a>>=-r,r+=k;r>0;t=256*t+_[O+n],n+=o,r-=8);if(a===0)a=1-s;else{if(a===d)return t?NaN:1/0*(i?-1:1);t+=Math.pow(2,k),a-=s}return(i?-1:1)*t*Math.pow(2,a-k)},e.write=function(_,O,A,k,b,a){var t,u,d,s=8*a-b-1,r=(1<>1,o=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=k?0:a-1,f=k?1:-1,c=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(u=isNaN(O)?1:0,t=r):(t=Math.floor(Math.log(O)/Math.LN2),O*(d=Math.pow(2,-t))<1&&(t--,d*=2),(O+=t+n>=1?o/d:o*Math.pow(2,1-n))*d>=2&&(t++,d/=2),t+n>=r?(u=0,t=r):t+n>=1?(u=(O*d-1)*Math.pow(2,b),t+=n):(u=O*Math.pow(2,n-1)*Math.pow(2,b),t=0));b>=8;_[A+i]=255&u,i+=f,u/=256,b-=8);for(t=t<0;_[A+i]=255&t,i+=f,t/=256,s-=8);_[A+i-f]|=128*c}},5717:J=>{typeof Object.create=="function"?J.exports=function(e,_){_&&(e.super_=_,e.prototype=Object.create(_.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:J.exports=function(e,_){if(_){e.super_=_;var O=function(){};O.prototype=_.prototype,e.prototype=new O,e.prototype.constructor=e}}},2584:(J,e,_)=>{var O=_(6410)(),A=_(1924)("Object.prototype.toString"),k=function(t){return!(O&&t&&typeof t=="object"&&Symbol.toStringTag in t)&&A(t)==="[object Arguments]"},b=function(t){return!!k(t)||t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&A(t)!=="[object Array]"&&A(t.callee)==="[object Function]"},a=function(){return k(arguments)}();k.isLegacyArguments=b,J.exports=a?k:b},5320:J=>{var e,_,O=Function.prototype.toString,A=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof A=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw _}}),_={},A(function(){throw 42},null,e)}catch(n){n!==_&&(A=null)}else A=null;var k=/^\s*class\b/,b=function(n){try{var o=O.call(n);return k.test(o)}catch{return!1}},a=function(n){try{return!b(n)&&(O.call(n),!0)}catch{return!1}},t=Object.prototype.toString,u=typeof Symbol=="function"&&!!Symbol.toStringTag,d=!(0 in[,]),s=function(){return!1};if(typeof document=="object"){var r=document.all;t.call(r)===t.call(document.all)&&(s=function(n){if((d||!n)&&(n===void 0||typeof n=="object"))try{var o=t.call(n);return(o==="[object HTMLAllCollection]"||o==="[object HTML document.all class]"||o==="[object HTMLCollection]"||o==="[object Object]")&&n("")==null}catch{}return!1})}J.exports=A?function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{A(n,null,e)}catch(o){if(o!==_)return!1}return!b(n)&&a(n)}:function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(u)return a(n);if(b(n))return!1;var o=t.call(n);return!(o!=="[object Function]"&&o!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(o))&&a(n)}},8662:(J,e,_)=>{var O,A=Object.prototype.toString,k=Function.prototype.toString,b=/^\s*(?:function)?\*/,a=_(6410)(),t=Object.getPrototypeOf;J.exports=function(u){if(typeof u!="function")return!1;if(b.test(k.call(u)))return!0;if(!a)return A.call(u)==="[object GeneratorFunction]";if(!t)return!1;if(O===void 0){var d=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}}();O=!!d&&t(d)}return t(u)===O}},8611:J=>{J.exports=function(e){return e!=e}},360:(J,e,_)=>{var O=_(5559),A=_(4289),k=_(8611),b=_(9415),a=_(3194),t=O(b(),Number);A(t,{getPolyfill:b,implementation:k,shim:a}),J.exports=t},9415:(J,e,_)=>{var O=_(8611);J.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:O}},3194:(J,e,_)=>{var O=_(4289),A=_(9415);J.exports=function(){var k=A();return O(Number,{isNaN:k},{isNaN:function(){return Number.isNaN!==k}}),k}},5692:(J,e,_)=>{var O=_(4029),A=_(3083),k=_(1924),b=k("Object.prototype.toString"),a=_(6410)(),t=_(7296),u=typeof globalThis>"u"?_.g:globalThis,d=A(),s=k("Array.prototype.indexOf",!0)||function(i,f){for(var c=0;c-1}return!!t&&function(c){var h=!1;return O(n,function(p,m){if(!h)try{h=p.call(c)===m}catch{}}),h}(i)}},3720:J=>{J.exports=_;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function _(R,I,x){this.low=0|R,this.high=0|I,this.unsigned=!!x}function O(R){return(R&&R.__isLong__)===!0}_.prototype.__isLong__,Object.defineProperty(_.prototype,"__isLong__",{value:!0}),_.isLong=O;var A={},k={};function b(R,I){var x,P,w;return I?(w=0<=(R>>>=0)&&R<256)&&(P=k[R])?P:(x=t(R,(0|R)<0?-1:0,!0),w&&(k[R]=x),x):(w=-128<=(R|=0)&&R<128)&&(P=A[R])?P:(x=t(R,R<0?-1:0,!1),w&&(A[R]=x),x)}function a(R,I){if(isNaN(R))return I?c:f;if(I){if(R<0)return c;if(R>=n)return l}else{if(R<=-o)return N;if(R+1>=o)return M}return R<0?a(-R,I).neg():t(R%r|0,R/r|0,I)}function t(R,I,x){return new _(R,I,x)}_.fromInt=b,_.fromNumber=a,_.fromBits=t;var u=Math.pow;function d(R,I,x){if(R.length===0)throw Error("empty string");if(R==="NaN"||R==="Infinity"||R==="+Infinity"||R==="-Infinity")return f;if(typeof I=="number"?(x=I,I=!1):I=!!I,(x=x||10)<2||360)throw Error("interior hyphen");if(P===0)return d(R.substring(1),I,x).neg();for(var w=a(u(x,8)),g=f,E=0;E>>0:this.low},j.toNumber=function(){return this.unsigned?(this.high>>>0)*r+(this.low>>>0):this.high*r+(this.low>>>0)},j.toString=function(R){if((R=R||10)<2||36>>0).toString(R);if((g=U).isZero())return C+E;for(;C.length<6;)C="0"+C;E=""+C+E}},j.getHighBits=function(){return this.high},j.getHighBitsUnsigned=function(){return this.high>>>0},j.getLowBits=function(){return this.low},j.getLowBitsUnsigned=function(){return this.low>>>0},j.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var R=this.high!=0?this.high:this.low,I=31;I>0&&!(R&1<=0},j.isOdd=function(){return(1&this.low)==1},j.isEven=function(){return(1&this.low)==0},j.equals=function(R){return O(R)||(R=s(R)),(this.unsigned===R.unsigned||this.high>>>31!=1||R.high>>>31!=1)&&this.high===R.high&&this.low===R.low},j.eq=j.equals,j.notEquals=function(R){return!this.eq(R)},j.neq=j.notEquals,j.ne=j.notEquals,j.lessThan=function(R){return this.comp(R)<0},j.lt=j.lessThan,j.lessThanOrEqual=function(R){return this.comp(R)<=0},j.lte=j.lessThanOrEqual,j.le=j.lessThanOrEqual,j.greaterThan=function(R){return this.comp(R)>0},j.gt=j.greaterThan,j.greaterThanOrEqual=function(R){return this.comp(R)>=0},j.gte=j.greaterThanOrEqual,j.ge=j.greaterThanOrEqual,j.compare=function(R){if(O(R)||(R=s(R)),this.eq(R))return 0;var I=this.isNegative(),x=R.isNegative();return I&&!x?-1:!I&&x?1:this.unsigned?R.high>>>0>this.high>>>0||R.high===this.high&&R.low>>>0>this.low>>>0?-1:1:this.sub(R).isNegative()?-1:1},j.comp=j.compare,j.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(h)},j.neg=j.negate,j.add=function(R){O(R)||(R=s(R));var I=this.high>>>16,x=65535&this.high,P=this.low>>>16,w=65535&this.low,g=R.high>>>16,E=65535&R.high,U=R.low>>>16,C=0,F=0,re=0,ee=0;return re+=(ee+=w+(65535&R.low))>>>16,F+=(re+=P+U)>>>16,C+=(F+=x+E)>>>16,C+=I+g,t((re&=65535)<<16|(ee&=65535),(C&=65535)<<16|(F&=65535),this.unsigned)},j.subtract=function(R){return O(R)||(R=s(R)),this.add(R.neg())},j.sub=j.subtract,j.multiply=function(R){if(this.isZero())return f;if(O(R)||(R=s(R)),e)return t(e.mul(this.low,this.high,R.low,R.high),e.get_high(),this.unsigned);if(R.isZero())return f;if(this.eq(N))return R.isOdd()?N:f;if(R.eq(N))return this.isOdd()?N:f;if(this.isNegative())return R.isNegative()?this.neg().mul(R.neg()):this.neg().mul(R).neg();if(R.isNegative())return this.mul(R.neg()).neg();if(this.lt(i)&&R.lt(i))return a(this.toNumber()*R.toNumber(),this.unsigned);var I=this.high>>>16,x=65535&this.high,P=this.low>>>16,w=65535&this.low,g=R.high>>>16,E=65535&R.high,U=R.low>>>16,C=65535&R.low,F=0,re=0,ee=0,ne=0;return ee+=(ne+=w*C)>>>16,re+=(ee+=P*C)>>>16,ee&=65535,re+=(ee+=w*U)>>>16,F+=(re+=x*C)>>>16,re&=65535,F+=(re+=P*U)>>>16,re&=65535,F+=(re+=w*E)>>>16,F+=I*C+x*U+P*E+w*g,t((ee&=65535)<<16|(ne&=65535),(F&=65535)<<16|(re&=65535),this.unsigned)},j.mul=j.multiply,j.divide=function(R){if(O(R)||(R=s(R)),R.isZero())throw Error("division by zero");var I,x,P;if(e)return this.unsigned||this.high!==-2147483648||R.low!==-1||R.high!==-1?t((this.unsigned?e.div_u:e.div_s)(this.low,this.high,R.low,R.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?c:f;if(this.unsigned){if(R.unsigned||(R=R.toUnsigned()),R.gt(this))return c;if(R.gt(this.shru(1)))return p;P=c}else{if(this.eq(N))return R.eq(h)||R.eq(m)?N:R.eq(N)?h:(I=this.shr(1).div(R).shl(1)).eq(f)?R.isNegative()?h:m:(x=this.sub(R.mul(I)),P=I.add(x.div(R)));if(R.eq(N))return this.unsigned?c:f;if(this.isNegative())return R.isNegative()?this.neg().div(R.neg()):this.neg().div(R).neg();if(R.isNegative())return this.div(R.neg()).neg();P=f}for(x=this;x.gte(R);){I=Math.max(1,Math.floor(x.toNumber()/R.toNumber()));for(var w=Math.ceil(Math.log(I)/Math.LN2),g=w<=48?1:u(2,w-48),E=a(I),U=E.mul(R);U.isNegative()||U.gt(x);)U=(E=a(I-=g,this.unsigned)).mul(R);E.isZero()&&(E=h),P=P.add(E),x=x.sub(U)}return P},j.div=j.divide,j.modulo=function(R){return O(R)||(R=s(R)),e?t((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,R.low,R.high),e.get_high(),this.unsigned):this.sub(this.div(R).mul(R))},j.mod=j.modulo,j.rem=j.modulo,j.not=function(){return t(~this.low,~this.high,this.unsigned)},j.and=function(R){return O(R)||(R=s(R)),t(this.low&R.low,this.high&R.high,this.unsigned)},j.or=function(R){return O(R)||(R=s(R)),t(this.low|R.low,this.high|R.high,this.unsigned)},j.xor=function(R){return O(R)||(R=s(R)),t(this.low^R.low,this.high^R.high,this.unsigned)},j.shiftLeft=function(R){return O(R)&&(R=R.toInt()),(R&=63)==0?this:R<32?t(this.low<>>32-R,this.unsigned):t(0,this.low<>>R|this.high<<32-R,this.high>>R,this.unsigned):t(this.high>>R-32,this.high>=0?0:-1,this.unsigned)},j.shr=j.shiftRight,j.shiftRightUnsigned=function(R){if(O(R)&&(R=R.toInt()),(R&=63)==0)return this;var I=this.high;return R<32?t(this.low>>>R|I<<32-R,I>>>R,this.unsigned):t(R===32?I:I>>>R-32,0,this.unsigned)},j.shru=j.shiftRightUnsigned,j.shr_u=j.shiftRightUnsigned,j.toSigned=function(){return this.unsigned?t(this.low,this.high,!1):this},j.toUnsigned=function(){return this.unsigned?this:t(this.low,this.high,!0)},j.toBytes=function(R){return R?this.toBytesLE():this.toBytesBE()},j.toBytesLE=function(){var R=this.high,I=this.low;return[255&I,I>>>8&255,I>>>16&255,I>>>24,255&R,R>>>8&255,R>>>16&255,R>>>24]},j.toBytesBE=function(){var R=this.high,I=this.low;return[R>>>24,R>>>16&255,R>>>8&255,255&R,I>>>24,I>>>16&255,I>>>8&255,255&I]},_.fromBytes=function(R,I,x){return x?_.fromBytesLE(R,I):_.fromBytesBE(R,I)},_.fromBytesLE=function(R,I){return new _(R[0]|R[1]<<8|R[2]<<16|R[3]<<24,R[4]|R[5]<<8|R[6]<<16|R[7]<<24,I)},_.fromBytesBE=function(R,I){return new _(R[4]<<24|R[5]<<16|R[6]<<8|R[7],R[0]<<24|R[1]<<16|R[2]<<8|R[3],I)}},2318:(J,e,_)=>{var O=_(5717),A=_(3349),k=_(9509).Buffer,b=new Array(16);function a(){A.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function t(n,o){return n<>>32-o}function u(n,o,i,f,c,h,p){return t(n+(o&i|~o&f)+c+h|0,p)+o|0}function d(n,o,i,f,c,h,p){return t(n+(o&f|i&~f)+c+h|0,p)+o|0}function s(n,o,i,f,c,h,p){return t(n+(o^i^f)+c+h|0,p)+o|0}function r(n,o,i,f,c,h,p){return t(n+(i^(o|~f))+c+h|0,p)+o|0}O(a,A),a.prototype._update=function(){for(var n=b,o=0;o<16;++o)n[o]=this._block.readInt32LE(4*o);var i=this._a,f=this._b,c=this._c,h=this._d;i=u(i,f,c,h,n[0],3614090360,7),h=u(h,i,f,c,n[1],3905402710,12),c=u(c,h,i,f,n[2],606105819,17),f=u(f,c,h,i,n[3],3250441966,22),i=u(i,f,c,h,n[4],4118548399,7),h=u(h,i,f,c,n[5],1200080426,12),c=u(c,h,i,f,n[6],2821735955,17),f=u(f,c,h,i,n[7],4249261313,22),i=u(i,f,c,h,n[8],1770035416,7),h=u(h,i,f,c,n[9],2336552879,12),c=u(c,h,i,f,n[10],4294925233,17),f=u(f,c,h,i,n[11],2304563134,22),i=u(i,f,c,h,n[12],1804603682,7),h=u(h,i,f,c,n[13],4254626195,12),c=u(c,h,i,f,n[14],2792965006,17),i=d(i,f=u(f,c,h,i,n[15],1236535329,22),c,h,n[1],4129170786,5),h=d(h,i,f,c,n[6],3225465664,9),c=d(c,h,i,f,n[11],643717713,14),f=d(f,c,h,i,n[0],3921069994,20),i=d(i,f,c,h,n[5],3593408605,5),h=d(h,i,f,c,n[10],38016083,9),c=d(c,h,i,f,n[15],3634488961,14),f=d(f,c,h,i,n[4],3889429448,20),i=d(i,f,c,h,n[9],568446438,5),h=d(h,i,f,c,n[14],3275163606,9),c=d(c,h,i,f,n[3],4107603335,14),f=d(f,c,h,i,n[8],1163531501,20),i=d(i,f,c,h,n[13],2850285829,5),h=d(h,i,f,c,n[2],4243563512,9),c=d(c,h,i,f,n[7],1735328473,14),i=s(i,f=d(f,c,h,i,n[12],2368359562,20),c,h,n[5],4294588738,4),h=s(h,i,f,c,n[8],2272392833,11),c=s(c,h,i,f,n[11],1839030562,16),f=s(f,c,h,i,n[14],4259657740,23),i=s(i,f,c,h,n[1],2763975236,4),h=s(h,i,f,c,n[4],1272893353,11),c=s(c,h,i,f,n[7],4139469664,16),f=s(f,c,h,i,n[10],3200236656,23),i=s(i,f,c,h,n[13],681279174,4),h=s(h,i,f,c,n[0],3936430074,11),c=s(c,h,i,f,n[3],3572445317,16),f=s(f,c,h,i,n[6],76029189,23),i=s(i,f,c,h,n[9],3654602809,4),h=s(h,i,f,c,n[12],3873151461,11),c=s(c,h,i,f,n[15],530742520,16),i=r(i,f=s(f,c,h,i,n[2],3299628645,23),c,h,n[0],4096336452,6),h=r(h,i,f,c,n[7],1126891415,10),c=r(c,h,i,f,n[14],2878612391,15),f=r(f,c,h,i,n[5],4237533241,21),i=r(i,f,c,h,n[12],1700485571,6),h=r(h,i,f,c,n[3],2399980690,10),c=r(c,h,i,f,n[10],4293915773,15),f=r(f,c,h,i,n[1],2240044497,21),i=r(i,f,c,h,n[8],1873313359,6),h=r(h,i,f,c,n[15],4264355552,10),c=r(c,h,i,f,n[6],2734768916,15),f=r(f,c,h,i,n[13],1309151649,21),i=r(i,f,c,h,n[4],4149444226,6),h=r(h,i,f,c,n[11],3174756917,10),c=r(c,h,i,f,n[2],718787259,15),f=r(f,c,h,i,n[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+f|0,this._c=this._c+c|0,this._d=this._d+h|0},a.prototype._digest=function(){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();var n=k.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n},J.exports=a},9746:J=>{function e(_,O){if(!_)throw new Error(O||"Assertion failed")}J.exports=e,e.equal=function(_,O,A){if(_!=O)throw new Error(A||"Assertion failed: "+_+" != "+O)}},4504:(J,e)=>{var _=e;function O(k){return k.length===1?"0"+k:k}function A(k){for(var b="",a=0;a>8,s=255&u;d?a.push(d,s):a.push(s)}return a},_.zero2=O,_.toHex=A,_.encode=function(k,b){return b==="hex"?A(k):k}},45:function(J,e,_){var O=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){f.done?s(f.value):new u(function(c){c(f.value)}).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const A=_(3555),k=_(8982);class b{static importKey(t,u,d=new A.WebCryptoProvider){return O(this,void 0,void 0,function*(){return new b(yield k.SIV.importKey(t,u,d))})}constructor(t){this._siv=t}seal(t,u,d=new Uint8Array(0)){return O(this,void 0,void 0,function*(){return this._siv.seal(t,[d,u])})}open(t,u,d=new Uint8Array(0)){return O(this,void 0,void 0,function*(){return this._siv.open(t,[d,u])})}clear(){return this._siv.clear(),this}}e.AEAD=b},4870:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0});class _ extends Error{constructor(k){super(k),Object.setPrototypeOf(this,_.prototype)}}e.IntegrityError=_;class O extends Error{constructor(k){super(k),Object.setPrototypeOf(this,O.prototype)}}e.NotImplementedError=O},9463:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(d){for(var s in d)e.hasOwnProperty(s)||(e[s]=d[s])}(_(4870));var O=_(45);e.AEAD=O.AEAD;var A=_(8982);e.SIV=A.SIV;var k=_(8711);e.StreamEncryptor=k.StreamEncryptor,e.StreamDecryptor=k.StreamDecryptor;var b=_(8572);e.CMAC=b.CMAC;var a=_(8462);e.PMAC=a.PMAC;var t=_(3511);e.PolyfillCryptoProvider=t.PolyfillCryptoProvider;var u=_(3555);e.WebCryptoProvider=u.WebCryptoProvider},3618:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});const O=_(8877),A=_(3082);class k{constructor(){this.data=new Uint8Array(k.SIZE)}clear(){A.wipe(this.data)}clone(){const a=new k;return a.copy(this),a}copy(a){this.data.set(a.data)}dbl(){let a=0;for(let t=k.SIZE-1;t>=0;t--){const u=this.data[t]>>>7&255;this.data[t]=this.data[t]<<1|a,a=u}this.data[k.SIZE-1]^=O.select(a,k.R,0),a=0}}k.SIZE=16,k.R=135,e.default=k},8877:(J,e)=>{function _(O,A){if(O.length!==A.length)return 0;let k=0;for(let b=0;b>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(O,A,k){return~(O-1)&A|O-1&k},e.compare=_,e.equal=function(O,A){return O.length!==0&&A.length!==0&&_(O,A)!==0}},2104:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0});const _=new Uint8Array([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0]);e.ctz=function(O){return _[O]}},3082:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(_){for(let O=0;O<_.length;O++)_[O]=0;return _}},4080:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.xor=function(_,O){for(let A=0;Au){for(let r=0;rA.default.SIZE;){for(let r=0;r0;c--){const h=k.select(1&i.data[c-1],128,0);i.data[c]=i.data[c]>>>1|h}return i.data[0]>>>=1,i.data[0]^=k.select(f,128,0),i.data[A.default.SIZE-1]^=k.select(f,A.default.R>>>1,0),new t(r,o,i)})}reset(){return this._buffer.clear(),this._bufferPos=0,this._counter=0,this._offset.clear(),this._tag.clear(),this._finished=!1,this}clear(){this.reset(),this._cipher.clear()}update(d){return O(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");const s=A.default.SIZE-this._bufferPos;let r=0,n=d.length;for(n>s&&(this._buffer.data.set(d.slice(0,s),this._bufferPos),r+=s,n-=s,yield this._processBuffer());n>A.default.SIZE;)this._buffer.data.set(d.slice(r,r+A.default.SIZE)),r+=A.default.SIZE,n-=A.default.SIZE,yield this._processBuffer();return n>0&&(this._buffer.data.set(d.slice(r,r+n),this._bufferPos),this._bufferPos+=n),this})}finish(){return O(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");return this._bufferPos===A.default.SIZE?(a.xor(this._tag.data,this._buffer.data),a.xor(this._tag.data,this._LInv.data)):(a.xor(this._tag.data,this._buffer.data.slice(0,this._bufferPos)),this._tag.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._tag),this._finished=!0,this._tag.clone().data})}_processBuffer(){return O(this,void 0,void 0,function*(){a.xor(this._offset.data,this._L[b.ctz(this._counter+1)].data),a.xor(this._buffer.data,this._offset.data),this._counter++,yield this._cipher.encryptBlock(this._buffer),a.xor(this._tag.data,this._buffer.data),this._bufferPos=0})}}e.PMAC=t},3511:function(J,e,_){var O=this&&this.__awaiter||function(b,a,t,u){return new(t||(t=Promise))(function(d,s){function r(i){try{o(u.next(i))}catch(f){s(f)}}function n(i){try{o(u.throw(i))}catch(f){s(f)}}function o(i){i.done?d(i.value):new t(function(f){f(i.value)}).then(r,n)}o((u=u.apply(b,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const A=_(4274),k=_(3056);e.PolyfillCryptoProvider=class{constructor(){}importBlockCipherKey(b){return O(this,void 0,void 0,function*(){return new A.default(b)})}importCTRKey(b){return O(this,void 0,void 0,function*(){return new k.default(new A.default(b))})}}},4274:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0});const O=_(3082),A=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47]),k=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),b=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);let a,t,u,d,s,r,n,o,i=!1;function f(p,m=0){return(p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3])>>>0}function c(p,m=new Uint8Array(4),M=0){return m[M+0]=p>>>24,m[M+1]=p>>>16,m[M+2]=p>>>8,m[M+3]=p>>>0,m}function h(p){return k[p>>>24&255]<<24|k[p>>>16&255]<<16|k[p>>>8&255]<<8|k[255&p]}e.default=class{constructor(p){if(i||function(){function m(l,N){let j=l,R=N,I=0;for(let x=1;x<256&&R!==0;x<<=1)R&x&&(I^=j,R^=x),j<<=1,256&j&&(j^=283);return I}const M=l=>l<<24|l>>>8;a=new Uint32Array(256),t=new Uint32Array(256),u=new Uint32Array(256),d=new Uint32Array(256);for(let l=0;l<256;l++){const N=k[l];let j=m(N,2)<<24|N<<16|N<<8|m(N,3);a[l]=j,j=M(j),t[l]=j,j=M(j),u[l]=j,j=M(j),d[l]=j,j=M(j)}s=new Uint32Array(256),r=new Uint32Array(256),n=new Uint32Array(256),o=new Uint32Array(256);for(let l=0;l<256;l++){const N=b[l];let j=m(N,14)<<24|m(N,9)<<16|m(N,13)<<8|m(N,11);s[l]=j,j=M(j),r[l]=j,j=M(j),n[l]=j,j=M(j),o[l]=j,j=M(j)}i=!0}(),p.length!==16&&p.length!==32)throw new Error(`Miscreant: invalid key length: ${p.length} (expected 16 or 32 bytes)`);this._encKey=function(m){const M=new Uint32Array(m.length+28),l=m.length/4|0,N=M.length;for(let R=0;R>>24)^A[R/l-1]<<24:l>6&&R%l==4&&(I=h(I)),M[R]=M[R-l]^I}var j;return M}(p),this._emptyPromise=Promise.resolve(this)}clear(){return this._encKey&&O.wipe(this._encKey),this}encryptBlock(p){const m=p.data,M=p.data;let l=f(m,0),N=f(m,4),j=f(m,8),R=f(m,12);l^=this._encKey[0],N^=this._encKey[1],j^=this._encKey[2],R^=this._encKey[3];let I=0,x=0,P=0,w=0;const g=this._encKey.length/4-2;let E=4;for(let U=0;U>>24&255]^t[N>>>16&255]^u[j>>>8&255]^d[255&R],x=this._encKey[E+1]^a[N>>>24&255]^t[j>>>16&255]^u[R>>>8&255]^d[255&l],P=this._encKey[E+2]^a[j>>>24&255]^t[R>>>16&255]^u[l>>>8&255]^d[255&N],w=this._encKey[E+3]^a[R>>>24&255]^t[l>>>16&255]^u[N>>>8&255]^d[255&j],E+=4,l=I,N=x,j=P,R=w;return l=k[I>>>24]<<24|k[x>>>16&255]<<16|k[P>>>8&255]<<8|k[255&w],N=k[x>>>24]<<24|k[P>>>16&255]<<16|k[w>>>8&255]<<8|k[255&I],j=k[P>>>24]<<24|k[w>>>16&255]<<16|k[I>>>8&255]<<8|k[255&x],R=k[w>>>24]<<24|k[I>>>16&255]<<16|k[x>>>8&255]<<8|k[255&P],l^=this._encKey[E+0],N^=this._encKey[E+1],j^=this._encKey[E+2],R^=this._encKey[E+3],c(l,M,0),c(N,M,4),c(j,M,8),c(R,M,12),this._emptyPromise}}},3056:function(J,e,_){var O=this&&this.__awaiter||function(b,a,t,u){return new(t||(t=Promise))(function(d,s){function r(i){try{o(u.next(i))}catch(f){s(f)}}function n(i){try{o(u.throw(i))}catch(f){s(f)}}function o(i){i.done?d(i.value):new t(function(f){f(i.value)}).then(r,n)}o((u=u.apply(b,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const A=_(3618);function k(b){let a=1;for(let t=A.default.SIZE-1;t>=0;t--)a+=255&b.data[t]|0,b.data[t]=255&a,a>>>=8}e.default=class{constructor(b){this._cipher=b,this._counter=new A.default,this._buffer=new A.default}clear(){return this._buffer.clear(),this._counter.clear(),this._cipher.clear(),this}encryptCtr(b,a){return O(this,void 0,void 0,function*(){if(b.length!==A.default.SIZE)throw new Error("CTR: iv length must be equal to cipher block size");this._counter.data.set(b);let t=A.default.SIZE;const u=new Uint8Array(a.length);for(let d=0;de.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");const c=t.default.SIZE+i.length,h=new Uint8Array(c),p=yield this._s2v(f,i);return h.set(p),n(p),h.set(yield this._ctr.encryptCtr(p,i),p.length),h})}open(i,f){return O(this,void 0,void 0,function*(){if(f.length>e.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");if(i.length=t.default.SIZE){const c=f.length-t.default.SIZE;this._tmp1.data.set(f.subarray(c)),yield this._mac.update(f.subarray(0,c))}else this._tmp1.data.set(f),this._tmp1.data[f.length]=128,this._tmp2.dbl();return b.xor(this._tmp1.data,this._tmp2.data),yield this._mac.update(this._tmp1.data),this._mac.finish()})}}function n(o){o[o.length-8]&=127,o[o.length-4]&=127}e.SIV=r},8711:function(J,e,_){var O=this&&this.__awaiter||function(u,d,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{c(r.next(h))}catch(p){o(p)}}function f(h){try{c(r.throw(h))}catch(p){o(p)}}function c(h){h.done?n(h.value):new s(function(p){p(h.value)}).then(i,f)}c((r=r.apply(u,d||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const A=_(45),k=_(3555);e.NONCE_SIZE=8,e.LAST_BLOCK_FLAG=1,e.COUNTER_MAX=4294967295;class b{static importKey(d,s,r,n=new k.WebCryptoProvider){return O(this,void 0,void 0,function*(){return new b(yield A.AEAD.importKey(d,r,n),s)})}constructor(d,s){this._aead=d,this._nonce_encoder=new t(s)}seal(d,s=!1,r=new Uint8Array(0)){return O(this,void 0,void 0,function*(){return this._aead.seal(d,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamEncryptor=b;class a{static importKey(d,s,r,n=new k.WebCryptoProvider){return O(this,void 0,void 0,function*(){return new a(yield A.AEAD.importKey(d,r,n),s)})}constructor(d,s){this._aead=d,this._nonce_encoder=new t(s)}open(d,s=!1,r=new Uint8Array(0)){return O(this,void 0,void 0,function*(){return this._aead.open(d,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamDecryptor=a;class t{constructor(d){if(d.length!==e.NONCE_SIZE)throw new Error(`STREAM: nonce must be 8-bits (got ${d.length}`);this.buffer=new ArrayBuffer(e.NONCE_SIZE+4+1),this.view=new DataView(this.buffer),this.array=new Uint8Array(this.buffer),this.array.set(d),this.counter=0,this.finished=!1}next(d){if(this.finished)throw new Error("STREAM: already finished");if(this.view.setInt32(8,this.counter,!1),d)this.view.setInt8(12,e.LAST_BLOCK_FLAG),this.finished=!0;else if(this.counter+=1,this.counter>e.COUNTER_MAX)throw new Error("STREAM counter overflowed");return this.array}}},4244:J=>{var e=function(_){return _!=_};J.exports=function(_,O){return _===0&&O===0?1/_==1/O:_===O||!(!e(_)||!e(O))}},609:(J,e,_)=>{var O=_(4289),A=_(5559),k=_(4244),b=_(5624),a=_(2281),t=A(b(),Object);O(t,{getPolyfill:b,implementation:k,shim:a}),J.exports=t},5624:(J,e,_)=>{var O=_(4244);J.exports=function(){return typeof Object.is=="function"?Object.is:O}},2281:(J,e,_)=>{var O=_(5624),A=_(4289);J.exports=function(){var k=O();return A(Object,{is:k},{is:function(){return Object.is!==k}}),k}},8987:(J,e,_)=>{var O;if(!Object.keys){var A=Object.prototype.hasOwnProperty,k=Object.prototype.toString,b=_(1414),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),u=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(o){var i=o.constructor;return i&&i.prototype===o},r={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},n=function(){if(typeof window>"u")return!1;for(var o in window)try{if(!r["$"+o]&&A.call(window,o)&&window[o]!==null&&typeof window[o]=="object")try{s(window[o])}catch{return!0}}catch{return!0}return!1}();O=function(o){var i=o!==null&&typeof o=="object",f=k.call(o)==="[object Function]",c=b(o),h=i&&k.call(o)==="[object String]",p=[];if(!i&&!f&&!c)throw new TypeError("Object.keys called on a non-object");var m=u&&f;if(h&&o.length>0&&!A.call(o,0))for(var M=0;M0)for(var l=0;l"u"||!n)return s(I);try{return s(I)}catch{return!1}}(o),R=0;R{var O=Array.prototype.slice,A=_(1414),k=Object.keys,b=k?function(t){return k(t)}:_(8987),a=Object.keys;b.shim=function(){if(Object.keys){var t=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);t||(Object.keys=function(u){return A(u)?a(O.call(u)):a(u)})}else Object.keys=b;return Object.keys||b},J.exports=b},1414:J=>{var e=Object.prototype.toString;J.exports=function(_){var O=e.call(_),A=O==="[object Arguments]";return A||(A=O!=="[object Array]"&&_!==null&&typeof _=="object"&&typeof _.length=="number"&&_.length>=0&&e.call(_.callee)==="[object Function]"),A}},9591:(J,e,_)=>{const{Deflate:O,deflate:A,deflateRaw:k,gzip:b}=_(4555),{Inflate:a,inflate:t,inflateRaw:u,ungzip:d}=_(8843),s=_(1619);J.exports.Deflate=O,J.exports.deflate=A,J.exports.deflateRaw=k,J.exports.gzip=b,J.exports.Inflate=a,J.exports.inflate=t,J.exports.inflateRaw=u,J.exports.ungzip=d,J.exports.constants=s},4555:(J,e,_)=>{const O=_(405),A=_(4236),k=_(9373),b=_(8898),a=_(2292),t=Object.prototype.toString,{Z_NO_FLUSH:u,Z_SYNC_FLUSH:d,Z_FULL_FLUSH:s,Z_FINISH:r,Z_OK:n,Z_STREAM_END:o,Z_DEFAULT_COMPRESSION:i,Z_DEFAULT_STRATEGY:f,Z_DEFLATED:c}=_(1619);function h(m){this.options=A.assign({level:i,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:f},m||{});let M=this.options;M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=O.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(l!==n)throw new Error(b[l]);if(M.header&&O.deflateSetHeader(this.strm,M.header),M.dictionary){let N;if(N=typeof M.dictionary=="string"?k.string2buf(M.dictionary):t.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,l=O.deflateSetDictionary(this.strm,N),l!==n)throw new Error(b[l]);this._dict_set=!0}}function p(m,M){const l=new h(M);if(l.push(m,!0),l.err)throw l.msg||b[l.err];return l.result}h.prototype.push=function(m,M){const l=this.strm,N=this.options.chunkSize;let j,R;if(this.ended)return!1;for(R=M===~~M?M:M===!0?r:u,typeof m=="string"?l.input=k.string2buf(m):t.call(m)==="[object ArrayBuffer]"?l.input=new Uint8Array(m):l.input=m,l.next_in=0,l.avail_in=l.input.length;;)if(l.avail_out===0&&(l.output=new Uint8Array(N),l.next_out=0,l.avail_out=N),(R===d||R===s)&&l.avail_out<=6)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else{if(j=O.deflate(l,R),j===o)return l.next_out>0&&this.onData(l.output.subarray(0,l.next_out)),j=O.deflateEnd(this.strm),this.onEnd(j),this.ended=!0,j===n;if(l.avail_out!==0){if(R>0&&l.next_out>0)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else if(l.avail_in===0)break}else this.onData(l.output)}return!0},h.prototype.onData=function(m){this.chunks.push(m)},h.prototype.onEnd=function(m){m===n&&(this.result=A.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},J.exports.Deflate=h,J.exports.deflate=p,J.exports.deflateRaw=function(m,M){return(M=M||{}).raw=!0,p(m,M)},J.exports.gzip=function(m,M){return(M=M||{}).gzip=!0,p(m,M)},J.exports.constants=_(1619)},8843:(J,e,_)=>{const O=_(6351),A=_(4236),k=_(9373),b=_(8898),a=_(2292),t=_(188),u=Object.prototype.toString,{Z_NO_FLUSH:d,Z_FINISH:s,Z_OK:r,Z_STREAM_END:n,Z_NEED_DICT:o,Z_STREAM_ERROR:i,Z_DATA_ERROR:f,Z_MEM_ERROR:c}=_(1619);function h(m){this.options=A.assign({chunkSize:65536,windowBits:15,to:""},m||{});const M=this.options;M.raw&&M.windowBits>=0&&M.windowBits<16&&(M.windowBits=-M.windowBits,M.windowBits===0&&(M.windowBits=-15)),!(M.windowBits>=0&&M.windowBits<16)||m&&m.windowBits||(M.windowBits+=32),M.windowBits>15&&M.windowBits<48&&!(15&M.windowBits)&&(M.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=O.inflateInit2(this.strm,M.windowBits);if(l!==r)throw new Error(b[l]);if(this.header=new t,O.inflateGetHeader(this.strm,this.header),M.dictionary&&(typeof M.dictionary=="string"?M.dictionary=k.string2buf(M.dictionary):u.call(M.dictionary)==="[object ArrayBuffer]"&&(M.dictionary=new Uint8Array(M.dictionary)),M.raw&&(l=O.inflateSetDictionary(this.strm,M.dictionary),l!==r)))throw new Error(b[l])}function p(m,M){const l=new h(M);if(l.push(m),l.err)throw l.msg||b[l.err];return l.result}h.prototype.push=function(m,M){const l=this.strm,N=this.options.chunkSize,j=this.options.dictionary;let R,I,x;if(this.ended)return!1;for(I=M===~~M?M:M===!0?s:d,u.call(m)==="[object ArrayBuffer]"?l.input=new Uint8Array(m):l.input=m,l.next_in=0,l.avail_in=l.input.length;;){for(l.avail_out===0&&(l.output=new Uint8Array(N),l.next_out=0,l.avail_out=N),R=O.inflate(l,I),R===o&&j&&(R=O.inflateSetDictionary(l,j),R===r?R=O.inflate(l,I):R===f&&(R=o));l.avail_in>0&&R===n&&l.state.wrap>0&&m[l.next_in]!==0;)O.inflateReset(l),R=O.inflate(l,I);switch(R){case i:case f:case o:case c:return this.onEnd(R),this.ended=!0,!1}if(x=l.avail_out,l.next_out&&(l.avail_out===0||R===n))if(this.options.to==="string"){let P=k.utf8border(l.output,l.next_out),w=l.next_out-P,g=k.buf2string(l.output,P);l.next_out=w,l.avail_out=N-w,w&&l.output.set(l.output.subarray(P,P+w),0),this.onData(g)}else this.onData(l.output.length===l.next_out?l.output:l.output.subarray(0,l.next_out));if(R!==r||x!==0){if(R===n)return R=O.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,!0;if(l.avail_in===0)break}}return!0},h.prototype.onData=function(m){this.chunks.push(m)},h.prototype.onEnd=function(m){m===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=A.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},J.exports.Inflate=h,J.exports.inflate=p,J.exports.inflateRaw=function(m,M){return(M=M||{}).raw=!0,p(m,M)},J.exports.ungzip=p,J.exports.constants=_(1619)},4236:J=>{const e=(_,O)=>Object.prototype.hasOwnProperty.call(_,O);J.exports.assign=function(_){const O=Array.prototype.slice.call(arguments,1);for(;O.length;){const A=O.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const k in A)e(A,k)&&(_[k]=A[k])}}return _},J.exports.flattenChunks=_=>{let O=0;for(let k=0,b=_.length;k{let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}const _=new Uint8Array(256);for(let O=0;O<256;O++)_[O]=O>=252?6:O>=248?5:O>=240?4:O>=224?3:O>=192?2:1;_[254]=_[254]=1,J.exports.string2buf=O=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(O);let A,k,b,a,t,u=O.length,d=0;for(a=0;a>>6,A[t++]=128|63&k):k<65536?(A[t++]=224|k>>>12,A[t++]=128|k>>>6&63,A[t++]=128|63&k):(A[t++]=240|k>>>18,A[t++]=128|k>>>12&63,A[t++]=128|k>>>6&63,A[t++]=128|63&k);return A},J.exports.buf2string=(O,A)=>{const k=A||O.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(O.subarray(0,A));let b,a;const t=new Array(2*k);for(a=0,b=0;b4)t[a++]=65533,b+=d-1;else{for(u&=d===2?31:d===3?15:7;d>1&&b1?t[a++]=65533:u<65536?t[a++]=u:(u-=65536,t[a++]=55296|u>>10&1023,t[a++]=56320|1023&u)}}return((u,d)=>{if(d<65534&&u.subarray&&e)return String.fromCharCode.apply(null,u.length===d?u:u.subarray(0,d));let s="";for(let r=0;r{(A=A||O.length)>O.length&&(A=O.length);let k=A-1;for(;k>=0&&(192&O[k])==128;)k--;return k<0||k===0?A:k+_[O[k]]>A?k:A}},6069:J=>{J.exports=(e,_,O,A)=>{let k=65535&e|0,b=e>>>16&65535|0,a=0;for(;O!==0;){a=O>2e3?2e3:O,O-=a;do k=k+_[A++]|0,b=b+k|0;while(--a);k%=65521,b%=65521}return k|b<<16|0}},1619:J=>{J.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:J=>{const e=new Uint32Array((()=>{let _,O=[];for(var A=0;A<256;A++){_=A;for(var k=0;k<8;k++)_=1&_?3988292384^_>>>1:_>>>1;O[A]=_}return O})());J.exports=(_,O,A,k)=>{const b=e,a=k+A;_^=-1;for(let t=k;t>>8^b[255&(_^O[t])];return-1^_}},405:(J,e,_)=>{const{_tr_init:O,_tr_stored_block:A,_tr_flush_block:k,_tr_tally:b,_tr_align:a}=_(342),t=_(6069),u=_(2869),d=_(8898),{Z_NO_FLUSH:s,Z_PARTIAL_FLUSH:r,Z_FULL_FLUSH:n,Z_FINISH:o,Z_BLOCK:i,Z_OK:f,Z_STREAM_END:c,Z_STREAM_ERROR:h,Z_DATA_ERROR:p,Z_BUF_ERROR:m,Z_DEFAULT_COMPRESSION:M,Z_FILTERED:l,Z_HUFFMAN_ONLY:N,Z_RLE:j,Z_FIXED:R,Z_DEFAULT_STRATEGY:I,Z_UNKNOWN:x,Z_DEFLATED:P}=_(1619),w=258,g=262,E=103,U=113,C=666,F=(W,v)=>(W.msg=d[v],v),re=W=>(W<<1)-(W>4?9:0),ee=W=>{let v=W.length;for(;--v>=0;)W[v]=0};let ne=(W,v,y)=>(v<{const v=W.state;let y=v.pending;y>W.avail_out&&(y=W.avail_out),y!==0&&(W.output.set(v.pending_buf.subarray(v.pending_out,v.pending_out+y),W.next_out),W.next_out+=y,v.pending_out+=y,W.total_out+=y,W.avail_out-=y,v.pending-=y,v.pending===0&&(v.pending_out=0))},Z=(W,v)=>{k(W,W.block_start>=0?W.block_start:-1,W.strstart-W.block_start,v),W.block_start=W.strstart,D(W.strm)},$=(W,v)=>{W.pending_buf[W.pending++]=v},X=(W,v)=>{W.pending_buf[W.pending++]=v>>>8&255,W.pending_buf[W.pending++]=255&v},K=(W,v,y,S)=>{let T=W.avail_in;return T>S&&(T=S),T===0?0:(W.avail_in-=T,v.set(W.input.subarray(W.next_in,W.next_in+T),y),W.state.wrap===1?W.adler=t(W.adler,v,T,y):W.state.wrap===2&&(W.adler=u(W.adler,v,T,y)),W.next_in+=T,W.total_in+=T,T)},Y=(W,v)=>{let y,S,T=W.max_chain_length,B=W.strstart,z=W.prev_length,q=W.nice_match;const te=W.strstart>W.w_size-g?W.strstart-(W.w_size-g):0,oe=W.window,V=W.w_mask,Q=W.prev,G=W.strstart+w;let H=oe[B+z-1],ie=oe[B+z];W.prev_length>=W.good_match&&(T>>=2),q>W.lookahead&&(q=W.lookahead);do if(y=v,oe[y+z]===ie&&oe[y+z-1]===H&&oe[y]===oe[B]&&oe[++y]===oe[B+1]){B+=2,y++;do;while(oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&oe[++B]===oe[++y]&&Bz){if(W.match_start=v,z=S,S>=q)break;H=oe[B+z-1],ie=oe[B+z]}}while((v=Q[v&V])>te&&--T!=0);return z<=W.lookahead?z:W.lookahead},L=W=>{const v=W.w_size;let y,S,T,B,z;do{if(B=W.window_size-W.lookahead-W.strstart,W.strstart>=v+(v-g)){W.window.set(W.window.subarray(v,v+v),0),W.match_start-=v,W.strstart-=v,W.block_start-=v,S=W.hash_size,y=S;do T=W.head[--y],W.head[y]=T>=v?T-v:0;while(--S);S=v,y=S;do T=W.prev[--y],W.prev[y]=T>=v?T-v:0;while(--S);B+=v}if(W.strm.avail_in===0)break;if(S=K(W.strm,W.window,W.strstart+W.lookahead,B),W.lookahead+=S,W.lookahead+W.insert>=3)for(z=W.strstart-W.insert,W.ins_h=W.window[z],W.ins_h=ne(W,W.ins_h,W.window[z+1]);W.insert&&(W.ins_h=ne(W,W.ins_h,W.window[z+3-1]),W.prev[z&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=z,z++,W.insert--,!(W.lookahead+W.insert<3)););}while(W.lookahead{let y,S;for(;;){if(W.lookahead=3&&(W.ins_h=ne(W,W.ins_h,W.window[W.strstart+3-1]),y=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),y!==0&&W.strstart-y<=W.w_size-g&&(W.match_length=Y(W,y)),W.match_length>=3)if(S=b(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;do W.strstart++,W.ins_h=ne(W,W.ins_h,W.window[W.strstart+3-1]),y=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!=0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=ne(W,W.ins_h,W.window[W.strstart+1]);else S=b(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(S&&(Z(W,!1),W.strm.avail_out===0))return 1}return W.insert=W.strstart<2?W.strstart:2,v===o?(Z(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z(W,!1),W.strm.avail_out===0)?1:2},ce=(W,v)=>{let y,S,T;for(;;){if(W.lookahead=3&&(W.ins_h=ne(W,W.ins_h,W.window[W.strstart+3-1]),y=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=2,y!==0&&W.prev_length4096)&&(W.match_length=2)),W.prev_length>=3&&W.match_length<=W.prev_length){T=W.strstart+W.lookahead-3,S=b(W,W.strstart-1-W.prev_match,W.prev_length-3),W.lookahead-=W.prev_length-1,W.prev_length-=2;do++W.strstart<=T&&(W.ins_h=ne(W,W.ins_h,W.window[W.strstart+3-1]),y=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!=0);if(W.match_available=0,W.match_length=2,W.strstart++,S&&(Z(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if(S=b(W,0,W.window[W.strstart-1]),S&&Z(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(S=b(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<2?W.strstart:2,v===o?(Z(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z(W,!1),W.strm.avail_out===0)?1:2};function ue(W,v,y,S,T){this.good_length=W,this.max_lazy=v,this.nice_length=y,this.max_chain=S,this.func=T}const le=[new ue(0,0,0,0,(W,v)=>{let y=65535;for(y>W.pending_buf_size-5&&(y=W.pending_buf_size-5);;){if(W.lookahead<=1){if(L(W),W.lookahead===0&&v===s)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;const S=W.block_start+y;if((W.strstart===0||W.strstart>=S)&&(W.lookahead=W.strstart-S,W.strstart=S,Z(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-g&&(Z(W,!1),W.strm.avail_out===0))return 1}return W.insert=0,v===o?(Z(W,!0),W.strm.avail_out===0?3:4):(W.strstart>W.block_start&&(Z(W,!1),W.strm.avail_out),1)}),new ue(4,4,8,4,ae),new ue(4,5,16,8,ae),new ue(4,6,32,32,ae),new ue(4,4,16,16,ce),new ue(8,16,32,32,ce),new ue(8,16,128,128,ce),new ue(8,32,128,256,ce),new ue(32,128,258,1024,ce),new ue(32,258,258,4096,ce)];function be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=P,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const de=W=>{if(!W||!W.state)return F(W,h);W.total_in=W.total_out=0,W.data_type=x;const v=W.state;return v.pending=0,v.pending_out=0,v.wrap<0&&(v.wrap=-v.wrap),v.status=v.wrap?42:U,W.adler=v.wrap===2?0:1,v.last_flush=s,O(v),f},pe=W=>{const v=de(W);var y;return v===f&&((y=W.state).window_size=2*y.w_size,ee(y.head),y.max_lazy_match=le[y.level].max_lazy,y.good_match=le[y.level].good_length,y.nice_match=le[y.level].nice_length,y.max_chain_length=le[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=2,y.match_available=0,y.ins_h=0),v},_e=(W,v,y,S,T,B)=>{if(!W)return h;let z=1;if(v===M&&(v=6),S<0?(z=0,S=-S):S>15&&(z=2,S-=16),T<1||T>9||y!==P||S<8||S>15||v<0||v>9||B<0||B>R)return F(W,h);S===8&&(S=9);const q=new be;return W.state=q,q.strm=W,q.wrap=z,q.gzhead=null,q.w_bits=S,q.w_size=1<_e(W,v,P,15,8,I),J.exports.deflateInit2=_e,J.exports.deflateReset=pe,J.exports.deflateResetKeep=de,J.exports.deflateSetHeader=(W,v)=>W&&W.state?W.state.wrap!==2?h:(W.state.gzhead=v,f):h,J.exports.deflate=(W,v)=>{let y,S;if(!W||!W.state||v>i||v<0)return W?F(W,h):h;const T=W.state;if(!W.output||!W.input&&W.avail_in!==0||T.status===C&&v!==o)return F(W,W.avail_out===0?m:h);T.strm=W;const B=T.last_flush;if(T.last_flush=v,T.status===42)if(T.wrap===2)W.adler=0,$(T,31),$(T,139),$(T,8),T.gzhead?($(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),$(T,255&T.gzhead.time),$(T,T.gzhead.time>>8&255),$(T,T.gzhead.time>>16&255),$(T,T.gzhead.time>>24&255),$(T,T.level===9?2:T.strategy>=N||T.level<2?4:0),$(T,255&T.gzhead.os),T.gzhead.extra&&T.gzhead.extra.length&&($(T,255&T.gzhead.extra.length),$(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(W.adler=u(W.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=69):($(T,0),$(T,0),$(T,0),$(T,0),$(T,0),$(T,T.level===9?2:T.strategy>=N||T.level<2?4:0),$(T,3),T.status=U);else{let z=P+(T.w_bits-8<<4)<<8,q=-1;q=T.strategy>=N||T.level<2?0:T.level<6?1:T.level===6?2:3,z|=q<<6,T.strstart!==0&&(z|=32),z+=31-z%31,T.status=U,X(T,z),T.strstart!==0&&(X(T,W.adler>>>16),X(T,65535&W.adler)),W.adler=1}if(T.status===69)if(T.gzhead.extra){for(y=T.pending;T.gzindex<(65535&T.gzhead.extra.length)&&(T.pending!==T.pending_buf_size||(T.gzhead.hcrc&&T.pending>y&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),D(W),y=T.pending,T.pending!==T.pending_buf_size));)$(T,255&T.gzhead.extra[T.gzindex]),T.gzindex++;T.gzhead.hcrc&&T.pending>y&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=73)}else T.status=73;if(T.status===73)if(T.gzhead.name){y=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>y&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),D(W),y=T.pending,T.pending===T.pending_buf_size)){S=1;break}S=T.gzindexy&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),S===0&&(T.gzindex=0,T.status=91)}else T.status=91;if(T.status===91)if(T.gzhead.comment){y=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>y&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),D(W),y=T.pending,T.pending===T.pending_buf_size)){S=1;break}S=T.gzindexy&&(W.adler=u(W.adler,T.pending_buf,T.pending-y,y)),S===0&&(T.status=E)}else T.status=E;if(T.status===E&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&D(W),T.pending+2<=T.pending_buf_size&&($(T,255&W.adler),$(T,W.adler>>8&255),W.adler=0,T.status=U)):T.status=U),T.pending!==0){if(D(W),W.avail_out===0)return T.last_flush=-1,f}else if(W.avail_in===0&&re(v)<=re(B)&&v!==o)return F(W,m);if(T.status===C&&W.avail_in!==0)return F(W,m);if(W.avail_in!==0||T.lookahead!==0||v!==s&&T.status!==C){let z=T.strategy===N?((q,te)=>{let oe;for(;;){if(q.lookahead===0&&(L(q),q.lookahead===0)){if(te===s)return 1;break}if(q.match_length=0,oe=b(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,oe&&(Z(q,!1),q.strm.avail_out===0))return 1}return q.insert=0,te===o?(Z(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(Z(q,!1),q.strm.avail_out===0)?1:2})(T,v):T.strategy===j?((q,te)=>{let oe,V,Q,G;const H=q.window;for(;;){if(q.lookahead<=w){if(L(q),q.lookahead<=w&&te===s)return 1;if(q.lookahead===0)break}if(q.match_length=0,q.lookahead>=3&&q.strstart>0&&(Q=q.strstart-1,V=H[Q],V===H[++Q]&&V===H[++Q]&&V===H[++Q])){G=q.strstart+w;do;while(V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&V===H[++Q]&&Qq.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=3?(oe=b(q,1,q.match_length-3),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(oe=b(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),oe&&(Z(q,!1),q.strm.avail_out===0))return 1}return q.insert=0,te===o?(Z(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(Z(q,!1),q.strm.avail_out===0)?1:2})(T,v):le[T.level].func(T,v);if(z!==3&&z!==4||(T.status=C),z===1||z===3)return W.avail_out===0&&(T.last_flush=-1),f;if(z===2&&(v===r?a(T):v!==i&&(A(T,0,0,!1),v===n&&(ee(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),D(W),W.avail_out===0))return T.last_flush=-1,f}return v!==o?f:T.wrap<=0?c:(T.wrap===2?($(T,255&W.adler),$(T,W.adler>>8&255),$(T,W.adler>>16&255),$(T,W.adler>>24&255),$(T,255&W.total_in),$(T,W.total_in>>8&255),$(T,W.total_in>>16&255),$(T,W.total_in>>24&255)):(X(T,W.adler>>>16),X(T,65535&W.adler)),D(W),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?f:c)},J.exports.deflateEnd=W=>{if(!W||!W.state)return h;const v=W.state.status;return v!==42&&v!==69&&v!==73&&v!==91&&v!==E&&v!==U&&v!==C?F(W,h):(W.state=null,v===U?F(W,p):f)},J.exports.deflateSetDictionary=(W,v)=>{let y=v.length;if(!W||!W.state)return h;const S=W.state,T=S.wrap;if(T===2||T===1&&S.status!==42||S.lookahead)return h;if(T===1&&(W.adler=t(W.adler,v,y,0)),S.wrap=0,y>=S.w_size){T===0&&(ee(S.head),S.strstart=0,S.block_start=0,S.insert=0);let te=new Uint8Array(S.w_size);te.set(v.subarray(y-S.w_size,y),0),v=te,y=S.w_size}const B=W.avail_in,z=W.next_in,q=W.input;for(W.avail_in=y,W.next_in=0,W.input=v,L(S);S.lookahead>=3;){let te=S.strstart,oe=S.lookahead-2;do S.ins_h=ne(S,S.ins_h,S.window[te+3-1]),S.prev[te&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=te,te++;while(--oe);S.strstart=te,S.lookahead=2,L(S)}return S.strstart+=S.lookahead,S.block_start=S.strstart,S.insert=S.lookahead,S.lookahead=0,S.match_length=S.prev_length=2,S.match_available=0,W.next_in=z,W.input=q,W.avail_in=B,S.wrap=T,f},J.exports.deflateInfo="pako deflate (from Nodeca project)"},188:J=>{J.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},4264:J=>{J.exports=function(e,_){let O,A,k,b,a,t,u,d,s,r,n,o,i,f,c,h,p,m,M,l,N,j,R,I;const x=e.state;O=e.next_in,R=e.input,A=O+(e.avail_in-5),k=e.next_out,I=e.output,b=k-(_-e.avail_out),a=k+(e.avail_out-257),t=x.dmax,u=x.wsize,d=x.whave,s=x.wnext,r=x.window,n=x.hold,o=x.bits,i=x.lencode,f=x.distcode,c=(1<>>24,n>>>=m,o-=m,m=p>>>16&255,m===0)I[k++]=65535&p;else{if(!(16&m)){if(!(64&m)){p=i[(65535&p)+(n&(1<>>=m,o-=m),o<15&&(n+=R[O++]<>>24,n>>>=m,o-=m,m=p>>>16&255,!(16&m)){if(!(64&m)){p=f[(65535&p)+(n&(1<t){e.msg="invalid distance too far back",x.mode=30;break e}if(n>>>=m,o-=m,m=k-b,l>m){if(m=l-m,m>d&&x.sane){e.msg="invalid distance too far back",x.mode=30;break e}if(N=0,j=r,s===0){if(N+=u-m,m2;)I[k++]=j[N++],I[k++]=j[N++],I[k++]=j[N++],M-=3;M&&(I[k++]=j[N++],M>1&&(I[k++]=j[N++]))}else{N=k-l;do I[k++]=I[N++],I[k++]=I[N++],I[k++]=I[N++],M-=3;while(M>2);M&&(I[k++]=I[N++],M>1&&(I[k++]=I[N++]))}break}}break}}while(O>3,O-=M,o-=M<<3,n&=(1<{const O=_(6069),A=_(2869),k=_(4264),b=_(9241),{Z_FINISH:a,Z_BLOCK:t,Z_TREES:u,Z_OK:d,Z_STREAM_END:s,Z_NEED_DICT:r,Z_STREAM_ERROR:n,Z_DATA_ERROR:o,Z_MEM_ERROR:i,Z_BUF_ERROR:f,Z_DEFLATED:c}=_(1619),h=12,p=30,m=E=>(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24);function M(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const l=E=>{if(!E||!E.state)return n;const U=E.state;return E.total_in=E.total_out=U.total=0,E.msg="",U.wrap&&(E.adler=1&U.wrap),U.mode=1,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new Int32Array(852),U.distcode=U.distdyn=new Int32Array(592),U.sane=1,U.back=-1,d},N=E=>{if(!E||!E.state)return n;const U=E.state;return U.wsize=0,U.whave=0,U.wnext=0,l(E)},j=(E,U)=>{let C;if(!E||!E.state)return n;const F=E.state;return U<0?(C=0,U=-U):(C=1+(U>>4),U<48&&(U&=15)),U&&(U<8||U>15)?n:(F.window!==null&&F.wbits!==U&&(F.window=null),F.wrap=C,F.wbits=U,N(E))},R=(E,U)=>{if(!E)return n;const C=new M;E.state=C,C.window=null;const F=j(E,U);return F!==d&&(E.state=null),F};let I,x,P=!0;const w=E=>{if(P){I=new Int32Array(512),x=new Int32Array(32);let U=0;for(;U<144;)E.lens[U++]=8;for(;U<256;)E.lens[U++]=9;for(;U<280;)E.lens[U++]=7;for(;U<288;)E.lens[U++]=8;for(b(1,E.lens,0,288,I,0,E.work,{bits:9}),U=0;U<32;)E.lens[U++]=5;b(2,E.lens,0,32,x,0,E.work,{bits:5}),P=!1}E.lencode=I,E.lenbits=9,E.distcode=x,E.distbits=5},g=(E,U,C,F)=>{let re;const ee=E.state;return ee.window===null&&(ee.wsize=1<=ee.wsize?(ee.window.set(U.subarray(C-ee.wsize,C),0),ee.wnext=0,ee.whave=ee.wsize):(re=ee.wsize-ee.wnext,re>F&&(re=F),ee.window.set(U.subarray(C-F,C-F+re),ee.wnext),(F-=re)?(ee.window.set(U.subarray(C-F,C),0),ee.wnext=F,ee.whave=ee.wsize):(ee.wnext+=re,ee.wnext===ee.wsize&&(ee.wnext=0),ee.whaveR(E,15),J.exports.inflateInit2=R,J.exports.inflate=(E,U)=>{let C,F,re,ee,ne,D,Z,$,X,K,Y,L,ae,ce,ue,le,be,de,pe,_e,W,v,y=0;const S=new Uint8Array(4);let T,B;const z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return n;C=E.state,C.mode===h&&(C.mode=13),ne=E.next_out,re=E.output,Z=E.avail_out,ee=E.next_in,F=E.input,D=E.avail_in,$=C.hold,X=C.bits,K=D,Y=Z,v=d;e:for(;;)switch(C.mode){case 1:if(C.wrap===0){C.mode=13;break}for(;X<16;){if(D===0)break e;D--,$+=F[ee++]<>>8&255,C.check=A(C.check,S,2,0),$=0,X=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&$)<<8)+($>>8))%31){E.msg="incorrect header check",C.mode=p;break}if((15&$)!==c){E.msg="unknown compression method",C.mode=p;break}if($>>>=4,X-=4,W=8+(15&$),C.wbits===0)C.wbits=W;else if(W>C.wbits){E.msg="invalid window size",C.mode=p;break}C.dmax=1<>8&1),512&C.flags&&(S[0]=255&$,S[1]=$>>>8&255,C.check=A(C.check,S,2,0)),$=0,X=0,C.mode=3;case 3:for(;X<32;){if(D===0)break e;D--,$+=F[ee++]<>>8&255,S[2]=$>>>16&255,S[3]=$>>>24&255,C.check=A(C.check,S,4,0)),$=0,X=0,C.mode=4;case 4:for(;X<16;){if(D===0)break e;D--,$+=F[ee++]<>8),512&C.flags&&(S[0]=255&$,S[1]=$>>>8&255,C.check=A(C.check,S,2,0)),$=0,X=0,C.mode=5;case 5:if(1024&C.flags){for(;X<16;){if(D===0)break e;D--,$+=F[ee++]<>>8&255,C.check=A(C.check,S,2,0)),$=0,X=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(L=C.length,L>D&&(L=D),L&&(C.head&&(W=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Uint8Array(C.head.extra_len)),C.head.extra.set(F.subarray(ee,ee+L),W)),512&C.flags&&(C.check=A(C.check,F,L,ee)),D-=L,ee+=L,C.length-=L),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(D===0)break e;L=0;do W=F[ee+L++],C.head&&W&&C.length<65536&&(C.head.name+=String.fromCharCode(W));while(W&&L>9&1,C.head.done=!0),E.adler=C.check=0,C.mode=h;break;case 10:for(;X<32;){if(D===0)break e;D--,$+=F[ee++]<>>=7&X,X-=7&X,C.mode=27;break}for(;X<3;){if(D===0)break e;D--,$+=F[ee++]<>>=1,X-=1,3&$){case 0:C.mode=14;break;case 1:if(w(C),C.mode=20,U===u){$>>>=2,X-=2;break e}break;case 2:C.mode=17;break;case 3:E.msg="invalid block type",C.mode=p}$>>>=2,X-=2;break;case 14:for($>>>=7&X,X-=7&X;X<32;){if(D===0)break e;D--,$+=F[ee++]<>>16^65535)){E.msg="invalid stored block lengths",C.mode=p;break}if(C.length=65535&$,$=0,X=0,C.mode=15,U===u)break e;case 15:C.mode=16;case 16:if(L=C.length,L){if(L>D&&(L=D),L>Z&&(L=Z),L===0)break e;re.set(F.subarray(ee,ee+L),ne),D-=L,ee+=L,Z-=L,ne+=L,C.length-=L;break}C.mode=h;break;case 17:for(;X<14;){if(D===0)break e;D--,$+=F[ee++]<>>=5,X-=5,C.ndist=1+(31&$),$>>>=5,X-=5,C.ncode=4+(15&$),$>>>=4,X-=4,C.nlen>286||C.ndist>30){E.msg="too many length or distance symbols",C.mode=p;break}C.have=0,C.mode=18;case 18:for(;C.have>>=3,X-=3}for(;C.have<19;)C.lens[z[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,T={bits:C.lenbits},v=b(0,C.lens,0,19,C.lencode,0,C.work,T),C.lenbits=T.bits,v){E.msg="invalid code lengths set",C.mode=p;break}C.have=0,C.mode=19;case 19:for(;C.have>>24,le=y>>>16&255,be=65535&y,!(ue<=X);){if(D===0)break e;D--,$+=F[ee++]<>>=ue,X-=ue,C.lens[C.have++]=be;else{if(be===16){for(B=ue+2;X>>=ue,X-=ue,C.have===0){E.msg="invalid bit length repeat",C.mode=p;break}W=C.lens[C.have-1],L=3+(3&$),$>>>=2,X-=2}else if(be===17){for(B=ue+3;X>>=ue,X-=ue,W=0,L=3+(7&$),$>>>=3,X-=3}else{for(B=ue+7;X>>=ue,X-=ue,W=0,L=11+(127&$),$>>>=7,X-=7}if(C.have+L>C.nlen+C.ndist){E.msg="invalid bit length repeat",C.mode=p;break}for(;L--;)C.lens[C.have++]=W}}if(C.mode===p)break;if(C.lens[256]===0){E.msg="invalid code -- missing end-of-block",C.mode=p;break}if(C.lenbits=9,T={bits:C.lenbits},v=b(1,C.lens,0,C.nlen,C.lencode,0,C.work,T),C.lenbits=T.bits,v){E.msg="invalid literal/lengths set",C.mode=p;break}if(C.distbits=6,C.distcode=C.distdyn,T={bits:C.distbits},v=b(2,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,T),C.distbits=T.bits,v){E.msg="invalid distances set",C.mode=p;break}if(C.mode=20,U===u)break e;case 20:C.mode=21;case 21:if(D>=6&&Z>=258){E.next_out=ne,E.avail_out=Z,E.next_in=ee,E.avail_in=D,C.hold=$,C.bits=X,k(E,Y),ne=E.next_out,re=E.output,Z=E.avail_out,ee=E.next_in,F=E.input,D=E.avail_in,$=C.hold,X=C.bits,C.mode===h&&(C.back=-1);break}for(C.back=0;y=C.lencode[$&(1<>>24,le=y>>>16&255,be=65535&y,!(ue<=X);){if(D===0)break e;D--,$+=F[ee++]<>de)],ue=y>>>24,le=y>>>16&255,be=65535&y,!(de+ue<=X);){if(D===0)break e;D--,$+=F[ee++]<>>=de,X-=de,C.back+=de}if($>>>=ue,X-=ue,C.back+=ue,C.length=be,le===0){C.mode=26;break}if(32&le){C.back=-1,C.mode=h;break}if(64&le){E.msg="invalid literal/length code",C.mode=p;break}C.extra=15&le,C.mode=22;case 22:if(C.extra){for(B=C.extra;X>>=C.extra,X-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;y=C.distcode[$&(1<>>24,le=y>>>16&255,be=65535&y,!(ue<=X);){if(D===0)break e;D--,$+=F[ee++]<>de)],ue=y>>>24,le=y>>>16&255,be=65535&y,!(de+ue<=X);){if(D===0)break e;D--,$+=F[ee++]<>>=de,X-=de,C.back+=de}if($>>>=ue,X-=ue,C.back+=ue,64&le){E.msg="invalid distance code",C.mode=p;break}C.offset=be,C.extra=15&le,C.mode=24;case 24:if(C.extra){for(B=C.extra;X>>=C.extra,X-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){E.msg="invalid distance too far back",C.mode=p;break}C.mode=25;case 25:if(Z===0)break e;if(L=Y-Z,C.offset>L){if(L=C.offset-L,L>C.whave&&C.sane){E.msg="invalid distance too far back",C.mode=p;break}L>C.wnext?(L-=C.wnext,ae=C.wsize-L):ae=C.wnext-L,L>C.length&&(L=C.length),ce=C.window}else ce=re,ae=ne-C.offset,L=C.length;L>Z&&(L=Z),Z-=L,C.length-=L;do re[ne++]=ce[ae++];while(--L);C.length===0&&(C.mode=21);break;case 26:if(Z===0)break e;re[ne++]=C.length,Z--,C.mode=21;break;case 27:if(C.wrap){for(;X<32;){if(D===0)break e;D--,$|=F[ee++]<{if(!E||!E.state)return n;let U=E.state;return U.window&&(U.window=null),E.state=null,d},J.exports.inflateGetHeader=(E,U)=>{if(!E||!E.state)return n;const C=E.state;return 2&C.wrap?(C.head=U,U.done=!1,d):n},J.exports.inflateSetDictionary=(E,U)=>{const C=U.length;let F,re,ee;return E&&E.state?(F=E.state,F.wrap!==0&&F.mode!==11?n:F.mode===11&&(re=1,re=O(re,U,C,0),re!==F.check)?o:(ee=g(E,U,C,C),ee?(F.mode=31,i):(F.havedict=1,d))):n},J.exports.inflateInfo="pako inflate (from Nodeca project)"},9241:J=>{const e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),O=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),A=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);J.exports=(k,b,a,t,u,d,s,r)=>{const n=r.bits;let o,i,f,c,h,p,m=0,M=0,l=0,N=0,j=0,R=0,I=0,x=0,P=0,w=0,g=null,E=0;const U=new Uint16Array(16),C=new Uint16Array(16);let F,re,ee,ne=null,D=0;for(m=0;m<=15;m++)U[m]=0;for(M=0;M=1&&U[N]===0;N--);if(j>N&&(j=N),N===0)return u[d++]=20971520,u[d++]=20971520,r.bits=1,0;for(l=1;l0&&(k===0||N!==1))return-1;for(C[1]=0,m=1;m<15;m++)C[m+1]=C[m]+U[m];for(M=0;M852||k===2&&P>592)return 1;for(;;){F=m-I,s[M]p?(re=ne[D+s[M]],ee=g[E+s[M]]):(re=96,ee=0),o=1<>I)+i]=F<<24|re<<16|ee|0;while(i!==0);for(o=1<>=1;if(o!==0?(w&=o-1,w+=o):w=0,M++,--U[m]==0){if(m===N)break;m=b[a+s[M]]}if(m>j&&(w&c)!==f){for(I===0&&(I=j),h+=l,R=m-I,x=1<852||k===2&&P>592)return 1;f=w&c,u[f]=j<<24|R<<16|h-d|0}}return w!==0&&(u[h+w]=m-I<<24|4194304|0),r.bits=j,0}},8898:J=>{J.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:J=>{function e(C){let F=C.length;for(;--F>=0;)C[F]=0}const _=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),O=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b=new Array(576);e(b);const a=new Array(60);e(a);const t=new Array(512);e(t);const u=new Array(256);e(u);const d=new Array(29);e(d);const s=new Array(30);function r(C,F,re,ee,ne){this.static_tree=C,this.extra_bits=F,this.extra_base=re,this.elems=ee,this.max_length=ne,this.has_stree=C&&C.length}let n,o,i;function f(C,F){this.dyn_tree=C,this.max_code=0,this.stat_desc=F}e(s);const c=C=>C<256?t[C]:t[256+(C>>>7)],h=(C,F)=>{C.pending_buf[C.pending++]=255&F,C.pending_buf[C.pending++]=F>>>8&255},p=(C,F,re)=>{C.bi_valid>16-re?(C.bi_buf|=F<>16-C.bi_valid,C.bi_valid+=re-16):(C.bi_buf|=F<{p(C,re[2*F],re[2*F+1])},M=(C,F)=>{let re=0;do re|=1&C,C>>>=1,re<<=1;while(--F>0);return re>>>1},l=(C,F,re)=>{const ee=new Array(16);let ne,D,Z=0;for(ne=1;ne<=15;ne++)ee[ne]=Z=Z+re[ne-1]<<1;for(D=0;D<=F;D++){let $=C[2*D+1];$!==0&&(C[2*D]=M(ee[$]++,$))}},N=C=>{let F;for(F=0;F<286;F++)C.dyn_ltree[2*F]=0;for(F=0;F<30;F++)C.dyn_dtree[2*F]=0;for(F=0;F<19;F++)C.bl_tree[2*F]=0;C.dyn_ltree[512]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0},j=C=>{C.bi_valid>8?h(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0},R=(C,F,re,ee)=>{const ne=2*F,D=2*re;return C[ne]{const ee=C.heap[re];let ne=re<<1;for(;ne<=C.heap_len&&(ne{let ee,ne,D,Z,$=0;if(C.last_lit!==0)do ee=C.pending_buf[C.d_buf+2*$]<<8|C.pending_buf[C.d_buf+2*$+1],ne=C.pending_buf[C.l_buf+$],$++,ee===0?m(C,ne,F):(D=u[ne],m(C,D+256+1,F),Z=_[D],Z!==0&&(ne-=d[D],p(C,ne,Z)),ee--,D=c(ee),m(C,D,re),Z=O[D],Z!==0&&(ee-=s[D],p(C,ee,Z)));while(${const re=F.dyn_tree,ee=F.stat_desc.static_tree,ne=F.stat_desc.has_stree,D=F.stat_desc.elems;let Z,$,X,K=-1;for(C.heap_len=0,C.heap_max=573,Z=0;Z>1;Z>=1;Z--)I(C,re,Z);X=D;do Z=C.heap[1],C.heap[1]=C.heap[C.heap_len--],I(C,re,1),$=C.heap[1],C.heap[--C.heap_max]=Z,C.heap[--C.heap_max]=$,re[2*X]=re[2*Z]+re[2*$],C.depth[X]=(C.depth[Z]>=C.depth[$]?C.depth[Z]:C.depth[$])+1,re[2*Z+1]=re[2*$+1]=X,C.heap[1]=X++,I(C,re,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],((Y,L)=>{const ae=L.dyn_tree,ce=L.max_code,ue=L.stat_desc.static_tree,le=L.stat_desc.has_stree,be=L.stat_desc.extra_bits,de=L.stat_desc.extra_base,pe=L.stat_desc.max_length;let _e,W,v,y,S,T,B=0;for(y=0;y<=15;y++)Y.bl_count[y]=0;for(ae[2*Y.heap[Y.heap_max]+1]=0,_e=Y.heap_max+1;_e<573;_e++)W=Y.heap[_e],y=ae[2*ae[2*W+1]+1]+1,y>pe&&(y=pe,B++),ae[2*W+1]=y,W>ce||(Y.bl_count[y]++,S=0,W>=de&&(S=be[W-de]),T=ae[2*W],Y.opt_len+=T*(y+S),le&&(Y.static_len+=T*(ue[2*W+1]+S)));if(B!==0){do{for(y=pe-1;Y.bl_count[y]===0;)y--;Y.bl_count[y]--,Y.bl_count[y+1]+=2,Y.bl_count[pe]--,B-=2}while(B>0);for(y=pe;y!==0;y--)for(W=Y.bl_count[y];W!==0;)v=Y.heap[--_e],v>ce||(ae[2*v+1]!==y&&(Y.opt_len+=(y-ae[2*v+1])*ae[2*v],ae[2*v+1]=y),W--)}})(C,F),l(re,K,C.bl_count)},w=(C,F,re)=>{let ee,ne,D=-1,Z=F[1],$=0,X=7,K=4;for(Z===0&&(X=138,K=3),F[2*(re+1)+1]=65535,ee=0;ee<=re;ee++)ne=Z,Z=F[2*(ee+1)+1],++${let ee,ne,D=-1,Z=F[1],$=0,X=7,K=4;for(Z===0&&(X=138,K=3),ee=0;ee<=re;ee++)if(ne=Z,Z=F[2*(ee+1)+1],!(++${p(C,0+(ee?1:0),3),((ne,D,Z,$)=>{j(ne),h(ne,Z),h(ne,~Z),ne.pending_buf.set(ne.window.subarray(D,D+Z),ne.pending),ne.pending+=Z})(C,F,re)};J.exports._tr_init=C=>{E||((()=>{let F,re,ee,ne,D;const Z=new Array(16);for(ee=0,ne=0;ne<28;ne++)for(d[ne]=ee,F=0;F<1<<_[ne];F++)u[ee++]=ne;for(u[ee-1]=ne,D=0,ne=0;ne<16;ne++)for(s[ne]=D,F=0;F<1<>=7;ne<30;ne++)for(s[ne]=D<<7,F=0;F<1<{let ne,D,Z=0;C.level>0?(C.strm.data_type===2&&(C.strm.data_type=($=>{let X,K=4093624447;for(X=0;X<=31;X++,K>>>=1)if(1&K&&$.dyn_ltree[2*X]!==0)return 0;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return 1;for(X=32;X<256;X++)if($.dyn_ltree[2*X]!==0)return 1;return 0})(C)),P(C,C.l_desc),P(C,C.d_desc),Z=($=>{let X;for(w($,$.dyn_ltree,$.l_desc.max_code),w($,$.dyn_dtree,$.d_desc.max_code),P($,$.bl_desc),X=18;X>=3&&$.bl_tree[2*k[X]+1]===0;X--);return $.opt_len+=3*(X+1)+5+5+4,X})(C),ne=C.opt_len+3+7>>>3,D=C.static_len+3+7>>>3,D<=ne&&(ne=D)):ne=D=re+5,re+4<=ne&&F!==-1?U(C,F,re,ee):C.strategy===4||D===ne?(p(C,2+(ee?1:0),3),x(C,b,a)):(p(C,4+(ee?1:0),3),(($,X,K,Y)=>{let L;for(p($,X-257,5),p($,K-1,5),p($,Y-4,4),L=0;L(C.pending_buf[C.d_buf+2*C.last_lit]=F>>>8&255,C.pending_buf[C.d_buf+2*C.last_lit+1]=255&F,C.pending_buf[C.l_buf+C.last_lit]=255&re,C.last_lit++,F===0?C.dyn_ltree[2*re]++:(C.matches++,F--,C.dyn_ltree[2*(u[re]+256+1)]++,C.dyn_dtree[2*c(F)]++),C.last_lit===C.lit_bufsize-1),J.exports._tr_align=C=>{p(C,2,3),m(C,256,b),(F=>{F.bi_valid===16?(h(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(C)}},2292:J=>{J.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},5632:(J,e,_)=>{e.pbkdf2=_(8638),e.pbkdf2Sync=_(1257)},8638:(J,e,_)=>{var O,A,k=_(9509).Buffer,b=_(7357),a=_(2368),t=_(1257),u=_(7777),d=_.g.crypto&&_.g.crypto.subtle,s={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"},r=[];function n(){return A||(A=_.g.process&&_.g.process.nextTick?_.g.process.nextTick:_.g.queueMicrotask?_.g.queueMicrotask:_.g.setImmediate?_.g.setImmediate:_.g.setTimeout)}function o(i,f,c,h,p){return d.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits"]).then(function(m){return d.deriveBits({name:"PBKDF2",salt:f,iterations:c,hash:{name:p}},m,h<<3)}).then(function(m){return k.from(m)})}J.exports=function(i,f,c,h,p,m){typeof p=="function"&&(m=p,p=void 0);var M=s[(p=p||"sha1").toLowerCase()];if(M&&typeof _.g.Promise=="function"){if(b(c,h),i=u(i,a,"Password"),f=u(f,a,"Salt"),typeof m!="function")throw new Error("No callback provided to pbkdf2");(function(l,N){l.then(function(j){n()(function(){N(null,j)})},function(j){n()(function(){N(j)})})})(function(l){if(_.g.process&&!_.g.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(r[l]!==void 0)return r[l];var N=o(O=O||k.alloc(8),O,10,128,l).then(function(){return!0}).catch(function(){return!1});return r[l]=N,N}(M).then(function(l){return l?o(i,f,c,h,M):t(i,f,c,h,p)}),m)}else n()(function(){var l;try{l=t(i,f,c,h,p)}catch(N){return m(N)}m(null,l)})}},2368:(J,e,_)=>{var O,A=_(4155);O=_.g.process&&_.g.process.browser?"utf-8":_.g.process&&_.g.process.version?parseInt(A.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",J.exports=O},7357:J=>{var e=Math.pow(2,30)-1;J.exports=function(_,O){if(typeof _!="number")throw new TypeError("Iterations not a number");if(_<0)throw new TypeError("Bad iterations");if(typeof O!="number")throw new TypeError("Key length not a number");if(O<0||O>e||O!=O)throw new TypeError("Bad key length")}},1257:(J,e,_)=>{var O=_(8028),A=_(9785),k=_(9072),b=_(9509).Buffer,a=_(7357),t=_(2368),u=_(7777),d=b.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function r(n,o,i){var f=function(l){return l==="rmd160"||l==="ripemd160"?function(N){return new A().update(N).digest()}:l==="md5"?O:function(N){return k(l).update(N).digest()}}(n),c=n==="sha512"||n==="sha384"?128:64;o.length>c?o=f(o):o.length{var O=_(9509).Buffer;J.exports=function(A,k,b){if(O.isBuffer(A))return A;if(typeof A=="string")return O.from(A,k);if(ArrayBuffer.isView(A))return O.from(A.buffer);throw new TypeError(b+" must be a string, a Buffer, a typed array or a DataView")}},4155:J=>{var e,_,O=J.exports={};function A(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}function b(i){if(e===setTimeout)return setTimeout(i,0);if((e===A||!e)&&setTimeout)return e=setTimeout,setTimeout(i,0);try{return e(i,0)}catch{try{return e.call(null,i,0)}catch{return e.call(this,i,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:A}catch{e=A}try{_=typeof clearTimeout=="function"?clearTimeout:k}catch{_=k}})();var a,t=[],u=!1,d=-1;function s(){u&&a&&(u=!1,a.length?t=a.concat(t):d=-1,t.length&&r())}function r(){if(!u){var i=b(s);u=!0;for(var f=t.length;f;){for(a=t,t=[];++d1)for(var c=1;c{J.exports=_(9482)},9482:(J,e,_)=>{var O=e;function A(){O.util._configure(),O.Writer._configure(O.BufferWriter),O.Reader._configure(O.BufferReader)}O.build="minimal",O.Writer=_(1173),O.BufferWriter=_(3155),O.Reader=_(1408),O.BufferReader=_(593),O.util=_(9693),O.rpc=_(5994),O.roots=_(5054),O.configure=A,A()},1408:(J,e,_)=>{J.exports=t;var O,A=_(9693),k=A.LongBits,b=A.utf8;function a(i,f){return RangeError("index out of range: "+i.pos+" + "+(f||1)+" > "+i.len)}function t(i){this.buf=i,this.pos=0,this.len=i.length}var u,d=typeof Uint8Array<"u"?function(i){if(i instanceof Uint8Array||Array.isArray(i))return new t(i);throw Error("illegal buffer")}:function(i){if(Array.isArray(i))return new t(i);throw Error("illegal buffer")},s=function(){return A.Buffer?function(i){return(t.create=function(f){return A.Buffer.isBuffer(f)?new O(f):d(f)})(i)}:d};function r(){var i=new k(0,0),f=0;if(!(this.len-this.pos>4)){for(;f<3;++f){if(this.pos>=this.len)throw a(this);if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i}return i.lo=(i.lo|(127&this.buf[this.pos++])<<7*f)>>>0,i}for(;f<4;++f)if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i;if(i.lo=(i.lo|(127&this.buf[this.pos])<<28)>>>0,i.hi=(i.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return i;if(f=0,this.len-this.pos>4){for(;f<5;++f)if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}else for(;f<5;++f){if(this.pos>=this.len)throw a(this);if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}throw Error("invalid varint encoding")}function n(i,f){return(i[f-4]|i[f-3]<<8|i[f-2]<<16|i[f-1]<<24)>>>0}function o(){if(this.pos+8>this.len)throw a(this,8);return new k(n(this.buf,this.pos+=4),n(this.buf,this.pos+=4))}t.create=s(),t.prototype._slice=A.Array.prototype.subarray||A.Array.prototype.slice,t.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return u;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return u}),t.prototype.int32=function(){return 0|this.uint32()},t.prototype.sint32=function(){var i=this.uint32();return i>>>1^-(1&i)|0},t.prototype.bool=function(){return this.uint32()!==0},t.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return n(this.buf,this.pos+=4)},t.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|n(this.buf,this.pos+=4)},t.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var i=A.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i},t.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var i=A.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i},t.prototype.bytes=function(){var i=this.uint32(),f=this.pos,c=this.pos+i;if(c>this.len)throw a(this,i);return this.pos+=i,Array.isArray(this.buf)?this.buf.slice(f,c):f===c?new this.buf.constructor(0):this._slice.call(this.buf,f,c)},t.prototype.string=function(){var i=this.bytes();return b.read(i,0,i.length)},t.prototype.skip=function(i){if(typeof i=="number"){if(this.pos+i>this.len)throw a(this,i);this.pos+=i}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},t.prototype.skipType=function(i){switch(i){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(i=7&this.uint32())!=4;)this.skipType(i);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+i+" at offset "+this.pos)}return this},t._configure=function(i){O=i,t.create=s(),O._configure();var f=A.Long?"toLong":"toNumber";A.merge(t.prototype,{int64:function(){return r.call(this)[f](!1)},uint64:function(){return r.call(this)[f](!0)},sint64:function(){return r.call(this).zzDecode()[f](!1)},fixed64:function(){return o.call(this)[f](!0)},sfixed64:function(){return o.call(this)[f](!1)}})}},593:(J,e,_)=>{J.exports=k;var O=_(1408);(k.prototype=Object.create(O.prototype)).constructor=k;var A=_(9693);function k(b){O.call(this,b)}k._configure=function(){A.Buffer&&(k.prototype._slice=A.Buffer.prototype.slice)},k.prototype.string=function(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))},k._configure()},5054:J=>{J.exports={}},5994:(J,e,_)=>{e.Service=_(7948)},7948:(J,e,_)=>{J.exports=A;var O=_(9693);function A(k,b,a){if(typeof k!="function")throw TypeError("rpcImpl must be a function");O.EventEmitter.call(this),this.rpcImpl=k,this.requestDelimited=!!b,this.responseDelimited=!!a}(A.prototype=Object.create(O.EventEmitter.prototype)).constructor=A,A.prototype.rpcCall=function k(b,a,t,u,d){if(!u)throw TypeError("request must be specified");var s=this;if(!d)return O.asPromise(k,s,b,a,t,u);if(s.rpcImpl)try{return s.rpcImpl(b,a[s.requestDelimited?"encodeDelimited":"encode"](u).finish(),function(r,n){if(r)return s.emit("error",r,b),d(r);if(n!==null){if(!(n instanceof t))try{n=t[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(o){return s.emit("error",o,b),d(o)}return s.emit("data",n,b),d(null,n)}s.end(!0)})}catch(r){return s.emit("error",r,b),void setTimeout(function(){d(r)},0)}else setTimeout(function(){d(Error("already ended"))},0)},A.prototype.end=function(k){return this.rpcImpl&&(k||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2630:(J,e,_)=>{J.exports=A;var O=_(9693);function A(t,u){this.lo=t>>>0,this.hi=u>>>0}var k=A.zero=new A(0,0);k.toNumber=function(){return 0},k.zzEncode=k.zzDecode=function(){return this},k.length=function(){return 1};var b=A.zeroHash="\0\0\0\0\0\0\0\0";A.fromNumber=function(t){if(t===0)return k;var u=t<0;u&&(t=-t);var d=t>>>0,s=(t-d)/4294967296>>>0;return u&&(s=~s>>>0,d=~d>>>0,++d>4294967295&&(d=0,++s>4294967295&&(s=0))),new A(d,s)},A.from=function(t){if(typeof t=="number")return A.fromNumber(t);if(O.isString(t)){if(!O.Long)return A.fromNumber(parseInt(t,10));t=O.Long.fromString(t)}return t.low||t.high?new A(t.low>>>0,t.high>>>0):k},A.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var u=1+~this.lo>>>0,d=~this.hi>>>0;return u||(d=d+1>>>0),-(u+4294967296*d)}return this.lo+4294967296*this.hi},A.prototype.toLong=function(t){return O.Long?new O.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var a=String.prototype.charCodeAt;A.fromHash=function(t){return t===b?k:new A((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},A.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},A.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},A.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},A.prototype.length=function(){var t=this.lo,u=(this.lo>>>28|this.hi<<4)>>>0,d=this.hi>>>24;return d===0?u===0?t<16384?t<128?1:2:t<2097152?3:4:u<16384?u<128?5:6:u<2097152?7:8:d<128?9:10}},9693:function(J,e,_){var O=e;function A(b,a,t){for(var u=Object.keys(a),d=0;d0)},O.Buffer=function(){try{var b=O.inquire("buffer").Buffer;return b.prototype.utf8Write?b:null}catch{return null}}(),O._Buffer_from=null,O._Buffer_allocUnsafe=null,O.newBuffer=function(b){return typeof b=="number"?O.Buffer?O._Buffer_allocUnsafe(b):new O.Array(b):O.Buffer?O._Buffer_from(b):typeof Uint8Array>"u"?b:new Uint8Array(b)},O.Array=typeof Uint8Array<"u"?Uint8Array:Array,O.Long=O.global.dcodeIO&&O.global.dcodeIO.Long||O.global.Long||O.inquire("long"),O.key2Re=/^true|false|0|1$/,O.key32Re=/^-?(?:0|[1-9][0-9]*)$/,O.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,O.longToHash=function(b){return b?O.LongBits.from(b).toHash():O.LongBits.zeroHash},O.longFromHash=function(b,a){var t=O.LongBits.fromHash(b);return O.Long?O.Long.fromBits(t.lo,t.hi,a):t.toNumber(!!a)},O.merge=A,O.lcFirst=function(b){return b.charAt(0).toLowerCase()+b.substring(1)},O.newError=k,O.ProtocolError=k("ProtocolError"),O.oneOfGetter=function(b){for(var a={},t=0;t-1;--d)if(a[u[d]]===1&&this[u[d]]!==void 0&&this[u[d]]!==null)return u[d]}},O.oneOfSetter=function(b){return function(a){for(var t=0;t{J.exports=s;var O,A=_(9693),k=A.LongBits,b=A.base64,a=A.utf8;function t(h,p,m){this.fn=h,this.len=p,this.next=void 0,this.val=m}function u(){}function d(h){this.head=h.head,this.tail=h.tail,this.len=h.len,this.next=h.states}function s(){this.len=0,this.head=new t(u,0,0),this.tail=this.head,this.states=null}var r=function(){return A.Buffer?function(){return(s.create=function(){return new O})()}:function(){return new s}};function n(h,p,m){p[m]=255&h}function o(h,p){this.len=h,this.next=void 0,this.val=p}function i(h,p,m){for(;h.hi;)p[m++]=127&h.lo|128,h.lo=(h.lo>>>7|h.hi<<25)>>>0,h.hi>>>=7;for(;h.lo>127;)p[m++]=127&h.lo|128,h.lo=h.lo>>>7;p[m++]=h.lo}function f(h,p,m){p[m]=255&h,p[m+1]=h>>>8&255,p[m+2]=h>>>16&255,p[m+3]=h>>>24}s.create=r(),s.alloc=function(h){return new A.Array(h)},A.Array!==Array&&(s.alloc=A.pool(s.alloc,A.Array.prototype.subarray)),s.prototype._push=function(h,p,m){return this.tail=this.tail.next=new t(h,p,m),this.len+=p,this},o.prototype=Object.create(t.prototype),o.prototype.fn=function(h,p,m){for(;h>127;)p[m++]=127&h|128,h>>>=7;p[m]=h},s.prototype.uint32=function(h){return this.len+=(this.tail=this.tail.next=new o((h>>>=0)<128?1:h<16384?2:h<2097152?3:h<268435456?4:5,h)).len,this},s.prototype.int32=function(h){return h<0?this._push(i,10,k.fromNumber(h)):this.uint32(h)},s.prototype.sint32=function(h){return this.uint32((h<<1^h>>31)>>>0)},s.prototype.uint64=function(h){var p=k.from(h);return this._push(i,p.length(),p)},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(h){var p=k.from(h).zzEncode();return this._push(i,p.length(),p)},s.prototype.bool=function(h){return this._push(n,1,h?1:0)},s.prototype.fixed32=function(h){return this._push(f,4,h>>>0)},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(h){var p=k.from(h);return this._push(f,4,p.lo)._push(f,4,p.hi)},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(h){return this._push(A.float.writeFloatLE,4,h)},s.prototype.double=function(h){return this._push(A.float.writeDoubleLE,8,h)};var c=A.Array.prototype.set?function(h,p,m){p.set(h,m)}:function(h,p,m){for(var M=0;M>>0;if(!p)return this._push(n,1,0);if(A.isString(h)){var m=s.alloc(p=b.length(h));b.decode(h,m,0),h=m}return this.uint32(p)._push(c,p,h)},s.prototype.string=function(h){var p=a.length(h);return p?this.uint32(p)._push(a.write,p,h):this._push(n,1,0)},s.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new t(u,0,0),this.len=0,this},s.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new t(u,0,0),this.len=0),this},s.prototype.ldelim=function(){var h=this.head,p=this.tail,m=this.len;return this.reset().uint32(m),m&&(this.tail.next=h.next,this.tail=p,this.len+=m),this},s.prototype.finish=function(){for(var h=this.head.next,p=this.constructor.alloc(this.len),m=0;h;)h.fn(h.val,p,m),m+=h.len,h=h.next;return p},s._configure=function(h){O=h,s.create=r(),O._configure()}},3155:(J,e,_)=>{J.exports=k;var O=_(1173);(k.prototype=Object.create(O.prototype)).constructor=k;var A=_(9693);function k(){O.call(this)}function b(a,t,u){a.length<40?A.utf8.write(a,t,u):t.utf8Write?t.utf8Write(a,u):t.write(a,u)}k._configure=function(){k.alloc=A._Buffer_allocUnsafe,k.writeBytesBuffer=A.Buffer&&A.Buffer.prototype instanceof Uint8Array&&A.Buffer.prototype.set.name==="set"?function(a,t,u){t.set(a,u)}:function(a,t,u){if(a.copy)a.copy(t,u,0,a.length);else for(var d=0;d>>0;return this.uint32(t),t&&this._push(k.writeBytesBuffer,t,a),this},k.prototype.string=function(a){var t=A.Buffer.byteLength(a);return this.uint32(t),t&&this._push(b,t,a),this},k._configure()},1798:(J,e,_)=>{var O=_(4155),A=65536,k=_(9509).Buffer,b=_.g.crypto||_.g.msCrypto;b&&b.getRandomValues?J.exports=function(a,t){if(a>4294967295)throw new RangeError("requested too many random bytes");var u=k.allocUnsafe(a);if(a>0)if(a>A)for(var d=0;d{var e={};function _(A,k,b){b||(b=Error);var a=function(t){var u,d;function s(r,n,o){return t.call(this,function(i,f,c){return typeof k=="string"?k:k(i,f,c)}(r,n,o))||this}return d=t,(u=s).prototype=Object.create(d.prototype),u.prototype.constructor=u,u.__proto__=d,s}(b);a.prototype.name=b.name,a.prototype.code=A,e[A]=a}function O(A,k){if(Array.isArray(A)){var b=A.length;return A=A.map(function(a){return String(a)}),b>2?"one of ".concat(k," ").concat(A.slice(0,b-1).join(", "),", or ")+A[b-1]:b===2?"one of ".concat(k," ").concat(A[0]," or ").concat(A[1]):"of ".concat(k," ").concat(A[0])}return"of ".concat(k," ").concat(String(A))}_("ERR_INVALID_OPT_VALUE",function(A,k){return'The value "'+k+'" is invalid for option "'+A+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function(A,k,b){var a,t,u,d,s;if(typeof k=="string"&&(t="not ",k.substr(0,4)===t)?(a="must not be",k=k.replace(/^not /,"")):a="must be",function(n,o,i){return(i===void 0||i>n.length)&&(i=n.length),n.substring(i-9,i)===o}(A," argument"))u="The ".concat(A," ").concat(a," ").concat(O(k,"type"));else{var r=(typeof s!="number"&&(s=0),s+1>(d=A).length||d.indexOf(".",s)===-1?"argument":"property");u='The "'.concat(A,'" ').concat(r," ").concat(a," ").concat(O(k,"type"))}return u+". Received type ".concat(typeof b)},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function(A){return"The "+A+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function(A){return"Cannot call "+A+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function(A){return"Unknown encoding: "+A},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),J.exports.q=e},6753:(J,e,_)=>{var O=_(4155),A=Object.keys||function(n){var o=[];for(var i in n)o.push(i);return o};J.exports=d;var k=_(9481),b=_(4229);_(5717)(d,k);for(var a=A(b.prototype),t=0;t{J.exports=A;var O=_(4605);function A(k){if(!(this instanceof A))return new A(k);O.call(this,k)}_(5717)(A,O),A.prototype._transform=function(k,b,a){a(null,k)}},9481:(J,e,_)=>{var O,A=_(4155);J.exports=R,R.ReadableState=j,_(7187).EventEmitter;var k,b=function(K,Y){return K.listeners(Y).length},a=_(2503),t=_(8764).Buffer,u=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d=_(4616);k=d&&d.debuglog?d.debuglog("stream"):function(){};var s,r,n,o=_(7327),i=_(1195),f=_(2457).getHighWaterMark,c=_(4281).q,h=c.ERR_INVALID_ARG_TYPE,p=c.ERR_STREAM_PUSH_AFTER_EOF,m=c.ERR_METHOD_NOT_IMPLEMENTED,M=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;_(5717)(R,a);var l=i.errorOrDestroy,N=["error","close","destroy","pause","resume"];function j(K,Y,L){O=O||_(6753),K=K||{},typeof L!="boolean"&&(L=Y instanceof O),this.objectMode=!!K.objectMode,L&&(this.objectMode=this.objectMode||!!K.readableObjectMode),this.highWaterMark=f(this,K,"readableHighWaterMark",L),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.destroyed=!1,this.defaultEncoding=K.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,K.encoding&&(s||(s=_(2553).s),this.decoder=new s(K.encoding),this.encoding=K.encoding)}function R(K){if(O=O||_(6753),!(this instanceof R))return new R(K);var Y=this instanceof O;this._readableState=new j(K,this,Y),this.readable=!0,K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy)),a.call(this)}function I(K,Y,L,ae,ce){k("readableAddChunk",Y);var ue,le=K._readableState;if(Y===null)le.reading=!1,function(be,de){if(k("onEofChunk"),!de.ended){if(de.decoder){var pe=de.decoder.end();pe&&pe.length&&(de.buffer.push(pe),de.length+=de.objectMode?1:pe.length)}de.ended=!0,de.sync?g(be):(de.needReadable=!1,de.emittedReadable||(de.emittedReadable=!0,E(be)))}}(K,le);else if(ce||(ue=function(be,de){var pe,_e;return _e=de,t.isBuffer(_e)||_e instanceof u||typeof de=="string"||de===void 0||be.objectMode||(pe=new h("chunk",["string","Buffer","Uint8Array"],de)),pe}(le,Y)),ue)l(K,ue);else if(le.objectMode||Y&&Y.length>0)if(typeof Y=="string"||le.objectMode||Object.getPrototypeOf(Y)===t.prototype||(Y=function(be){return t.from(be)}(Y)),ae)le.endEmitted?l(K,new M):x(K,le,Y,!0);else if(le.ended)l(K,new p);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!L?(Y=le.decoder.write(Y),le.objectMode||Y.length!==0?x(K,le,Y,!1):U(K,le)):x(K,le,Y,!1)}else ae||(le.reading=!1,U(K,le));return!le.ended&&(le.lengthY.highWaterMark&&(Y.highWaterMark=function(L){return L>=P?L=P:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(K)),K<=Y.length?K:Y.ended?Y.length:(Y.needReadable=!0,0))}function g(K){var Y=K._readableState;k("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(k("emitReadable",Y.flowing),Y.emittedReadable=!0,A.nextTick(E,K))}function E(K){var Y=K._readableState;k("emitReadable_",Y.destroyed,Y.length,Y.ended),Y.destroyed||!Y.length&&!Y.ended||(K.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,ne(K)}function U(K,Y){Y.readingMore||(Y.readingMore=!0,A.nextTick(C,K,Y))}function C(K,Y){for(;!Y.reading&&!Y.ended&&(Y.length0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:K.listenerCount("data")>0&&K.resume()}function re(K){k("readable nexttick read 0"),K.read(0)}function ee(K,Y){k("resume",Y.reading),Y.reading||K.read(0),Y.resumeScheduled=!1,K.emit("resume"),ne(K),Y.flowing&&!Y.reading&&K.read(0)}function ne(K){var Y=K._readableState;for(k("flow",Y.flowing);Y.flowing&&K.read()!==null;);}function D(K,Y){return Y.length===0?null:(Y.objectMode?L=Y.buffer.shift():!K||K>=Y.length?(L=Y.decoder?Y.buffer.join(""):Y.buffer.length===1?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):L=Y.buffer.consume(K,Y.decoder),L);var L}function Z(K){var Y=K._readableState;k("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,A.nextTick($,Y,K))}function $(K,Y){if(k("endReadableNT",K.endEmitted,K.length),!K.endEmitted&&K.length===0&&(K.endEmitted=!0,Y.readable=!1,Y.emit("end"),K.autoDestroy)){var L=Y._writableState;(!L||L.autoDestroy&&L.finished)&&Y.destroy()}}function X(K,Y){for(var L=0,ae=K.length;L=Y.highWaterMark:Y.length>0)||Y.ended))return k("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?Z(this):g(this),null;if((K=w(K,Y))===0&&Y.ended)return Y.length===0&&Z(this),null;var ae,ce=Y.needReadable;return k("need readable",ce),(Y.length===0||Y.length-K0?D(K,Y):null)===null?(Y.needReadable=Y.length<=Y.highWaterMark,K=0):(Y.length-=K,Y.awaitDrain=0),Y.length===0&&(Y.ended||(Y.needReadable=!0),L!==K&&Y.ended&&Z(this)),ae!==null&&this.emit("data",ae),ae},R.prototype._read=function(K){l(this,new m("_read()"))},R.prototype.pipe=function(K,Y){var L=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=K;break;case 1:ae.pipes=[ae.pipes,K];break;default:ae.pipes.push(K)}ae.pipesCount+=1,k("pipe count=%d opts=%j",ae.pipesCount,Y);var ce=Y&&Y.end===!1||K===A.stdout||K===A.stderr?v:ue;function ue(){k("onend"),K.end()}ae.endEmitted?A.nextTick(ce):L.once("end",ce),K.on("unpipe",function y(S,T){k("onunpipe"),S===L&&T&&T.hasUnpiped===!1&&(T.hasUnpiped=!0,k("cleanup"),K.removeListener("close",_e),K.removeListener("finish",W),K.removeListener("drain",le),K.removeListener("error",pe),K.removeListener("unpipe",y),L.removeListener("end",ue),L.removeListener("end",v),L.removeListener("data",de),be=!0,!ae.awaitDrain||K._writableState&&!K._writableState.needDrain||le())});var le=function(y){return function(){var S=y._readableState;k("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&b(y,"data")&&(S.flowing=!0,ne(y))}}(L);K.on("drain",le);var be=!1;function de(y){k("ondata");var S=K.write(y);k("dest.write",S),S===!1&&((ae.pipesCount===1&&ae.pipes===K||ae.pipesCount>1&&X(ae.pipes,K)!==-1)&&!be&&(k("false write response, pause",ae.awaitDrain),ae.awaitDrain++),L.pause())}function pe(y){k("onerror",y),v(),K.removeListener("error",pe),b(K,"error")===0&&l(K,y)}function _e(){K.removeListener("finish",W),v()}function W(){k("onfinish"),K.removeListener("close",_e),v()}function v(){k("unpipe"),L.unpipe(K)}return L.on("data",de),function(y,S,T){if(typeof y.prependListener=="function")return y.prependListener(S,T);y._events&&y._events[S]?Array.isArray(y._events[S])?y._events[S].unshift(T):y._events[S]=[T,y._events[S]]:y.on(S,T)}(K,"error",pe),K.once("close",_e),K.once("finish",W),K.emit("pipe",L),ae.flowing||(k("pipe resume"),L.resume()),K},R.prototype.unpipe=function(K){var Y=this._readableState,L={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return K&&K!==Y.pipes||(K||(K=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,K&&K.emit("unpipe",this,L)),this;if(!K){var ae=Y.pipes,ce=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var ue=0;ue0,ae.flowing!==!1&&this.resume()):K==="readable"&&(ae.endEmitted||ae.readableListening||(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,k("on readable",ae.length,ae.reading),ae.length?g(this):ae.reading||A.nextTick(re,this))),L},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(K,Y){var L=a.prototype.removeListener.call(this,K,Y);return K==="readable"&&A.nextTick(F,this),L},R.prototype.removeAllListeners=function(K){var Y=a.prototype.removeAllListeners.apply(this,arguments);return K!=="readable"&&K!==void 0||A.nextTick(F,this),Y},R.prototype.resume=function(){var K=this._readableState;return K.flowing||(k("resume"),K.flowing=!K.readableListening,function(Y,L){L.resumeScheduled||(L.resumeScheduled=!0,A.nextTick(ee,Y,L))}(this,K)),K.paused=!1,this},R.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(K){var Y=this,L=this._readableState,ae=!1;for(var ce in K.on("end",function(){if(k("wrapped end"),L.decoder&&!L.ended){var le=L.decoder.end();le&&le.length&&Y.push(le)}Y.push(null)}),K.on("data",function(le){k("wrapped data"),L.decoder&&(le=L.decoder.write(le)),L.objectMode&&le==null||(L.objectMode||le&&le.length)&&(Y.push(le)||(ae=!0,K.pause()))}),K)this[ce]===void 0&&typeof K[ce]=="function"&&(this[ce]=function(le){return function(){return K[le].apply(K,arguments)}}(ce));for(var ue=0;ue{J.exports=d;var O=_(4281).q,A=O.ERR_METHOD_NOT_IMPLEMENTED,k=O.ERR_MULTIPLE_CALLBACK,b=O.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=O.ERR_TRANSFORM_WITH_LENGTH_0,t=_(6753);function u(n,o){var i=this._transformState;i.transforming=!1;var f=i.writecb;if(f===null)return this.emit("error",new k);i.writechunk=null,i.writecb=null,o!=null&&this.push(o),f(n);var c=this._readableState;c.reading=!1,(c.needReadable||c.length{var O,A=_(4155);function k(U){var C=this;this.next=null,this.entry=null,this.finish=function(){(function(F,re,ee){var ne=F.entry;for(F.entry=null;ne;){var D=ne.callback;re.pendingcb--,D(void 0),ne=ne.next}re.corkedRequestsFree.next=F})(C,U)}}J.exports=R,R.WritableState=j;var b,a={deprecate:_(4927)},t=_(2503),u=_(8764).Buffer,d=(_.g!==void 0?_.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s=_(1195),r=_(2457).getHighWaterMark,n=_(4281).q,o=n.ERR_INVALID_ARG_TYPE,i=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,c=n.ERR_STREAM_CANNOT_PIPE,h=n.ERR_STREAM_DESTROYED,p=n.ERR_STREAM_NULL_VALUES,m=n.ERR_STREAM_WRITE_AFTER_END,M=n.ERR_UNKNOWN_ENCODING,l=s.errorOrDestroy;function N(){}function j(U,C,F){O=O||_(6753),U=U||{},typeof F!="boolean"&&(F=C instanceof O),this.objectMode=!!U.objectMode,F&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=r(this,U,"writableHighWaterMark",F),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=U.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ee){(function(ne,D){var Z=ne._writableState,$=Z.sync,X=Z.writecb;if(typeof X!="function")throw new f;if(function(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}(Z),D)(function(Y,L,ae,ce,ue){--L.pendingcb,ae?(A.nextTick(ue,ce),A.nextTick(E,Y,L),Y._writableState.errorEmitted=!0,l(Y,ce)):(ue(ce),Y._writableState.errorEmitted=!0,l(Y,ce),E(Y,L))})(ne,Z,$,D,X);else{var K=w(Z)||ne.destroyed;K||Z.corked||Z.bufferProcessing||!Z.bufferedRequest||P(ne,Z),$?A.nextTick(x,ne,Z,K,X):x(ne,Z,K,X)}})(C,ee)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new k(this)}function R(U){var C=this instanceof(O=O||_(6753));if(!C&&!b.call(R,this))return new R(U);this._writableState=new j(U,this,C),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),t.call(this)}function I(U,C,F,re,ee,ne,D){C.writelen=re,C.writecb=D,C.writing=!0,C.sync=!0,C.destroyed?C.onwrite(new h("write")):F?U._writev(ee,C.onwrite):U._write(ee,ne,C.onwrite),C.sync=!1}function x(U,C,F,re){F||function(ee,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,ee.emit("drain"))}(U,C),C.pendingcb--,re(),E(U,C)}function P(U,C){C.bufferProcessing=!0;var F=C.bufferedRequest;if(U._writev&&F&&F.next){var re=C.bufferedRequestCount,ee=new Array(re),ne=C.corkedRequestsFree;ne.entry=F;for(var D=0,Z=!0;F;)ee[D]=F,F.isBuf||(Z=!1),F=F.next,D+=1;ee.allBuffers=Z,I(U,C,!0,C.length,ee,"",ne.finish),C.pendingcb++,C.lastBufferedRequest=null,ne.next?(C.corkedRequestsFree=ne.next,ne.next=null):C.corkedRequestsFree=new k(C),C.bufferedRequestCount=0}else{for(;F;){var $=F.chunk,X=F.encoding,K=F.callback;if(I(U,C,!1,C.objectMode?1:$.length,$,X,K),F=F.next,C.bufferedRequestCount--,C.writing)break}F===null&&(C.lastBufferedRequest=null)}C.bufferedRequest=F,C.bufferProcessing=!1}function w(U){return U.ending&&U.length===0&&U.bufferedRequest===null&&!U.finished&&!U.writing}function g(U,C){U._final(function(F){C.pendingcb--,F&&l(U,F),C.prefinished=!0,U.emit("prefinish"),E(U,C)})}function E(U,C){var F=w(C);if(F&&(function(ee,ne){ne.prefinished||ne.finalCalled||(typeof ee._final!="function"||ne.destroyed?(ne.prefinished=!0,ee.emit("prefinish")):(ne.pendingcb++,ne.finalCalled=!0,A.nextTick(g,ee,ne)))}(U,C),C.pendingcb===0&&(C.finished=!0,U.emit("finish"),C.autoDestroy))){var re=U._readableState;(!re||re.autoDestroy&&re.endEmitted)&&U.destroy()}return F}_(5717)(R,t),j.prototype.getBuffer=function(){for(var U=this.bufferedRequest,C=[];U;)C.push(U),U=U.next;return C},function(){try{Object.defineProperty(j.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(U){return!!b.call(this,U)||this===R&&U&&U._writableState instanceof j}})):b=function(U){return U instanceof this},R.prototype.pipe=function(){l(this,new c)},R.prototype.write=function(U,C,F){var re,ee=this._writableState,ne=!1,D=!ee.objectMode&&(re=U,u.isBuffer(re)||re instanceof d);return D&&!u.isBuffer(U)&&(U=function(Z){return u.from(Z)}(U)),typeof C=="function"&&(F=C,C=null),D?C="buffer":C||(C=ee.defaultEncoding),typeof F!="function"&&(F=N),ee.ending?function(Z,$){var X=new m;l(Z,X),A.nextTick($,X)}(this,F):(D||function(Z,$,X,K){var Y;return X===null?Y=new p:typeof X=="string"||$.objectMode||(Y=new o("chunk",["string","Buffer"],X)),!Y||(l(Z,Y),A.nextTick(K,Y),!1)}(this,ee,U,F))&&(ee.pendingcb++,ne=function(Z,$,X,K,Y,L){if(!X){var ae=function(be,de,pe){return be.objectMode||be.decodeStrings===!1||typeof de!="string"||(de=u.from(de,pe)),de}($,K,Y);K!==ae&&(X=!0,Y="buffer",K=ae)}var ce=$.objectMode?1:K.length;$.length+=ce;var ue=$.length<$.highWaterMark;if(ue||($.needDrain=!0),$.writing||$.corked){var le=$.lastBufferedRequest;$.lastBufferedRequest={chunk:K,encoding:Y,isBuf:X,callback:L,next:null},le?le.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else I(Z,$,!1,ce,K,Y,L);return ue}(this,ee,D,U,C,F)),ne},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,U.writing||U.corked||U.bufferProcessing||!U.bufferedRequest||P(this,U))},R.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new M(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(U,C,F){F(new i("_write()"))},R.prototype._writev=null,R.prototype.end=function(U,C,F){var re=this._writableState;return typeof U=="function"?(F=U,U=null,C=null):typeof C=="function"&&(F=C,C=null),U!=null&&this.write(U,C),re.corked&&(re.corked=1,this.uncork()),re.ending||function(ee,ne,D){ne.ending=!0,E(ee,ne),D&&(ne.finished?A.nextTick(D):ee.once("finish",D)),ne.ended=!0,ee.writable=!1}(this,re,F),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),R.prototype.destroy=s.destroy,R.prototype._undestroy=s.undestroy,R.prototype._destroy=function(U,C){C(U)}},5850:(J,e,_)=>{var O,A=_(4155);function k(p,m,M){return(m=function(l){var N=function(j,R){if(typeof j!="object"||j===null)return j;var I=j[Symbol.toPrimitive];if(I!==void 0){var x=I.call(j,"string");if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}(l);return typeof N=="symbol"?N:String(N)}(m))in p?Object.defineProperty(p,m,{value:M,enumerable:!0,configurable:!0,writable:!0}):p[m]=M,p}var b=_(8610),a=Symbol("lastResolve"),t=Symbol("lastReject"),u=Symbol("error"),d=Symbol("ended"),s=Symbol("lastPromise"),r=Symbol("handlePromise"),n=Symbol("stream");function o(p,m){return{value:p,done:m}}function i(p){var m=p[a];if(m!==null){var M=p[n].read();M!==null&&(p[s]=null,p[a]=null,p[t]=null,m(o(M,!1)))}}function f(p){A.nextTick(i,p)}var c=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((k(O={get stream(){return this[n]},next:function(){var p=this,m=this[u];if(m!==null)return Promise.reject(m);if(this[d])return Promise.resolve(o(void 0,!0));if(this[n].destroyed)return new Promise(function(j,R){A.nextTick(function(){p[u]?R(p[u]):j(o(void 0,!0))})});var M,l=this[s];if(l)M=new Promise(function(j,R){return function(I,x){j.then(function(){R[d]?I(o(void 0,!0)):R[r](I,x)},x)}}(l,this));else{var N=this[n].read();if(N!==null)return Promise.resolve(o(N,!1));M=new Promise(this[r])}return this[s]=M,M}},Symbol.asyncIterator,function(){return this}),k(O,"return",function(){var p=this;return new Promise(function(m,M){p[n].destroy(null,function(l){l?M(l):m(o(void 0,!0))})})}),O),c);J.exports=function(p){var m,M=Object.create(h,(k(m={},n,{value:p,writable:!0}),k(m,a,{value:null,writable:!0}),k(m,t,{value:null,writable:!0}),k(m,u,{value:null,writable:!0}),k(m,d,{value:p._readableState.endEmitted,writable:!0}),k(m,r,{value:function(l,N){var j=M[n].read();j?(M[s]=null,M[a]=null,M[t]=null,l(o(j,!1))):(M[a]=l,M[t]=N)},writable:!0}),m));return M[s]=null,b(p,function(l){if(l&&l.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=M[t];return N!==null&&(M[s]=null,M[a]=null,M[t]=null,N(l)),void(M[u]=l)}var j=M[a];j!==null&&(M[s]=null,M[a]=null,M[t]=null,j(o(void 0,!0))),M[d]=!0}),p.on("readable",f.bind(null,M)),M}},7327:(J,e,_)=>{function O(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);r&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,o)}return n}function A(s){for(var r=1;r0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(o){var i={data:o,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(o){if(this.length===0)return"";for(var i=this.head,f=""+i.data;i=i.next;)f+=o+i.data;return f}},{key:"concat",value:function(o){if(this.length===0)return t.alloc(0);for(var i,f,c,h=t.allocUnsafe(o>>>0),p=this.head,m=0;p;)i=p.data,f=h,c=m,t.prototype.copy.call(i,f,c),m+=p.data.length,p=p.next;return h}},{key:"consume",value:function(o,i){var f;return oh.length?h.length:o;if(p===h.length?c+=h:c+=h.slice(0,o),(o-=p)==0){p===h.length?(++f,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=h.slice(p));break}++f}return this.length-=f,c}},{key:"_getBuffer",value:function(o){var i=t.allocUnsafe(o),f=this.head,c=1;for(f.data.copy(i),o-=f.data.length;f=f.next;){var h=f.data,p=o>h.length?h.length:o;if(h.copy(i,i.length-o,0,p),(o-=p)==0){p===h.length?(++c,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=h.slice(p));break}++c}return this.length-=c,i}},{key:d,value:function(o,i){return u(this,A(A({},i),{},{depth:0,customInspect:!1}))}}])&&b(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),s}()},1195:(J,e,_)=>{var O=_(4155);function A(a,t){b(a,t),k(a)}function k(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function b(a,t){a.emit("error",t)}J.exports={destroy:function(a,t){var u=this,d=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return d||s?(t?t(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,O.nextTick(b,this,a)):O.nextTick(b,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(r){!t&&r?u._writableState?u._writableState.errorEmitted?O.nextTick(k,u):(u._writableState.errorEmitted=!0,O.nextTick(A,u,r)):O.nextTick(A,u,r):t?(O.nextTick(k,u),t(r)):O.nextTick(k,u)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(a,t){var u=a._readableState,d=a._writableState;u&&u.autoDestroy||d&&d.autoDestroy?a.destroy(t):a.emit("error",t)}}},8610:(J,e,_)=>{var O=_(4281).q.ERR_STREAM_PREMATURE_CLOSE;function A(){}J.exports=function k(b,a,t){if(typeof a=="function")return k(b,null,a);a||(a={}),t=function(p){var m=!1;return function(){if(!m){m=!0;for(var M=arguments.length,l=new Array(M),N=0;N{J.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(J,e,_)=>{var O,A=_(4281).q,k=A.ERR_MISSING_ARGS,b=A.ERR_STREAM_DESTROYED;function a(d){if(d)throw d}function t(d){d()}function u(d,s){return d.pipe(s)}J.exports=function(){for(var d=arguments.length,s=new Array(d),r=0;r0,function(p){n||(n=p),p&&i.forEach(t),h||(i.forEach(t),o(n))})});return s.reduce(u)}},2457:(J,e,_)=>{var O=_(4281).q.ERR_INVALID_OPT_VALUE;J.exports={getHighWaterMark:function(A,k,b,a){var t=function(u,d,s){return u.highWaterMark!=null?u.highWaterMark:d?u[s]:null}(k,a,b);if(t!=null){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new O(a?b:"highWaterMark",t);return Math.floor(t)}return A.objectMode?16:16384}}},2503:(J,e,_)=>{J.exports=_(7187).EventEmitter},8473:(J,e,_)=>{(e=J.exports=_(9481)).Stream=e,e.Readable=e,e.Writable=_(4229),e.Duplex=_(6753),e.Transform=_(4605),e.PassThrough=_(2725),e.finished=_(8610),e.pipeline=_(9946)},9785:(J,e,_)=>{var O=_(8764).Buffer,A=_(5717),k=_(3349),b=new Array(16),a=[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],t=[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],u=[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],d=[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],s=[0,1518500249,1859775393,2400959708,2840853838],r=[1352829926,1548603684,1836072691,2053994217,0];function n(){k.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(m,M){return m<>>32-M}function i(m,M,l,N,j,R,I,x){return o(m+(M^l^N)+R+I|0,x)+j|0}function f(m,M,l,N,j,R,I,x){return o(m+(M&l|~M&N)+R+I|0,x)+j|0}function c(m,M,l,N,j,R,I,x){return o(m+((M|~l)^N)+R+I|0,x)+j|0}function h(m,M,l,N,j,R,I,x){return o(m+(M&N|l&~N)+R+I|0,x)+j|0}function p(m,M,l,N,j,R,I,x){return o(m+(M^(l|~N))+R+I|0,x)+j|0}A(n,k),n.prototype._update=function(){for(var m=b,M=0;M<16;++M)m[M]=this._block.readInt32LE(4*M);for(var l=0|this._a,N=0|this._b,j=0|this._c,R=0|this._d,I=0|this._e,x=0|this._a,P=0|this._b,w=0|this._c,g=0|this._d,E=0|this._e,U=0;U<80;U+=1){var C,F;U<16?(C=i(l,N,j,R,I,m[a[U]],s[0],u[U]),F=p(x,P,w,g,E,m[t[U]],r[0],d[U])):U<32?(C=f(l,N,j,R,I,m[a[U]],s[1],u[U]),F=h(x,P,w,g,E,m[t[U]],r[1],d[U])):U<48?(C=c(l,N,j,R,I,m[a[U]],s[2],u[U]),F=c(x,P,w,g,E,m[t[U]],r[2],d[U])):U<64?(C=h(l,N,j,R,I,m[a[U]],s[3],u[U]),F=f(x,P,w,g,E,m[t[U]],r[3],d[U])):(C=p(l,N,j,R,I,m[a[U]],s[4],u[U]),F=i(x,P,w,g,E,m[t[U]],r[4],d[U])),l=I,I=R,R=o(j,10),j=N,N=C,x=E,E=g,g=o(w,10),w=P,P=F}var re=this._b+j+g|0;this._b=this._c+R+E|0,this._c=this._d+I+x|0,this._d=this._e+l+P|0,this._e=this._a+N+w|0,this._a=re},n.prototype._digest=function(){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();var m=O.alloc?O.alloc(20):new O(20);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m.writeInt32LE(this._e,16),m},J.exports=n},9509:(J,e,_)=>{var O=_(8764),A=O.Buffer;function k(a,t){for(var u in a)t[u]=a[u]}function b(a,t,u){return A(a,t,u)}A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow?J.exports=O:(k(O,e),e.Buffer=b),b.prototype=Object.create(A.prototype),k(A,b),b.from=function(a,t,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return A(a,t,u)},b.alloc=function(a,t,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=A(a);return t!==void 0?typeof u=="string"?d.fill(t,u):d.fill(t):d.fill(0),d},b.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return A(a)},b.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(a)}},64:function(J,e,_){var O,A=_(4155),k=_(8764).Buffer;(function(b){function a(t,u){if(u=u||{type:"Array"},A!==void 0&&typeof A.pid=="number"&&A.versions&&A.versions.node)return function(d,s){var r=_(3954).randomBytes(d);switch(s.type){case"Array":return[].slice.call(r);case"Buffer":return r;case"Uint8Array":for(var n=new Uint8Array(d),o=0;o{var O=_(9509).Buffer;function A(k,b){this._block=O.alloc(k),this._finalSize=b,this._blockSize=k,this._len=0}A.prototype.update=function(k,b){typeof k=="string"&&(b=b||"utf8",k=O.from(k,b));for(var a=this._block,t=this._blockSize,u=k.length,d=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var t=(4294967295&a)>>>0,u=(a-t)/4294967296;this._block.writeUInt32BE(u,this._blockSize-8),this._block.writeUInt32BE(t,this._blockSize-4)}this._update(this._block);var d=this._hash();return k?d.toString(k):d},A.prototype._update=function(){throw new Error("_update must be implemented by subclass")},J.exports=A},9072:(J,e,_)=>{var O=J.exports=function(A){A=A.toLowerCase();var k=O[A];if(!k)throw new Error(A+" is not supported (we accept pull requests)");return new k};O.sha=_(4448),O.sha1=_(8336),O.sha224=_(8432),O.sha256=_(7499),O.sha384=_(1686),O.sha512=_(7816)},4448:(J,e,_)=>{var O=_(5717),A=_(4189),k=_(9509).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,A.call(this,64,56)}function u(s){return s<<30|s>>>2}function d(s,r,n,o){return s===0?r&n|~r&o:s===2?r&n|r&o|n&o:r^n^o}O(t,A),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(s){for(var r,n=this._w,o=0|this._a,i=0|this._b,f=0|this._c,c=0|this._d,h=0|this._e,p=0;p<16;++p)n[p]=s.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var m=0;m<80;++m){var M=~~(m/20),l=0|((r=o)<<5|r>>>27)+d(M,i,f,c)+h+n[m]+b[M];h=c,c=f,f=u(i),i=o,o=l}this._a=o+this._a|0,this._b=i+this._b|0,this._c=f+this._c|0,this._d=c+this._d|0,this._e=h+this._e|0},t.prototype._hash=function(){var s=k.allocUnsafe(20);return s.writeInt32BE(0|this._a,0),s.writeInt32BE(0|this._b,4),s.writeInt32BE(0|this._c,8),s.writeInt32BE(0|this._d,12),s.writeInt32BE(0|this._e,16),s},J.exports=t},8336:(J,e,_)=>{var O=_(5717),A=_(4189),k=_(9509).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,A.call(this,64,56)}function u(r){return r<<5|r>>>27}function d(r){return r<<30|r>>>2}function s(r,n,o,i){return r===0?n&o|~n&i:r===2?n&o|n&i|o&i:n^o^i}O(t,A),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(r){for(var n,o=this._w,i=0|this._a,f=0|this._b,c=0|this._c,h=0|this._d,p=0|this._e,m=0;m<16;++m)o[m]=r.readInt32BE(4*m);for(;m<80;++m)o[m]=(n=o[m-3]^o[m-8]^o[m-14]^o[m-16])<<1|n>>>31;for(var M=0;M<80;++M){var l=~~(M/20),N=u(i)+s(l,f,c,h)+p+o[M]+b[l]|0;p=h,h=c,c=d(f),f=i,i=N}this._a=i+this._a|0,this._b=f+this._b|0,this._c=c+this._c|0,this._d=h+this._d|0,this._e=p+this._e|0},t.prototype._hash=function(){var r=k.allocUnsafe(20);return r.writeInt32BE(0|this._a,0),r.writeInt32BE(0|this._b,4),r.writeInt32BE(0|this._c,8),r.writeInt32BE(0|this._d,12),r.writeInt32BE(0|this._e,16),r},J.exports=t},8432:(J,e,_)=>{var O=_(5717),A=_(7499),k=_(4189),b=_(9509).Buffer,a=new Array(64);function t(){this.init(),this._w=a,k.call(this,64,56)}O(t,A),t.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},t.prototype._hash=function(){var u=b.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},J.exports=t},7499:(J,e,_)=>{var O=_(5717),A=_(4189),k=_(9509).Buffer,b=[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],a=new Array(64);function t(){this.init(),this._w=a,A.call(this,64,56)}function u(o,i,f){return f^o&(i^f)}function d(o,i,f){return o&i|f&(o|i)}function s(o){return(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10)}function r(o){return(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7)}function n(o){return(o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3}O(t,A),t.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},t.prototype._update=function(o){for(var i,f=this._w,c=0|this._a,h=0|this._b,p=0|this._c,m=0|this._d,M=0|this._e,l=0|this._f,N=0|this._g,j=0|this._h,R=0;R<16;++R)f[R]=o.readInt32BE(4*R);for(;R<64;++R)f[R]=0|(((i=f[R-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)+f[R-7]+n(f[R-15])+f[R-16];for(var I=0;I<64;++I){var x=j+r(M)+u(M,l,N)+b[I]+f[I]|0,P=s(c)+d(c,h,p)|0;j=N,N=l,l=M,M=m+x|0,m=p,p=h,h=c,c=x+P|0}this._a=c+this._a|0,this._b=h+this._b|0,this._c=p+this._c|0,this._d=m+this._d|0,this._e=M+this._e|0,this._f=l+this._f|0,this._g=N+this._g|0,this._h=j+this._h|0},t.prototype._hash=function(){var o=k.allocUnsafe(32);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o.writeInt32BE(this._h,28),o},J.exports=t},1686:(J,e,_)=>{var O=_(5717),A=_(7816),k=_(4189),b=_(9509).Buffer,a=new Array(160);function t(){this.init(),this._w=a,k.call(this,128,112)}O(t,A),t.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},t.prototype._hash=function(){var u=b.allocUnsafe(48);function d(s,r,n){u.writeInt32BE(s,n),u.writeInt32BE(r,n+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),u},J.exports=t},7816:(J,e,_)=>{var O=_(5717),A=_(4189),k=_(9509).Buffer,b=[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],a=new Array(160);function t(){this.init(),this._w=a,A.call(this,128,112)}function u(h,p,m){return m^h&(p^m)}function d(h,p,m){return h&p|m&(h|p)}function s(h,p){return(h>>>28|p<<4)^(p>>>2|h<<30)^(p>>>7|h<<25)}function r(h,p){return(h>>>14|p<<18)^(h>>>18|p<<14)^(p>>>9|h<<23)}function n(h,p){return(h>>>1|p<<31)^(h>>>8|p<<24)^h>>>7}function o(h,p){return(h>>>1|p<<31)^(h>>>8|p<<24)^(h>>>7|p<<25)}function i(h,p){return(h>>>19|p<<13)^(p>>>29|h<<3)^h>>>6}function f(h,p){return(h>>>19|p<<13)^(p>>>29|h<<3)^(h>>>6|p<<26)}function c(h,p){return h>>>0

>>0?1:0}O(t,A),t.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},t.prototype._update=function(h){for(var p=this._w,m=0|this._ah,M=0|this._bh,l=0|this._ch,N=0|this._dh,j=0|this._eh,R=0|this._fh,I=0|this._gh,x=0|this._hh,P=0|this._al,w=0|this._bl,g=0|this._cl,E=0|this._dl,U=0|this._el,C=0|this._fl,F=0|this._gl,re=0|this._hl,ee=0;ee<32;ee+=2)p[ee]=h.readInt32BE(4*ee),p[ee+1]=h.readInt32BE(4*ee+4);for(;ee<160;ee+=2){var ne=p[ee-30],D=p[ee-30+1],Z=n(ne,D),$=o(D,ne),X=i(ne=p[ee-4],D=p[ee-4+1]),K=f(D,ne),Y=p[ee-14],L=p[ee-14+1],ae=p[ee-32],ce=p[ee-32+1],ue=$+L|0,le=Z+Y+c(ue,$)|0;le=(le=le+X+c(ue=ue+K|0,K)|0)+ae+c(ue=ue+ce|0,ce)|0,p[ee]=le,p[ee+1]=ue}for(var be=0;be<160;be+=2){le=p[be],ue=p[be+1];var de=d(m,M,l),pe=d(P,w,g),_e=s(m,P),W=s(P,m),v=r(j,U),y=r(U,j),S=b[be],T=b[be+1],B=u(j,R,I),z=u(U,C,F),q=re+y|0,te=x+v+c(q,re)|0;te=(te=(te=te+B+c(q=q+z|0,z)|0)+S+c(q=q+T|0,T)|0)+le+c(q=q+ue|0,ue)|0;var oe=W+pe|0,V=_e+de+c(oe,W)|0;x=I,re=F,I=R,F=C,R=j,C=U,j=N+te+c(U=E+q|0,E)|0,N=l,E=g,l=M,g=w,M=m,w=P,m=te+V+c(P=q+oe|0,q)|0}this._al=this._al+P|0,this._bl=this._bl+w|0,this._cl=this._cl+g|0,this._dl=this._dl+E|0,this._el=this._el+U|0,this._fl=this._fl+C|0,this._gl=this._gl+F|0,this._hl=this._hl+re|0,this._ah=this._ah+m+c(this._al,P)|0,this._bh=this._bh+M+c(this._bl,w)|0,this._ch=this._ch+l+c(this._cl,g)|0,this._dh=this._dh+N+c(this._dl,E)|0,this._eh=this._eh+j+c(this._el,U)|0,this._fh=this._fh+R+c(this._fl,C)|0,this._gh=this._gh+I+c(this._gl,F)|0,this._hh=this._hh+x+c(this._hl,re)|0},t.prototype._hash=function(){var h=k.allocUnsafe(64);function p(m,M,l){h.writeInt32BE(m,l),h.writeInt32BE(M,l+4)}return p(this._ah,this._al,0),p(this._bh,this._bl,8),p(this._ch,this._cl,16),p(this._dh,this._dl,24),p(this._eh,this._el,32),p(this._fh,this._fl,40),p(this._gh,this._gl,48),p(this._hh,this._hl,56),h},J.exports=t},2830:(J,e,_)=>{J.exports=A;var O=_(7187).EventEmitter;function A(){O.call(this)}_(5717)(A,O),A.Readable=_(9481),A.Writable=_(4229),A.Duplex=_(6753),A.Transform=_(4605),A.PassThrough=_(2725),A.finished=_(8610),A.pipeline=_(9946),A.Stream=A,A.prototype.pipe=function(k,b){var a=this;function t(i){k.writable&&k.write(i)===!1&&a.pause&&a.pause()}function u(){a.readable&&a.resume&&a.resume()}a.on("data",t),k.on("drain",u),k._isStdio||b&&b.end===!1||(a.on("end",s),a.on("close",r));var d=!1;function s(){d||(d=!0,k.end())}function r(){d||(d=!0,typeof k.destroy=="function"&&k.destroy())}function n(i){if(o(),O.listenerCount(this,"error")===0)throw i}function o(){a.removeListener("data",t),k.removeListener("drain",u),a.removeListener("end",s),a.removeListener("close",r),a.removeListener("error",n),k.removeListener("error",n),a.removeListener("end",o),a.removeListener("close",o),k.removeListener("close",o)}return a.on("error",n),k.on("error",n),a.on("end",o),a.on("close",o),k.on("close",o),k.emit("pipe",a),k}},2553:(J,e,_)=>{var O=_(9509).Buffer,A=O.isEncoding||function(o){switch((o=""+o)&&o.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function k(o){var i;switch(this.encoding=function(f){var c=function(h){if(!h)return"utf8";for(var p;;)switch(h){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return h;default:if(p)return;h=(""+h).toLowerCase(),p=!0}}(f);if(typeof c!="string"&&(O.isEncoding===A||!A(f)))throw new Error("Unknown encoding: "+f);return c||f}(o),this.encoding){case"utf16le":this.text=t,this.end=u,i=4;break;case"utf8":this.fillLast=a,i=4;break;case"base64":this.text=d,this.end=s,i=3;break;default:return this.write=r,void(this.end=n)}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(i)}function b(o){return o<=127?0:o>>5==6?2:o>>4==14?3:o>>3==30?4:o>>6==2?-1:-2}function a(o){var i=this.lastTotal-this.lastNeed,f=function(c,h,p){if((192&h[0])!=128)return c.lastNeed=0,"�";if(c.lastNeed>1&&h.length>1){if((192&h[1])!=128)return c.lastNeed=1,"�";if(c.lastNeed>2&&h.length>2&&(192&h[2])!=128)return c.lastNeed=2,"�"}}(this,o);return f!==void 0?f:this.lastNeed<=o.length?(o.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(o.copy(this.lastChar,i,0,o.length),void(this.lastNeed-=o.length))}function t(o,i){if((o.length-i)%2==0){var f=o.toString("utf16le",i);if(f){var c=f.charCodeAt(f.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",i,o.length-1)}function u(o){var i=o&&o.length?this.write(o):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,f)}return i}function d(o,i){var f=(o.length-i)%3;return f===0?o.toString("base64",i):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",i,o.length-f))}function s(o){var i=o&&o.length?this.write(o):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function r(o){return o.toString(this.encoding)}function n(o){return o&&o.length?this.write(o):""}e.s=k,k.prototype.write=function(o){if(o.length===0)return"";var i,f;if(this.lastNeed){if((i=this.fillLast(o))===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f=0?(l>0&&(h.lastNeed=l-1),l):--M=0?(l>0&&(h.lastNeed=l-2),l):--M=0?(l>0&&(l===2?l=0:h.lastNeed=l-3),l):0}(this,o,i);if(!this.lastNeed)return o.toString("utf8",i);this.lastTotal=f;var c=o.length-(f-this.lastNeed);return o.copy(this.lastChar,0,c),o.toString("utf8",i,c)},k.prototype.fillLast=function(o){if(this.lastNeed<=o.length)return o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,o.length),this.lastNeed-=o.length}},5892:(J,e,_)=>{var O=_(8764).Buffer;const A=_(3550),k=new(_(6266)).ec("secp256k1"),b=_(4142),a=O.alloc(32,0),t=O.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),u=O.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),d=k.curve.n,s=d.shrn(1),r=k.curve.g,n="Expected Private",o="Expected Point",i="Expected Tweak",f="Expected Hash";function c(P){return O.isBuffer(P)&&P.length===32}function h(P){return!!c(P)&&P.compare(t)<0}function p(P){if(!O.isBuffer(P)||P.length<33)return!1;const w=P[0],g=P.slice(1,33);if(g.compare(a)===0||g.compare(u)>=0)return!1;if((w===2||w===3)&&P.length===33){try{R(P)}catch{return!1}return!0}const E=P.slice(33);return E.compare(a)!==0&&!(E.compare(u)>=0)&&w===4&&P.length===65}function m(P){return P[0]!==4}function M(P){return!!c(P)&&P.compare(a)>0&&P.compare(t)<0}function l(P,w){return P===void 0&&w!==void 0?m(w):P===void 0||P}function N(P){return new A(P)}function j(P){return P.toArrayLike(O,"be",32)}function R(P){return k.curve.decodePoint(P)}function I(P,w){return O.from(P._encode(w))}function x(P,w,g){if(!c(P))throw new TypeError(f);if(!M(w))throw new TypeError(n);if(g!==void 0&&!c(g))throw new TypeError("Expected Extra Data (32 bytes)");const E=N(w),U=N(P);let C,F;b(P,w,function(ee){const ne=N(ee),D=r.mul(ne);return!D.isInfinity()&&(C=D.x.umod(d),C.isZero()!==0&&(F=ne.invm(d).mul(U.add(E.mul(C))).umod(d),F.isZero()!==0))},M,g),F.cmp(s)>0&&(F=d.sub(F));const re=O.allocUnsafe(64);return j(C).copy(re,0),j(F).copy(re,32),re}J.exports={isPoint:p,isPointCompressed:function(P){return!!p(P)&&m(P)},isPrivate:M,pointAdd:function(P,w,g){if(!p(P))throw new TypeError(o);if(!p(w))throw new TypeError(o);const E=R(P),U=R(w),C=E.add(U);return C.isInfinity()?null:I(C,l(g,P))},pointAddScalar:function(P,w,g){if(!p(P))throw new TypeError(o);if(!h(w))throw new TypeError(i);const E=l(g,P),U=R(P);if(w.compare(a)===0)return I(U,E);const C=N(w),F=r.mul(C),re=U.add(F);return re.isInfinity()?null:I(re,E)},pointCompress:function(P,w){if(!p(P))throw new TypeError(o);const g=R(P);if(g.isInfinity())throw new TypeError(o);return I(g,l(w,P))},pointFromScalar:function(P,w){if(!M(P))throw new TypeError(n);const g=N(P),E=r.mul(g);return E.isInfinity()?null:I(E,l(w))},pointMultiply:function(P,w,g){if(!p(P))throw new TypeError(o);if(!h(w))throw new TypeError(i);const E=l(g,P),U=R(P),C=N(w),F=U.mul(C);return F.isInfinity()?null:I(F,E)},privateAdd:function(P,w){if(!M(P))throw new TypeError(n);if(!h(w))throw new TypeError(i);const g=N(P),E=N(w),U=j(g.add(E).umod(d));return M(U)?U:null},privateSub:function(P,w){if(!M(P))throw new TypeError(n);if(!h(w))throw new TypeError(i);const g=N(P),E=N(w),U=j(g.sub(E).umod(d));return M(U)?U:null},sign:function(P,w){return x(P,w)},signWithEntropy:function(P,w,g){return x(P,w,g)},verify:function(P,w,g,E){if(!c(P))throw new TypeError(f);if(!p(w))throw new TypeError(o);if(!function($){const X=$.slice(0,32),K=$.slice(32,64);return O.isBuffer($)&&$.length===64&&X.compare(t)<0&&K.compare(t)<0}(g))throw new TypeError("Expected Signature");const U=R(w),C=N(g.slice(0,32)),F=N(g.slice(32,64));if(E&&F.cmp(s)>0||C.gtn(0)<=0||F.gtn(0)<=0)return!1;const re=N(P),ee=F.invm(d),ne=re.mul(ee).umod(d),D=C.mul(ee).umod(d),Z=r.mulAdd(ne,U,D);return!Z.isInfinity()&&Z.x.umod(d).eq(C)}}},4142:(J,e,_)=>{var O=_(8764).Buffer;const A=_(8355),k=O.alloc(1,1),b=O.alloc(1,0);J.exports=function(a,t,u,d,s){let r=O.alloc(32,0),n=O.alloc(32,1);r=A("sha256",r).update(n).update(b).update(t).update(a).update(s||"").digest(),n=A("sha256",r).update(n).digest(),r=A("sha256",r).update(n).update(k).update(t).update(a).update(s||"").digest(),n=A("sha256",r).update(n).digest(),n=A("sha256",r).update(n).digest();let o=n;for(;!d(o)||!u(o);)r=A("sha256",r).update(n).update(b).digest(),n=A("sha256",r).update(n).digest(),n=A("sha256",r).update(n).digest(),o=n;return o}},8136:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(m,M,l,N){N===void 0&&(N=l),Object.defineProperty(m,N,{enumerable:!0,get:function(){return M[l]}})}:function(m,M,l,N){N===void 0&&(N=l),m[N]=M[l]}),A=this&&this.__setModuleDefault||(Object.create?function(m,M){Object.defineProperty(m,"default",{enumerable:!0,value:M})}:function(m,M){m.default=M}),k=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var M={};if(m!=null)for(var l in m)l!=="default"&&Object.prototype.hasOwnProperty.call(m,l)&&O(M,m,l);return A(M,m),M},b=this&&this.__awaiter||function(m,M,l,N){return new(l||(l=Promise))(function(j,R){function I(w){try{P(N.next(w))}catch(g){R(g)}}function x(w){try{P(N.throw(w))}catch(g){R(g)}}function P(w){var g;w.done?j(w.value):(g=w.value,g instanceof l?g:new l(function(E){E(g)})).then(I,x)}P((N=N.apply(m,M||[])).next())})},a=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.EncryptionUtilsImpl=void 0;const t=_(8972),u=_(4330),d=_(3061),s=_(4063),r=k(_(9463)),n=a(_(64)),o=_(6402),i=new r.PolyfillCryptoProvider,f=(0,t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"),c=(0,t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="),h=new Set(["secret-2","secret-3","secret-4"]);class p{constructor(M,l,N){if(this.url=M,this.consensusIoPubKey=new Uint8Array,l){if(l.length!==32)throw new Error("encryptionSeed must be a Uint8Array of length 32");this.seed=l}else this.seed=p.GenerateNewSeed();const{privkey:j,pubkey:R}=p.GenerateNewKeyPairFromSeed(this.seed);this.privkey=j,this.pubkey=R,N&&h.has(N)&&(this.consensusIoPubKey=c)}static GenerateNewKeyPair(){return p.GenerateNewKeyPairFromSeed(p.GenerateNewSeed())}static GenerateNewSeed(){return(0,n.default)(32,{type:"Uint8Array"})}static GenerateNewKeyPairFromSeed(M){const{private:l,public:N}=(0,s.generateKeyPair)(M);return{privkey:l,pubkey:N}}getConsensusIoPubKey(){return b(this,void 0,void 0,function*(){if(this.consensusIoPubKey.length===32)return this.consensusIoPubKey;const{key:M}=yield o.Query.TxKey({},{pathPrefix:this.url});return this.consensusIoPubKey=(0,t.fromBase64)(M),this.consensusIoPubKey})}getTxEncryptionKey(M){return b(this,void 0,void 0,function*(){const l=yield this.getConsensusIoPubKey(),N=(0,s.sharedKey)(this.privkey,l);return(0,u.hkdf)(d.sha256,Uint8Array.from([...N,...M]),f,"",32)})}encrypt(M,l){return b(this,void 0,void 0,function*(){const N=(0,n.default)(32,{type:"Uint8Array"}),j=yield this.getTxEncryptionKey(N),R=yield r.SIV.importKey(j,"AES-SIV",i),I=(0,t.toUtf8)(M+JSON.stringify(l)),x=yield R.seal(I,[new Uint8Array]);return Uint8Array.from([...N,...this.pubkey,...x])})}decrypt(M,l){return b(this,void 0,void 0,function*(){if(!(M!=null&&M.length))return new Uint8Array;const N=yield this.getTxEncryptionKey(l);return yield(yield r.SIV.importKey(N,"AES-SIV",i)).open(M,[new Uint8Array])})}getPubkey(){return Promise.resolve(this.pubkey)}}e.EncryptionUtilsImpl=p},7061:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(k,b,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return b[a]}})}:function(k,b,a,t){t===void 0&&(t=a),k[t]=b[a]}),A=this&&this.__exportStar||function(k,b){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(b,a)||O(b,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),A(_(7131),e),A(_(8680),e)},7131:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(p,m,M,l){l===void 0&&(l=M),Object.defineProperty(p,l,{enumerable:!0,get:function(){return m[M]}})}:function(p,m,M,l){l===void 0&&(l=M),p[l]=m[M]}),A=this&&this.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),k=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var M in p)M!=="default"&&Object.prototype.hasOwnProperty.call(p,M)&&O(m,p,M);return A(m,p),m},b=this&&this.__awaiter||function(p,m,M,l){return new(M||(M=Promise))(function(N,j){function R(P){try{x(l.next(P))}catch(w){j(w)}}function I(P){try{x(l.throw(P))}catch(w){j(w)}}function x(P){var w;P.done?N(P.value):(w=P.value,w instanceof M?w:new M(function(g){g(w)})).then(R,I)}x((l=l.apply(p,m||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePermit=e.newPermit=e.newSignDoc=e.PermissionNotInPermit=e.SignerIsNotAddress=e.SignatureInvalid=e.ContractNotInPermit=e.PermitError=void 0;const a=_(8972),t=_(3061),u=k(_(9656)),d=_(7715),s=_(3607),r=_(5360);class n extends Error{constructor(m){super(m),this.type="PermitError",this.name="PermitError"}}e.PermitError=n;class o extends n{constructor(m,M){super(`Contract ${m} is not allowed for this permit`),this.name="ContractNotInPermit",this.contract=m,this.allowed_contracts=M}}e.ContractNotInPermit=o;class i extends n{constructor(m,M){super("Signature invalid"),this.name="SignatureInvalid",this.key=M,this.signature=m}}e.SignatureInvalid=i;class f extends n{constructor(m,M){super(`Address ${M} is not the permit signer`),this.name="SignerIsNotAddress",this.address=M,this.publicKey=m}}e.SignerIsNotAddress=f;class c extends n{constructor(m,M){super("Permit does not contain required the permissions"),this.name="PermissionNotInPermit",this.permission=m,this.permissionsInContract=M}}e.PermissionNotInPermit=c,e.newSignDoc=(p,m,M,l)=>({chain_id:p,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:m,allowed_tokens:M,permissions:l}}],memo:""}),e.newPermit=(p,m,M,l,N,j,R)=>b(void 0,void 0,void 0,function*(){let I;if(R){if(!(window!=null&&window.keplr))throw new Error("Cannot sign with Keplr - extension not enabled; enable Keplr or change signing mode");({signature:I}=yield window.keplr.signAmino(M,m,{chain_id:M,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:l,allowed_tokens:N,permissions:j}}],memo:""},{preferNoSetFee:!0,preferNoSetMemo:!0}))}else I=typeof p.signPermit=="function"?(yield p.signPermit(m,(0,e.newSignDoc)(M,l,N,j))).signature:(yield p.signAmino(m,(0,e.newSignDoc)(M,l,N,j))).signature;return{params:{chain_id:M,permit_name:l,allowed_tokens:N,permissions:j},signature:I}}),e.validatePermit=(p,m,M,l,N=!0)=>{if(!p.params.allowed_tokens.includes(M)){if(!N)return!1;throw new o(M,p.params.allowed_tokens)}if(!p.params.permissions.find(x=>l.includes(x))){if(!N)return!1;throw new c(l,p.params.permissions)}let j="";try{j=d.bech32.decode(m).prefix}catch{throw new Error(`Address address=${m} must be a valid bech32 address`)}let R="";try{R=(0,s.base64PubkeyToAddress)(p.signature.pub_key.value,j)}catch{throw new n("Pubkey invalid")}if(R!==m){if(!N)return!1;throw new f(p.signature.pub_key,m)}let I=!1;try{I=h(p)}catch{if(!N)return!1;throw new i(p.signature.signature,p.signature.pub_key.value)}if(!I){if(!N)return!1;throw new i(p.signature.signature,p.signature.pub_key.value)}return!0};const h=p=>{let m=(0,e.newSignDoc)(p.params.chain_id,p.params.permit_name,p.params.allowed_tokens,p.params.permissions);const M=(0,t.sha256)((0,r.serializeStdSignDoc)(m));let l=u.Signature.fromCompact((0,a.fromBase64)(p.signature.signature));return u.verify(l,M,(0,a.fromBase64)(p.signature.pub_key.value))}},3117:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PermitSigner=e.DirectSignerUnsupported=void 0;const O=_(7131);class A extends O.PermitError{constructor(){super("Only amino signer is supported for permits")}}e.DirectSignerUnsupported=A,e.PermitSigner=class{constructor(k){this.isAminoSigner=b=>"signAmino"in b,this.signer=k}_checkSigner(){if(!this.isAminoSigner(this.signer))throw new A}sign(k,b,a,t,u,d=!0){return this._checkSigner(),(0,O.newPermit)(this.signer,k,b,a,t,u,d)}verify(k,b,a,t){return(0,O.validatePermit)(k,b,a,t)}verifyNoExcept(k,b,a,t){return(0,O.validatePermit)(k,b,a,t,!1)}}},8680:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1610:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateViewingKey=e.MsgSetViewingKey=void 0;const O=_(3745);class A extends O.MsgExecuteContract{}e.MsgSetViewingKey=A;class k extends O.MsgExecuteContract{}e.MsgCreateViewingKey=k},4447:function(J,e,_){var O=this&&this.__awaiter||function(b,a,t,u){return new(t||(t=Promise))(function(d,s){function r(i){try{o(u.next(i))}catch(f){s(f)}}function n(i){try{o(u.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?d(i.value):(f=i.value,f instanceof t?f:new t(function(c){c(f)})).then(r,n)}o((u=u.apply(b,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip1155Querier=void 0;const A=_(9150);class k extends A.ComputeQuerier{constructor(){super(...arguments),this.getBalance=({contract:a,token_id:t,owner:u,auth:d})=>O(this,void 0,void 0,function*(){if(d.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{token_id:t,owner:u,viewer:d.viewer.address,key:d.viewer.viewing_key}}});if(d.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:d.permit,query:{balance:{token_id:t,owner:u}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getAllBalances=({contract:a,auth:t,owner:u,tx_history_page:d,tx_history_page_size:s})=>O(this,void 0,void 0,function*(){if(t.viewer&&u){if(t.viewer.address!==u)throw new Error("only owner can query all balances");return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{all_balances:{owner:u,key:t.viewer.viewing_key,tx_history_page:d,tx_history_page_size:s}}})}if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{all_balances:{tx_history_page:d,tx_history_page_size:s}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllBalances")}),this.getTransactionHistory=({contract:a,auth:t,page_size:u,page:d})=>O(this,void 0,void 0,function*(){if(t.viewer)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{key:t.viewer.viewing_key,address:t.viewer.address,page_size:u,page:d}}});if(t.permit)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{transaction_history:{page_size:u,page:d}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.getPublicTokenInfo=({contract:a,token_id:t})=>O(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_public_info:{token_id:t}}})}),this.getPrivateTokenInfo=({contract:a,token_id:t,auth:u})=>O(this,void 0,void 0,function*(){if(u.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_private_info:{token_id:t,address:u.viewer.address,key:u.viewer.viewing_key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{token_id_private_info:{token_id:t}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")})}}e.Snip1155Querier=k},7350:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip1155ChangeMetadata=e.MsgSnip1155RemoveMinter=e.MsgSnipAddMinter=e.MsgSnip1155BatchTransfer=e.MsgSnip1155Transfer=e.MsgSnip1155Burn=e.MsgSnip1155Mint=e.MsgSnip1155BatchSend=e.MsgSnip1155Send=e.MsgSnip1155RemoveCurator=e.MsgSnip1155AddCurator=e.MsgSnip1155CurateTokens=e.MsgSnip1155RemoveAdmin=e.MsgSnip1155ChangeAdmin=void 0;const O=_(3745);class A extends O.MsgExecuteContract{}e.MsgSnip1155ChangeAdmin=A;class k extends O.MsgExecuteContract{}e.MsgSnip1155RemoveAdmin=k;class b extends O.MsgExecuteContract{}e.MsgSnip1155CurateTokens=b;class a extends O.MsgExecuteContract{}e.MsgSnip1155AddCurator=a;class t extends O.MsgExecuteContract{}e.MsgSnip1155RemoveCurator=t;class u extends O.MsgExecuteContract{}e.MsgSnip1155Send=u;class d extends O.MsgExecuteContract{}e.MsgSnip1155BatchSend=d;class s extends O.MsgExecuteContract{}e.MsgSnip1155Mint=s;class r extends O.MsgExecuteContract{}e.MsgSnip1155Burn=r;class n extends O.MsgExecuteContract{}e.MsgSnip1155Transfer=n;class o extends O.MsgExecuteContract{}e.MsgSnip1155BatchTransfer=o;class i extends O.MsgExecuteContract{}e.MsgSnipAddMinter=i;class f extends O.MsgExecuteContract{}e.MsgSnip1155RemoveMinter=f;class c extends O.MsgExecuteContract{}e.MsgSnip1155ChangeMetadata=c},8471:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(k,b,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return b[a]}})}:function(k,b,a,t){t===void 0&&(t=a),k[t]=b[a]}),A=this&&this.__exportStar||function(k,b){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(b,a)||O(b,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),A(_(3655),e),A(_(1047),e)},3655:function(J,e,_){var O=this&&this.__awaiter||function(b,a,t,u){return new(t||(t=Promise))(function(d,s){function r(i){try{o(u.next(i))}catch(f){s(f)}}function n(i){try{o(u.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?d(i.value):(f=i.value,f instanceof t?f:new t(function(c){c(f)})).then(r,n)}o((u=u.apply(b,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip20Querier=void 0;const A=_(3607);class k extends A.ComputeQuerier{constructor(){super(...arguments),this.getSnip20Params=({contract:a})=>O(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_info:{}}})}),this.getBalance=({contract:a,address:t,auth:u})=>O(this,void 0,void 0,function*(){if(u.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{address:t,key:u.key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{balance:{}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getTransferHistory=({contract:a,address:t,auth:u,page:d,page_size:s,should_filter_decoys:r})=>O(this,void 0,void 0,function*(){if(u.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transfer_history:{address:t,key:u.key,page:d,page_size:s,should_filter_decoys:r}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{transfer_history:{page:d,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransferHistory")}),this.getTransactionHistory=({contract:a,address:t,auth:u,page:d,page_size:s,should_filter_decoys:r})=>O(this,void 0,void 0,function*(){if(u.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{address:t,key:u.key,page:d,page_size:s,should_filter_decoys:r}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{transaction_history:{page:d,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.GetAllowance=({contract:a,owner:t,spender:u,auth:d})=>O(this,void 0,void 0,function*(){if(d.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{allowance:{owner:t,spender:u,key:d.key}}});if(d.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:d.permit,query:{allowance:{owner:t,spender:u}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllowance")})}}e.Snip20Querier=k},1047:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip20SetViewingKey=e.MsgSnip20DecreaseAllowance=e.MsgSnip20IncreaseAllowance=e.MsgSnip20Transfer=e.MsgSnip20Send=void 0;const O=_(3745);class A extends O.MsgExecuteContract{}e.MsgSnip20Send=A;class k extends O.MsgExecuteContract{}e.MsgSnip20Transfer=k;class b extends O.MsgExecuteContract{}e.MsgSnip20IncreaseAllowance=b;class a extends O.MsgExecuteContract{}e.MsgSnip20DecreaseAllowance=a;class t extends O.MsgExecuteContract{}e.MsgSnip20SetViewingKey=t},2412:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(k,b,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return b[a]}})}:function(k,b,a,t){t===void 0&&(t=a),k[t]=b[a]}),A=this&&this.__exportStar||function(k,b){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(b,a)||O(b,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),A(_(3449),e),A(_(4539),e)},3449:function(J,e,_){var O=this&&this.__awaiter||function(b,a,t,u){return new(t||(t=Promise))(function(d,s){function r(i){try{o(u.next(i))}catch(f){s(f)}}function n(i){try{o(u.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?d(i.value):(f=i.value,f instanceof t?f:new t(function(c){c(f)})).then(r,n)}o((u=u.apply(b,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip721Querier=void 0;const A=_(9150);class k extends A.ComputeQuerier{constructor(){super(...arguments),this.GetTokenInfo=({contract:a,auth:t,token_id:u})=>O(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{all_nft_info:{token_id:u,viewer:t.viewer}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{all_nft_info:{token_id:u}}}}});throw new Error("Empty auth parameter for authenticated query: GetTokenInfo")}),this.GetOwnedTokens=({contract:a,auth:t,owner:u})=>O(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{tokens:{owner:u,viewing_key:t.viewer.viewing_key}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{tokens:{owner:u}}}}});throw new Error("Empty auth parameter for authenticated query: GetOwnedTokens")})}}e.Snip721Querier=k},4539:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip721Mint=e.MsgSnip721AddMinter=e.MsgSnip721Send=void 0;const O=_(3745);class A extends O.MsgExecuteContract{}e.MsgSnip721Send=A;class k extends O.MsgExecuteContract{}e.MsgSnip721AddMinter=k;class b extends O.MsgExecuteContract{}e.MsgSnip721Mint=b},3004:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Accounts(a,t){return b.fetchReq(`/cosmos/auth/v1beta1/accounts?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Account(a,t){return b.fetchReq(`/cosmos/auth/v1beta1/accounts/${a.address}?${b.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/cosmos/auth/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleAccountByName(a,t){return b.fetchReq(`/cosmos/auth/v1beta1/module_accounts/${a.name}?${b.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3704:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Grants(a,t){return b.fetchReq(`/cosmos/authz/v1beta1/grants?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranterGrants(a,t){return b.fetchReq(`/cosmos/authz/v1beta1/grants/granter/${a.granter}?${b.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranteeGrants(a,t){return b.fetchReq(`/cosmos/authz/v1beta1/grants/grantee/${a.grantee}?${b.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1926:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Balance(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}/by_denom?${b.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllBalances(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}?${b.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SpendableBalances(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/spendable_balances/${a.address}?${b.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalSupply(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/supply?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SupplyOf(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/supply/${a.denom}?${b.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomMetadata(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata/${a.denom}?${b.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomsMetadata(a,t){return b.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4210:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const b=k(_(1704));e.Service=class{static Config(a,t){return b.fetchReq(`/cosmos/base/node/v1beta1/config?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2390:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const b=k(_(1704));e.Service=class{static GetNodeInfo(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/node_info?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetSyncing(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/syncing?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestBlock(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/latest?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetBlockByHeight(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/${a.height}?${b.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestValidatorSet(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/latest?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetValidatorSetByHeight(a,t){return b.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/${a.height}?${b.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},406:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorOutstandingRewards(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/outstanding_rewards?${b.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorCommission(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/commission?${b.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorSlashes(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/slashes?${b.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationRewards(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards/${a.validator_address}?${b.renderURLSearchParams(a,["delegator_address","validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationTotalRewards(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards?${b.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/validators?${b.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorWithdrawAddress(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/withdraw_address?${b.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CommunityPool(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/community_pool?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FoundationTax(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/foundation_tax?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakeThreshold(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/restake_threshold?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakingEntries(a,t){return b.fetchReq(`/cosmos/distribution/v1beta1/restake_entries?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6898:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Evidence(a,t){return b.fetchReq(`/cosmos/evidence/v1beta1/evidence/${a.evidence_hash}?${b.renderURLSearchParams(a,["evidence_hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllEvidence(a,t){return b.fetchReq(`/cosmos/evidence/v1beta1/evidence?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},876:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Allowance(a,t){return b.fetchReq(`/cosmos/feegrant/v1beta1/allowance/${a.granter}/${a.grantee}?${b.renderURLSearchParams(a,["granter","grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Allowances(a,t){return b.fetchReq(`/cosmos/feegrant/v1beta1/allowances/${a.grantee}?${b.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllowancesByGranter(a,t){return b.fetchReq(`/cosmos/feegrant/v1beta1/issued/${a.granter}?${b.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},7331:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Proposal(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}?${b.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Proposals(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Vote(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes/${a.voter}?${b.renderURLSearchParams(a,["proposal_id","voter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Votes(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes?${b.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/params/${a.params_type}?${b.renderURLSearchParams(a,["params_type"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposit(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits/${a.depositor}?${b.renderURLSearchParams(a,["proposal_id","depositor"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposits(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits?${b.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TallyResult(a,t){return b.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/tally?${b.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},468:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/cosmos/mint/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Inflation(a,t){return b.fetchReq(`/cosmos/mint/v1beta1/inflation?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AnnualProvisions(a,t){return b.fetchReq(`/cosmos/mint/v1beta1/annual_provisions?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5440:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/cosmos/params/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1575:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/cosmos/slashing/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfo(a,t){return b.fetchReq(`/cosmos/slashing/v1beta1/signing_infos/${a.cons_address}?${b.renderURLSearchParams(a,["cons_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfos(a,t){return b.fetchReq(`/cosmos/slashing/v1beta1/signing_infos?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4066:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Validators(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Validator(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}?${b.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorDelegations(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations?${b.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorUnbondingDelegations(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/unbonding_delegations?${b.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Delegation(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}?${b.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnbondingDelegation(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}/unbonding_delegation?${b.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorDelegations(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/delegations/${a.delegator_addr}?${b.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorUnbondingDelegations(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/unbonding_delegations?${b.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Redelegations(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/redelegations?${b.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators?${b.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidator(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators/${a.validator_addr}?${b.renderURLSearchParams(a,["delegator_addr","validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static HistoricalInfo(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/historical_info/${a.height}?${b.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Pool(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/pool?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/cosmos/staking/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6519:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(u,d,s,r){r===void 0&&(r=s),Object.defineProperty(u,r,{enumerable:!0,get:function(){return d[s]}})}:function(u,d,s,r){r===void 0&&(r=s),u[r]=d[s]}),A=this&&this.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&O(d,u,s);return A(d,u),d};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=e.BroadcastMode=e.OrderBy=void 0;const b=k(_(1704));var a,t;(t=e.OrderBy||(e.OrderBy={})).ORDER_BY_UNSPECIFIED="ORDER_BY_UNSPECIFIED",t.ORDER_BY_ASC="ORDER_BY_ASC",t.ORDER_BY_DESC="ORDER_BY_DESC",(a=e.BroadcastMode||(e.BroadcastMode={})).BROADCAST_MODE_UNSPECIFIED="BROADCAST_MODE_UNSPECIFIED",a.BROADCAST_MODE_BLOCK="BROADCAST_MODE_BLOCK",a.BROADCAST_MODE_SYNC="BROADCAST_MODE_SYNC",a.BROADCAST_MODE_ASYNC="BROADCAST_MODE_ASYNC",e.Service=class{static Simulate(u,d){return b.fetchReq("/cosmos/tx/v1beta1/simulate",Object.assign(Object.assign({},d),{method:"POST",body:JSON.stringify(u,b.replacer)}))}static GetTx(u,d){return b.fetchReq(`/cosmos/tx/v1beta1/txs/${u.hash}?${b.renderURLSearchParams(u,["hash"])}`,Object.assign(Object.assign({},d),{method:"GET"}))}static BroadcastTx(u,d){return b.fetchReq("/cosmos/tx/v1beta1/txs",Object.assign(Object.assign({},d),{method:"POST",body:JSON.stringify(u,b.replacer)}))}static GetTxsEvent(u,d){return b.fetchReq(`/cosmos/tx/v1beta1/txs?${b.renderURLSearchParams(u,[])}`,Object.assign(Object.assign({},d),{method:"GET"}))}static GetBlockWithTxs(u,d){return b.fetchReq(`/cosmos/tx/v1beta1/txs/block/${u.height}?${b.renderURLSearchParams(u,["height"])}`,Object.assign(Object.assign({},d),{method:"GET"}))}}},2265:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static CurrentPlan(a,t){return b.fetchReq(`/cosmos/upgrade/v1beta1/current_plan?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AppliedPlan(a,t){return b.fetchReq(`/cosmos/upgrade/v1beta1/applied_plan/${a.name}?${b.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return b.fetchReq(`/cosmos/upgrade/v1beta1/upgraded_consensus_state/${a.last_height}?${b.renderURLSearchParams(a,["last_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleVersions(a,t){return b.fetchReq(`/cosmos/upgrade/v1beta1/module_versions?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1704:function(J,e){var _=this&&this.__awaiter||function(d,s,r,n){return new(r||(r=Promise))(function(o,i){function f(p){try{h(n.next(p))}catch(m){i(m)}}function c(p){try{h(n.throw(p))}catch(m){i(m)}}function h(p){var m;p.done?o(p.value):(m=p.value,m instanceof r?m:new r(function(M){M(m)})).then(f,c)}h((n=n.apply(d,s||[])).next())})},O=this&&this.__rest||function(d,s){var r={};for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&s.indexOf(n)<0&&(r[n]=d[n]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(n=Object.getOwnPropertySymbols(d);o>2],i=(3&h)<<4,c=1;break;case 1:o[f++]=A[i|h>>4],i=(15&h)<<2,c=2;break;case 2:o[f++]=A[i|h>>6],o[f++]=A[63&h],c=0}f>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),f=0)}return c&&(o[f++]=A[i],o[f++]=61,c===1&&(o[f++]=61)),n?(f&&n.push(String.fromCharCode.apply(String,o.slice(0,f))),n.join("")):String.fromCharCode.apply(String,o.slice(0,f))}e.b64Encode=b;const a="invalid encoding";function t(d){return["string","number","boolean"].some(s=>typeof d===s)}function u(d,s=""){return Object.keys(d).reduce((r,n)=>{const o=d[n],i=s?[s,n].join("."):n,f=Array.isArray(o)&&o.every(p=>t(p))&&o.length>0,c=t(o)&&!function(p){return p===!1||p===0||p===""}(o);let h={};return function(p){const m=Object.prototype.toString.call(p).slice(8,-1)==="Object";if(p===null||!m||!m)return!1;const M=Object.getPrototypeOf(p);return typeof M=="object"&&M.constructor===Object.prototype.constructor}(o)?h=u(o,i):o&&o.constructor===Uint8Array?h={[i]:b(o,0,o.length)}:(c||f)&&(h={[i]:o}),Object.assign(Object.assign({},r),h)},{})}e.b64Decode=function(d){const s=[];let r,n=0,o=0;for(let i=0;i1)break;if((f=k[f])===void 0)throw Error(a);switch(o){case 0:r=f,o=1;break;case 1:s[n++]=r<<2|(48&f)>>4,r=f,o=2;break;case 2:s[n++]=(15&r)<<4|(60&f)>>2,r=f,o=3;break;case 3:s[n++]=(3&r)<<6|f,o=0}}if(o===1)throw Error(a);return new Uint8Array(s)},e.replacer=function(d,s){return s&&s.constructor===Uint8Array?b(s,0,s.length):s},e.fetchReq=function(d,s){const r=s||{},{pathPrefix:n}=r,o=O(r,["pathPrefix"]);return fetch(n?`${n}${d}`:d,o).then(i=>i.json().then(f=>{if(!i.ok)throw f;return f}))},e.fetchStreamingRequest=function(d,s,r){return _(this,void 0,void 0,function*(){const n=r||{},{pathPrefix:o}=n,i=O(n,["pathPrefix"]),f=o?`${o}${d}`:d,c=yield fetch(f,i);if(!c.ok){const p=yield c.json(),m=p.error&&p.error.message?p.error.message:"";throw new Error(m)}if(!c.body)throw new Error("response doesnt have a body");var h;yield c.body.pipeThrough(new TextDecoderStream).pipeThrough(new TransformStream({start(p){p.buf="",p.pos=0},transform(p,m){for(m.buf===void 0&&(m.buf=""),m.pos===void 0&&(m.pos=0),m.buf+=p;m.pos{s&&s(p)},new WritableStream({write(p){h(p)}})))})},e.renderURLSearchParams=function(d,s=[]){const r=u(d);return Object.keys(r).reduce((n,o)=>{const i=r[o];return s.find(f=>f===o)?n:Array.isArray(i)?[...n,...i.map(f=>[o,f.toString()])]:n=[...n,[o,i.toString()]]},[]).map(n=>new URLSearchParams({[n[0]]:n[1]}).toString()).join("&")}},187:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static IncentivizedPackets(a,t){return b.fetchReq(`/ibc/apps/fee/v1/incentivized_packets?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacket(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/incentivized_packet?${b.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacketsForChannel(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/incentivized_packets?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalRecvFees(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_recv_fees?${b.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalAckFees(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_ack_fees?${b.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalTimeoutFees(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_timeout_fees?${b.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Payee(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/payee?${b.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CounterpartyPayee(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/counterparty_payee?${b.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannels(a,t){return b.fetchReq(`/ibc/apps/fee/v1/fee_enabled?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannel(a,t){return b.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/fee_enabled?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2847:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static InterchainAccount(a,t){return b.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/owners/${a.owner}/connections/${a.connection_id}?${b.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1154:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/ibc/apps/interchain_accounts/host/v1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1692:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/ibc/apps/router/v1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4921:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static DenomTrace(a,t){return b.fetchReq(`/ibc/apps/transfer/v1/denom_traces/${a.hash}?${b.renderURLSearchParams(a,["hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomTraces(a,t){return b.fetchReq(`/ibc/apps/transfer/v1/denom_traces?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return b.fetchReq(`/ibc/apps/transfer/v1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomHash(a,t){return b.fetchReq(`/ibc/apps/transfer/v1/denom_hashes/${a.trace}?${b.renderURLSearchParams(a,["trace"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EscrowAddress(a,t){return b.fetchReq(`/ibc/apps/transfer/v1/channels/${a.channel_id}/ports/${a.port_id}/escrow_address?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6409:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Channel(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Channels(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionChannels(a,t){return b.fetchReq(`/ibc/core/channel/v1/connections/${a.connection}/channels?${b.renderURLSearchParams(a,["connection"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelClientState(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/client_state?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelConsensusState(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a,["channel_id","port_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitment(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.sequence}?${b.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitments(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketReceipt(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_receipts/${a.sequence}?${b.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgement(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acks/${a.sequence}?${b.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgements(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acknowledgements?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedPackets(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_commitment_sequences}/unreceived_packets?${b.renderURLSearchParams(a,["channel_id","port_id","packet_commitment_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedAcks(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_ack_sequences}/unreceived_acks?${b.renderURLSearchParams(a,["channel_id","port_id","packet_ack_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static NextSequenceReceive(a,t){return b.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/next_sequence?${b.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},301:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static ClientState(a,t){return b.fetchReq(`/ibc/core/client/v1/client_states/${a.client_id}?${b.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStates(a,t){return b.fetchReq(`/ibc/core/client/v1/client_states?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusState(a,t){return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a,["client_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStates(a,t){return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}?${b.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStateHeights(a,t){return b.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/heights?${b.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStatus(a,t){return b.fetchReq(`/ibc/core/client/v1/client_status/${a.client_id}?${b.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientParams(a,t){return b.fetchReq(`/ibc/client/v1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedClientState(a,t){return b.fetchReq(`/ibc/core/client/v1/upgraded_client_states?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return b.fetchReq(`/ibc/core/client/v1/upgraded_consensus_states?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5258:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Connection(a,t){return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}?${b.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Connections(a,t){return b.fetchReq(`/ibc/core/connection/v1/connections?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientConnections(a,t){return b.fetchReq(`/ibc/core/connection/v1/client_connections/${a.client_id}?${b.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionClientState(a,t){return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/client_state?${b.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionConsensusState(a,t){return b.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${b.renderURLSearchParams(a,["connection_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5250:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static ContractInfo(a,t){return b.fetchReq(`/compute/v1beta1/info/${a.contract_address}?${b.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractsByCodeId(a,t){return b.fetchReq(`/compute/v1beta1/contracts/${a.code_id}?${b.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static QuerySecretContract(a,t){return b.fetchReq(`/compute/v1beta1/query/${a.contract_address}?${b.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Code(a,t){return b.fetchReq(`/compute/v1beta1/code/${a.code_id}?${b.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Codes(a,t){return b.fetchReq(`/compute/v1beta1/codes?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByContractAddress(a,t){return b.fetchReq(`/compute/v1beta1/code_hash/by_contract_address/${a.contract_address}?${b.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByCodeId(a,t){return b.fetchReq(`/compute/v1beta1/code_hash/by_code_id/${a.code_id}?${b.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static LabelByAddress(a,t){return b.fetchReq(`/compute/v1beta1/label/${a.contract_address}?${b.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AddressByLabel(a,t){return b.fetchReq(`/compute/v1beta1/contract_address/${a.label}?${b.renderURLSearchParams(a,["label"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractHistory(a,t){return b.fetchReq(`/compute/v1beta1/contract_history/${a.contract_address}?${b.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},71:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static Params(a,t){return b.fetchReq(`/emergencybutton/v1beta1/params?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},9743:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static InterchainAccountFromAddress(a,t){return b.fetchReq(`/mauth/interchain_account/owner/${a.owner}/connection/${a.connection_id}?${b.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6402:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const b=k(_(1704));e.Query=class{static TxKey(a,t){return b.fetchReq(`/registration/v1beta1/tx-key?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RegistrationKey(a,t){return b.fetchReq(`/registration/v1beta1/registration-key?${b.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EncryptedSeed(a,t){return b.fetchReq(`/registration/v1beta1/encrypted-seed/${a.pub_key}?${b.renderURLSearchParams(a,["pub_key"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3607:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(t,u,d,s){s===void 0&&(s=d),Object.defineProperty(t,s,{enumerable:!0,get:function(){return u[d]}})}:function(t,u,d,s){s===void 0&&(s=d),t[s]=u[d]}),A=this&&this.__exportStar||function(t,u){for(var d in t)d==="default"||Object.prototype.hasOwnProperty.call(u,d)||O(u,t,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgExecuteContractResponse=e.MsgInstantiateContractResponse=e.MsgStoreCodeResponse=e.MetaMaskWallet=e.Wallet=void 0,typeof BigInt>"u"&&(_.g.BigInt=_(4736)),A(_(8972),e),A(_(8136),e),A(_(9150),e),A(_(1972),e),A(_(3745),e),A(_(8593),e);var k=_(1049);Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return k.Wallet}});var b=_(1444);Object.defineProperty(e,"MetaMaskWallet",{enumerable:!0,get:function(){return b.MetaMaskWallet}}),A(_(8471),e),A(_(2412),e),A(_(7061),e);var a=_(2896);Object.defineProperty(e,"MsgStoreCodeResponse",{enumerable:!0,get:function(){return a.MsgStoreCodeResponse}}),Object.defineProperty(e,"MsgInstantiateContractResponse",{enumerable:!0,get:function(){return a.MsgInstantiateContractResponse}}),Object.defineProperty(e,"MsgExecuteContractResponse",{enumerable:!0,get:function(){return a.MsgExecuteContractResponse}})},6578:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(P,w,g,E){E===void 0&&(E=g),Object.defineProperty(P,E,{enumerable:!0,get:function(){return w[g]}})}:function(P,w,g,E){E===void 0&&(E=g),P[E]=w[g]}),A=this&&this.__setModuleDefault||(Object.create?function(P,w){Object.defineProperty(P,"default",{enumerable:!0,value:w})}:function(P,w){P.default=w}),k=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var w={};if(P!=null)for(var g in P)g!=="default"&&Object.prototype.hasOwnProperty.call(P,g)&&O(w,P,g);return A(w,P),w},b=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompressedNonExistenceProof=e.CompressedExistenceProof=e.CompressedBatchEntry=e.CompressedBatchProof=e.BatchEntry=e.BatchProof=e.InnerSpec=e.ProofSpec=e.InnerOp=e.LeafOp=e.CommitmentProof=e.NonExistenceProof=e.ExistenceProof=e.lengthOpToJSON=e.lengthOpFromJSON=e.LengthOp=e.hashOpToJSON=e.hashOpFromJSON=e.HashOp=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));var u,d;function s(P){switch(P){case 0:case"NO_HASH":return u.NO_HASH;case 1:case"SHA256":return u.SHA256;case 2:case"SHA512":return u.SHA512;case 3:case"KECCAK":return u.KECCAK;case 4:case"RIPEMD160":return u.RIPEMD160;case 5:case"BITCOIN":return u.BITCOIN;default:return u.UNRECOGNIZED}}function r(P){switch(P){case u.NO_HASH:return"NO_HASH";case u.SHA256:return"SHA256";case u.SHA512:return"SHA512";case u.KECCAK:return"KECCAK";case u.RIPEMD160:return"RIPEMD160";case u.BITCOIN:return"BITCOIN";default:return"UNKNOWN"}}function n(P){switch(P){case 0:case"NO_PREFIX":return d.NO_PREFIX;case 1:case"VAR_PROTO":return d.VAR_PROTO;case 2:case"VAR_RLP":return d.VAR_RLP;case 3:case"FIXED32_BIG":return d.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return d.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return d.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return d.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return d.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return d.REQUIRE_64_BYTES;default:return d.UNRECOGNIZED}}function o(P){switch(P){case d.NO_PREFIX:return"NO_PREFIX";case d.VAR_PROTO:return"VAR_PROTO";case d.VAR_RLP:return"VAR_RLP";case d.FIXED32_BIG:return"FIXED32_BIG";case d.FIXED32_LITTLE:return"FIXED32_LITTLE";case d.FIXED64_BIG:return"FIXED64_BIG";case d.FIXED64_LITTLE:return"FIXED64_LITTLE";case d.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case d.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";default:return"UNKNOWN"}}function i(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function f(){return{key:new Uint8Array,left:void 0,right:void 0}}function c(){return{hash:0,prehash_key:0,prehash_value:0,length:0,prefix:new Uint8Array}}function h(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}function p(){return{child_order:[],child_size:0,min_prefix_length:0,max_prefix_length:0,empty_child:new Uint8Array,hash:0}}function m(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function M(){return{key:new Uint8Array,left:void 0,right:void 0}}e.protobufPackage="ics23",function(P){P[P.NO_HASH=0]="NO_HASH",P[P.SHA256=1]="SHA256",P[P.SHA512=2]="SHA512",P[P.KECCAK=3]="KECCAK",P[P.RIPEMD160=4]="RIPEMD160",P[P.BITCOIN=5]="BITCOIN",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.HashOp||(e.HashOp={})),e.hashOpFromJSON=s,e.hashOpToJSON=r,function(P){P[P.NO_PREFIX=0]="NO_PREFIX",P[P.VAR_PROTO=1]="VAR_PROTO",P[P.VAR_RLP=2]="VAR_RLP",P[P.FIXED32_BIG=3]="FIXED32_BIG",P[P.FIXED32_LITTLE=4]="FIXED32_LITTLE",P[P.FIXED64_BIG=5]="FIXED64_BIG",P[P.FIXED64_LITTLE=6]="FIXED64_LITTLE",P[P.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",P[P.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.LengthOp||(e.LengthOp={})),e.lengthOpFromJSON=n,e.lengthOpToJSON=o,e.ExistenceProof={encode(P,w=t.Writer.create()){P.key.length!==0&&w.uint32(10).bytes(P.key),P.value.length!==0&&w.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,w.uint32(26).fork()).ldelim();for(const g of P.path)e.InnerOp.encode(g,w.uint32(34).fork()).ldelim();return w},decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=i();for(;g.pos>>3){case 1:U.key=g.bytes();break;case 2:U.value=g.bytes();break;case 3:U.leaf=e.LeafOp.decode(g,g.uint32());break;case 4:U.path.push(e.InnerOp.decode(g,g.uint32()));break;default:g.skipType(7&C)}}return U},fromJSON:P=>({key:x(P.key)?j(P.key):new Uint8Array,value:x(P.value)?j(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(w=>e.InnerOp.fromJSON(w)):[]}),toJSON(P){const w={};return P.key!==void 0&&(w.key=I(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(w.value=I(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(w.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?w.path=P.path.map(g=>g?e.InnerOp.toJSON(g):void 0):w.path=[],w},fromPartial(P){var w,g,E;const U=i();return U.key=(w=P.key)!==null&&w!==void 0?w:new Uint8Array,U.value=(g=P.value)!==null&&g!==void 0?g:new Uint8Array,U.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,U.path=((E=P.path)===null||E===void 0?void 0:E.map(C=>e.InnerOp.fromPartial(C)))||[],U}},e.NonExistenceProof={encode:(P,w=t.Writer.create())=>(P.key.length!==0&&w.uint32(10).bytes(P.key),P.left!==void 0&&e.ExistenceProof.encode(P.left,w.uint32(18).fork()).ldelim(),P.right!==void 0&&e.ExistenceProof.encode(P.right,w.uint32(26).fork()).ldelim(),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=f();for(;g.pos>>3){case 1:U.key=g.bytes();break;case 2:U.left=e.ExistenceProof.decode(g,g.uint32());break;case 3:U.right=e.ExistenceProof.decode(g,g.uint32());break;default:g.skipType(7&C)}}return U},fromJSON:P=>({key:x(P.key)?j(P.key):new Uint8Array,left:x(P.left)?e.ExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.ExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const w={};return P.key!==void 0&&(w.key=I(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(w.left=P.left?e.ExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(w.right=P.right?e.ExistenceProof.toJSON(P.right):void 0),w},fromPartial(P){var w;const g=f();return g.key=(w=P.key)!==null&&w!==void 0?w:new Uint8Array,g.left=P.left!==void 0&&P.left!==null?e.ExistenceProof.fromPartial(P.left):void 0,g.right=P.right!==void 0&&P.right!==null?e.ExistenceProof.fromPartial(P.right):void 0,g}},e.CommitmentProof={encode:(P,w=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,w.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,w.uint32(18).fork()).ldelim(),P.batch!==void 0&&e.BatchProof.encode(P.batch,w.uint32(26).fork()).ldelim(),P.compressed!==void 0&&e.CompressedBatchProof.encode(P.compressed,w.uint32(34).fork()).ldelim(),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};for(;g.pos>>3){case 1:U.exist=e.ExistenceProof.decode(g,g.uint32());break;case 2:U.nonexist=e.NonExistenceProof.decode(g,g.uint32());break;case 3:U.batch=e.BatchProof.decode(g,g.uint32());break;case 4:U.compressed=e.CompressedBatchProof.decode(g,g.uint32());break;default:g.skipType(7&C)}}return U},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0,batch:x(P.batch)?e.BatchProof.fromJSON(P.batch):void 0,compressed:x(P.compressed)?e.CompressedBatchProof.fromJSON(P.compressed):void 0}),toJSON(P){const w={};return P.exist!==void 0&&(w.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(w.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),P.batch!==void 0&&(w.batch=P.batch?e.BatchProof.toJSON(P.batch):void 0),P.compressed!==void 0&&(w.compressed=P.compressed?e.CompressedBatchProof.toJSON(P.compressed):void 0),w},fromPartial(P){const w={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};return w.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,w.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,w.batch=P.batch!==void 0&&P.batch!==null?e.BatchProof.fromPartial(P.batch):void 0,w.compressed=P.compressed!==void 0&&P.compressed!==null?e.CompressedBatchProof.fromPartial(P.compressed):void 0,w}},e.LeafOp={encode:(P,w=t.Writer.create())=>(P.hash!==0&&w.uint32(8).int32(P.hash),P.prehash_key!==0&&w.uint32(16).int32(P.prehash_key),P.prehash_value!==0&&w.uint32(24).int32(P.prehash_value),P.length!==0&&w.uint32(32).int32(P.length),P.prefix.length!==0&&w.uint32(42).bytes(P.prefix),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=c();for(;g.pos>>3){case 1:U.hash=g.int32();break;case 2:U.prehash_key=g.int32();break;case 3:U.prehash_value=g.int32();break;case 4:U.length=g.int32();break;case 5:U.prefix=g.bytes();break;default:g.skipType(7&C)}}return U},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prehash_key:x(P.prehash_key)?s(P.prehash_key):0,prehash_value:x(P.prehash_value)?s(P.prehash_value):0,length:x(P.length)?n(P.length):0,prefix:x(P.prefix)?j(P.prefix):new Uint8Array}),toJSON(P){const w={};return P.hash!==void 0&&(w.hash=r(P.hash)),P.prehash_key!==void 0&&(w.prehash_key=r(P.prehash_key)),P.prehash_value!==void 0&&(w.prehash_value=r(P.prehash_value)),P.length!==void 0&&(w.length=o(P.length)),P.prefix!==void 0&&(w.prefix=I(P.prefix!==void 0?P.prefix:new Uint8Array)),w},fromPartial(P){var w,g,E,U,C;const F=c();return F.hash=(w=P.hash)!==null&&w!==void 0?w:0,F.prehash_key=(g=P.prehash_key)!==null&&g!==void 0?g:0,F.prehash_value=(E=P.prehash_value)!==null&&E!==void 0?E:0,F.length=(U=P.length)!==null&&U!==void 0?U:0,F.prefix=(C=P.prefix)!==null&&C!==void 0?C:new Uint8Array,F}},e.InnerOp={encode:(P,w=t.Writer.create())=>(P.hash!==0&&w.uint32(8).int32(P.hash),P.prefix.length!==0&&w.uint32(18).bytes(P.prefix),P.suffix.length!==0&&w.uint32(26).bytes(P.suffix),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=h();for(;g.pos>>3){case 1:U.hash=g.int32();break;case 2:U.prefix=g.bytes();break;case 3:U.suffix=g.bytes();break;default:g.skipType(7&C)}}return U},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prefix:x(P.prefix)?j(P.prefix):new Uint8Array,suffix:x(P.suffix)?j(P.suffix):new Uint8Array}),toJSON(P){const w={};return P.hash!==void 0&&(w.hash=r(P.hash)),P.prefix!==void 0&&(w.prefix=I(P.prefix!==void 0?P.prefix:new Uint8Array)),P.suffix!==void 0&&(w.suffix=I(P.suffix!==void 0?P.suffix:new Uint8Array)),w},fromPartial(P){var w,g,E;const U=h();return U.hash=(w=P.hash)!==null&&w!==void 0?w:0,U.prefix=(g=P.prefix)!==null&&g!==void 0?g:new Uint8Array,U.suffix=(E=P.suffix)!==null&&E!==void 0?E:new Uint8Array,U}},e.ProofSpec={encode:(P,w=t.Writer.create())=>(P.leaf_spec!==void 0&&e.LeafOp.encode(P.leaf_spec,w.uint32(10).fork()).ldelim(),P.inner_spec!==void 0&&e.InnerSpec.encode(P.inner_spec,w.uint32(18).fork()).ldelim(),P.max_depth!==0&&w.uint32(24).int32(P.max_depth),P.min_depth!==0&&w.uint32(32).int32(P.min_depth),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};for(;g.pos>>3){case 1:U.leaf_spec=e.LeafOp.decode(g,g.uint32());break;case 2:U.inner_spec=e.InnerSpec.decode(g,g.uint32());break;case 3:U.max_depth=g.int32();break;case 4:U.min_depth=g.int32();break;default:g.skipType(7&C)}}return U},fromJSON:P=>({leaf_spec:x(P.leaf_spec)?e.LeafOp.fromJSON(P.leaf_spec):void 0,inner_spec:x(P.inner_spec)?e.InnerSpec.fromJSON(P.inner_spec):void 0,max_depth:x(P.max_depth)?Number(P.max_depth):0,min_depth:x(P.min_depth)?Number(P.min_depth):0}),toJSON(P){const w={};return P.leaf_spec!==void 0&&(w.leaf_spec=P.leaf_spec?e.LeafOp.toJSON(P.leaf_spec):void 0),P.inner_spec!==void 0&&(w.inner_spec=P.inner_spec?e.InnerSpec.toJSON(P.inner_spec):void 0),P.max_depth!==void 0&&(w.max_depth=Math.round(P.max_depth)),P.min_depth!==void 0&&(w.min_depth=Math.round(P.min_depth)),w},fromPartial(P){var w,g;const E={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};return E.leaf_spec=P.leaf_spec!==void 0&&P.leaf_spec!==null?e.LeafOp.fromPartial(P.leaf_spec):void 0,E.inner_spec=P.inner_spec!==void 0&&P.inner_spec!==null?e.InnerSpec.fromPartial(P.inner_spec):void 0,E.max_depth=(w=P.max_depth)!==null&&w!==void 0?w:0,E.min_depth=(g=P.min_depth)!==null&&g!==void 0?g:0,E}},e.InnerSpec={encode(P,w=t.Writer.create()){w.uint32(10).fork();for(const g of P.child_order)w.int32(g);return w.ldelim(),P.child_size!==0&&w.uint32(16).int32(P.child_size),P.min_prefix_length!==0&&w.uint32(24).int32(P.min_prefix_length),P.max_prefix_length!==0&&w.uint32(32).int32(P.max_prefix_length),P.empty_child.length!==0&&w.uint32(42).bytes(P.empty_child),P.hash!==0&&w.uint32(48).int32(P.hash),w},decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=p();for(;g.pos>>3){case 1:if((7&C)==2){const F=g.uint32()+g.pos;for(;g.pos({child_order:Array.isArray(P==null?void 0:P.child_order)?P.child_order.map(w=>Number(w)):[],child_size:x(P.child_size)?Number(P.child_size):0,min_prefix_length:x(P.min_prefix_length)?Number(P.min_prefix_length):0,max_prefix_length:x(P.max_prefix_length)?Number(P.max_prefix_length):0,empty_child:x(P.empty_child)?j(P.empty_child):new Uint8Array,hash:x(P.hash)?s(P.hash):0}),toJSON(P){const w={};return P.child_order?w.child_order=P.child_order.map(g=>Math.round(g)):w.child_order=[],P.child_size!==void 0&&(w.child_size=Math.round(P.child_size)),P.min_prefix_length!==void 0&&(w.min_prefix_length=Math.round(P.min_prefix_length)),P.max_prefix_length!==void 0&&(w.max_prefix_length=Math.round(P.max_prefix_length)),P.empty_child!==void 0&&(w.empty_child=I(P.empty_child!==void 0?P.empty_child:new Uint8Array)),P.hash!==void 0&&(w.hash=r(P.hash)),w},fromPartial(P){var w,g,E,U,C,F;const re=p();return re.child_order=((w=P.child_order)===null||w===void 0?void 0:w.map(ee=>ee))||[],re.child_size=(g=P.child_size)!==null&&g!==void 0?g:0,re.min_prefix_length=(E=P.min_prefix_length)!==null&&E!==void 0?E:0,re.max_prefix_length=(U=P.max_prefix_length)!==null&&U!==void 0?U:0,re.empty_child=(C=P.empty_child)!==null&&C!==void 0?C:new Uint8Array,re.hash=(F=P.hash)!==null&&F!==void 0?F:0,re}},e.BatchProof={encode(P,w=t.Writer.create()){for(const g of P.entries)e.BatchEntry.encode(g,w.uint32(10).fork()).ldelim();return w},decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={entries:[]};for(;g.pos>>3==1?U.entries.push(e.BatchEntry.decode(g,g.uint32())):g.skipType(7&C)}return U},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(w=>e.BatchEntry.fromJSON(w)):[]}),toJSON(P){const w={};return P.entries?w.entries=P.entries.map(g=>g?e.BatchEntry.toJSON(g):void 0):w.entries=[],w},fromPartial(P){var w;const g={entries:[]};return g.entries=((w=P.entries)===null||w===void 0?void 0:w.map(E=>e.BatchEntry.fromPartial(E)))||[],g}},e.BatchEntry={encode:(P,w=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,w.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,w.uint32(18).fork()).ldelim(),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={exist:void 0,nonexist:void 0};for(;g.pos>>3){case 1:U.exist=e.ExistenceProof.decode(g,g.uint32());break;case 2:U.nonexist=e.NonExistenceProof.decode(g,g.uint32());break;default:g.skipType(7&C)}}return U},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const w={};return P.exist!==void 0&&(w.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(w.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),w},fromPartial(P){const w={exist:void 0,nonexist:void 0};return w.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,w.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,w}},e.CompressedBatchProof={encode(P,w=t.Writer.create()){for(const g of P.entries)e.CompressedBatchEntry.encode(g,w.uint32(10).fork()).ldelim();for(const g of P.lookup_inners)e.InnerOp.encode(g,w.uint32(18).fork()).ldelim();return w},decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={entries:[],lookup_inners:[]};for(;g.pos>>3){case 1:U.entries.push(e.CompressedBatchEntry.decode(g,g.uint32()));break;case 2:U.lookup_inners.push(e.InnerOp.decode(g,g.uint32()));break;default:g.skipType(7&C)}}return U},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(w=>e.CompressedBatchEntry.fromJSON(w)):[],lookup_inners:Array.isArray(P==null?void 0:P.lookup_inners)?P.lookup_inners.map(w=>e.InnerOp.fromJSON(w)):[]}),toJSON(P){const w={};return P.entries?w.entries=P.entries.map(g=>g?e.CompressedBatchEntry.toJSON(g):void 0):w.entries=[],P.lookup_inners?w.lookup_inners=P.lookup_inners.map(g=>g?e.InnerOp.toJSON(g):void 0):w.lookup_inners=[],w},fromPartial(P){var w,g;const E={entries:[],lookup_inners:[]};return E.entries=((w=P.entries)===null||w===void 0?void 0:w.map(U=>e.CompressedBatchEntry.fromPartial(U)))||[],E.lookup_inners=((g=P.lookup_inners)===null||g===void 0?void 0:g.map(U=>e.InnerOp.fromPartial(U)))||[],E}},e.CompressedBatchEntry={encode:(P,w=t.Writer.create())=>(P.exist!==void 0&&e.CompressedExistenceProof.encode(P.exist,w.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.CompressedNonExistenceProof.encode(P.nonexist,w.uint32(18).fork()).ldelim(),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U={exist:void 0,nonexist:void 0};for(;g.pos>>3){case 1:U.exist=e.CompressedExistenceProof.decode(g,g.uint32());break;case 2:U.nonexist=e.CompressedNonExistenceProof.decode(g,g.uint32());break;default:g.skipType(7&C)}}return U},fromJSON:P=>({exist:x(P.exist)?e.CompressedExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.CompressedNonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const w={};return P.exist!==void 0&&(w.exist=P.exist?e.CompressedExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(w.nonexist=P.nonexist?e.CompressedNonExistenceProof.toJSON(P.nonexist):void 0),w},fromPartial(P){const w={exist:void 0,nonexist:void 0};return w.exist=P.exist!==void 0&&P.exist!==null?e.CompressedExistenceProof.fromPartial(P.exist):void 0,w.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.CompressedNonExistenceProof.fromPartial(P.nonexist):void 0,w}},e.CompressedExistenceProof={encode(P,w=t.Writer.create()){P.key.length!==0&&w.uint32(10).bytes(P.key),P.value.length!==0&&w.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,w.uint32(26).fork()).ldelim(),w.uint32(34).fork();for(const g of P.path)w.int32(g);return w.ldelim(),w},decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=m();for(;g.pos>>3){case 1:U.key=g.bytes();break;case 2:U.value=g.bytes();break;case 3:U.leaf=e.LeafOp.decode(g,g.uint32());break;case 4:if((7&C)==2){const F=g.uint32()+g.pos;for(;g.pos({key:x(P.key)?j(P.key):new Uint8Array,value:x(P.value)?j(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(w=>Number(w)):[]}),toJSON(P){const w={};return P.key!==void 0&&(w.key=I(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(w.value=I(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(w.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?w.path=P.path.map(g=>Math.round(g)):w.path=[],w},fromPartial(P){var w,g,E;const U=m();return U.key=(w=P.key)!==null&&w!==void 0?w:new Uint8Array,U.value=(g=P.value)!==null&&g!==void 0?g:new Uint8Array,U.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,U.path=((E=P.path)===null||E===void 0?void 0:E.map(C=>C))||[],U}},e.CompressedNonExistenceProof={encode:(P,w=t.Writer.create())=>(P.key.length!==0&&w.uint32(10).bytes(P.key),P.left!==void 0&&e.CompressedExistenceProof.encode(P.left,w.uint32(18).fork()).ldelim(),P.right!==void 0&&e.CompressedExistenceProof.encode(P.right,w.uint32(26).fork()).ldelim(),w),decode(P,w){const g=P instanceof t.Reader?P:new t.Reader(P);let E=w===void 0?g.len:g.pos+w;const U=M();for(;g.pos>>3){case 1:U.key=g.bytes();break;case 2:U.left=e.CompressedExistenceProof.decode(g,g.uint32());break;case 3:U.right=e.CompressedExistenceProof.decode(g,g.uint32());break;default:g.skipType(7&C)}}return U},fromJSON:P=>({key:x(P.key)?j(P.key):new Uint8Array,left:x(P.left)?e.CompressedExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.CompressedExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const w={};return P.key!==void 0&&(w.key=I(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(w.left=P.left?e.CompressedExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(w.right=P.right?e.CompressedExistenceProof.toJSON(P.right):void 0),w},fromPartial(P){var w;const g=M();return g.key=(w=P.key)!==null&&w!==void 0?w:new Uint8Array,g.left=P.left!==void 0&&P.left!==null?e.CompressedExistenceProof.fromPartial(P.left):void 0,g.right=P.right!==void 0&&P.right!==null?e.CompressedExistenceProof.fromPartial(P.right):void 0,g}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const N=l.atob||(P=>l.Buffer.from(P,"base64").toString("binary"));function j(P){const w=N(P),g=new Uint8Array(w.length);for(let E=0;El.Buffer.from(P,"binary").toString("base64"));function I(P){const w=[];for(const g of P)w.push(String.fromCharCode(g));return R(w.join(""))}function x(P){return P!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9094:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(i,f,c,h){h===void 0&&(h=c),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[c]}})}:function(i,f,c,h){h===void 0&&(h=c),i[h]=f[c]}),A=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&O(f,i,c);return A(f,i),f},b=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.GrantAuthorization=e.Grant=e.GenericAuthorization=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(5090);function s(i){return{seconds:Math.trunc(i.getTime()/1e3).toString(),nanos:i.getTime()%1e3*1e6}}function r(i){let f=1e3*Number(i.seconds);return f+=i.nanos/1e6,new Date(f)}function n(i){return i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):d.Timestamp.fromJSON(i)}function o(i){return i!=null}e.protobufPackage="cosmos.authz.v1beta1",e.GenericAuthorization={encode:(i,f=t.Writer.create())=>(i.msg!==""&&f.uint32(10).string(i.msg),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={msg:""};for(;c.pos>>3==1?p.msg=c.string():c.skipType(7&m)}return p},fromJSON:i=>({msg:o(i.msg)?String(i.msg):""}),toJSON(i){const f={};return i.msg!==void 0&&(f.msg=i.msg),f},fromPartial(i){var f;const c={msg:""};return c.msg=(f=i.msg)!==null&&f!==void 0?f:"",c}},e.Grant={encode:(i,f=t.Writer.create())=>(i.authorization!==void 0&&u.Any.encode(i.authorization,f.uint32(10).fork()).ldelim(),i.expiration!==void 0&&d.Timestamp.encode(i.expiration,f.uint32(18).fork()).ldelim(),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={authorization:void 0,expiration:void 0};for(;c.pos>>3){case 1:p.authorization=u.Any.decode(c,c.uint32());break;case 2:p.expiration=d.Timestamp.decode(c,c.uint32());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({authorization:o(i.authorization)?u.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.authorization!==void 0&&(f.authorization=i.authorization?u.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){const f={authorization:void 0,expiration:void 0};return f.authorization=i.authorization!==void 0&&i.authorization!==null?u.Any.fromPartial(i.authorization):void 0,f.expiration=i.expiration!==void 0&&i.expiration!==null?d.Timestamp.fromPartial(i.expiration):void 0,f}},e.GrantAuthorization={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.authorization!==void 0&&u.Any.encode(i.authorization,f.uint32(26).fork()).ldelim(),i.expiration!==void 0&&d.Timestamp.encode(i.expiration,f.uint32(34).fork()).ldelim(),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={granter:"",grantee:"",authorization:void 0,expiration:void 0};for(;c.pos>>3){case 1:p.granter=c.string();break;case 2:p.grantee=c.string();break;case 3:p.authorization=u.Any.decode(c,c.uint32());break;case 4:p.expiration=d.Timestamp.decode(c,c.uint32());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",authorization:o(i.authorization)?u.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.authorization!==void 0&&(f.authorization=i.authorization?u.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){var f,c;const h={granter:"",grantee:"",authorization:void 0,expiration:void 0};return h.granter=(f=i.granter)!==null&&f!==void 0?f:"",h.grantee=(c=i.grantee)!==null&&c!==void 0?c:"",h.authorization=i.authorization!==void 0&&i.authorization!==null?u.Any.fromPartial(i.authorization):void 0,h.expiration=i.expiration!==void 0&&i.expiration!==null?d.Timestamp.fromPartial(i.expiration):void 0,h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5635:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(i,f,c,h){h===void 0&&(h=c),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[c]}})}:function(i,f,c,h){h===void 0&&(h=c),i[h]=f[c]}),A=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&O(f,i,c);return A(f,i),f},b=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeResponse=e.MsgRevoke=e.MsgGrantResponse=e.MsgExec=e.MsgExecResponse=e.MsgGrant=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(9094),d=_(4191);e.protobufPackage="cosmos.authz.v1beta1",e.MsgGrant={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.grant!==void 0&&u.Grant.encode(i.grant,f.uint32(26).fork()).ldelim(),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={granter:"",grantee:"",grant:void 0};for(;c.pos>>3){case 1:p.granter=c.string();break;case 2:p.grantee=c.string();break;case 3:p.grant=u.Grant.decode(c,c.uint32());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",grant:o(i.grant)?u.Grant.fromJSON(i.grant):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.grant!==void 0&&(f.grant=i.grant?u.Grant.toJSON(i.grant):void 0),f},fromPartial(i){var f,c;const h={granter:"",grantee:"",grant:void 0};return h.granter=(f=i.granter)!==null&&f!==void 0?f:"",h.grantee=(c=i.grantee)!==null&&c!==void 0?c:"",h.grant=i.grant!==void 0&&i.grant!==null?u.Grant.fromPartial(i.grant):void 0,h}},e.MsgExecResponse={encode(i,f=t.Writer.create()){for(const c of i.results)f.uint32(10).bytes(c);return f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={results:[]};for(;c.pos>>3==1?p.results.push(c.bytes()):c.skipType(7&m)}return p},fromJSON:i=>({results:Array.isArray(i==null?void 0:i.results)?i.results.map(f=>function(c){const h=r(c),p=new Uint8Array(h.length);for(let m=0;mfunction(h){const p=[];for(const m of h)p.push(String.fromCharCode(m));return n(p.join(""))}(c!==void 0?c:new Uint8Array)):f.results=[],f},fromPartial(i){var f;const c={results:[]};return c.results=((f=i.results)===null||f===void 0?void 0:f.map(h=>h))||[],c}},e.MsgExec={encode(i,f=t.Writer.create()){i.grantee!==""&&f.uint32(10).string(i.grantee);for(const c of i.msgs)d.Any.encode(c,f.uint32(18).fork()).ldelim();return f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={grantee:"",msgs:[]};for(;c.pos>>3){case 1:p.grantee=c.string();break;case 2:p.msgs.push(d.Any.decode(c,c.uint32()));break;default:c.skipType(7&m)}}return p},fromJSON:i=>({grantee:o(i.grantee)?String(i.grantee):"",msgs:Array.isArray(i==null?void 0:i.msgs)?i.msgs.map(f=>d.Any.fromJSON(f)):[]}),toJSON(i){const f={};return i.grantee!==void 0&&(f.grantee=i.grantee),i.msgs?f.msgs=i.msgs.map(c=>c?d.Any.toJSON(c):void 0):f.msgs=[],f},fromPartial(i){var f,c;const h={grantee:"",msgs:[]};return h.grantee=(f=i.grantee)!==null&&f!==void 0?f:"",h.msgs=((c=i.msgs)===null||c===void 0?void 0:c.map(p=>d.Any.fromPartial(p)))||[],h}},e.MsgGrantResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;for(;c.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgRevoke={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.msg_type_url!==""&&f.uint32(26).string(i.msg_type_url),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={granter:"",grantee:"",msg_type_url:""};for(;c.pos>>3){case 1:p.granter=c.string();break;case 2:p.grantee=c.string();break;case 3:p.msg_type_url=c.string();break;default:c.skipType(7&m)}}return p},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",msg_type_url:o(i.msg_type_url)?String(i.msg_type_url):""}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.msg_type_url!==void 0&&(f.msg_type_url=i.msg_type_url),f},fromPartial(i){var f,c,h;const p={granter:"",grantee:"",msg_type_url:""};return p.granter=(f=i.granter)!==null&&f!==void 0?f:"",p.grantee=(c=i.grantee)!==null&&c!==void 0?c:"",p.msg_type_url=(h=i.msg_type_url)!==null&&h!==void 0?h:"",p}},e.MsgRevokeResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;for(;c.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgClientImpl=class{constructor(i){this.rpc=i,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(i){const f=e.MsgGrant.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",f).then(c=>e.MsgGrantResponse.decode(new t.Reader(c)))}Exec(i){const f=e.MsgExec.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",f).then(c=>e.MsgExecResponse.decode(new t.Reader(c)))}Revoke(i){const f=e.MsgRevoke.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",f).then(c=>e.MsgRevokeResponse.decode(new t.Reader(c)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(i=>s.Buffer.from(i,"base64").toString("binary")),n=s.btoa||(i=>s.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5939:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.SendAuthorization=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);e.protobufPackage="cosmos.bank.v1beta1",e.SendAuthorization={encode(d,s=t.Writer.create()){for(const r of d.spend_limit)u.Coin.encode(r,s.uint32(10).fork()).ldelim();return s},decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={spend_limit:[]};for(;r.pos>>3==1?o.spend_limit.push(u.Coin.decode(r,r.uint32())):r.skipType(7&i)}return o},fromJSON:d=>({spend_limit:Array.isArray(d==null?void 0:d.spend_limit)?d.spend_limit.map(s=>u.Coin.fromJSON(s)):[]}),toJSON(d){const s={};return d.spend_limit?s.spend_limit=d.spend_limit.map(r=>r?u.Coin.toJSON(r):void 0):s.spend_limit=[],s},fromPartial(d){var s;const r={spend_limit:[]};return r.spend_limit=((s=d.spend_limit)===null||s===void 0?void 0:s.map(n=>u.Coin.fromPartial(n)))||[],r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7725:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=e.DenomUnit=e.Supply=e.Output=e.Input=e.SendEnabled=e.Params=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);function d(s){return s!=null}e.protobufPackage="cosmos.bank.v1beta1",e.Params={encode(s,r=t.Writer.create()){for(const n of s.send_enabled)e.SendEnabled.encode(n,r.uint32(10).fork()).ldelim();return s.default_send_enabled===!0&&r.uint32(16).bool(s.default_send_enabled),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={send_enabled:[],default_send_enabled:!1};for(;n.pos>>3){case 1:i.send_enabled.push(e.SendEnabled.decode(n,n.uint32()));break;case 2:i.default_send_enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({send_enabled:Array.isArray(s==null?void 0:s.send_enabled)?s.send_enabled.map(r=>e.SendEnabled.fromJSON(r)):[],default_send_enabled:!!d(s.default_send_enabled)&&!!s.default_send_enabled}),toJSON(s){const r={};return s.send_enabled?r.send_enabled=s.send_enabled.map(n=>n?e.SendEnabled.toJSON(n):void 0):r.send_enabled=[],s.default_send_enabled!==void 0&&(r.default_send_enabled=s.default_send_enabled),r},fromPartial(s){var r,n;const o={send_enabled:[],default_send_enabled:!1};return o.send_enabled=((r=s.send_enabled)===null||r===void 0?void 0:r.map(i=>e.SendEnabled.fromPartial(i)))||[],o.default_send_enabled=(n=s.default_send_enabled)!==null&&n!==void 0&&n,o}},e.SendEnabled={encode:(s,r=t.Writer.create())=>(s.denom!==""&&r.uint32(10).string(s.denom),s.enabled===!0&&r.uint32(16).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",enabled:!1};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:d(s.denom)?String(s.denom):"",enabled:!!d(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n;const o={denom:"",enabled:!1};return o.denom=(r=s.denom)!==null&&r!==void 0?r:"",o.enabled=(n=s.enabled)!==null&&n!==void 0&&n,o}},e.Input={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)u.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:d(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>u.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?u.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>u.Coin.fromPartial(i)))||[],o}},e.Output={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)u.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:d(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>u.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?u.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>u.Coin.fromPartial(i)))||[],o}},e.Supply={encode(s,r=t.Writer.create()){for(const n of s.total)u.Coin.encode(n,r.uint32(10).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={total:[]};for(;n.pos>>3==1?i.total.push(u.Coin.decode(n,n.uint32())):n.skipType(7&f)}return i},fromJSON:s=>({total:Array.isArray(s==null?void 0:s.total)?s.total.map(r=>u.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.total?r.total=s.total.map(n=>n?u.Coin.toJSON(n):void 0):r.total=[],r},fromPartial(s){var r;const n={total:[]};return n.total=((r=s.total)===null||r===void 0?void 0:r.map(o=>u.Coin.fromPartial(o)))||[],n}},e.DenomUnit={encode(s,r=t.Writer.create()){s.denom!==""&&r.uint32(10).string(s.denom),s.exponent!==0&&r.uint32(16).uint32(s.exponent);for(const n of s.aliases)r.uint32(26).string(n);return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",exponent:0,aliases:[]};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.exponent=n.uint32();break;case 3:i.aliases.push(n.string());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:d(s.denom)?String(s.denom):"",exponent:d(s.exponent)?Number(s.exponent):0,aliases:Array.isArray(s==null?void 0:s.aliases)?s.aliases.map(r=>String(r)):[]}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.exponent!==void 0&&(r.exponent=Math.round(s.exponent)),s.aliases?r.aliases=s.aliases.map(n=>n):r.aliases=[],r},fromPartial(s){var r,n,o;const i={denom:"",exponent:0,aliases:[]};return i.denom=(r=s.denom)!==null&&r!==void 0?r:"",i.exponent=(n=s.exponent)!==null&&n!==void 0?n:0,i.aliases=((o=s.aliases)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.Metadata={encode(s,r=t.Writer.create()){s.description!==""&&r.uint32(10).string(s.description);for(const n of s.denom_units)e.DenomUnit.encode(n,r.uint32(18).fork()).ldelim();return s.base!==""&&r.uint32(26).string(s.base),s.display!==""&&r.uint32(34).string(s.display),s.name!==""&&r.uint32(42).string(s.name),s.symbol!==""&&r.uint32(50).string(s.symbol),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};for(;n.pos>>3){case 1:i.description=n.string();break;case 2:i.denom_units.push(e.DenomUnit.decode(n,n.uint32()));break;case 3:i.base=n.string();break;case 4:i.display=n.string();break;case 5:i.name=n.string();break;case 6:i.symbol=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({description:d(s.description)?String(s.description):"",denom_units:Array.isArray(s==null?void 0:s.denom_units)?s.denom_units.map(r=>e.DenomUnit.fromJSON(r)):[],base:d(s.base)?String(s.base):"",display:d(s.display)?String(s.display):"",name:d(s.name)?String(s.name):"",symbol:d(s.symbol)?String(s.symbol):""}),toJSON(s){const r={};return s.description!==void 0&&(r.description=s.description),s.denom_units?r.denom_units=s.denom_units.map(n=>n?e.DenomUnit.toJSON(n):void 0):r.denom_units=[],s.base!==void 0&&(r.base=s.base),s.display!==void 0&&(r.display=s.display),s.name!==void 0&&(r.name=s.name),s.symbol!==void 0&&(r.symbol=s.symbol),r},fromPartial(s){var r,n,o,i,f,c;const h={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};return h.description=(r=s.description)!==null&&r!==void 0?r:"",h.denom_units=((n=s.denom_units)===null||n===void 0?void 0:n.map(p=>e.DenomUnit.fromPartial(p)))||[],h.base=(o=s.base)!==null&&o!==void 0?o:"",h.display=(i=s.display)!==null&&i!==void 0?i:"",h.name=(f=s.name)!==null&&f!==void 0?f:"",h.symbol=(c=s.symbol)!==null&&c!==void 0?c:"",h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},810:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),A=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&O(n,r,o);return A(n,r),n},b=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgMultiSendResponse=e.MsgMultiSend=e.MsgSendResponse=e.MsgSend=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976),d=_(7725);function s(r){return r!=null}e.protobufPackage="cosmos.bank.v1beta1",e.MsgSend={encode(r,n=t.Writer.create()){r.from_address!==""&&n.uint32(10).string(r.from_address),r.to_address!==""&&n.uint32(18).string(r.to_address);for(const o of r.amount)u.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={from_address:"",to_address:"",amount:[]};for(;o.pos>>3){case 1:f.from_address=o.string();break;case 2:f.to_address=o.string();break;case 3:f.amount.push(u.Coin.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({from_address:s(r.from_address)?String(r.from_address):"",to_address:s(r.to_address)?String(r.to_address):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>u.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.from_address!==void 0&&(n.from_address=r.from_address),r.to_address!==void 0&&(n.to_address=r.to_address),r.amount?n.amount=r.amount.map(o=>o?u.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i;const f={from_address:"",to_address:"",amount:[]};return f.from_address=(n=r.from_address)!==null&&n!==void 0?n:"",f.to_address=(o=r.to_address)!==null&&o!==void 0?o:"",f.amount=((i=r.amount)===null||i===void 0?void 0:i.map(c=>u.Coin.fromPartial(c)))||[],f}},e.MsgSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgMultiSend={encode(r,n=t.Writer.create()){for(const o of r.inputs)d.Input.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.outputs)d.Output.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={inputs:[],outputs:[]};for(;o.pos>>3){case 1:f.inputs.push(d.Input.decode(o,o.uint32()));break;case 2:f.outputs.push(d.Output.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({inputs:Array.isArray(r==null?void 0:r.inputs)?r.inputs.map(n=>d.Input.fromJSON(n)):[],outputs:Array.isArray(r==null?void 0:r.outputs)?r.outputs.map(n=>d.Output.fromJSON(n)):[]}),toJSON(r){const n={};return r.inputs?n.inputs=r.inputs.map(o=>o?d.Input.toJSON(o):void 0):n.inputs=[],r.outputs?n.outputs=r.outputs.map(o=>o?d.Output.toJSON(o):void 0):n.outputs=[],n},fromPartial(r){var n,o;const i={inputs:[],outputs:[]};return i.inputs=((n=r.inputs)===null||n===void 0?void 0:n.map(f=>d.Input.fromPartial(f)))||[],i.outputs=((o=r.outputs)===null||o===void 0?void 0:o.map(f=>d.Output.fromPartial(f)))||[],i}},e.MsgMultiSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this)}Send(r){const n=e.MsgSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",n).then(o=>e.MsgSendResponse.decode(new t.Reader(o)))}MultiSend(r){const n=e.MsgMultiSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",n).then(o=>e.MsgMultiSendResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9849:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(m,M,l,N){N===void 0&&(N=l),Object.defineProperty(m,N,{enumerable:!0,get:function(){return M[l]}})}:function(m,M,l,N){N===void 0&&(N=l),m[N]=M[l]}),A=this&&this.__setModuleDefault||(Object.create?function(m,M){Object.defineProperty(m,"default",{enumerable:!0,value:M})}:function(m,M){m.default=M}),k=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var M={};if(m!=null)for(var l in m)l!=="default"&&Object.prototype.hasOwnProperty.call(m,l)&&O(M,m,l);return A(M,m),M},b=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.SearchTxsResult=e.TxMsgData=e.MsgData=e.SimulationResponse=e.Result=e.GasInfo=e.Attribute=e.StringEvent=e.ABCIMessageLog=e.TxResponse=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(2093);function s(){return{data:new Uint8Array,log:"",events:[]}}function r(){return{msg_type:"",data:new Uint8Array}}e.protobufPackage="cosmos.base.abci.v1beta1",e.TxResponse={encode(m,M=t.Writer.create()){m.height!=="0"&&M.uint32(8).int64(m.height),m.txhash!==""&&M.uint32(18).string(m.txhash),m.codespace!==""&&M.uint32(26).string(m.codespace),m.code!==0&&M.uint32(32).uint32(m.code),m.data!==""&&M.uint32(42).string(m.data),m.raw_log!==""&&M.uint32(50).string(m.raw_log);for(const l of m.logs)e.ABCIMessageLog.encode(l,M.uint32(58).fork()).ldelim();m.info!==""&&M.uint32(66).string(m.info),m.gas_wanted!=="0"&&M.uint32(72).int64(m.gas_wanted),m.gas_used!=="0"&&M.uint32(80).int64(m.gas_used),m.tx!==void 0&&u.Any.encode(m.tx,M.uint32(90).fork()).ldelim(),m.timestamp!==""&&M.uint32(98).string(m.timestamp);for(const l of m.events)d.Event.encode(l,M.uint32(106).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};for(;l.pos>>3){case 1:j.height=h(l.int64());break;case 2:j.txhash=l.string();break;case 3:j.codespace=l.string();break;case 4:j.code=l.uint32();break;case 5:j.data=l.string();break;case 6:j.raw_log=l.string();break;case 7:j.logs.push(e.ABCIMessageLog.decode(l,l.uint32()));break;case 8:j.info=l.string();break;case 9:j.gas_wanted=h(l.int64());break;case 10:j.gas_used=h(l.int64());break;case 11:j.tx=u.Any.decode(l,l.uint32());break;case 12:j.timestamp=l.string();break;case 13:j.events.push(d.Event.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({height:p(m.height)?String(m.height):"0",txhash:p(m.txhash)?String(m.txhash):"",codespace:p(m.codespace)?String(m.codespace):"",code:p(m.code)?Number(m.code):0,data:p(m.data)?String(m.data):"",raw_log:p(m.raw_log)?String(m.raw_log):"",logs:Array.isArray(m==null?void 0:m.logs)?m.logs.map(M=>e.ABCIMessageLog.fromJSON(M)):[],info:p(m.info)?String(m.info):"",gas_wanted:p(m.gas_wanted)?String(m.gas_wanted):"0",gas_used:p(m.gas_used)?String(m.gas_used):"0",tx:p(m.tx)?u.Any.fromJSON(m.tx):void 0,timestamp:p(m.timestamp)?String(m.timestamp):"",events:Array.isArray(m==null?void 0:m.events)?m.events.map(M=>d.Event.fromJSON(M)):[]}),toJSON(m){const M={};return m.height!==void 0&&(M.height=m.height),m.txhash!==void 0&&(M.txhash=m.txhash),m.codespace!==void 0&&(M.codespace=m.codespace),m.code!==void 0&&(M.code=Math.round(m.code)),m.data!==void 0&&(M.data=m.data),m.raw_log!==void 0&&(M.raw_log=m.raw_log),m.logs?M.logs=m.logs.map(l=>l?e.ABCIMessageLog.toJSON(l):void 0):M.logs=[],m.info!==void 0&&(M.info=m.info),m.gas_wanted!==void 0&&(M.gas_wanted=m.gas_wanted),m.gas_used!==void 0&&(M.gas_used=m.gas_used),m.tx!==void 0&&(M.tx=m.tx?u.Any.toJSON(m.tx):void 0),m.timestamp!==void 0&&(M.timestamp=m.timestamp),m.events?M.events=m.events.map(l=>l?d.Event.toJSON(l):void 0):M.events=[],M},fromPartial(m){var M,l,N,j,R,I,x,P,w,g,E,U;const C={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};return C.height=(M=m.height)!==null&&M!==void 0?M:"0",C.txhash=(l=m.txhash)!==null&&l!==void 0?l:"",C.codespace=(N=m.codespace)!==null&&N!==void 0?N:"",C.code=(j=m.code)!==null&&j!==void 0?j:0,C.data=(R=m.data)!==null&&R!==void 0?R:"",C.raw_log=(I=m.raw_log)!==null&&I!==void 0?I:"",C.logs=((x=m.logs)===null||x===void 0?void 0:x.map(F=>e.ABCIMessageLog.fromPartial(F)))||[],C.info=(P=m.info)!==null&&P!==void 0?P:"",C.gas_wanted=(w=m.gas_wanted)!==null&&w!==void 0?w:"0",C.gas_used=(g=m.gas_used)!==null&&g!==void 0?g:"0",C.tx=m.tx!==void 0&&m.tx!==null?u.Any.fromPartial(m.tx):void 0,C.timestamp=(E=m.timestamp)!==null&&E!==void 0?E:"",C.events=((U=m.events)===null||U===void 0?void 0:U.map(F=>d.Event.fromPartial(F)))||[],C}},e.ABCIMessageLog={encode(m,M=t.Writer.create()){m.msg_index!==0&&M.uint32(8).uint32(m.msg_index),m.log!==""&&M.uint32(18).string(m.log);for(const l of m.events)e.StringEvent.encode(l,M.uint32(26).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={msg_index:0,log:"",events:[]};for(;l.pos>>3){case 1:j.msg_index=l.uint32();break;case 2:j.log=l.string();break;case 3:j.events.push(e.StringEvent.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({msg_index:p(m.msg_index)?Number(m.msg_index):0,log:p(m.log)?String(m.log):"",events:Array.isArray(m==null?void 0:m.events)?m.events.map(M=>e.StringEvent.fromJSON(M)):[]}),toJSON(m){const M={};return m.msg_index!==void 0&&(M.msg_index=Math.round(m.msg_index)),m.log!==void 0&&(M.log=m.log),m.events?M.events=m.events.map(l=>l?e.StringEvent.toJSON(l):void 0):M.events=[],M},fromPartial(m){var M,l,N;const j={msg_index:0,log:"",events:[]};return j.msg_index=(M=m.msg_index)!==null&&M!==void 0?M:0,j.log=(l=m.log)!==null&&l!==void 0?l:"",j.events=((N=m.events)===null||N===void 0?void 0:N.map(R=>e.StringEvent.fromPartial(R)))||[],j}},e.StringEvent={encode(m,M=t.Writer.create()){m.type!==""&&M.uint32(10).string(m.type);for(const l of m.attributes)e.Attribute.encode(l,M.uint32(18).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={type:"",attributes:[]};for(;l.pos>>3){case 1:j.type=l.string();break;case 2:j.attributes.push(e.Attribute.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({type:p(m.type)?String(m.type):"",attributes:Array.isArray(m==null?void 0:m.attributes)?m.attributes.map(M=>e.Attribute.fromJSON(M)):[]}),toJSON(m){const M={};return m.type!==void 0&&(M.type=m.type),m.attributes?M.attributes=m.attributes.map(l=>l?e.Attribute.toJSON(l):void 0):M.attributes=[],M},fromPartial(m){var M,l;const N={type:"",attributes:[]};return N.type=(M=m.type)!==null&&M!==void 0?M:"",N.attributes=((l=m.attributes)===null||l===void 0?void 0:l.map(j=>e.Attribute.fromPartial(j)))||[],N}},e.Attribute={encode:(m,M=t.Writer.create())=>(m.key!==""&&M.uint32(10).string(m.key),m.value!==""&&M.uint32(18).string(m.value),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={key:"",value:""};for(;l.pos>>3){case 1:j.key=l.string();break;case 2:j.value=l.string();break;default:l.skipType(7&R)}}return j},fromJSON:m=>({key:p(m.key)?String(m.key):"",value:p(m.value)?String(m.value):""}),toJSON(m){const M={};return m.key!==void 0&&(M.key=m.key),m.value!==void 0&&(M.value=m.value),M},fromPartial(m){var M,l;const N={key:"",value:""};return N.key=(M=m.key)!==null&&M!==void 0?M:"",N.value=(l=m.value)!==null&&l!==void 0?l:"",N}},e.GasInfo={encode:(m,M=t.Writer.create())=>(m.gas_wanted!=="0"&&M.uint32(8).uint64(m.gas_wanted),m.gas_used!=="0"&&M.uint32(16).uint64(m.gas_used),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={gas_wanted:"0",gas_used:"0"};for(;l.pos>>3){case 1:j.gas_wanted=h(l.uint64());break;case 2:j.gas_used=h(l.uint64());break;default:l.skipType(7&R)}}return j},fromJSON:m=>({gas_wanted:p(m.gas_wanted)?String(m.gas_wanted):"0",gas_used:p(m.gas_used)?String(m.gas_used):"0"}),toJSON(m){const M={};return m.gas_wanted!==void 0&&(M.gas_wanted=m.gas_wanted),m.gas_used!==void 0&&(M.gas_used=m.gas_used),M},fromPartial(m){var M,l;const N={gas_wanted:"0",gas_used:"0"};return N.gas_wanted=(M=m.gas_wanted)!==null&&M!==void 0?M:"0",N.gas_used=(l=m.gas_used)!==null&&l!==void 0?l:"0",N}},e.Result={encode(m,M=t.Writer.create()){m.data.length!==0&&M.uint32(10).bytes(m.data),m.log!==""&&M.uint32(18).string(m.log);for(const l of m.events)d.Event.encode(l,M.uint32(26).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j=s();for(;l.pos>>3){case 1:j.data=l.bytes();break;case 2:j.log=l.string();break;case 3:j.events.push(d.Event.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({data:p(m.data)?i(m.data):new Uint8Array,log:p(m.log)?String(m.log):"",events:Array.isArray(m==null?void 0:m.events)?m.events.map(M=>d.Event.fromJSON(M)):[]}),toJSON(m){const M={};return m.data!==void 0&&(M.data=c(m.data!==void 0?m.data:new Uint8Array)),m.log!==void 0&&(M.log=m.log),m.events?M.events=m.events.map(l=>l?d.Event.toJSON(l):void 0):M.events=[],M},fromPartial(m){var M,l,N;const j=s();return j.data=(M=m.data)!==null&&M!==void 0?M:new Uint8Array,j.log=(l=m.log)!==null&&l!==void 0?l:"",j.events=((N=m.events)===null||N===void 0?void 0:N.map(R=>d.Event.fromPartial(R)))||[],j}},e.SimulationResponse={encode:(m,M=t.Writer.create())=>(m.gas_info!==void 0&&e.GasInfo.encode(m.gas_info,M.uint32(10).fork()).ldelim(),m.result!==void 0&&e.Result.encode(m.result,M.uint32(18).fork()).ldelim(),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={gas_info:void 0,result:void 0};for(;l.pos>>3){case 1:j.gas_info=e.GasInfo.decode(l,l.uint32());break;case 2:j.result=e.Result.decode(l,l.uint32());break;default:l.skipType(7&R)}}return j},fromJSON:m=>({gas_info:p(m.gas_info)?e.GasInfo.fromJSON(m.gas_info):void 0,result:p(m.result)?e.Result.fromJSON(m.result):void 0}),toJSON(m){const M={};return m.gas_info!==void 0&&(M.gas_info=m.gas_info?e.GasInfo.toJSON(m.gas_info):void 0),m.result!==void 0&&(M.result=m.result?e.Result.toJSON(m.result):void 0),M},fromPartial(m){const M={gas_info:void 0,result:void 0};return M.gas_info=m.gas_info!==void 0&&m.gas_info!==null?e.GasInfo.fromPartial(m.gas_info):void 0,M.result=m.result!==void 0&&m.result!==null?e.Result.fromPartial(m.result):void 0,M}},e.MsgData={encode:(m,M=t.Writer.create())=>(m.msg_type!==""&&M.uint32(10).string(m.msg_type),m.data.length!==0&&M.uint32(18).bytes(m.data),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j=r();for(;l.pos>>3){case 1:j.msg_type=l.string();break;case 2:j.data=l.bytes();break;default:l.skipType(7&R)}}return j},fromJSON:m=>({msg_type:p(m.msg_type)?String(m.msg_type):"",data:p(m.data)?i(m.data):new Uint8Array}),toJSON(m){const M={};return m.msg_type!==void 0&&(M.msg_type=m.msg_type),m.data!==void 0&&(M.data=c(m.data!==void 0?m.data:new Uint8Array)),M},fromPartial(m){var M,l;const N=r();return N.msg_type=(M=m.msg_type)!==null&&M!==void 0?M:"",N.data=(l=m.data)!==null&&l!==void 0?l:new Uint8Array,N}},e.TxMsgData={encode(m,M=t.Writer.create()){for(const l of m.data)e.MsgData.encode(l,M.uint32(10).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={data:[]};for(;l.pos>>3==1?j.data.push(e.MsgData.decode(l,l.uint32())):l.skipType(7&R)}return j},fromJSON:m=>({data:Array.isArray(m==null?void 0:m.data)?m.data.map(M=>e.MsgData.fromJSON(M)):[]}),toJSON(m){const M={};return m.data?M.data=m.data.map(l=>l?e.MsgData.toJSON(l):void 0):M.data=[],M},fromPartial(m){var M;const l={data:[]};return l.data=((M=m.data)===null||M===void 0?void 0:M.map(N=>e.MsgData.fromPartial(N)))||[],l}},e.SearchTxsResult={encode(m,M=t.Writer.create()){m.total_count!=="0"&&M.uint32(8).uint64(m.total_count),m.count!=="0"&&M.uint32(16).uint64(m.count),m.page_number!=="0"&&M.uint32(24).uint64(m.page_number),m.page_total!=="0"&&M.uint32(32).uint64(m.page_total),m.limit!=="0"&&M.uint32(40).uint64(m.limit);for(const l of m.txs)e.TxResponse.encode(l,M.uint32(50).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};for(;l.pos>>3){case 1:j.total_count=h(l.uint64());break;case 2:j.count=h(l.uint64());break;case 3:j.page_number=h(l.uint64());break;case 4:j.page_total=h(l.uint64());break;case 5:j.limit=h(l.uint64());break;case 6:j.txs.push(e.TxResponse.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({total_count:p(m.total_count)?String(m.total_count):"0",count:p(m.count)?String(m.count):"0",page_number:p(m.page_number)?String(m.page_number):"0",page_total:p(m.page_total)?String(m.page_total):"0",limit:p(m.limit)?String(m.limit):"0",txs:Array.isArray(m==null?void 0:m.txs)?m.txs.map(M=>e.TxResponse.fromJSON(M)):[]}),toJSON(m){const M={};return m.total_count!==void 0&&(M.total_count=m.total_count),m.count!==void 0&&(M.count=m.count),m.page_number!==void 0&&(M.page_number=m.page_number),m.page_total!==void 0&&(M.page_total=m.page_total),m.limit!==void 0&&(M.limit=m.limit),m.txs?M.txs=m.txs.map(l=>l?e.TxResponse.toJSON(l):void 0):M.txs=[],M},fromPartial(m){var M,l,N,j,R,I;const x={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};return x.total_count=(M=m.total_count)!==null&&M!==void 0?M:"0",x.count=(l=m.count)!==null&&l!==void 0?l:"0",x.page_number=(N=m.page_number)!==null&&N!==void 0?N:"0",x.page_total=(j=m.page_total)!==null&&j!==void 0?j:"0",x.limit=(R=m.limit)!==null&&R!==void 0?R:"0",x.txs=((I=m.txs)===null||I===void 0?void 0:I.map(P=>e.TxResponse.fromPartial(P)))||[],x}};var n=(()=>{if(n!==void 0)return n;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const o=n.atob||(m=>n.Buffer.from(m,"base64").toString("binary"));function i(m){const M=o(m),l=new Uint8Array(M.length);for(let N=0;Nn.Buffer.from(m,"binary").toString("base64"));function c(m){const M=[];for(const l of m)M.push(String.fromCharCode(l));return f(M.join(""))}function h(m){return m.toString()}function p(m){return m!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2976:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecProto=e.IntProto=e.DecCoin=e.Coin=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(d){return d!=null}e.protobufPackage="cosmos.base.v1beta1",e.Coin={encode:(d,s=t.Writer.create())=>(d.denom!==""&&s.uint32(10).string(d.denom),d.amount!==""&&s.uint32(18).string(d.amount),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({denom:u(d.denom)?String(d.denom):"",amount:u(d.amount)?String(d.amount):""}),toJSON(d){const s={};return d.denom!==void 0&&(s.denom=d.denom),d.amount!==void 0&&(s.amount=d.amount),s},fromPartial(d){var s,r;const n={denom:"",amount:""};return n.denom=(s=d.denom)!==null&&s!==void 0?s:"",n.amount=(r=d.amount)!==null&&r!==void 0?r:"",n}},e.DecCoin={encode:(d,s=t.Writer.create())=>(d.denom!==""&&s.uint32(10).string(d.denom),d.amount!==""&&s.uint32(18).string(d.amount),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({denom:u(d.denom)?String(d.denom):"",amount:u(d.amount)?String(d.amount):""}),toJSON(d){const s={};return d.denom!==void 0&&(s.denom=d.denom),d.amount!==void 0&&(s.amount=d.amount),s},fromPartial(d){var s,r;const n={denom:"",amount:""};return n.denom=(s=d.denom)!==null&&s!==void 0?s:"",n.amount=(r=d.amount)!==null&&r!==void 0?r:"",n}},e.IntProto={encode:(d,s=t.Writer.create())=>(d.int!==""&&s.uint32(10).string(d.int),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={int:""};for(;r.pos>>3==1?o.int=r.string():r.skipType(7&i)}return o},fromJSON:d=>({int:u(d.int)?String(d.int):""}),toJSON(d){const s={};return d.int!==void 0&&(s.int=d.int),s},fromPartial(d){var s;const r={int:""};return r.int=(s=d.int)!==null&&s!==void 0?s:"",r}},e.DecProto={encode:(d,s=t.Writer.create())=>(d.dec!==""&&s.uint32(10).string(d.dec),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={dec:""};for(;r.pos>>3==1?o.dec=r.string():r.skipType(7&i)}return o},fromJSON:d=>({dec:u(d.dec)?String(d.dec):""}),toJSON(d){const s={};return d.dec!==void 0&&(s.dec=d.dec),s},fromPartial(d){var s;const r={dec:""};return r.dec=(s=d.dec)!==null&&s!==void 0?s:"",r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4489:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgVerifyInvariantResponse=e.MsgVerifyInvariant=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(d){return d!=null}e.protobufPackage="cosmos.crisis.v1beta1",e.MsgVerifyInvariant={encode:(d,s=t.Writer.create())=>(d.sender!==""&&s.uint32(10).string(d.sender),d.invariant_module_name!==""&&s.uint32(18).string(d.invariant_module_name),d.invariant_route!==""&&s.uint32(26).string(d.invariant_route),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={sender:"",invariant_module_name:"",invariant_route:""};for(;r.pos>>3){case 1:o.sender=r.string();break;case 2:o.invariant_module_name=r.string();break;case 3:o.invariant_route=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({sender:u(d.sender)?String(d.sender):"",invariant_module_name:u(d.invariant_module_name)?String(d.invariant_module_name):"",invariant_route:u(d.invariant_route)?String(d.invariant_route):""}),toJSON(d){const s={};return d.sender!==void 0&&(s.sender=d.sender),d.invariant_module_name!==void 0&&(s.invariant_module_name=d.invariant_module_name),d.invariant_route!==void 0&&(s.invariant_route=d.invariant_route),s},fromPartial(d){var s,r,n;const o={sender:"",invariant_module_name:"",invariant_route:""};return o.sender=(s=d.sender)!==null&&s!==void 0?s:"",o.invariant_module_name=(r=d.invariant_module_name)!==null&&r!==void 0?r:"",o.invariant_route=(n=d.invariant_route)!==null&&n!==void 0?n:"",o}},e.MsgVerifyInvariantResponse={encode:(d,s=t.Writer.create())=>s,decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;for(;r.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgClientImpl=class{constructor(d){this.rpc=d,this.VerifyInvariant=this.VerifyInvariant.bind(this)}VerifyInvariant(d){const s=e.MsgVerifyInvariant.encode(d).finish();return this.rpc.request("cosmos.crisis.v1beta1.Msg","VerifyInvariant",s).then(r=>e.MsgVerifyInvariantResponse.decode(new t.Reader(r)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7776:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{key:new Uint8Array}}function d(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.ed25519",e.PubKey={encode:(c,h=t.Writer.create())=>(c.key.length!==0&&h.uint32(10).bytes(c.key),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=u();for(;p.pos>>3==1?M.key=p.bytes():p.skipType(7&l)}return M},fromJSON:c=>({key:f(c.key)?n(c.key):new Uint8Array}),toJSON(c){const h={};return c.key!==void 0&&(h.key=i(c.key!==void 0?c.key:new Uint8Array)),h},fromPartial(c){var h;const p=u();return p.key=(h=c.key)!==null&&h!==void 0?h:new Uint8Array,p}},e.PrivKey={encode:(c,h=t.Writer.create())=>(c.key.length!==0&&h.uint32(10).bytes(c.key),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=d();for(;p.pos>>3==1?M.key=p.bytes():p.skipType(7&l)}return M},fromJSON:c=>({key:f(c.key)?n(c.key):new Uint8Array}),toJSON(c){const h={};return c.key!==void 0&&(h.key=i(c.key!==void 0?c.key:new Uint8Array)),h},fromPartial(c){var h;const p=d();return p.key=(h=c.key)!==null&&h!==void 0?h:new Uint8Array,p}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(c=>s.Buffer.from(c,"base64").toString("binary"));function n(c){const h=r(c),p=new Uint8Array(h.length);for(let m=0;ms.Buffer.from(c,"binary").toString("base64"));function i(c){const h=[];for(const p of c)h.push(String.fromCharCode(p));return o(h.join(""))}function f(c){return c!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5818:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyAminoPubKey=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191);e.protobufPackage="cosmos.crypto.multisig",e.LegacyAminoPubKey={encode(d,s=t.Writer.create()){d.threshold!==0&&s.uint32(8).uint32(d.threshold);for(const r of d.public_keys)u.Any.encode(r,s.uint32(18).fork()).ldelim();return s},decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={threshold:0,public_keys:[]};for(;r.pos>>3){case 1:o.threshold=r.uint32();break;case 2:o.public_keys.push(u.Any.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON(d){return{threshold:(s=d.threshold,s!=null?Number(d.threshold):0),public_keys:Array.isArray(d==null?void 0:d.public_keys)?d.public_keys.map(r=>u.Any.fromJSON(r)):[]};var s},toJSON(d){const s={};return d.threshold!==void 0&&(s.threshold=Math.round(d.threshold)),d.public_keys?s.public_keys=d.public_keys.map(r=>r?u.Any.toJSON(r):void 0):s.public_keys=[],s},fromPartial(d){var s,r;const n={threshold:0,public_keys:[]};return n.threshold=(s=d.threshold)!==null&&s!==void 0?s:0,n.public_keys=((r=d.public_keys)===null||r===void 0?void 0:r.map(o=>u.Any.fromPartial(o)))||[],n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4271:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(f,c,h,p){p===void 0&&(p=h),Object.defineProperty(f,p,{enumerable:!0,get:function(){return c[h]}})}:function(f,c,h,p){p===void 0&&(p=h),f[p]=c[h]}),A=this&&this.__setModuleDefault||(Object.create?function(f,c){Object.defineProperty(f,"default",{enumerable:!0,value:c})}:function(f,c){f.default=c}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var c={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&O(c,f,h);return A(c,f),c},b=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompactBitArray=e.MultiSignature=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{extra_bits_stored:0,elems:new Uint8Array}}e.protobufPackage="cosmos.crypto.multisig.v1beta1",e.MultiSignature={encode(f,c=t.Writer.create()){for(const h of f.signatures)c.uint32(10).bytes(h);return c},decode(f,c){const h=f instanceof t.Reader?f:new t.Reader(f);let p=c===void 0?h.len:h.pos+c;const m={signatures:[]};for(;h.pos>>3==1?m.signatures.push(h.bytes()):h.skipType(7&M)}return m},fromJSON:f=>({signatures:Array.isArray(f==null?void 0:f.signatures)?f.signatures.map(c=>r(c)):[]}),toJSON(f){const c={};return f.signatures?c.signatures=f.signatures.map(h=>o(h!==void 0?h:new Uint8Array)):c.signatures=[],c},fromPartial(f){var c;const h={signatures:[]};return h.signatures=((c=f.signatures)===null||c===void 0?void 0:c.map(p=>p))||[],h}},e.CompactBitArray={encode:(f,c=t.Writer.create())=>(f.extra_bits_stored!==0&&c.uint32(8).uint32(f.extra_bits_stored),f.elems.length!==0&&c.uint32(18).bytes(f.elems),c),decode(f,c){const h=f instanceof t.Reader?f:new t.Reader(f);let p=c===void 0?h.len:h.pos+c;const m=u();for(;h.pos>>3){case 1:m.extra_bits_stored=h.uint32();break;case 2:m.elems=h.bytes();break;default:h.skipType(7&M)}}return m},fromJSON:f=>({extra_bits_stored:i(f.extra_bits_stored)?Number(f.extra_bits_stored):0,elems:i(f.elems)?r(f.elems):new Uint8Array}),toJSON(f){const c={};return f.extra_bits_stored!==void 0&&(c.extra_bits_stored=Math.round(f.extra_bits_stored)),f.elems!==void 0&&(c.elems=o(f.elems!==void 0?f.elems:new Uint8Array)),c},fromPartial(f){var c,h;const p=u();return p.extra_bits_stored=(c=f.extra_bits_stored)!==null&&c!==void 0?c:0,p.elems=(h=f.elems)!==null&&h!==void 0?h:new Uint8Array,p}};var d=(()=>{if(d!==void 0)return d;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const s=d.atob||(f=>d.Buffer.from(f,"base64").toString("binary"));function r(f){const c=s(f),h=new Uint8Array(c.length);for(let p=0;pd.Buffer.from(f,"binary").toString("base64"));function o(f){const c=[];for(const h of f)c.push(String.fromCharCode(h));return n(c.join(""))}function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6010:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{key:new Uint8Array}}function d(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.secp256k1",e.PubKey={encode:(c,h=t.Writer.create())=>(c.key.length!==0&&h.uint32(10).bytes(c.key),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=u();for(;p.pos>>3==1?M.key=p.bytes():p.skipType(7&l)}return M},fromJSON:c=>({key:f(c.key)?n(c.key):new Uint8Array}),toJSON(c){const h={};return c.key!==void 0&&(h.key=i(c.key!==void 0?c.key:new Uint8Array)),h},fromPartial(c){var h;const p=u();return p.key=(h=c.key)!==null&&h!==void 0?h:new Uint8Array,p}},e.PrivKey={encode:(c,h=t.Writer.create())=>(c.key.length!==0&&h.uint32(10).bytes(c.key),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=d();for(;p.pos>>3==1?M.key=p.bytes():p.skipType(7&l)}return M},fromJSON:c=>({key:f(c.key)?n(c.key):new Uint8Array}),toJSON(c){const h={};return c.key!==void 0&&(h.key=i(c.key!==void 0?c.key:new Uint8Array)),h},fromPartial(c){var h;const p=d();return p.key=(h=c.key)!==null&&h!==void 0?h:new Uint8Array,p}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(c=>s.Buffer.from(c,"base64").toString("binary"));function n(c){const h=r(c),p=new Uint8Array(h.length);for(let m=0;ms.Buffer.from(c,"binary").toString("base64"));function i(c){const h=[];for(const p of c)h.push(String.fromCharCode(p));return o(h.join(""))}function f(c){return c!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8866:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),A=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&O(n,r,o);return A(n,r),n},b=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityPoolSpendProposalWithDeposit=e.DelegationDelegatorReward=e.DelegatorStartingInfo=e.CommunityPoolSpendProposal=e.FeePool=e.ValidatorSlashEvents=e.ValidatorSlashEvent=e.ValidatorOutstandingRewards=e.ValidatorAccumulatedCommission=e.ValidatorCurrentRewards=e.ValidatorHistoricalRewards=e.Params=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);function d(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.Params={encode:(r,n=t.Writer.create())=>(r.community_tax!==""&&n.uint32(10).string(r.community_tax),r.base_proposer_reward!==""&&n.uint32(18).string(r.base_proposer_reward),r.bonus_proposer_reward!==""&&n.uint32(26).string(r.bonus_proposer_reward),r.withdraw_addr_enabled===!0&&n.uint32(32).bool(r.withdraw_addr_enabled),r.secret_foundation_tax!==""&&n.uint32(42).string(r.secret_foundation_tax),r.secret_foundation_address!==""&&n.uint32(50).string(r.secret_foundation_address),r.minimum_restake_threshold!==""&&n.uint32(58).string(r.minimum_restake_threshold),r.restake_period!==""&&n.uint32(66).string(r.restake_period),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};for(;o.pos>>3){case 1:f.community_tax=o.string();break;case 2:f.base_proposer_reward=o.string();break;case 3:f.bonus_proposer_reward=o.string();break;case 4:f.withdraw_addr_enabled=o.bool();break;case 5:f.secret_foundation_tax=o.string();break;case 6:f.secret_foundation_address=o.string();break;case 7:f.minimum_restake_threshold=o.string();break;case 8:f.restake_period=o.string();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({community_tax:s(r.community_tax)?String(r.community_tax):"",base_proposer_reward:s(r.base_proposer_reward)?String(r.base_proposer_reward):"",bonus_proposer_reward:s(r.bonus_proposer_reward)?String(r.bonus_proposer_reward):"",withdraw_addr_enabled:!!s(r.withdraw_addr_enabled)&&!!r.withdraw_addr_enabled,secret_foundation_tax:s(r.secret_foundation_tax)?String(r.secret_foundation_tax):"",secret_foundation_address:s(r.secret_foundation_address)?String(r.secret_foundation_address):"",minimum_restake_threshold:s(r.minimum_restake_threshold)?String(r.minimum_restake_threshold):"",restake_period:s(r.restake_period)?String(r.restake_period):""}),toJSON(r){const n={};return r.community_tax!==void 0&&(n.community_tax=r.community_tax),r.base_proposer_reward!==void 0&&(n.base_proposer_reward=r.base_proposer_reward),r.bonus_proposer_reward!==void 0&&(n.bonus_proposer_reward=r.bonus_proposer_reward),r.withdraw_addr_enabled!==void 0&&(n.withdraw_addr_enabled=r.withdraw_addr_enabled),r.secret_foundation_tax!==void 0&&(n.secret_foundation_tax=r.secret_foundation_tax),r.secret_foundation_address!==void 0&&(n.secret_foundation_address=r.secret_foundation_address),r.minimum_restake_threshold!==void 0&&(n.minimum_restake_threshold=r.minimum_restake_threshold),r.restake_period!==void 0&&(n.restake_period=r.restake_period),n},fromPartial(r){var n,o,i,f,c,h,p,m;const M={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};return M.community_tax=(n=r.community_tax)!==null&&n!==void 0?n:"",M.base_proposer_reward=(o=r.base_proposer_reward)!==null&&o!==void 0?o:"",M.bonus_proposer_reward=(i=r.bonus_proposer_reward)!==null&&i!==void 0?i:"",M.withdraw_addr_enabled=(f=r.withdraw_addr_enabled)!==null&&f!==void 0&&f,M.secret_foundation_tax=(c=r.secret_foundation_tax)!==null&&c!==void 0?c:"",M.secret_foundation_address=(h=r.secret_foundation_address)!==null&&h!==void 0?h:"",M.minimum_restake_threshold=(p=r.minimum_restake_threshold)!==null&&p!==void 0?p:"",M.restake_period=(m=r.restake_period)!==null&&m!==void 0?m:"",M}},e.ValidatorHistoricalRewards={encode(r,n=t.Writer.create()){for(const o of r.cumulative_reward_ratio)u.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.reference_count!==0&&n.uint32(16).uint32(r.reference_count),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={cumulative_reward_ratio:[],reference_count:0};for(;o.pos>>3){case 1:f.cumulative_reward_ratio.push(u.DecCoin.decode(o,o.uint32()));break;case 2:f.reference_count=o.uint32();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({cumulative_reward_ratio:Array.isArray(r==null?void 0:r.cumulative_reward_ratio)?r.cumulative_reward_ratio.map(n=>u.DecCoin.fromJSON(n)):[],reference_count:s(r.reference_count)?Number(r.reference_count):0}),toJSON(r){const n={};return r.cumulative_reward_ratio?n.cumulative_reward_ratio=r.cumulative_reward_ratio.map(o=>o?u.DecCoin.toJSON(o):void 0):n.cumulative_reward_ratio=[],r.reference_count!==void 0&&(n.reference_count=Math.round(r.reference_count)),n},fromPartial(r){var n,o;const i={cumulative_reward_ratio:[],reference_count:0};return i.cumulative_reward_ratio=((n=r.cumulative_reward_ratio)===null||n===void 0?void 0:n.map(f=>u.DecCoin.fromPartial(f)))||[],i.reference_count=(o=r.reference_count)!==null&&o!==void 0?o:0,i}},e.ValidatorCurrentRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)u.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.period!=="0"&&n.uint32(16).uint64(r.period),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[],period:"0"};for(;o.pos>>3){case 1:f.rewards.push(u.DecCoin.decode(o,o.uint32()));break;case 2:f.period=d(o.uint64());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>u.DecCoin.fromJSON(n)):[],period:s(r.period)?String(r.period):"0"}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?u.DecCoin.toJSON(o):void 0):n.rewards=[],r.period!==void 0&&(n.period=r.period),n},fromPartial(r){var n,o;const i={rewards:[],period:"0"};return i.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(f=>u.DecCoin.fromPartial(f)))||[],i.period=(o=r.period)!==null&&o!==void 0?o:"0",i}},e.ValidatorAccumulatedCommission={encode(r,n=t.Writer.create()){for(const o of r.commission)u.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={commission:[]};for(;o.pos>>3==1?f.commission.push(u.DecCoin.decode(o,o.uint32())):o.skipType(7&c)}return f},fromJSON:r=>({commission:Array.isArray(r==null?void 0:r.commission)?r.commission.map(n=>u.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.commission?n.commission=r.commission.map(o=>o?u.DecCoin.toJSON(o):void 0):n.commission=[],n},fromPartial(r){var n;const o={commission:[]};return o.commission=((n=r.commission)===null||n===void 0?void 0:n.map(i=>u.DecCoin.fromPartial(i)))||[],o}},e.ValidatorOutstandingRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)u.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[]};for(;o.pos>>3==1?f.rewards.push(u.DecCoin.decode(o,o.uint32())):o.skipType(7&c)}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>u.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?u.DecCoin.toJSON(o):void 0):n.rewards=[],n},fromPartial(r){var n;const o={rewards:[]};return o.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(i=>u.DecCoin.fromPartial(i)))||[],o}},e.ValidatorSlashEvent={encode:(r,n=t.Writer.create())=>(r.validator_period!=="0"&&n.uint32(8).uint64(r.validator_period),r.fraction!==""&&n.uint32(18).string(r.fraction),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_period:"0",fraction:""};for(;o.pos>>3){case 1:f.validator_period=d(o.uint64());break;case 2:f.fraction=o.string();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({validator_period:s(r.validator_period)?String(r.validator_period):"0",fraction:s(r.fraction)?String(r.fraction):""}),toJSON(r){const n={};return r.validator_period!==void 0&&(n.validator_period=r.validator_period),r.fraction!==void 0&&(n.fraction=r.fraction),n},fromPartial(r){var n,o;const i={validator_period:"0",fraction:""};return i.validator_period=(n=r.validator_period)!==null&&n!==void 0?n:"0",i.fraction=(o=r.fraction)!==null&&o!==void 0?o:"",i}},e.ValidatorSlashEvents={encode(r,n=t.Writer.create()){for(const o of r.validator_slash_events)e.ValidatorSlashEvent.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_slash_events:[]};for(;o.pos>>3==1?f.validator_slash_events.push(e.ValidatorSlashEvent.decode(o,o.uint32())):o.skipType(7&c)}return f},fromJSON:r=>({validator_slash_events:Array.isArray(r==null?void 0:r.validator_slash_events)?r.validator_slash_events.map(n=>e.ValidatorSlashEvent.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_slash_events?n.validator_slash_events=r.validator_slash_events.map(o=>o?e.ValidatorSlashEvent.toJSON(o):void 0):n.validator_slash_events=[],n},fromPartial(r){var n;const o={validator_slash_events:[]};return o.validator_slash_events=((n=r.validator_slash_events)===null||n===void 0?void 0:n.map(i=>e.ValidatorSlashEvent.fromPartial(i)))||[],o}},e.FeePool={encode(r,n=t.Writer.create()){for(const o of r.community_pool)u.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_pool:[]};for(;o.pos>>3==1?f.community_pool.push(u.DecCoin.decode(o,o.uint32())):o.skipType(7&c)}return f},fromJSON:r=>({community_pool:Array.isArray(r==null?void 0:r.community_pool)?r.community_pool.map(n=>u.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.community_pool?n.community_pool=r.community_pool.map(o=>o?u.DecCoin.toJSON(o):void 0):n.community_pool=[],n},fromPartial(r){var n;const o={community_pool:[]};return o.community_pool=((n=r.community_pool)===null||n===void 0?void 0:n.map(i=>u.DecCoin.fromPartial(i)))||[],o}},e.CommunityPoolSpendProposal={encode(r,n=t.Writer.create()){r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient);for(const o of r.amount)u.Coin.encode(o,n.uint32(34).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:[]};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount.push(u.Coin.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>u.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount?n.amount=r.amount.map(o=>o?u.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i,f;const c={title:"",description:"",recipient:"",amount:[]};return c.title=(n=r.title)!==null&&n!==void 0?n:"",c.description=(o=r.description)!==null&&o!==void 0?o:"",c.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",c.amount=((f=r.amount)===null||f===void 0?void 0:f.map(h=>u.Coin.fromPartial(h)))||[],c}},e.DelegatorStartingInfo={encode:(r,n=t.Writer.create())=>(r.previous_period!=="0"&&n.uint32(8).uint64(r.previous_period),r.stake!==""&&n.uint32(18).string(r.stake),r.height!=="0"&&n.uint32(24).uint64(r.height),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={previous_period:"0",stake:"",height:"0"};for(;o.pos>>3){case 1:f.previous_period=d(o.uint64());break;case 2:f.stake=o.string();break;case 3:f.height=d(o.uint64());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({previous_period:s(r.previous_period)?String(r.previous_period):"0",stake:s(r.stake)?String(r.stake):"",height:s(r.height)?String(r.height):"0"}),toJSON(r){const n={};return r.previous_period!==void 0&&(n.previous_period=r.previous_period),r.stake!==void 0&&(n.stake=r.stake),r.height!==void 0&&(n.height=r.height),n},fromPartial(r){var n,o,i;const f={previous_period:"0",stake:"",height:"0"};return f.previous_period=(n=r.previous_period)!==null&&n!==void 0?n:"0",f.stake=(o=r.stake)!==null&&o!==void 0?o:"",f.height=(i=r.height)!==null&&i!==void 0?i:"0",f}},e.DelegationDelegatorReward={encode(r,n=t.Writer.create()){r.validator_address!==""&&n.uint32(10).string(r.validator_address);for(const o of r.reward)u.DecCoin.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_address:"",reward:[]};for(;o.pos>>3){case 1:f.validator_address=o.string();break;case 2:f.reward.push(u.DecCoin.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({validator_address:s(r.validator_address)?String(r.validator_address):"",reward:Array.isArray(r==null?void 0:r.reward)?r.reward.map(n=>u.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_address!==void 0&&(n.validator_address=r.validator_address),r.reward?n.reward=r.reward.map(o=>o?u.DecCoin.toJSON(o):void 0):n.reward=[],n},fromPartial(r){var n,o;const i={validator_address:"",reward:[]};return i.validator_address=(n=r.validator_address)!==null&&n!==void 0?n:"",i.reward=((o=r.reward)===null||o===void 0?void 0:o.map(f=>u.DecCoin.fromPartial(f)))||[],i}},e.CommunityPoolSpendProposalWithDeposit={encode:(r,n=t.Writer.create())=>(r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient),r.amount!==""&&n.uint32(34).string(r.amount),r.deposit!==""&&n.uint32(42).string(r.deposit),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:"",deposit:""};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount=o.string();break;case 5:f.deposit=o.string();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:s(r.amount)?String(r.amount):"",deposit:s(r.deposit)?String(r.deposit):""}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount!==void 0&&(n.amount=r.amount),r.deposit!==void 0&&(n.deposit=r.deposit),n},fromPartial(r){var n,o,i,f,c;const h={title:"",description:"",recipient:"",amount:"",deposit:""};return h.title=(n=r.title)!==null&&n!==void 0?n:"",h.description=(o=r.description)!==null&&o!==void 0?o:"",h.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",h.amount=(f=r.amount)!==null&&f!==void 0?f:"",h.deposit=(c=r.deposit)!==null&&c!==void 0?c:"",h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4301:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgFundCommunityPoolResponse=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommissionResponse=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorRewardResponse=e.MsgWithdrawDelegatorReward=e.MsgSetWithdrawAddressResponse=e.MsgSetAutoRestakeResponse=e.MsgSetAutoRestake=e.MsgSetWithdrawAddress=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);function d(s){return s!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.MsgSetWithdrawAddress={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.withdraw_address!==""&&r.uint32(18).string(s.withdraw_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",withdraw_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.withdraw_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:d(s.delegator_address)?String(s.delegator_address):"",withdraw_address:d(s.withdraw_address)?String(s.withdraw_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.withdraw_address!==void 0&&(r.withdraw_address=s.withdraw_address),r},fromPartial(s){var r,n;const o={delegator_address:"",withdraw_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.withdraw_address=(n=s.withdraw_address)!==null&&n!==void 0?n:"",o}},e.MsgSetAutoRestake={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),s.enabled===!0&&r.uint32(24).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:"",enabled:!1};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;case 3:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:d(s.delegator_address)?String(s.delegator_address):"",validator_address:d(s.validator_address)?String(s.validator_address):"",enabled:!!d(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n,o;const i={delegator_address:"",validator_address:"",enabled:!1};return i.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",i.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",i.enabled=(o=s.enabled)!==null&&o!==void 0&&o,i}},e.MsgSetAutoRestakeResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgSetWithdrawAddressResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawDelegatorReward={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:d(s.delegator_address)?String(s.delegator_address):"",validator_address:d(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r,n;const o={delegator_address:"",validator_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",o}},e.MsgWithdrawDelegatorRewardResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawValidatorCommission={encode:(s,r=t.Writer.create())=>(s.validator_address!==""&&r.uint32(10).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={validator_address:""};for(;n.pos>>3==1?i.validator_address=n.string():n.skipType(7&f)}return i},fromJSON:s=>({validator_address:d(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r;const n={validator_address:""};return n.validator_address=(r=s.validator_address)!==null&&r!==void 0?r:"",n}},e.MsgWithdrawValidatorCommissionResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgFundCommunityPool={encode(s,r=t.Writer.create()){for(const n of s.amount)u.Coin.encode(n,r.uint32(10).fork()).ldelim();return s.depositor!==""&&r.uint32(18).string(s.depositor),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={amount:[],depositor:""};for(;n.pos>>3){case 1:i.amount.push(u.Coin.decode(n,n.uint32()));break;case 2:i.depositor=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>u.Coin.fromJSON(r)):[],depositor:d(s.depositor)?String(s.depositor):""}),toJSON(s){const r={};return s.amount?r.amount=s.amount.map(n=>n?u.Coin.toJSON(n):void 0):r.amount=[],s.depositor!==void 0&&(r.depositor=s.depositor),r},fromPartial(s){var r,n;const o={amount:[],depositor:""};return o.amount=((r=s.amount)===null||r===void 0?void 0:r.map(i=>u.Coin.fromPartial(i)))||[],o.depositor=(n=s.depositor)!==null&&n!==void 0?n:"",o}},e.MsgFundCommunityPoolResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this),this.SetAutoRestake=this.SetAutoRestake.bind(this)}SetWithdrawAddress(s){const r=e.MsgSetWithdrawAddress.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",r).then(n=>e.MsgSetWithdrawAddressResponse.decode(new t.Reader(n)))}WithdrawDelegatorReward(s){const r=e.MsgWithdrawDelegatorReward.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",r).then(n=>e.MsgWithdrawDelegatorRewardResponse.decode(new t.Reader(n)))}WithdrawValidatorCommission(s){const r=e.MsgWithdrawValidatorCommission.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",r).then(n=>e.MsgWithdrawValidatorCommissionResponse.decode(new t.Reader(n)))}FundCommunityPool(s){const r=e.MsgFundCommunityPool.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",r).then(n=>e.MsgFundCommunityPoolResponse.decode(new t.Reader(n)))}SetAutoRestake(s){const r=e.MsgSetAutoRestake.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetAutoRestake",r).then(n=>e.MsgSetAutoRestakeResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3676:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(f,c,h,p){p===void 0&&(p=h),Object.defineProperty(f,p,{enumerable:!0,get:function(){return c[h]}})}:function(f,c,h,p){p===void 0&&(p=h),f[p]=c[h]}),A=this&&this.__setModuleDefault||(Object.create?function(f,c){Object.defineProperty(f,"default",{enumerable:!0,value:c})}:function(f,c){f.default=c}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var c={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&O(c,f,h);return A(c,f),c},b=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitEvidenceResponse=e.MsgSubmitEvidence=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191);function d(){return{hash:new Uint8Array}}e.protobufPackage="cosmos.evidence.v1beta1",e.MsgSubmitEvidence={encode:(f,c=t.Writer.create())=>(f.submitter!==""&&c.uint32(10).string(f.submitter),f.evidence!==void 0&&u.Any.encode(f.evidence,c.uint32(18).fork()).ldelim(),c),decode(f,c){const h=f instanceof t.Reader?f:new t.Reader(f);let p=c===void 0?h.len:h.pos+c;const m={submitter:"",evidence:void 0};for(;h.pos>>3){case 1:m.submitter=h.string();break;case 2:m.evidence=u.Any.decode(h,h.uint32());break;default:h.skipType(7&M)}}return m},fromJSON:f=>({submitter:i(f.submitter)?String(f.submitter):"",evidence:i(f.evidence)?u.Any.fromJSON(f.evidence):void 0}),toJSON(f){const c={};return f.submitter!==void 0&&(c.submitter=f.submitter),f.evidence!==void 0&&(c.evidence=f.evidence?u.Any.toJSON(f.evidence):void 0),c},fromPartial(f){var c;const h={submitter:"",evidence:void 0};return h.submitter=(c=f.submitter)!==null&&c!==void 0?c:"",h.evidence=f.evidence!==void 0&&f.evidence!==null?u.Any.fromPartial(f.evidence):void 0,h}},e.MsgSubmitEvidenceResponse={encode:(f,c=t.Writer.create())=>(f.hash.length!==0&&c.uint32(34).bytes(f.hash),c),decode(f,c){const h=f instanceof t.Reader?f:new t.Reader(f);let p=c===void 0?h.len:h.pos+c;const m=d();for(;h.pos>>3==4?m.hash=h.bytes():h.skipType(7&M)}return m},fromJSON:f=>({hash:i(f.hash)?n(f.hash):new Uint8Array}),toJSON(f){const c={};return f.hash!==void 0&&(c.hash=function(h){const p=[];for(const m of h)p.push(String.fromCharCode(m));return o(p.join(""))}(f.hash!==void 0?f.hash:new Uint8Array)),c},fromPartial(f){var c;const h=d();return h.hash=(c=f.hash)!==null&&c!==void 0?c:new Uint8Array,h}},e.MsgClientImpl=class{constructor(f){this.rpc=f,this.SubmitEvidence=this.SubmitEvidence.bind(this)}SubmitEvidence(f){const c=e.MsgSubmitEvidence.encode(f).finish();return this.rpc.request("cosmos.evidence.v1beta1.Msg","SubmitEvidence",c).then(h=>e.MsgSubmitEvidenceResponse.decode(new t.Reader(h)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(f=>s.Buffer.from(f,"base64").toString("binary"));function n(f){const c=r(f),h=new Uint8Array(c.length);for(let p=0;ps.Buffer.from(f,"binary").toString("base64"));function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4932:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.Grant=e.AllowedMsgAllowance=e.PeriodicAllowance=e.BasicAllowance=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5090),d=_(6138),s=_(4191),r=_(2976);function n(c){return{seconds:Math.trunc(c.getTime()/1e3).toString(),nanos:c.getTime()%1e3*1e6}}function o(c){let h=1e3*Number(c.seconds);return h+=c.nanos/1e6,new Date(h)}function i(c){return c instanceof Date?n(c):typeof c=="string"?n(new Date(c)):u.Timestamp.fromJSON(c)}function f(c){return c!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.BasicAllowance={encode(c,h=t.Writer.create()){for(const p of c.spend_limit)r.Coin.encode(p,h.uint32(10).fork()).ldelim();return c.expiration!==void 0&&u.Timestamp.encode(c.expiration,h.uint32(18).fork()).ldelim(),h},decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={spend_limit:[],expiration:void 0};for(;p.pos>>3){case 1:M.spend_limit.push(r.Coin.decode(p,p.uint32()));break;case 2:M.expiration=u.Timestamp.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({spend_limit:Array.isArray(c==null?void 0:c.spend_limit)?c.spend_limit.map(h=>r.Coin.fromJSON(h)):[],expiration:f(c.expiration)?i(c.expiration):void 0}),toJSON(c){const h={};return c.spend_limit?h.spend_limit=c.spend_limit.map(p=>p?r.Coin.toJSON(p):void 0):h.spend_limit=[],c.expiration!==void 0&&(h.expiration=o(c.expiration).toISOString()),h},fromPartial(c){var h;const p={spend_limit:[],expiration:void 0};return p.spend_limit=((h=c.spend_limit)===null||h===void 0?void 0:h.map(m=>r.Coin.fromPartial(m)))||[],p.expiration=c.expiration!==void 0&&c.expiration!==null?u.Timestamp.fromPartial(c.expiration):void 0,p}},e.PeriodicAllowance={encode(c,h=t.Writer.create()){c.basic!==void 0&&e.BasicAllowance.encode(c.basic,h.uint32(10).fork()).ldelim(),c.period!==void 0&&d.Duration.encode(c.period,h.uint32(18).fork()).ldelim();for(const p of c.period_spend_limit)r.Coin.encode(p,h.uint32(26).fork()).ldelim();for(const p of c.period_can_spend)r.Coin.encode(p,h.uint32(34).fork()).ldelim();return c.period_reset!==void 0&&u.Timestamp.encode(c.period_reset,h.uint32(42).fork()).ldelim(),h},decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};for(;p.pos>>3){case 1:M.basic=e.BasicAllowance.decode(p,p.uint32());break;case 2:M.period=d.Duration.decode(p,p.uint32());break;case 3:M.period_spend_limit.push(r.Coin.decode(p,p.uint32()));break;case 4:M.period_can_spend.push(r.Coin.decode(p,p.uint32()));break;case 5:M.period_reset=u.Timestamp.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({basic:f(c.basic)?e.BasicAllowance.fromJSON(c.basic):void 0,period:f(c.period)?d.Duration.fromJSON(c.period):void 0,period_spend_limit:Array.isArray(c==null?void 0:c.period_spend_limit)?c.period_spend_limit.map(h=>r.Coin.fromJSON(h)):[],period_can_spend:Array.isArray(c==null?void 0:c.period_can_spend)?c.period_can_spend.map(h=>r.Coin.fromJSON(h)):[],period_reset:f(c.period_reset)?i(c.period_reset):void 0}),toJSON(c){const h={};return c.basic!==void 0&&(h.basic=c.basic?e.BasicAllowance.toJSON(c.basic):void 0),c.period!==void 0&&(h.period=c.period?d.Duration.toJSON(c.period):void 0),c.period_spend_limit?h.period_spend_limit=c.period_spend_limit.map(p=>p?r.Coin.toJSON(p):void 0):h.period_spend_limit=[],c.period_can_spend?h.period_can_spend=c.period_can_spend.map(p=>p?r.Coin.toJSON(p):void 0):h.period_can_spend=[],c.period_reset!==void 0&&(h.period_reset=o(c.period_reset).toISOString()),h},fromPartial(c){var h,p;const m={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};return m.basic=c.basic!==void 0&&c.basic!==null?e.BasicAllowance.fromPartial(c.basic):void 0,m.period=c.period!==void 0&&c.period!==null?d.Duration.fromPartial(c.period):void 0,m.period_spend_limit=((h=c.period_spend_limit)===null||h===void 0?void 0:h.map(M=>r.Coin.fromPartial(M)))||[],m.period_can_spend=((p=c.period_can_spend)===null||p===void 0?void 0:p.map(M=>r.Coin.fromPartial(M)))||[],m.period_reset=c.period_reset!==void 0&&c.period_reset!==null?u.Timestamp.fromPartial(c.period_reset):void 0,m}},e.AllowedMsgAllowance={encode(c,h=t.Writer.create()){c.allowance!==void 0&&s.Any.encode(c.allowance,h.uint32(10).fork()).ldelim();for(const p of c.allowed_messages)h.uint32(18).string(p);return h},decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={allowance:void 0,allowed_messages:[]};for(;p.pos>>3){case 1:M.allowance=s.Any.decode(p,p.uint32());break;case 2:M.allowed_messages.push(p.string());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({allowance:f(c.allowance)?s.Any.fromJSON(c.allowance):void 0,allowed_messages:Array.isArray(c==null?void 0:c.allowed_messages)?c.allowed_messages.map(h=>String(h)):[]}),toJSON(c){const h={};return c.allowance!==void 0&&(h.allowance=c.allowance?s.Any.toJSON(c.allowance):void 0),c.allowed_messages?h.allowed_messages=c.allowed_messages.map(p=>p):h.allowed_messages=[],h},fromPartial(c){var h;const p={allowance:void 0,allowed_messages:[]};return p.allowance=c.allowance!==void 0&&c.allowance!==null?s.Any.fromPartial(c.allowance):void 0,p.allowed_messages=((h=c.allowed_messages)===null||h===void 0?void 0:h.map(m=>m))||[],p}},e.Grant={encode:(c,h=t.Writer.create())=>(c.granter!==""&&h.uint32(10).string(c.granter),c.grantee!==""&&h.uint32(18).string(c.grantee),c.allowance!==void 0&&s.Any.encode(c.allowance,h.uint32(26).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={granter:"",grantee:"",allowance:void 0};for(;p.pos>>3){case 1:M.granter=p.string();break;case 2:M.grantee=p.string();break;case 3:M.allowance=s.Any.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({granter:f(c.granter)?String(c.granter):"",grantee:f(c.grantee)?String(c.grantee):"",allowance:f(c.allowance)?s.Any.fromJSON(c.allowance):void 0}),toJSON(c){const h={};return c.granter!==void 0&&(h.granter=c.granter),c.grantee!==void 0&&(h.grantee=c.grantee),c.allowance!==void 0&&(h.allowance=c.allowance?s.Any.toJSON(c.allowance):void 0),h},fromPartial(c){var h,p;const m={granter:"",grantee:"",allowance:void 0};return m.granter=(h=c.granter)!==null&&h!==void 0?h:"",m.grantee=(p=c.grantee)!==null&&p!==void 0?p:"",m.allowance=c.allowance!==void 0&&c.allowance!==null?s.Any.fromPartial(c.allowance):void 0,m}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6513:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeAllowanceResponse=e.MsgRevokeAllowance=e.MsgGrantAllowanceResponse=e.MsgGrantAllowance=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191);function d(s){return s!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.MsgGrantAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),s.allowance!==void 0&&u.Any.encode(s.allowance,r.uint32(26).fork()).ldelim(),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:"",allowance:void 0};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;case 3:i.allowance=u.Any.decode(n,n.uint32());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:d(s.granter)?String(s.granter):"",grantee:d(s.grantee)?String(s.grantee):"",allowance:d(s.allowance)?u.Any.fromJSON(s.allowance):void 0}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),s.allowance!==void 0&&(r.allowance=s.allowance?u.Any.toJSON(s.allowance):void 0),r},fromPartial(s){var r,n;const o={granter:"",grantee:"",allowance:void 0};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o.allowance=s.allowance!==void 0&&s.allowance!==null?u.Any.fromPartial(s.allowance):void 0,o}},e.MsgGrantAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgRevokeAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:""};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:d(s.granter)?String(s.granter):"",grantee:d(s.grantee)?String(s.grantee):""}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),r},fromPartial(s){var r,n;const o={granter:"",grantee:""};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o}},e.MsgRevokeAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(s){const r=e.MsgGrantAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",r).then(n=>e.MsgGrantAllowanceResponse.decode(new t.Reader(n)))}RevokeAllowance(s){const r=e.MsgRevokeAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",r).then(n=>e.MsgRevokeAllowanceResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9074:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(g,E,U,C){C===void 0&&(C=U),Object.defineProperty(g,C,{enumerable:!0,get:function(){return E[U]}})}:function(g,E,U,C){C===void 0&&(C=U),g[C]=E[U]}),A=this&&this.__setModuleDefault||(Object.create?function(g,E){Object.defineProperty(g,"default",{enumerable:!0,value:E})}:function(g,E){g.default=E}),k=this&&this.__importStar||function(g){if(g&&g.__esModule)return g;var E={};if(g!=null)for(var U in g)U!=="default"&&Object.prototype.hasOwnProperty.call(g,U)&&O(E,g,U);return A(E,g),E},b=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.TallyParams=e.VotingParams=e.DepositParams=e.Vote=e.TallyResult=e.Proposal=e.Deposit=e.TextProposal=e.WeightedVoteOption=e.proposalStatusToJSON=e.proposalStatusFromJSON=e.ProposalStatus=e.voteOptionToJSON=e.voteOptionFromJSON=e.VoteOption=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(5090),s=_(6138),r=_(2976);var n,o;function i(g){switch(g){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function f(g){switch(g){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";default:return"UNKNOWN"}}function c(g){switch(g){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return o.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return o.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return o.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return o.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return o.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return o.PROPOSAL_STATUS_FAILED;default:return o.UNRECOGNIZED}}function h(g){switch(g){case o.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case o.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case o.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case o.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case o.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case o.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";default:return"UNKNOWN"}}function p(){return{quorum:new Uint8Array,threshold:new Uint8Array,veto_threshold:new Uint8Array,expedited_threshold:new Uint8Array}}e.protobufPackage="cosmos.gov.v1beta1",function(g){g[g.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",g[g.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",g[g.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",g[g.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",g[g.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",g[g.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.VoteOption||(e.VoteOption={})),e.voteOptionFromJSON=i,e.voteOptionToJSON=f,function(g){g[g.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",g[g.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",g[g.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",g[g.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",g[g.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",g[g.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",g[g.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.ProposalStatus||(e.ProposalStatus={})),e.proposalStatusFromJSON=c,e.proposalStatusToJSON=h,e.WeightedVoteOption={encode:(g,E=t.Writer.create())=>(g.option!==0&&E.uint32(8).int32(g.option),g.weight!==""&&E.uint32(18).string(g.weight),E),decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={option:0,weight:""};for(;U.pos>>3){case 1:F.option=U.int32();break;case 2:F.weight=U.string();break;default:U.skipType(7&re)}}return F},fromJSON:g=>({option:w(g.option)?i(g.option):0,weight:w(g.weight)?String(g.weight):""}),toJSON(g){const E={};return g.option!==void 0&&(E.option=f(g.option)),g.weight!==void 0&&(E.weight=g.weight),E},fromPartial(g){var E,U;const C={option:0,weight:""};return C.option=(E=g.option)!==null&&E!==void 0?E:0,C.weight=(U=g.weight)!==null&&U!==void 0?U:"",C}},e.TextProposal={encode:(g,E=t.Writer.create())=>(g.title!==""&&E.uint32(10).string(g.title),g.description!==""&&E.uint32(18).string(g.description),E),decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={title:"",description:""};for(;U.pos>>3){case 1:F.title=U.string();break;case 2:F.description=U.string();break;default:U.skipType(7&re)}}return F},fromJSON:g=>({title:w(g.title)?String(g.title):"",description:w(g.description)?String(g.description):""}),toJSON(g){const E={};return g.title!==void 0&&(E.title=g.title),g.description!==void 0&&(E.description=g.description),E},fromPartial(g){var E,U;const C={title:"",description:""};return C.title=(E=g.title)!==null&&E!==void 0?E:"",C.description=(U=g.description)!==null&&U!==void 0?U:"",C}},e.Deposit={encode(g,E=t.Writer.create()){g.proposal_id!=="0"&&E.uint32(8).uint64(g.proposal_id),g.depositor!==""&&E.uint32(18).string(g.depositor);for(const U of g.amount)r.Coin.encode(U,E.uint32(26).fork()).ldelim();return E},decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={proposal_id:"0",depositor:"",amount:[]};for(;U.pos>>3){case 1:F.proposal_id=P(U.uint64());break;case 2:F.depositor=U.string();break;case 3:F.amount.push(r.Coin.decode(U,U.uint32()));break;default:U.skipType(7&re)}}return F},fromJSON:g=>({proposal_id:w(g.proposal_id)?String(g.proposal_id):"0",depositor:w(g.depositor)?String(g.depositor):"",amount:Array.isArray(g==null?void 0:g.amount)?g.amount.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(g){const E={};return g.proposal_id!==void 0&&(E.proposal_id=g.proposal_id),g.depositor!==void 0&&(E.depositor=g.depositor),g.amount?E.amount=g.amount.map(U=>U?r.Coin.toJSON(U):void 0):E.amount=[],E},fromPartial(g){var E,U,C;const F={proposal_id:"0",depositor:"",amount:[]};return F.proposal_id=(E=g.proposal_id)!==null&&E!==void 0?E:"0",F.depositor=(U=g.depositor)!==null&&U!==void 0?U:"",F.amount=((C=g.amount)===null||C===void 0?void 0:C.map(re=>r.Coin.fromPartial(re)))||[],F}},e.Proposal={encode(g,E=t.Writer.create()){g.proposal_id!=="0"&&E.uint32(8).uint64(g.proposal_id),g.content!==void 0&&u.Any.encode(g.content,E.uint32(18).fork()).ldelim(),g.status!==0&&E.uint32(24).int32(g.status),g.final_tally_result!==void 0&&e.TallyResult.encode(g.final_tally_result,E.uint32(34).fork()).ldelim(),g.submit_time!==void 0&&d.Timestamp.encode(g.submit_time,E.uint32(42).fork()).ldelim(),g.deposit_end_time!==void 0&&d.Timestamp.encode(g.deposit_end_time,E.uint32(50).fork()).ldelim();for(const U of g.total_deposit)r.Coin.encode(U,E.uint32(58).fork()).ldelim();return g.voting_start_time!==void 0&&d.Timestamp.encode(g.voting_start_time,E.uint32(66).fork()).ldelim(),g.voting_end_time!==void 0&&d.Timestamp.encode(g.voting_end_time,E.uint32(74).fork()).ldelim(),g.is_expedited===!0&&E.uint32(80).bool(g.is_expedited),E},decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};for(;U.pos>>3){case 1:F.proposal_id=P(U.uint64());break;case 2:F.content=u.Any.decode(U,U.uint32());break;case 3:F.status=U.int32();break;case 4:F.final_tally_result=e.TallyResult.decode(U,U.uint32());break;case 5:F.submit_time=d.Timestamp.decode(U,U.uint32());break;case 6:F.deposit_end_time=d.Timestamp.decode(U,U.uint32());break;case 7:F.total_deposit.push(r.Coin.decode(U,U.uint32()));break;case 8:F.voting_start_time=d.Timestamp.decode(U,U.uint32());break;case 9:F.voting_end_time=d.Timestamp.decode(U,U.uint32());break;case 10:F.is_expedited=U.bool();break;default:U.skipType(7&re)}}return F},fromJSON:g=>({proposal_id:w(g.proposal_id)?String(g.proposal_id):"0",content:w(g.content)?u.Any.fromJSON(g.content):void 0,status:w(g.status)?c(g.status):0,final_tally_result:w(g.final_tally_result)?e.TallyResult.fromJSON(g.final_tally_result):void 0,submit_time:w(g.submit_time)?x(g.submit_time):void 0,deposit_end_time:w(g.deposit_end_time)?x(g.deposit_end_time):void 0,total_deposit:Array.isArray(g==null?void 0:g.total_deposit)?g.total_deposit.map(E=>r.Coin.fromJSON(E)):[],voting_start_time:w(g.voting_start_time)?x(g.voting_start_time):void 0,voting_end_time:w(g.voting_end_time)?x(g.voting_end_time):void 0,is_expedited:!!w(g.is_expedited)&&!!g.is_expedited}),toJSON(g){const E={};return g.proposal_id!==void 0&&(E.proposal_id=g.proposal_id),g.content!==void 0&&(E.content=g.content?u.Any.toJSON(g.content):void 0),g.status!==void 0&&(E.status=h(g.status)),g.final_tally_result!==void 0&&(E.final_tally_result=g.final_tally_result?e.TallyResult.toJSON(g.final_tally_result):void 0),g.submit_time!==void 0&&(E.submit_time=I(g.submit_time).toISOString()),g.deposit_end_time!==void 0&&(E.deposit_end_time=I(g.deposit_end_time).toISOString()),g.total_deposit?E.total_deposit=g.total_deposit.map(U=>U?r.Coin.toJSON(U):void 0):E.total_deposit=[],g.voting_start_time!==void 0&&(E.voting_start_time=I(g.voting_start_time).toISOString()),g.voting_end_time!==void 0&&(E.voting_end_time=I(g.voting_end_time).toISOString()),g.is_expedited!==void 0&&(E.is_expedited=g.is_expedited),E},fromPartial(g){var E,U,C,F;const re={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};return re.proposal_id=(E=g.proposal_id)!==null&&E!==void 0?E:"0",re.content=g.content!==void 0&&g.content!==null?u.Any.fromPartial(g.content):void 0,re.status=(U=g.status)!==null&&U!==void 0?U:0,re.final_tally_result=g.final_tally_result!==void 0&&g.final_tally_result!==null?e.TallyResult.fromPartial(g.final_tally_result):void 0,re.submit_time=g.submit_time!==void 0&&g.submit_time!==null?d.Timestamp.fromPartial(g.submit_time):void 0,re.deposit_end_time=g.deposit_end_time!==void 0&&g.deposit_end_time!==null?d.Timestamp.fromPartial(g.deposit_end_time):void 0,re.total_deposit=((C=g.total_deposit)===null||C===void 0?void 0:C.map(ee=>r.Coin.fromPartial(ee)))||[],re.voting_start_time=g.voting_start_time!==void 0&&g.voting_start_time!==null?d.Timestamp.fromPartial(g.voting_start_time):void 0,re.voting_end_time=g.voting_end_time!==void 0&&g.voting_end_time!==null?d.Timestamp.fromPartial(g.voting_end_time):void 0,re.is_expedited=(F=g.is_expedited)!==null&&F!==void 0&&F,re}},e.TallyResult={encode:(g,E=t.Writer.create())=>(g.yes!==""&&E.uint32(10).string(g.yes),g.abstain!==""&&E.uint32(18).string(g.abstain),g.no!==""&&E.uint32(26).string(g.no),g.no_with_veto!==""&&E.uint32(34).string(g.no_with_veto),E),decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={yes:"",abstain:"",no:"",no_with_veto:""};for(;U.pos>>3){case 1:F.yes=U.string();break;case 2:F.abstain=U.string();break;case 3:F.no=U.string();break;case 4:F.no_with_veto=U.string();break;default:U.skipType(7&re)}}return F},fromJSON:g=>({yes:w(g.yes)?String(g.yes):"",abstain:w(g.abstain)?String(g.abstain):"",no:w(g.no)?String(g.no):"",no_with_veto:w(g.no_with_veto)?String(g.no_with_veto):""}),toJSON(g){const E={};return g.yes!==void 0&&(E.yes=g.yes),g.abstain!==void 0&&(E.abstain=g.abstain),g.no!==void 0&&(E.no=g.no),g.no_with_veto!==void 0&&(E.no_with_veto=g.no_with_veto),E},fromPartial(g){var E,U,C,F;const re={yes:"",abstain:"",no:"",no_with_veto:""};return re.yes=(E=g.yes)!==null&&E!==void 0?E:"",re.abstain=(U=g.abstain)!==null&&U!==void 0?U:"",re.no=(C=g.no)!==null&&C!==void 0?C:"",re.no_with_veto=(F=g.no_with_veto)!==null&&F!==void 0?F:"",re}},e.Vote={encode(g,E=t.Writer.create()){g.proposal_id!=="0"&&E.uint32(8).uint64(g.proposal_id),g.voter!==""&&E.uint32(18).string(g.voter),g.option!==0&&E.uint32(24).int32(g.option);for(const U of g.options)e.WeightedVoteOption.encode(U,E.uint32(34).fork()).ldelim();return E},decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={proposal_id:"0",voter:"",option:0,options:[]};for(;U.pos>>3){case 1:F.proposal_id=P(U.uint64());break;case 2:F.voter=U.string();break;case 3:F.option=U.int32();break;case 4:F.options.push(e.WeightedVoteOption.decode(U,U.uint32()));break;default:U.skipType(7&re)}}return F},fromJSON:g=>({proposal_id:w(g.proposal_id)?String(g.proposal_id):"0",voter:w(g.voter)?String(g.voter):"",option:w(g.option)?i(g.option):0,options:Array.isArray(g==null?void 0:g.options)?g.options.map(E=>e.WeightedVoteOption.fromJSON(E)):[]}),toJSON(g){const E={};return g.proposal_id!==void 0&&(E.proposal_id=g.proposal_id),g.voter!==void 0&&(E.voter=g.voter),g.option!==void 0&&(E.option=f(g.option)),g.options?E.options=g.options.map(U=>U?e.WeightedVoteOption.toJSON(U):void 0):E.options=[],E},fromPartial(g){var E,U,C,F;const re={proposal_id:"0",voter:"",option:0,options:[]};return re.proposal_id=(E=g.proposal_id)!==null&&E!==void 0?E:"0",re.voter=(U=g.voter)!==null&&U!==void 0?U:"",re.option=(C=g.option)!==null&&C!==void 0?C:0,re.options=((F=g.options)===null||F===void 0?void 0:F.map(ee=>e.WeightedVoteOption.fromPartial(ee)))||[],re}},e.DepositParams={encode(g,E=t.Writer.create()){for(const U of g.min_deposit)r.Coin.encode(U,E.uint32(10).fork()).ldelim();g.max_deposit_period!==void 0&&s.Duration.encode(g.max_deposit_period,E.uint32(18).fork()).ldelim();for(const U of g.min_expedited_deposit)r.Coin.encode(U,E.uint32(26).fork()).ldelim();return E},decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};for(;U.pos>>3){case 1:F.min_deposit.push(r.Coin.decode(U,U.uint32()));break;case 2:F.max_deposit_period=s.Duration.decode(U,U.uint32());break;case 3:F.min_expedited_deposit.push(r.Coin.decode(U,U.uint32()));break;default:U.skipType(7&re)}}return F},fromJSON:g=>({min_deposit:Array.isArray(g==null?void 0:g.min_deposit)?g.min_deposit.map(E=>r.Coin.fromJSON(E)):[],max_deposit_period:w(g.max_deposit_period)?s.Duration.fromJSON(g.max_deposit_period):void 0,min_expedited_deposit:Array.isArray(g==null?void 0:g.min_expedited_deposit)?g.min_expedited_deposit.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(g){const E={};return g.min_deposit?E.min_deposit=g.min_deposit.map(U=>U?r.Coin.toJSON(U):void 0):E.min_deposit=[],g.max_deposit_period!==void 0&&(E.max_deposit_period=g.max_deposit_period?s.Duration.toJSON(g.max_deposit_period):void 0),g.min_expedited_deposit?E.min_expedited_deposit=g.min_expedited_deposit.map(U=>U?r.Coin.toJSON(U):void 0):E.min_expedited_deposit=[],E},fromPartial(g){var E,U;const C={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};return C.min_deposit=((E=g.min_deposit)===null||E===void 0?void 0:E.map(F=>r.Coin.fromPartial(F)))||[],C.max_deposit_period=g.max_deposit_period!==void 0&&g.max_deposit_period!==null?s.Duration.fromPartial(g.max_deposit_period):void 0,C.min_expedited_deposit=((U=g.min_expedited_deposit)===null||U===void 0?void 0:U.map(F=>r.Coin.fromPartial(F)))||[],C}},e.VotingParams={encode:(g,E=t.Writer.create())=>(g.voting_period!==void 0&&s.Duration.encode(g.voting_period,E.uint32(10).fork()).ldelim(),g.expedited_voting_period!==void 0&&s.Duration.encode(g.expedited_voting_period,E.uint32(26).fork()).ldelim(),E),decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F={voting_period:void 0,expedited_voting_period:void 0};for(;U.pos>>3){case 1:F.voting_period=s.Duration.decode(U,U.uint32());break;case 3:F.expedited_voting_period=s.Duration.decode(U,U.uint32());break;default:U.skipType(7&re)}}return F},fromJSON:g=>({voting_period:w(g.voting_period)?s.Duration.fromJSON(g.voting_period):void 0,expedited_voting_period:w(g.expedited_voting_period)?s.Duration.fromJSON(g.expedited_voting_period):void 0}),toJSON(g){const E={};return g.voting_period!==void 0&&(E.voting_period=g.voting_period?s.Duration.toJSON(g.voting_period):void 0),g.expedited_voting_period!==void 0&&(E.expedited_voting_period=g.expedited_voting_period?s.Duration.toJSON(g.expedited_voting_period):void 0),E},fromPartial(g){const E={voting_period:void 0,expedited_voting_period:void 0};return E.voting_period=g.voting_period!==void 0&&g.voting_period!==null?s.Duration.fromPartial(g.voting_period):void 0,E.expedited_voting_period=g.expedited_voting_period!==void 0&&g.expedited_voting_period!==null?s.Duration.fromPartial(g.expedited_voting_period):void 0,E}},e.TallyParams={encode:(g,E=t.Writer.create())=>(g.quorum.length!==0&&E.uint32(10).bytes(g.quorum),g.threshold.length!==0&&E.uint32(18).bytes(g.threshold),g.veto_threshold.length!==0&&E.uint32(26).bytes(g.veto_threshold),g.expedited_threshold.length!==0&&E.uint32(34).bytes(g.expedited_threshold),E),decode(g,E){const U=g instanceof t.Reader?g:new t.Reader(g);let C=E===void 0?U.len:U.pos+E;const F=p();for(;U.pos>>3){case 1:F.quorum=U.bytes();break;case 2:F.threshold=U.bytes();break;case 3:F.veto_threshold=U.bytes();break;case 4:F.expedited_threshold=U.bytes();break;default:U.skipType(7&re)}}return F},fromJSON:g=>({quorum:w(g.quorum)?l(g.quorum):new Uint8Array,threshold:w(g.threshold)?l(g.threshold):new Uint8Array,veto_threshold:w(g.veto_threshold)?l(g.veto_threshold):new Uint8Array,expedited_threshold:w(g.expedited_threshold)?l(g.expedited_threshold):new Uint8Array}),toJSON(g){const E={};return g.quorum!==void 0&&(E.quorum=j(g.quorum!==void 0?g.quorum:new Uint8Array)),g.threshold!==void 0&&(E.threshold=j(g.threshold!==void 0?g.threshold:new Uint8Array)),g.veto_threshold!==void 0&&(E.veto_threshold=j(g.veto_threshold!==void 0?g.veto_threshold:new Uint8Array)),g.expedited_threshold!==void 0&&(E.expedited_threshold=j(g.expedited_threshold!==void 0?g.expedited_threshold:new Uint8Array)),E},fromPartial(g){var E,U,C,F;const re=p();return re.quorum=(E=g.quorum)!==null&&E!==void 0?E:new Uint8Array,re.threshold=(U=g.threshold)!==null&&U!==void 0?U:new Uint8Array,re.veto_threshold=(C=g.veto_threshold)!==null&&C!==void 0?C:new Uint8Array,re.expedited_threshold=(F=g.expedited_threshold)!==null&&F!==void 0?F:new Uint8Array,re}};var m=(()=>{if(m!==void 0)return m;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const M=m.atob||(g=>m.Buffer.from(g,"base64").toString("binary"));function l(g){const E=M(g),U=new Uint8Array(E.length);for(let C=0;Cm.Buffer.from(g,"binary").toString("base64"));function j(g){const E=[];for(const U of g)E.push(String.fromCharCode(U));return N(E.join(""))}function R(g){return{seconds:Math.trunc(g.getTime()/1e3).toString(),nanos:g.getTime()%1e3*1e6}}function I(g){let E=1e3*Number(g.seconds);return E+=g.nanos/1e6,new Date(E)}function x(g){return g instanceof Date?R(g):typeof g=="string"?R(new Date(g)):d.Timestamp.fromJSON(g)}function P(g){return g.toString()}function w(g){return g!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},88:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(o,i,f,c){c===void 0&&(c=f),Object.defineProperty(o,c,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,c){c===void 0&&(c=f),o[c]=i[f]}),A=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&O(i,o,f);return A(i,o),i},b=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgDepositResponse=e.MsgDeposit=e.MsgVoteWeightedResponse=e.MsgVoteWeighted=e.MsgVoteResponse=e.MsgVote=e.MsgSubmitProposalResponse=e.MsgSubmitProposal=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(9074),s=_(2976);function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.gov.v1beta1",e.MsgSubmitProposal={encode(o,i=t.Writer.create()){o.content!==void 0&&u.Any.encode(o.content,i.uint32(10).fork()).ldelim();for(const f of o.initial_deposit)s.Coin.encode(f,i.uint32(18).fork()).ldelim();return o.proposer!==""&&i.uint32(26).string(o.proposer),o.is_expedited===!0&&i.uint32(32).bool(o.is_expedited),i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};for(;f.pos>>3){case 1:h.content=u.Any.decode(f,f.uint32());break;case 2:h.initial_deposit.push(s.Coin.decode(f,f.uint32()));break;case 3:h.proposer=f.string();break;case 4:h.is_expedited=f.bool();break;default:f.skipType(7&p)}}return h},fromJSON:o=>({content:n(o.content)?u.Any.fromJSON(o.content):void 0,initial_deposit:Array.isArray(o==null?void 0:o.initial_deposit)?o.initial_deposit.map(i=>s.Coin.fromJSON(i)):[],proposer:n(o.proposer)?String(o.proposer):"",is_expedited:!!n(o.is_expedited)&&!!o.is_expedited}),toJSON(o){const i={};return o.content!==void 0&&(i.content=o.content?u.Any.toJSON(o.content):void 0),o.initial_deposit?i.initial_deposit=o.initial_deposit.map(f=>f?s.Coin.toJSON(f):void 0):i.initial_deposit=[],o.proposer!==void 0&&(i.proposer=o.proposer),o.is_expedited!==void 0&&(i.is_expedited=o.is_expedited),i},fromPartial(o){var i,f,c;const h={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};return h.content=o.content!==void 0&&o.content!==null?u.Any.fromPartial(o.content):void 0,h.initial_deposit=((i=o.initial_deposit)===null||i===void 0?void 0:i.map(p=>s.Coin.fromPartial(p)))||[],h.proposer=(f=o.proposer)!==null&&f!==void 0?f:"",h.is_expedited=(c=o.is_expedited)!==null&&c!==void 0&&c,h}},e.MsgSubmitProposalResponse={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={proposal_id:"0"};for(;f.pos>>3==1?h.proposal_id=r(f.uint64()):f.skipType(7&p)}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0"}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),i},fromPartial(o){var i;const f={proposal_id:"0"};return f.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",f}},e.MsgVote={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter),o.option!==0&&i.uint32(24).int32(o.option),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",voter:"",option:0};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.voter=f.string();break;case 3:h.option=f.int32();break;default:f.skipType(7&p)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",option:n(o.option)?(0,d.voteOptionFromJSON)(o.option):0}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.option!==void 0&&(i.option=(0,d.voteOptionToJSON)(o.option)),i},fromPartial(o){var i,f,c;const h={proposal_id:"0",voter:"",option:0};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.voter=(f=o.voter)!==null&&f!==void 0?f:"",h.option=(c=o.option)!==null&&c!==void 0?c:0,h}},e.MsgVoteResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgVoteWeighted={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter);for(const f of o.options)d.WeightedVoteOption.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",voter:"",options:[]};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.voter=f.string();break;case 3:h.options.push(d.WeightedVoteOption.decode(f,f.uint32()));break;default:f.skipType(7&p)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",options:Array.isArray(o==null?void 0:o.options)?o.options.map(i=>d.WeightedVoteOption.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.options?i.options=o.options.map(f=>f?d.WeightedVoteOption.toJSON(f):void 0):i.options=[],i},fromPartial(o){var i,f,c;const h={proposal_id:"0",voter:"",options:[]};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.voter=(f=o.voter)!==null&&f!==void 0?f:"",h.options=((c=o.options)===null||c===void 0?void 0:c.map(p=>d.WeightedVoteOption.fromPartial(p)))||[],h}},e.MsgVoteWeightedResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgDeposit={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.depositor!==""&&i.uint32(18).string(o.depositor);for(const f of o.amount)s.Coin.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",depositor:"",amount:[]};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.depositor=f.string();break;case 3:h.amount.push(s.Coin.decode(f,f.uint32()));break;default:f.skipType(7&p)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",depositor:n(o.depositor)?String(o.depositor):"",amount:Array.isArray(o==null?void 0:o.amount)?o.amount.map(i=>s.Coin.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.depositor!==void 0&&(i.depositor=o.depositor),o.amount?i.amount=o.amount.map(f=>f?s.Coin.toJSON(f):void 0):i.amount=[],i},fromPartial(o){var i,f,c;const h={proposal_id:"0",depositor:"",amount:[]};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.depositor=(f=o.depositor)!==null&&f!==void 0?f:"",h.amount=((c=o.amount)===null||c===void 0?void 0:c.map(p=>s.Coin.fromPartial(p)))||[],h}},e.MsgDepositResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgClientImpl=class{constructor(o){this.rpc=o,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(o){const i=e.MsgSubmitProposal.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",i).then(f=>e.MsgSubmitProposalResponse.decode(new t.Reader(f)))}Vote(o){const i=e.MsgVote.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",i).then(f=>e.MsgVoteResponse.decode(new t.Reader(f)))}VoteWeighted(o){const i=e.MsgVoteWeighted.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",i).then(f=>e.MsgVoteWeightedResponse.decode(new t.Reader(f)))}Deposit(o){const i=e.MsgDeposit.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",i).then(f=>e.MsgDepositResponse.decode(new t.Reader(f)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9913:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParamChange=e.ParameterChangeProposal=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(d){return d!=null}e.protobufPackage="cosmos.params.v1beta1",e.ParameterChangeProposal={encode(d,s=t.Writer.create()){d.title!==""&&s.uint32(10).string(d.title),d.description!==""&&s.uint32(18).string(d.description);for(const r of d.changes)e.ParamChange.encode(r,s.uint32(26).fork()).ldelim();return s},decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={title:"",description:"",changes:[]};for(;r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.changes.push(e.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON:d=>({title:u(d.title)?String(d.title):"",description:u(d.description)?String(d.description):"",changes:Array.isArray(d==null?void 0:d.changes)?d.changes.map(s=>e.ParamChange.fromJSON(s)):[]}),toJSON(d){const s={};return d.title!==void 0&&(s.title=d.title),d.description!==void 0&&(s.description=d.description),d.changes?s.changes=d.changes.map(r=>r?e.ParamChange.toJSON(r):void 0):s.changes=[],s},fromPartial(d){var s,r,n;const o={title:"",description:"",changes:[]};return o.title=(s=d.title)!==null&&s!==void 0?s:"",o.description=(r=d.description)!==null&&r!==void 0?r:"",o.changes=((n=d.changes)===null||n===void 0?void 0:n.map(i=>e.ParamChange.fromPartial(i)))||[],o}},e.ParamChange={encode:(d,s=t.Writer.create())=>(d.subspace!==""&&s.uint32(10).string(d.subspace),d.key!==""&&s.uint32(18).string(d.key),d.value!==""&&s.uint32(26).string(d.value),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={subspace:"",key:"",value:""};for(;r.pos>>3){case 1:o.subspace=r.string();break;case 2:o.key=r.string();break;case 3:o.value=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({subspace:u(d.subspace)?String(d.subspace):"",key:u(d.key)?String(d.key):"",value:u(d.value)?String(d.value):""}),toJSON(d){const s={};return d.subspace!==void 0&&(s.subspace=d.subspace),d.key!==void 0&&(s.key=d.key),d.value!==void 0&&(s.value=d.value),s},fromPartial(d){var s,r,n;const o={subspace:"",key:"",value:""};return o.subspace=(s=d.subspace)!==null&&s!==void 0?s:"",o.key=(r=d.key)!==null&&r!==void 0?r:"",o.value=(n=d.value)!==null&&n!==void 0?n:"",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5925:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(u,d,s,r){r===void 0&&(r=s),Object.defineProperty(u,r,{enumerable:!0,get:function(){return d[s]}})}:function(u,d,s,r){r===void 0&&(r=s),u[r]=d[s]}),A=this&&this.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&O(d,u,s);return A(d,u),d},b=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUnjailResponse=e.MsgUnjail=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));e.protobufPackage="cosmos.slashing.v1beta1",e.MsgUnjail={encode:(u,d=t.Writer.create())=>(u.validator_addr!==""&&d.uint32(10).string(u.validator_addr),d),decode(u,d){const s=u instanceof t.Reader?u:new t.Reader(u);let r=d===void 0?s.len:s.pos+d;const n={validator_addr:""};for(;s.pos>>3==1?n.validator_addr=s.string():s.skipType(7&o)}return n},fromJSON(u){return{validator_addr:(d=u.validator_addr,d!=null?String(u.validator_addr):"")};var d},toJSON(u){const d={};return u.validator_addr!==void 0&&(d.validator_addr=u.validator_addr),d},fromPartial(u){var d;const s={validator_addr:""};return s.validator_addr=(d=u.validator_addr)!==null&&d!==void 0?d:"",s}},e.MsgUnjailResponse={encode:(u,d=t.Writer.create())=>d,decode(u,d){const s=u instanceof t.Reader?u:new t.Reader(u);let r=d===void 0?s.len:s.pos+d;for(;s.pos({}),toJSON:u=>({}),fromPartial:u=>({})},e.MsgClientImpl=class{constructor(u){this.rpc=u,this.Unjail=this.Unjail.bind(this)}Unjail(u){const d=e.MsgUnjail.encode(u).finish();return this.rpc.request("cosmos.slashing.v1beta1.Msg","Unjail",d).then(s=>e.MsgUnjailResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},837:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(o,i,f,c){c===void 0&&(c=f),Object.defineProperty(o,c,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,c){c===void 0&&(c=f),o[c]=i[f]}),A=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&O(i,o,f);return A(i,o),i},b=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.StakeAuthorization_Validators=e.StakeAuthorization=e.authorizationTypeToJSON=e.authorizationTypeFromJSON=e.AuthorizationType=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);var d;function s(o){switch(o){case 0:case"AUTHORIZATION_TYPE_UNSPECIFIED":return d.AUTHORIZATION_TYPE_UNSPECIFIED;case 1:case"AUTHORIZATION_TYPE_DELEGATE":return d.AUTHORIZATION_TYPE_DELEGATE;case 2:case"AUTHORIZATION_TYPE_UNDELEGATE":return d.AUTHORIZATION_TYPE_UNDELEGATE;case 3:case"AUTHORIZATION_TYPE_REDELEGATE":return d.AUTHORIZATION_TYPE_REDELEGATE;default:return d.UNRECOGNIZED}}function r(o){switch(o){case d.AUTHORIZATION_TYPE_UNSPECIFIED:return"AUTHORIZATION_TYPE_UNSPECIFIED";case d.AUTHORIZATION_TYPE_DELEGATE:return"AUTHORIZATION_TYPE_DELEGATE";case d.AUTHORIZATION_TYPE_UNDELEGATE:return"AUTHORIZATION_TYPE_UNDELEGATE";case d.AUTHORIZATION_TYPE_REDELEGATE:return"AUTHORIZATION_TYPE_REDELEGATE";default:return"UNKNOWN"}}function n(o){return o!=null}e.protobufPackage="cosmos.staking.v1beta1",function(o){o[o.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",o[o.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",o[o.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",o[o.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.AuthorizationType||(e.AuthorizationType={})),e.authorizationTypeFromJSON=s,e.authorizationTypeToJSON=r,e.StakeAuthorization={encode:(o,i=t.Writer.create())=>(o.max_tokens!==void 0&&u.Coin.encode(o.max_tokens,i.uint32(10).fork()).ldelim(),o.allow_list!==void 0&&e.StakeAuthorization_Validators.encode(o.allow_list,i.uint32(18).fork()).ldelim(),o.deny_list!==void 0&&e.StakeAuthorization_Validators.encode(o.deny_list,i.uint32(26).fork()).ldelim(),o.authorization_type!==0&&i.uint32(32).int32(o.authorization_type),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};for(;f.pos>>3){case 1:h.max_tokens=u.Coin.decode(f,f.uint32());break;case 2:h.allow_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 3:h.deny_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 4:h.authorization_type=f.int32();break;default:f.skipType(7&p)}}return h},fromJSON:o=>({max_tokens:n(o.max_tokens)?u.Coin.fromJSON(o.max_tokens):void 0,allow_list:n(o.allow_list)?e.StakeAuthorization_Validators.fromJSON(o.allow_list):void 0,deny_list:n(o.deny_list)?e.StakeAuthorization_Validators.fromJSON(o.deny_list):void 0,authorization_type:n(o.authorization_type)?s(o.authorization_type):0}),toJSON(o){const i={};return o.max_tokens!==void 0&&(i.max_tokens=o.max_tokens?u.Coin.toJSON(o.max_tokens):void 0),o.allow_list!==void 0&&(i.allow_list=o.allow_list?e.StakeAuthorization_Validators.toJSON(o.allow_list):void 0),o.deny_list!==void 0&&(i.deny_list=o.deny_list?e.StakeAuthorization_Validators.toJSON(o.deny_list):void 0),o.authorization_type!==void 0&&(i.authorization_type=r(o.authorization_type)),i},fromPartial(o){var i;const f={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};return f.max_tokens=o.max_tokens!==void 0&&o.max_tokens!==null?u.Coin.fromPartial(o.max_tokens):void 0,f.allow_list=o.allow_list!==void 0&&o.allow_list!==null?e.StakeAuthorization_Validators.fromPartial(o.allow_list):void 0,f.deny_list=o.deny_list!==void 0&&o.deny_list!==null?e.StakeAuthorization_Validators.fromPartial(o.deny_list):void 0,f.authorization_type=(i=o.authorization_type)!==null&&i!==void 0?i:0,f}},e.StakeAuthorization_Validators={encode(o,i=t.Writer.create()){for(const f of o.address)i.uint32(10).string(f);return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={address:[]};for(;f.pos>>3==1?h.address.push(f.string()):f.skipType(7&p)}return h},fromJSON:o=>({address:Array.isArray(o==null?void 0:o.address)?o.address.map(i=>String(i)):[]}),toJSON(o){const i={};return o.address?i.address=o.address.map(f=>f):i.address=[],i},fromPartial(o){var i;const f={address:[]};return f.address=((i=o.address)===null||i===void 0?void 0:i.map(c=>c))||[],f}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2572:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(l,N,j,R){R===void 0&&(R=j),Object.defineProperty(l,R,{enumerable:!0,get:function(){return N[j]}})}:function(l,N,j,R){R===void 0&&(R=j),l[R]=N[j]}),A=this&&this.__setModuleDefault||(Object.create?function(l,N){Object.defineProperty(l,"default",{enumerable:!0,value:N})}:function(l,N){l.default=N}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var N={};if(l!=null)for(var j in l)j!=="default"&&Object.prototype.hasOwnProperty.call(l,j)&&O(N,l,j);return A(N,l),N},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Pool=e.RedelegationResponse=e.RedelegationEntryResponse=e.DelegationResponse=e.Params=e.Redelegation=e.RedelegationEntry=e.UnbondingDelegationEntry=e.UnbondingDelegation=e.Delegation=e.DVVTriplets=e.DVVTriplet=e.DVPairs=e.DVPair=e.ValAddresses=e.Validator=e.Description=e.Commission=e.CommissionRates=e.HistoricalInfo=e.bondStatusToJSON=e.bondStatusFromJSON=e.BondStatus=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(9928),d=_(5090),s=_(4191),r=_(6138),n=_(2976);var o;function i(l){switch(l){case 0:case"BOND_STATUS_UNSPECIFIED":return o.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return o.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return o.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return o.BOND_STATUS_BONDED;default:return o.UNRECOGNIZED}}function f(l){switch(l){case o.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case o.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case o.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case o.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}function c(l){return{seconds:Math.trunc(l.getTime()/1e3).toString(),nanos:l.getTime()%1e3*1e6}}function h(l){let N=1e3*Number(l.seconds);return N+=l.nanos/1e6,new Date(N)}function p(l){return l instanceof Date?c(l):typeof l=="string"?c(new Date(l)):d.Timestamp.fromJSON(l)}function m(l){return l.toString()}function M(l){return l!=null}e.protobufPackage="cosmos.staking.v1beta1",function(l){l[l.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",l[l.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",l[l.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",l[l.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.BondStatus||(e.BondStatus={})),e.bondStatusFromJSON=i,e.bondStatusToJSON=f,e.HistoricalInfo={encode(l,N=t.Writer.create()){l.header!==void 0&&u.Header.encode(l.header,N.uint32(10).fork()).ldelim();for(const j of l.valset)e.Validator.encode(j,N.uint32(18).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={header:void 0,valset:[]};for(;j.pos>>3){case 1:I.header=u.Header.decode(j,j.uint32());break;case 2:I.valset.push(e.Validator.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({header:M(l.header)?u.Header.fromJSON(l.header):void 0,valset:Array.isArray(l==null?void 0:l.valset)?l.valset.map(N=>e.Validator.fromJSON(N)):[]}),toJSON(l){const N={};return l.header!==void 0&&(N.header=l.header?u.Header.toJSON(l.header):void 0),l.valset?N.valset=l.valset.map(j=>j?e.Validator.toJSON(j):void 0):N.valset=[],N},fromPartial(l){var N;const j={header:void 0,valset:[]};return j.header=l.header!==void 0&&l.header!==null?u.Header.fromPartial(l.header):void 0,j.valset=((N=l.valset)===null||N===void 0?void 0:N.map(R=>e.Validator.fromPartial(R)))||[],j}},e.CommissionRates={encode:(l,N=t.Writer.create())=>(l.rate!==""&&N.uint32(10).string(l.rate),l.max_rate!==""&&N.uint32(18).string(l.max_rate),l.max_change_rate!==""&&N.uint32(26).string(l.max_change_rate),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={rate:"",max_rate:"",max_change_rate:""};for(;j.pos>>3){case 1:I.rate=j.string();break;case 2:I.max_rate=j.string();break;case 3:I.max_change_rate=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({rate:M(l.rate)?String(l.rate):"",max_rate:M(l.max_rate)?String(l.max_rate):"",max_change_rate:M(l.max_change_rate)?String(l.max_change_rate):""}),toJSON(l){const N={};return l.rate!==void 0&&(N.rate=l.rate),l.max_rate!==void 0&&(N.max_rate=l.max_rate),l.max_change_rate!==void 0&&(N.max_change_rate=l.max_change_rate),N},fromPartial(l){var N,j,R;const I={rate:"",max_rate:"",max_change_rate:""};return I.rate=(N=l.rate)!==null&&N!==void 0?N:"",I.max_rate=(j=l.max_rate)!==null&&j!==void 0?j:"",I.max_change_rate=(R=l.max_change_rate)!==null&&R!==void 0?R:"",I}},e.Commission={encode:(l,N=t.Writer.create())=>(l.commission_rates!==void 0&&e.CommissionRates.encode(l.commission_rates,N.uint32(10).fork()).ldelim(),l.update_time!==void 0&&d.Timestamp.encode(l.update_time,N.uint32(18).fork()).ldelim(),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={commission_rates:void 0,update_time:void 0};for(;j.pos>>3){case 1:I.commission_rates=e.CommissionRates.decode(j,j.uint32());break;case 2:I.update_time=d.Timestamp.decode(j,j.uint32());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({commission_rates:M(l.commission_rates)?e.CommissionRates.fromJSON(l.commission_rates):void 0,update_time:M(l.update_time)?p(l.update_time):void 0}),toJSON(l){const N={};return l.commission_rates!==void 0&&(N.commission_rates=l.commission_rates?e.CommissionRates.toJSON(l.commission_rates):void 0),l.update_time!==void 0&&(N.update_time=h(l.update_time).toISOString()),N},fromPartial(l){const N={commission_rates:void 0,update_time:void 0};return N.commission_rates=l.commission_rates!==void 0&&l.commission_rates!==null?e.CommissionRates.fromPartial(l.commission_rates):void 0,N.update_time=l.update_time!==void 0&&l.update_time!==null?d.Timestamp.fromPartial(l.update_time):void 0,N}},e.Description={encode:(l,N=t.Writer.create())=>(l.moniker!==""&&N.uint32(10).string(l.moniker),l.identity!==""&&N.uint32(18).string(l.identity),l.website!==""&&N.uint32(26).string(l.website),l.security_contact!==""&&N.uint32(34).string(l.security_contact),l.details!==""&&N.uint32(42).string(l.details),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={moniker:"",identity:"",website:"",security_contact:"",details:""};for(;j.pos>>3){case 1:I.moniker=j.string();break;case 2:I.identity=j.string();break;case 3:I.website=j.string();break;case 4:I.security_contact=j.string();break;case 5:I.details=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({moniker:M(l.moniker)?String(l.moniker):"",identity:M(l.identity)?String(l.identity):"",website:M(l.website)?String(l.website):"",security_contact:M(l.security_contact)?String(l.security_contact):"",details:M(l.details)?String(l.details):""}),toJSON(l){const N={};return l.moniker!==void 0&&(N.moniker=l.moniker),l.identity!==void 0&&(N.identity=l.identity),l.website!==void 0&&(N.website=l.website),l.security_contact!==void 0&&(N.security_contact=l.security_contact),l.details!==void 0&&(N.details=l.details),N},fromPartial(l){var N,j,R,I,x;const P={moniker:"",identity:"",website:"",security_contact:"",details:""};return P.moniker=(N=l.moniker)!==null&&N!==void 0?N:"",P.identity=(j=l.identity)!==null&&j!==void 0?j:"",P.website=(R=l.website)!==null&&R!==void 0?R:"",P.security_contact=(I=l.security_contact)!==null&&I!==void 0?I:"",P.details=(x=l.details)!==null&&x!==void 0?x:"",P}},e.Validator={encode:(l,N=t.Writer.create())=>(l.operator_address!==""&&N.uint32(10).string(l.operator_address),l.consensus_pubkey!==void 0&&s.Any.encode(l.consensus_pubkey,N.uint32(18).fork()).ldelim(),l.jailed===!0&&N.uint32(24).bool(l.jailed),l.status!==0&&N.uint32(32).int32(l.status),l.tokens!==""&&N.uint32(42).string(l.tokens),l.delegator_shares!==""&&N.uint32(50).string(l.delegator_shares),l.description!==void 0&&e.Description.encode(l.description,N.uint32(58).fork()).ldelim(),l.unbonding_height!=="0"&&N.uint32(64).int64(l.unbonding_height),l.unbonding_time!==void 0&&d.Timestamp.encode(l.unbonding_time,N.uint32(74).fork()).ldelim(),l.commission!==void 0&&e.Commission.encode(l.commission,N.uint32(82).fork()).ldelim(),l.min_self_delegation!==""&&N.uint32(90).string(l.min_self_delegation),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};for(;j.pos>>3){case 1:I.operator_address=j.string();break;case 2:I.consensus_pubkey=s.Any.decode(j,j.uint32());break;case 3:I.jailed=j.bool();break;case 4:I.status=j.int32();break;case 5:I.tokens=j.string();break;case 6:I.delegator_shares=j.string();break;case 7:I.description=e.Description.decode(j,j.uint32());break;case 8:I.unbonding_height=m(j.int64());break;case 9:I.unbonding_time=d.Timestamp.decode(j,j.uint32());break;case 10:I.commission=e.Commission.decode(j,j.uint32());break;case 11:I.min_self_delegation=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({operator_address:M(l.operator_address)?String(l.operator_address):"",consensus_pubkey:M(l.consensus_pubkey)?s.Any.fromJSON(l.consensus_pubkey):void 0,jailed:!!M(l.jailed)&&!!l.jailed,status:M(l.status)?i(l.status):0,tokens:M(l.tokens)?String(l.tokens):"",delegator_shares:M(l.delegator_shares)?String(l.delegator_shares):"",description:M(l.description)?e.Description.fromJSON(l.description):void 0,unbonding_height:M(l.unbonding_height)?String(l.unbonding_height):"0",unbonding_time:M(l.unbonding_time)?p(l.unbonding_time):void 0,commission:M(l.commission)?e.Commission.fromJSON(l.commission):void 0,min_self_delegation:M(l.min_self_delegation)?String(l.min_self_delegation):""}),toJSON(l){const N={};return l.operator_address!==void 0&&(N.operator_address=l.operator_address),l.consensus_pubkey!==void 0&&(N.consensus_pubkey=l.consensus_pubkey?s.Any.toJSON(l.consensus_pubkey):void 0),l.jailed!==void 0&&(N.jailed=l.jailed),l.status!==void 0&&(N.status=f(l.status)),l.tokens!==void 0&&(N.tokens=l.tokens),l.delegator_shares!==void 0&&(N.delegator_shares=l.delegator_shares),l.description!==void 0&&(N.description=l.description?e.Description.toJSON(l.description):void 0),l.unbonding_height!==void 0&&(N.unbonding_height=l.unbonding_height),l.unbonding_time!==void 0&&(N.unbonding_time=h(l.unbonding_time).toISOString()),l.commission!==void 0&&(N.commission=l.commission?e.Commission.toJSON(l.commission):void 0),l.min_self_delegation!==void 0&&(N.min_self_delegation=l.min_self_delegation),N},fromPartial(l){var N,j,R,I,x,P,w;const g={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};return g.operator_address=(N=l.operator_address)!==null&&N!==void 0?N:"",g.consensus_pubkey=l.consensus_pubkey!==void 0&&l.consensus_pubkey!==null?s.Any.fromPartial(l.consensus_pubkey):void 0,g.jailed=(j=l.jailed)!==null&&j!==void 0&&j,g.status=(R=l.status)!==null&&R!==void 0?R:0,g.tokens=(I=l.tokens)!==null&&I!==void 0?I:"",g.delegator_shares=(x=l.delegator_shares)!==null&&x!==void 0?x:"",g.description=l.description!==void 0&&l.description!==null?e.Description.fromPartial(l.description):void 0,g.unbonding_height=(P=l.unbonding_height)!==null&&P!==void 0?P:"0",g.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?d.Timestamp.fromPartial(l.unbonding_time):void 0,g.commission=l.commission!==void 0&&l.commission!==null?e.Commission.fromPartial(l.commission):void 0,g.min_self_delegation=(w=l.min_self_delegation)!==null&&w!==void 0?w:"",g}},e.ValAddresses={encode(l,N=t.Writer.create()){for(const j of l.addresses)N.uint32(10).string(j);return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={addresses:[]};for(;j.pos>>3==1?I.addresses.push(j.string()):j.skipType(7&x)}return I},fromJSON:l=>({addresses:Array.isArray(l==null?void 0:l.addresses)?l.addresses.map(N=>String(N)):[]}),toJSON(l){const N={};return l.addresses?N.addresses=l.addresses.map(j=>j):N.addresses=[],N},fromPartial(l){var N;const j={addresses:[]};return j.addresses=((N=l.addresses)===null||N===void 0?void 0:N.map(R=>R))||[],j}},e.DVPair={encode:(l,N=t.Writer.create())=>(l.delegator_address!==""&&N.uint32(10).string(l.delegator_address),l.validator_address!==""&&N.uint32(18).string(l.validator_address),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegator_address:"",validator_address:""};for(;j.pos>>3){case 1:I.delegator_address=j.string();break;case 2:I.validator_address=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegator_address:M(l.delegator_address)?String(l.delegator_address):"",validator_address:M(l.validator_address)?String(l.validator_address):""}),toJSON(l){const N={};return l.delegator_address!==void 0&&(N.delegator_address=l.delegator_address),l.validator_address!==void 0&&(N.validator_address=l.validator_address),N},fromPartial(l){var N,j;const R={delegator_address:"",validator_address:""};return R.delegator_address=(N=l.delegator_address)!==null&&N!==void 0?N:"",R.validator_address=(j=l.validator_address)!==null&&j!==void 0?j:"",R}},e.DVPairs={encode(l,N=t.Writer.create()){for(const j of l.pairs)e.DVPair.encode(j,N.uint32(10).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={pairs:[]};for(;j.pos>>3==1?I.pairs.push(e.DVPair.decode(j,j.uint32())):j.skipType(7&x)}return I},fromJSON:l=>({pairs:Array.isArray(l==null?void 0:l.pairs)?l.pairs.map(N=>e.DVPair.fromJSON(N)):[]}),toJSON(l){const N={};return l.pairs?N.pairs=l.pairs.map(j=>j?e.DVPair.toJSON(j):void 0):N.pairs=[],N},fromPartial(l){var N;const j={pairs:[]};return j.pairs=((N=l.pairs)===null||N===void 0?void 0:N.map(R=>e.DVPair.fromPartial(R)))||[],j}},e.DVVTriplet={encode:(l,N=t.Writer.create())=>(l.delegator_address!==""&&N.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&N.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&N.uint32(26).string(l.validator_dst_address),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegator_address:"",validator_src_address:"",validator_dst_address:""};for(;j.pos>>3){case 1:I.delegator_address=j.string();break;case 2:I.validator_src_address=j.string();break;case 3:I.validator_dst_address=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegator_address:M(l.delegator_address)?String(l.delegator_address):"",validator_src_address:M(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:M(l.validator_dst_address)?String(l.validator_dst_address):""}),toJSON(l){const N={};return l.delegator_address!==void 0&&(N.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(N.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(N.validator_dst_address=l.validator_dst_address),N},fromPartial(l){var N,j,R;const I={delegator_address:"",validator_src_address:"",validator_dst_address:""};return I.delegator_address=(N=l.delegator_address)!==null&&N!==void 0?N:"",I.validator_src_address=(j=l.validator_src_address)!==null&&j!==void 0?j:"",I.validator_dst_address=(R=l.validator_dst_address)!==null&&R!==void 0?R:"",I}},e.DVVTriplets={encode(l,N=t.Writer.create()){for(const j of l.triplets)e.DVVTriplet.encode(j,N.uint32(10).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={triplets:[]};for(;j.pos>>3==1?I.triplets.push(e.DVVTriplet.decode(j,j.uint32())):j.skipType(7&x)}return I},fromJSON:l=>({triplets:Array.isArray(l==null?void 0:l.triplets)?l.triplets.map(N=>e.DVVTriplet.fromJSON(N)):[]}),toJSON(l){const N={};return l.triplets?N.triplets=l.triplets.map(j=>j?e.DVVTriplet.toJSON(j):void 0):N.triplets=[],N},fromPartial(l){var N;const j={triplets:[]};return j.triplets=((N=l.triplets)===null||N===void 0?void 0:N.map(R=>e.DVVTriplet.fromPartial(R)))||[],j}},e.Delegation={encode:(l,N=t.Writer.create())=>(l.delegator_address!==""&&N.uint32(10).string(l.delegator_address),l.validator_address!==""&&N.uint32(18).string(l.validator_address),l.shares!==""&&N.uint32(26).string(l.shares),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegator_address:"",validator_address:"",shares:""};for(;j.pos>>3){case 1:I.delegator_address=j.string();break;case 2:I.validator_address=j.string();break;case 3:I.shares=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegator_address:M(l.delegator_address)?String(l.delegator_address):"",validator_address:M(l.validator_address)?String(l.validator_address):"",shares:M(l.shares)?String(l.shares):""}),toJSON(l){const N={};return l.delegator_address!==void 0&&(N.delegator_address=l.delegator_address),l.validator_address!==void 0&&(N.validator_address=l.validator_address),l.shares!==void 0&&(N.shares=l.shares),N},fromPartial(l){var N,j,R;const I={delegator_address:"",validator_address:"",shares:""};return I.delegator_address=(N=l.delegator_address)!==null&&N!==void 0?N:"",I.validator_address=(j=l.validator_address)!==null&&j!==void 0?j:"",I.shares=(R=l.shares)!==null&&R!==void 0?R:"",I}},e.UnbondingDelegation={encode(l,N=t.Writer.create()){l.delegator_address!==""&&N.uint32(10).string(l.delegator_address),l.validator_address!==""&&N.uint32(18).string(l.validator_address);for(const j of l.entries)e.UnbondingDelegationEntry.encode(j,N.uint32(26).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegator_address:"",validator_address:"",entries:[]};for(;j.pos>>3){case 1:I.delegator_address=j.string();break;case 2:I.validator_address=j.string();break;case 3:I.entries.push(e.UnbondingDelegationEntry.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegator_address:M(l.delegator_address)?String(l.delegator_address):"",validator_address:M(l.validator_address)?String(l.validator_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(N=>e.UnbondingDelegationEntry.fromJSON(N)):[]}),toJSON(l){const N={};return l.delegator_address!==void 0&&(N.delegator_address=l.delegator_address),l.validator_address!==void 0&&(N.validator_address=l.validator_address),l.entries?N.entries=l.entries.map(j=>j?e.UnbondingDelegationEntry.toJSON(j):void 0):N.entries=[],N},fromPartial(l){var N,j,R;const I={delegator_address:"",validator_address:"",entries:[]};return I.delegator_address=(N=l.delegator_address)!==null&&N!==void 0?N:"",I.validator_address=(j=l.validator_address)!==null&&j!==void 0?j:"",I.entries=((R=l.entries)===null||R===void 0?void 0:R.map(x=>e.UnbondingDelegationEntry.fromPartial(x)))||[],I}},e.UnbondingDelegationEntry={encode:(l,N=t.Writer.create())=>(l.creation_height!=="0"&&N.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&d.Timestamp.encode(l.completion_time,N.uint32(18).fork()).ldelim(),l.initial_balance!==""&&N.uint32(26).string(l.initial_balance),l.balance!==""&&N.uint32(34).string(l.balance),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};for(;j.pos>>3){case 1:I.creation_height=m(j.int64());break;case 2:I.completion_time=d.Timestamp.decode(j,j.uint32());break;case 3:I.initial_balance=j.string();break;case 4:I.balance=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({creation_height:M(l.creation_height)?String(l.creation_height):"0",completion_time:M(l.completion_time)?p(l.completion_time):void 0,initial_balance:M(l.initial_balance)?String(l.initial_balance):"",balance:M(l.balance)?String(l.balance):""}),toJSON(l){const N={};return l.creation_height!==void 0&&(N.creation_height=l.creation_height),l.completion_time!==void 0&&(N.completion_time=h(l.completion_time).toISOString()),l.initial_balance!==void 0&&(N.initial_balance=l.initial_balance),l.balance!==void 0&&(N.balance=l.balance),N},fromPartial(l){var N,j,R;const I={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};return I.creation_height=(N=l.creation_height)!==null&&N!==void 0?N:"0",I.completion_time=l.completion_time!==void 0&&l.completion_time!==null?d.Timestamp.fromPartial(l.completion_time):void 0,I.initial_balance=(j=l.initial_balance)!==null&&j!==void 0?j:"",I.balance=(R=l.balance)!==null&&R!==void 0?R:"",I}},e.RedelegationEntry={encode:(l,N=t.Writer.create())=>(l.creation_height!=="0"&&N.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&d.Timestamp.encode(l.completion_time,N.uint32(18).fork()).ldelim(),l.initial_balance!==""&&N.uint32(26).string(l.initial_balance),l.shares_dst!==""&&N.uint32(34).string(l.shares_dst),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};for(;j.pos>>3){case 1:I.creation_height=m(j.int64());break;case 2:I.completion_time=d.Timestamp.decode(j,j.uint32());break;case 3:I.initial_balance=j.string();break;case 4:I.shares_dst=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({creation_height:M(l.creation_height)?String(l.creation_height):"0",completion_time:M(l.completion_time)?p(l.completion_time):void 0,initial_balance:M(l.initial_balance)?String(l.initial_balance):"",shares_dst:M(l.shares_dst)?String(l.shares_dst):""}),toJSON(l){const N={};return l.creation_height!==void 0&&(N.creation_height=l.creation_height),l.completion_time!==void 0&&(N.completion_time=h(l.completion_time).toISOString()),l.initial_balance!==void 0&&(N.initial_balance=l.initial_balance),l.shares_dst!==void 0&&(N.shares_dst=l.shares_dst),N},fromPartial(l){var N,j,R;const I={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};return I.creation_height=(N=l.creation_height)!==null&&N!==void 0?N:"0",I.completion_time=l.completion_time!==void 0&&l.completion_time!==null?d.Timestamp.fromPartial(l.completion_time):void 0,I.initial_balance=(j=l.initial_balance)!==null&&j!==void 0?j:"",I.shares_dst=(R=l.shares_dst)!==null&&R!==void 0?R:"",I}},e.Redelegation={encode(l,N=t.Writer.create()){l.delegator_address!==""&&N.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&N.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&N.uint32(26).string(l.validator_dst_address);for(const j of l.entries)e.RedelegationEntry.encode(j,N.uint32(34).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};for(;j.pos>>3){case 1:I.delegator_address=j.string();break;case 2:I.validator_src_address=j.string();break;case 3:I.validator_dst_address=j.string();break;case 4:I.entries.push(e.RedelegationEntry.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegator_address:M(l.delegator_address)?String(l.delegator_address):"",validator_src_address:M(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:M(l.validator_dst_address)?String(l.validator_dst_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(N=>e.RedelegationEntry.fromJSON(N)):[]}),toJSON(l){const N={};return l.delegator_address!==void 0&&(N.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(N.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(N.validator_dst_address=l.validator_dst_address),l.entries?N.entries=l.entries.map(j=>j?e.RedelegationEntry.toJSON(j):void 0):N.entries=[],N},fromPartial(l){var N,j,R,I;const x={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};return x.delegator_address=(N=l.delegator_address)!==null&&N!==void 0?N:"",x.validator_src_address=(j=l.validator_src_address)!==null&&j!==void 0?j:"",x.validator_dst_address=(R=l.validator_dst_address)!==null&&R!==void 0?R:"",x.entries=((I=l.entries)===null||I===void 0?void 0:I.map(P=>e.RedelegationEntry.fromPartial(P)))||[],x}},e.Params={encode:(l,N=t.Writer.create())=>(l.unbonding_time!==void 0&&r.Duration.encode(l.unbonding_time,N.uint32(10).fork()).ldelim(),l.max_validators!==0&&N.uint32(16).uint32(l.max_validators),l.max_entries!==0&&N.uint32(24).uint32(l.max_entries),l.historical_entries!==0&&N.uint32(32).uint32(l.historical_entries),l.bond_denom!==""&&N.uint32(42).string(l.bond_denom),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};for(;j.pos>>3){case 1:I.unbonding_time=r.Duration.decode(j,j.uint32());break;case 2:I.max_validators=j.uint32();break;case 3:I.max_entries=j.uint32();break;case 4:I.historical_entries=j.uint32();break;case 5:I.bond_denom=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({unbonding_time:M(l.unbonding_time)?r.Duration.fromJSON(l.unbonding_time):void 0,max_validators:M(l.max_validators)?Number(l.max_validators):0,max_entries:M(l.max_entries)?Number(l.max_entries):0,historical_entries:M(l.historical_entries)?Number(l.historical_entries):0,bond_denom:M(l.bond_denom)?String(l.bond_denom):""}),toJSON(l){const N={};return l.unbonding_time!==void 0&&(N.unbonding_time=l.unbonding_time?r.Duration.toJSON(l.unbonding_time):void 0),l.max_validators!==void 0&&(N.max_validators=Math.round(l.max_validators)),l.max_entries!==void 0&&(N.max_entries=Math.round(l.max_entries)),l.historical_entries!==void 0&&(N.historical_entries=Math.round(l.historical_entries)),l.bond_denom!==void 0&&(N.bond_denom=l.bond_denom),N},fromPartial(l){var N,j,R,I;const x={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};return x.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?r.Duration.fromPartial(l.unbonding_time):void 0,x.max_validators=(N=l.max_validators)!==null&&N!==void 0?N:0,x.max_entries=(j=l.max_entries)!==null&&j!==void 0?j:0,x.historical_entries=(R=l.historical_entries)!==null&&R!==void 0?R:0,x.bond_denom=(I=l.bond_denom)!==null&&I!==void 0?I:"",x}},e.DelegationResponse={encode:(l,N=t.Writer.create())=>(l.delegation!==void 0&&e.Delegation.encode(l.delegation,N.uint32(10).fork()).ldelim(),l.balance!==void 0&&n.Coin.encode(l.balance,N.uint32(18).fork()).ldelim(),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={delegation:void 0,balance:void 0};for(;j.pos>>3){case 1:I.delegation=e.Delegation.decode(j,j.uint32());break;case 2:I.balance=n.Coin.decode(j,j.uint32());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({delegation:M(l.delegation)?e.Delegation.fromJSON(l.delegation):void 0,balance:M(l.balance)?n.Coin.fromJSON(l.balance):void 0}),toJSON(l){const N={};return l.delegation!==void 0&&(N.delegation=l.delegation?e.Delegation.toJSON(l.delegation):void 0),l.balance!==void 0&&(N.balance=l.balance?n.Coin.toJSON(l.balance):void 0),N},fromPartial(l){const N={delegation:void 0,balance:void 0};return N.delegation=l.delegation!==void 0&&l.delegation!==null?e.Delegation.fromPartial(l.delegation):void 0,N.balance=l.balance!==void 0&&l.balance!==null?n.Coin.fromPartial(l.balance):void 0,N}},e.RedelegationEntryResponse={encode:(l,N=t.Writer.create())=>(l.redelegation_entry!==void 0&&e.RedelegationEntry.encode(l.redelegation_entry,N.uint32(10).fork()).ldelim(),l.balance!==""&&N.uint32(34).string(l.balance),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={redelegation_entry:void 0,balance:""};for(;j.pos>>3){case 1:I.redelegation_entry=e.RedelegationEntry.decode(j,j.uint32());break;case 4:I.balance=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({redelegation_entry:M(l.redelegation_entry)?e.RedelegationEntry.fromJSON(l.redelegation_entry):void 0,balance:M(l.balance)?String(l.balance):""}),toJSON(l){const N={};return l.redelegation_entry!==void 0&&(N.redelegation_entry=l.redelegation_entry?e.RedelegationEntry.toJSON(l.redelegation_entry):void 0),l.balance!==void 0&&(N.balance=l.balance),N},fromPartial(l){var N;const j={redelegation_entry:void 0,balance:""};return j.redelegation_entry=l.redelegation_entry!==void 0&&l.redelegation_entry!==null?e.RedelegationEntry.fromPartial(l.redelegation_entry):void 0,j.balance=(N=l.balance)!==null&&N!==void 0?N:"",j}},e.RedelegationResponse={encode(l,N=t.Writer.create()){l.redelegation!==void 0&&e.Redelegation.encode(l.redelegation,N.uint32(10).fork()).ldelim();for(const j of l.entries)e.RedelegationEntryResponse.encode(j,N.uint32(18).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={redelegation:void 0,entries:[]};for(;j.pos>>3){case 1:I.redelegation=e.Redelegation.decode(j,j.uint32());break;case 2:I.entries.push(e.RedelegationEntryResponse.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({redelegation:M(l.redelegation)?e.Redelegation.fromJSON(l.redelegation):void 0,entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(N=>e.RedelegationEntryResponse.fromJSON(N)):[]}),toJSON(l){const N={};return l.redelegation!==void 0&&(N.redelegation=l.redelegation?e.Redelegation.toJSON(l.redelegation):void 0),l.entries?N.entries=l.entries.map(j=>j?e.RedelegationEntryResponse.toJSON(j):void 0):N.entries=[],N},fromPartial(l){var N;const j={redelegation:void 0,entries:[]};return j.redelegation=l.redelegation!==void 0&&l.redelegation!==null?e.Redelegation.fromPartial(l.redelegation):void 0,j.entries=((N=l.entries)===null||N===void 0?void 0:N.map(R=>e.RedelegationEntryResponse.fromPartial(R)))||[],j}},e.Pool={encode:(l,N=t.Writer.create())=>(l.not_bonded_tokens!==""&&N.uint32(10).string(l.not_bonded_tokens),l.bonded_tokens!==""&&N.uint32(18).string(l.bonded_tokens),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={not_bonded_tokens:"",bonded_tokens:""};for(;j.pos>>3){case 1:I.not_bonded_tokens=j.string();break;case 2:I.bonded_tokens=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({not_bonded_tokens:M(l.not_bonded_tokens)?String(l.not_bonded_tokens):"",bonded_tokens:M(l.bonded_tokens)?String(l.bonded_tokens):""}),toJSON(l){const N={};return l.not_bonded_tokens!==void 0&&(N.not_bonded_tokens=l.not_bonded_tokens),l.bonded_tokens!==void 0&&(N.bonded_tokens=l.bonded_tokens),N},fromPartial(l){var N,j;const R={not_bonded_tokens:"",bonded_tokens:""};return R.not_bonded_tokens=(N=l.not_bonded_tokens)!==null&&N!==void 0?N:"",R.bonded_tokens=(j=l.bonded_tokens)!==null&&j!==void 0?j:"",R}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7704:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUndelegateResponse=e.MsgUndelegate=e.MsgBeginRedelegateResponse=e.MsgBeginRedelegate=e.MsgDelegateResponse=e.MsgDelegate=e.MsgEditValidatorResponse=e.MsgEditValidator=e.MsgCreateValidatorResponse=e.MsgCreateValidator=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2572),d=_(4191),s=_(2976),r=_(5090);function n(c){return{seconds:Math.trunc(c.getTime()/1e3).toString(),nanos:c.getTime()%1e3*1e6}}function o(c){let h=1e3*Number(c.seconds);return h+=c.nanos/1e6,new Date(h)}function i(c){return c instanceof Date?n(c):typeof c=="string"?n(new Date(c)):r.Timestamp.fromJSON(c)}function f(c){return c!=null}e.protobufPackage="cosmos.staking.v1beta1",e.MsgCreateValidator={encode:(c,h=t.Writer.create())=>(c.description!==void 0&&u.Description.encode(c.description,h.uint32(10).fork()).ldelim(),c.commission!==void 0&&u.CommissionRates.encode(c.commission,h.uint32(18).fork()).ldelim(),c.min_self_delegation!==""&&h.uint32(26).string(c.min_self_delegation),c.delegator_address!==""&&h.uint32(34).string(c.delegator_address),c.validator_address!==""&&h.uint32(42).string(c.validator_address),c.pubkey!==void 0&&d.Any.encode(c.pubkey,h.uint32(50).fork()).ldelim(),c.value!==void 0&&s.Coin.encode(c.value,h.uint32(58).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};for(;p.pos>>3){case 1:M.description=u.Description.decode(p,p.uint32());break;case 2:M.commission=u.CommissionRates.decode(p,p.uint32());break;case 3:M.min_self_delegation=p.string();break;case 4:M.delegator_address=p.string();break;case 5:M.validator_address=p.string();break;case 6:M.pubkey=d.Any.decode(p,p.uint32());break;case 7:M.value=s.Coin.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({description:f(c.description)?u.Description.fromJSON(c.description):void 0,commission:f(c.commission)?u.CommissionRates.fromJSON(c.commission):void 0,min_self_delegation:f(c.min_self_delegation)?String(c.min_self_delegation):"",delegator_address:f(c.delegator_address)?String(c.delegator_address):"",validator_address:f(c.validator_address)?String(c.validator_address):"",pubkey:f(c.pubkey)?d.Any.fromJSON(c.pubkey):void 0,value:f(c.value)?s.Coin.fromJSON(c.value):void 0}),toJSON(c){const h={};return c.description!==void 0&&(h.description=c.description?u.Description.toJSON(c.description):void 0),c.commission!==void 0&&(h.commission=c.commission?u.CommissionRates.toJSON(c.commission):void 0),c.min_self_delegation!==void 0&&(h.min_self_delegation=c.min_self_delegation),c.delegator_address!==void 0&&(h.delegator_address=c.delegator_address),c.validator_address!==void 0&&(h.validator_address=c.validator_address),c.pubkey!==void 0&&(h.pubkey=c.pubkey?d.Any.toJSON(c.pubkey):void 0),c.value!==void 0&&(h.value=c.value?s.Coin.toJSON(c.value):void 0),h},fromPartial(c){var h,p,m;const M={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};return M.description=c.description!==void 0&&c.description!==null?u.Description.fromPartial(c.description):void 0,M.commission=c.commission!==void 0&&c.commission!==null?u.CommissionRates.fromPartial(c.commission):void 0,M.min_self_delegation=(h=c.min_self_delegation)!==null&&h!==void 0?h:"",M.delegator_address=(p=c.delegator_address)!==null&&p!==void 0?p:"",M.validator_address=(m=c.validator_address)!==null&&m!==void 0?m:"",M.pubkey=c.pubkey!==void 0&&c.pubkey!==null?d.Any.fromPartial(c.pubkey):void 0,M.value=c.value!==void 0&&c.value!==null?s.Coin.fromPartial(c.value):void 0,M}},e.MsgCreateValidatorResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgEditValidator={encode:(c,h=t.Writer.create())=>(c.description!==void 0&&u.Description.encode(c.description,h.uint32(10).fork()).ldelim(),c.validator_address!==""&&h.uint32(18).string(c.validator_address),c.commission_rate!==""&&h.uint32(26).string(c.commission_rate),c.min_self_delegation!==""&&h.uint32(34).string(c.min_self_delegation),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};for(;p.pos>>3){case 1:M.description=u.Description.decode(p,p.uint32());break;case 2:M.validator_address=p.string();break;case 3:M.commission_rate=p.string();break;case 4:M.min_self_delegation=p.string();break;default:p.skipType(7&l)}}return M},fromJSON:c=>({description:f(c.description)?u.Description.fromJSON(c.description):void 0,validator_address:f(c.validator_address)?String(c.validator_address):"",commission_rate:f(c.commission_rate)?String(c.commission_rate):"",min_self_delegation:f(c.min_self_delegation)?String(c.min_self_delegation):""}),toJSON(c){const h={};return c.description!==void 0&&(h.description=c.description?u.Description.toJSON(c.description):void 0),c.validator_address!==void 0&&(h.validator_address=c.validator_address),c.commission_rate!==void 0&&(h.commission_rate=c.commission_rate),c.min_self_delegation!==void 0&&(h.min_self_delegation=c.min_self_delegation),h},fromPartial(c){var h,p,m;const M={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};return M.description=c.description!==void 0&&c.description!==null?u.Description.fromPartial(c.description):void 0,M.validator_address=(h=c.validator_address)!==null&&h!==void 0?h:"",M.commission_rate=(p=c.commission_rate)!==null&&p!==void 0?p:"",M.min_self_delegation=(m=c.min_self_delegation)!==null&&m!==void 0?m:"",M}},e.MsgEditValidatorResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgDelegate={encode:(c,h=t.Writer.create())=>(c.delegator_address!==""&&h.uint32(10).string(c.delegator_address),c.validator_address!==""&&h.uint32(18).string(c.validator_address),c.amount!==void 0&&s.Coin.encode(c.amount,h.uint32(26).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={delegator_address:"",validator_address:"",amount:void 0};for(;p.pos>>3){case 1:M.delegator_address=p.string();break;case 2:M.validator_address=p.string();break;case 3:M.amount=s.Coin.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({delegator_address:f(c.delegator_address)?String(c.delegator_address):"",validator_address:f(c.validator_address)?String(c.validator_address):"",amount:f(c.amount)?s.Coin.fromJSON(c.amount):void 0}),toJSON(c){const h={};return c.delegator_address!==void 0&&(h.delegator_address=c.delegator_address),c.validator_address!==void 0&&(h.validator_address=c.validator_address),c.amount!==void 0&&(h.amount=c.amount?s.Coin.toJSON(c.amount):void 0),h},fromPartial(c){var h,p;const m={delegator_address:"",validator_address:"",amount:void 0};return m.delegator_address=(h=c.delegator_address)!==null&&h!==void 0?h:"",m.validator_address=(p=c.validator_address)!==null&&p!==void 0?p:"",m.amount=c.amount!==void 0&&c.amount!==null?s.Coin.fromPartial(c.amount):void 0,m}},e.MsgDelegateResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgBeginRedelegate={encode:(c,h=t.Writer.create())=>(c.delegator_address!==""&&h.uint32(10).string(c.delegator_address),c.validator_src_address!==""&&h.uint32(18).string(c.validator_src_address),c.validator_dst_address!==""&&h.uint32(26).string(c.validator_dst_address),c.amount!==void 0&&s.Coin.encode(c.amount,h.uint32(34).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};for(;p.pos>>3){case 1:M.delegator_address=p.string();break;case 2:M.validator_src_address=p.string();break;case 3:M.validator_dst_address=p.string();break;case 4:M.amount=s.Coin.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({delegator_address:f(c.delegator_address)?String(c.delegator_address):"",validator_src_address:f(c.validator_src_address)?String(c.validator_src_address):"",validator_dst_address:f(c.validator_dst_address)?String(c.validator_dst_address):"",amount:f(c.amount)?s.Coin.fromJSON(c.amount):void 0}),toJSON(c){const h={};return c.delegator_address!==void 0&&(h.delegator_address=c.delegator_address),c.validator_src_address!==void 0&&(h.validator_src_address=c.validator_src_address),c.validator_dst_address!==void 0&&(h.validator_dst_address=c.validator_dst_address),c.amount!==void 0&&(h.amount=c.amount?s.Coin.toJSON(c.amount):void 0),h},fromPartial(c){var h,p,m;const M={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};return M.delegator_address=(h=c.delegator_address)!==null&&h!==void 0?h:"",M.validator_src_address=(p=c.validator_src_address)!==null&&p!==void 0?p:"",M.validator_dst_address=(m=c.validator_dst_address)!==null&&m!==void 0?m:"",M.amount=c.amount!==void 0&&c.amount!==null?s.Coin.fromPartial(c.amount):void 0,M}},e.MsgBeginRedelegateResponse={encode:(c,h=t.Writer.create())=>(c.completion_time!==void 0&&r.Timestamp.encode(c.completion_time,h.uint32(10).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={completion_time:void 0};for(;p.pos>>3==1?M.completion_time=r.Timestamp.decode(p,p.uint32()):p.skipType(7&l)}return M},fromJSON:c=>({completion_time:f(c.completion_time)?i(c.completion_time):void 0}),toJSON(c){const h={};return c.completion_time!==void 0&&(h.completion_time=o(c.completion_time).toISOString()),h},fromPartial(c){const h={completion_time:void 0};return h.completion_time=c.completion_time!==void 0&&c.completion_time!==null?r.Timestamp.fromPartial(c.completion_time):void 0,h}},e.MsgUndelegate={encode:(c,h=t.Writer.create())=>(c.delegator_address!==""&&h.uint32(10).string(c.delegator_address),c.validator_address!==""&&h.uint32(18).string(c.validator_address),c.amount!==void 0&&s.Coin.encode(c.amount,h.uint32(26).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={delegator_address:"",validator_address:"",amount:void 0};for(;p.pos>>3){case 1:M.delegator_address=p.string();break;case 2:M.validator_address=p.string();break;case 3:M.amount=s.Coin.decode(p,p.uint32());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({delegator_address:f(c.delegator_address)?String(c.delegator_address):"",validator_address:f(c.validator_address)?String(c.validator_address):"",amount:f(c.amount)?s.Coin.fromJSON(c.amount):void 0}),toJSON(c){const h={};return c.delegator_address!==void 0&&(h.delegator_address=c.delegator_address),c.validator_address!==void 0&&(h.validator_address=c.validator_address),c.amount!==void 0&&(h.amount=c.amount?s.Coin.toJSON(c.amount):void 0),h},fromPartial(c){var h,p;const m={delegator_address:"",validator_address:"",amount:void 0};return m.delegator_address=(h=c.delegator_address)!==null&&h!==void 0?h:"",m.validator_address=(p=c.validator_address)!==null&&p!==void 0?p:"",m.amount=c.amount!==void 0&&c.amount!==null?s.Coin.fromPartial(c.amount):void 0,m}},e.MsgUndelegateResponse={encode:(c,h=t.Writer.create())=>(c.completion_time!==void 0&&r.Timestamp.encode(c.completion_time,h.uint32(10).fork()).ldelim(),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={completion_time:void 0};for(;p.pos>>3==1?M.completion_time=r.Timestamp.decode(p,p.uint32()):p.skipType(7&l)}return M},fromJSON:c=>({completion_time:f(c.completion_time)?i(c.completion_time):void 0}),toJSON(c){const h={};return c.completion_time!==void 0&&(h.completion_time=o(c.completion_time).toISOString()),h},fromPartial(c){const h={completion_time:void 0};return h.completion_time=c.completion_time!==void 0&&c.completion_time!==null?r.Timestamp.fromPartial(c.completion_time):void 0,h}},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this)}CreateValidator(c){const h=e.MsgCreateValidator.encode(c).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",h).then(p=>e.MsgCreateValidatorResponse.decode(new t.Reader(p)))}EditValidator(c){const h=e.MsgEditValidator.encode(c).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",h).then(p=>e.MsgEditValidatorResponse.decode(new t.Reader(p)))}Delegate(c){const h=e.MsgDelegate.encode(c).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",h).then(p=>e.MsgDelegateResponse.decode(new t.Reader(p)))}BeginRedelegate(c){const h=e.MsgBeginRedelegate.encode(c).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",h).then(p=>e.MsgBeginRedelegateResponse.decode(new t.Reader(p)))}Undelegate(c){const h=e.MsgUndelegate.encode(c).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",h).then(p=>e.MsgUndelegateResponse.decode(new t.Reader(p)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8502:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(m,M,l,N){N===void 0&&(N=l),Object.defineProperty(m,N,{enumerable:!0,get:function(){return M[l]}})}:function(m,M,l,N){N===void 0&&(N=l),m[N]=M[l]}),A=this&&this.__setModuleDefault||(Object.create?function(m,M){Object.defineProperty(m,"default",{enumerable:!0,value:M})}:function(m,M){m.default=M}),k=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var M={};if(m!=null)for(var l in m)l!=="default"&&Object.prototype.hasOwnProperty.call(m,l)&&O(M,m,l);return A(M,m),M},b=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureDescriptor_Data_Multi=e.SignatureDescriptor_Data_Single=e.SignatureDescriptor_Data=e.SignatureDescriptor=e.SignatureDescriptors=e.signModeToJSON=e.signModeFromJSON=e.SignMode=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(4271);var s;function r(m){switch(m){case 0:case"SIGN_MODE_UNSPECIFIED":return s.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return s.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return s.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return s.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return s.SIGN_MODE_EIP_191;default:return s.UNRECOGNIZED}}function n(m){switch(m){case s.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case s.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case s.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case s.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case s.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";default:return"UNKNOWN"}}function o(){return{mode:0,signature:new Uint8Array}}e.protobufPackage="cosmos.tx.signing.v1beta1",function(m){m[m.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",m[m.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",m[m.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",m[m.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",m[m.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",m[m.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.SignMode||(e.SignMode={})),e.signModeFromJSON=r,e.signModeToJSON=n,e.SignatureDescriptors={encode(m,M=t.Writer.create()){for(const l of m.signatures)e.SignatureDescriptor.encode(l,M.uint32(10).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={signatures:[]};for(;l.pos>>3==1?j.signatures.push(e.SignatureDescriptor.decode(l,l.uint32())):l.skipType(7&R)}return j},fromJSON:m=>({signatures:Array.isArray(m==null?void 0:m.signatures)?m.signatures.map(M=>e.SignatureDescriptor.fromJSON(M)):[]}),toJSON(m){const M={};return m.signatures?M.signatures=m.signatures.map(l=>l?e.SignatureDescriptor.toJSON(l):void 0):M.signatures=[],M},fromPartial(m){var M;const l={signatures:[]};return l.signatures=((M=m.signatures)===null||M===void 0?void 0:M.map(N=>e.SignatureDescriptor.fromPartial(N)))||[],l}},e.SignatureDescriptor={encode:(m,M=t.Writer.create())=>(m.public_key!==void 0&&u.Any.encode(m.public_key,M.uint32(10).fork()).ldelim(),m.data!==void 0&&e.SignatureDescriptor_Data.encode(m.data,M.uint32(18).fork()).ldelim(),m.sequence!=="0"&&M.uint32(24).uint64(m.sequence),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={public_key:void 0,data:void 0,sequence:"0"};for(;l.pos>>3){case 1:j.public_key=u.Any.decode(l,l.uint32());break;case 2:j.data=e.SignatureDescriptor_Data.decode(l,l.uint32());break;case 3:j.sequence=l.uint64().toString();break;default:l.skipType(7&R)}}return j},fromJSON:m=>({public_key:p(m.public_key)?u.Any.fromJSON(m.public_key):void 0,data:p(m.data)?e.SignatureDescriptor_Data.fromJSON(m.data):void 0,sequence:p(m.sequence)?String(m.sequence):"0"}),toJSON(m){const M={};return m.public_key!==void 0&&(M.public_key=m.public_key?u.Any.toJSON(m.public_key):void 0),m.data!==void 0&&(M.data=m.data?e.SignatureDescriptor_Data.toJSON(m.data):void 0),m.sequence!==void 0&&(M.sequence=m.sequence),M},fromPartial(m){var M;const l={public_key:void 0,data:void 0,sequence:"0"};return l.public_key=m.public_key!==void 0&&m.public_key!==null?u.Any.fromPartial(m.public_key):void 0,l.data=m.data!==void 0&&m.data!==null?e.SignatureDescriptor_Data.fromPartial(m.data):void 0,l.sequence=(M=m.sequence)!==null&&M!==void 0?M:"0",l}},e.SignatureDescriptor_Data={encode:(m,M=t.Writer.create())=>(m.single!==void 0&&e.SignatureDescriptor_Data_Single.encode(m.single,M.uint32(10).fork()).ldelim(),m.multi!==void 0&&e.SignatureDescriptor_Data_Multi.encode(m.multi,M.uint32(18).fork()).ldelim(),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={single:void 0,multi:void 0};for(;l.pos>>3){case 1:j.single=e.SignatureDescriptor_Data_Single.decode(l,l.uint32());break;case 2:j.multi=e.SignatureDescriptor_Data_Multi.decode(l,l.uint32());break;default:l.skipType(7&R)}}return j},fromJSON:m=>({single:p(m.single)?e.SignatureDescriptor_Data_Single.fromJSON(m.single):void 0,multi:p(m.multi)?e.SignatureDescriptor_Data_Multi.fromJSON(m.multi):void 0}),toJSON(m){const M={};return m.single!==void 0&&(M.single=m.single?e.SignatureDescriptor_Data_Single.toJSON(m.single):void 0),m.multi!==void 0&&(M.multi=m.multi?e.SignatureDescriptor_Data_Multi.toJSON(m.multi):void 0),M},fromPartial(m){const M={single:void 0,multi:void 0};return M.single=m.single!==void 0&&m.single!==null?e.SignatureDescriptor_Data_Single.fromPartial(m.single):void 0,M.multi=m.multi!==void 0&&m.multi!==null?e.SignatureDescriptor_Data_Multi.fromPartial(m.multi):void 0,M}},e.SignatureDescriptor_Data_Single={encode:(m,M=t.Writer.create())=>(m.mode!==0&&M.uint32(8).int32(m.mode),m.signature.length!==0&&M.uint32(18).bytes(m.signature),M),decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j=o();for(;l.pos>>3){case 1:j.mode=l.int32();break;case 2:j.signature=l.bytes();break;default:l.skipType(7&R)}}return j},fromJSON:m=>({mode:p(m.mode)?r(m.mode):0,signature:p(m.signature)?c(m.signature):new Uint8Array}),toJSON(m){const M={};return m.mode!==void 0&&(M.mode=n(m.mode)),m.signature!==void 0&&(M.signature=function(l){const N=[];for(const j of l)N.push(String.fromCharCode(j));return h(N.join(""))}(m.signature!==void 0?m.signature:new Uint8Array)),M},fromPartial(m){var M,l;const N=o();return N.mode=(M=m.mode)!==null&&M!==void 0?M:0,N.signature=(l=m.signature)!==null&&l!==void 0?l:new Uint8Array,N}},e.SignatureDescriptor_Data_Multi={encode(m,M=t.Writer.create()){m.bitarray!==void 0&&d.CompactBitArray.encode(m.bitarray,M.uint32(10).fork()).ldelim();for(const l of m.signatures)e.SignatureDescriptor_Data.encode(l,M.uint32(18).fork()).ldelim();return M},decode(m,M){const l=m instanceof t.Reader?m:new t.Reader(m);let N=M===void 0?l.len:l.pos+M;const j={bitarray:void 0,signatures:[]};for(;l.pos>>3){case 1:j.bitarray=d.CompactBitArray.decode(l,l.uint32());break;case 2:j.signatures.push(e.SignatureDescriptor_Data.decode(l,l.uint32()));break;default:l.skipType(7&R)}}return j},fromJSON:m=>({bitarray:p(m.bitarray)?d.CompactBitArray.fromJSON(m.bitarray):void 0,signatures:Array.isArray(m==null?void 0:m.signatures)?m.signatures.map(M=>e.SignatureDescriptor_Data.fromJSON(M)):[]}),toJSON(m){const M={};return m.bitarray!==void 0&&(M.bitarray=m.bitarray?d.CompactBitArray.toJSON(m.bitarray):void 0),m.signatures?M.signatures=m.signatures.map(l=>l?e.SignatureDescriptor_Data.toJSON(l):void 0):M.signatures=[],M},fromPartial(m){var M;const l={bitarray:void 0,signatures:[]};return l.bitarray=m.bitarray!==void 0&&m.bitarray!==null?d.CompactBitArray.fromPartial(m.bitarray):void 0,l.signatures=((M=m.signatures)===null||M===void 0?void 0:M.map(N=>e.SignatureDescriptor_Data.fromPartial(N)))||[],l}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const f=i.atob||(m=>i.Buffer.from(m,"base64").toString("binary"));function c(m){const M=f(m),l=new Uint8Array(M.length);for(let N=0;Ni.Buffer.from(m,"binary").toString("base64"));function p(m){return m!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6994:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(l,N,j,R){R===void 0&&(R=j),Object.defineProperty(l,R,{enumerable:!0,get:function(){return N[j]}})}:function(l,N,j,R){R===void 0&&(R=j),l[R]=N[j]}),A=this&&this.__setModuleDefault||(Object.create?function(l,N){Object.defineProperty(l,"default",{enumerable:!0,value:N})}:function(l,N){l.default=N}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var N={};if(l!=null)for(var j in l)j!=="default"&&Object.prototype.hasOwnProperty.call(l,j)&&O(N,l,j);return A(N,l),N},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Fee=e.ModeInfo_Multi=e.ModeInfo_Single=e.ModeInfo=e.SignerInfo=e.AuthInfo=e.TxBody=e.SignDoc=e.TxRaw=e.Tx=e.Txs=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(8502),s=_(4271),r=_(2976);function n(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,signatures:[]}}function o(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,chain_id:"",account_number:"0"}}e.protobufPackage="cosmos.tx.v1beta1",e.Txs={encode(l,N=t.Writer.create()){for(const j of l.tx)N.uint32(10).bytes(j);return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={tx:[]};for(;j.pos>>3==1?I.tx.push(j.bytes()):j.skipType(7&x)}return I},fromJSON:l=>({tx:Array.isArray(l==null?void 0:l.tx)?l.tx.map(N=>c(N)):[]}),toJSON(l){const N={};return l.tx?N.tx=l.tx.map(j=>p(j!==void 0?j:new Uint8Array)):N.tx=[],N},fromPartial(l){var N;const j={tx:[]};return j.tx=((N=l.tx)===null||N===void 0?void 0:N.map(R=>R))||[],j}},e.Tx={encode(l,N=t.Writer.create()){l.body!==void 0&&e.TxBody.encode(l.body,N.uint32(10).fork()).ldelim(),l.auth_info!==void 0&&e.AuthInfo.encode(l.auth_info,N.uint32(18).fork()).ldelim();for(const j of l.signatures)N.uint32(26).bytes(j);return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={body:void 0,auth_info:void 0,signatures:[]};for(;j.pos>>3){case 1:I.body=e.TxBody.decode(j,j.uint32());break;case 2:I.auth_info=e.AuthInfo.decode(j,j.uint32());break;case 3:I.signatures.push(j.bytes());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({body:M(l.body)?e.TxBody.fromJSON(l.body):void 0,auth_info:M(l.auth_info)?e.AuthInfo.fromJSON(l.auth_info):void 0,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(N=>c(N)):[]}),toJSON(l){const N={};return l.body!==void 0&&(N.body=l.body?e.TxBody.toJSON(l.body):void 0),l.auth_info!==void 0&&(N.auth_info=l.auth_info?e.AuthInfo.toJSON(l.auth_info):void 0),l.signatures?N.signatures=l.signatures.map(j=>p(j!==void 0?j:new Uint8Array)):N.signatures=[],N},fromPartial(l){var N;const j={body:void 0,auth_info:void 0,signatures:[]};return j.body=l.body!==void 0&&l.body!==null?e.TxBody.fromPartial(l.body):void 0,j.auth_info=l.auth_info!==void 0&&l.auth_info!==null?e.AuthInfo.fromPartial(l.auth_info):void 0,j.signatures=((N=l.signatures)===null||N===void 0?void 0:N.map(R=>R))||[],j}},e.TxRaw={encode(l,N=t.Writer.create()){l.body_bytes.length!==0&&N.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&N.uint32(18).bytes(l.auth_info_bytes);for(const j of l.signatures)N.uint32(26).bytes(j);return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I=n();for(;j.pos>>3){case 1:I.body_bytes=j.bytes();break;case 2:I.auth_info_bytes=j.bytes();break;case 3:I.signatures.push(j.bytes());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({body_bytes:M(l.body_bytes)?c(l.body_bytes):new Uint8Array,auth_info_bytes:M(l.auth_info_bytes)?c(l.auth_info_bytes):new Uint8Array,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(N=>c(N)):[]}),toJSON(l){const N={};return l.body_bytes!==void 0&&(N.body_bytes=p(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(N.auth_info_bytes=p(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.signatures?N.signatures=l.signatures.map(j=>p(j!==void 0?j:new Uint8Array)):N.signatures=[],N},fromPartial(l){var N,j,R;const I=n();return I.body_bytes=(N=l.body_bytes)!==null&&N!==void 0?N:new Uint8Array,I.auth_info_bytes=(j=l.auth_info_bytes)!==null&&j!==void 0?j:new Uint8Array,I.signatures=((R=l.signatures)===null||R===void 0?void 0:R.map(x=>x))||[],I}},e.SignDoc={encode:(l,N=t.Writer.create())=>(l.body_bytes.length!==0&&N.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&N.uint32(18).bytes(l.auth_info_bytes),l.chain_id!==""&&N.uint32(26).string(l.chain_id),l.account_number!=="0"&&N.uint32(32).uint64(l.account_number),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I=o();for(;j.pos>>3){case 1:I.body_bytes=j.bytes();break;case 2:I.auth_info_bytes=j.bytes();break;case 3:I.chain_id=j.string();break;case 4:I.account_number=m(j.uint64());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({body_bytes:M(l.body_bytes)?c(l.body_bytes):new Uint8Array,auth_info_bytes:M(l.auth_info_bytes)?c(l.auth_info_bytes):new Uint8Array,chain_id:M(l.chain_id)?String(l.chain_id):"",account_number:M(l.account_number)?String(l.account_number):"0"}),toJSON(l){const N={};return l.body_bytes!==void 0&&(N.body_bytes=p(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(N.auth_info_bytes=p(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.chain_id!==void 0&&(N.chain_id=l.chain_id),l.account_number!==void 0&&(N.account_number=l.account_number),N},fromPartial(l){var N,j,R,I;const x=o();return x.body_bytes=(N=l.body_bytes)!==null&&N!==void 0?N:new Uint8Array,x.auth_info_bytes=(j=l.auth_info_bytes)!==null&&j!==void 0?j:new Uint8Array,x.chain_id=(R=l.chain_id)!==null&&R!==void 0?R:"",x.account_number=(I=l.account_number)!==null&&I!==void 0?I:"0",x}},e.TxBody={encode(l,N=t.Writer.create()){for(const j of l.messages)u.Any.encode(j,N.uint32(10).fork()).ldelim();l.memo!==""&&N.uint32(18).string(l.memo),l.timeout_height!=="0"&&N.uint32(24).uint64(l.timeout_height);for(const j of l.extension_options)u.Any.encode(j,N.uint32(8186).fork()).ldelim();for(const j of l.non_critical_extension_options)u.Any.encode(j,N.uint32(16378).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};for(;j.pos>>3){case 1:I.messages.push(u.Any.decode(j,j.uint32()));break;case 2:I.memo=j.string();break;case 3:I.timeout_height=m(j.uint64());break;case 1023:I.extension_options.push(u.Any.decode(j,j.uint32()));break;case 2047:I.non_critical_extension_options.push(u.Any.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({messages:Array.isArray(l==null?void 0:l.messages)?l.messages.map(N=>u.Any.fromJSON(N)):[],memo:M(l.memo)?String(l.memo):"",timeout_height:M(l.timeout_height)?String(l.timeout_height):"0",extension_options:Array.isArray(l==null?void 0:l.extension_options)?l.extension_options.map(N=>u.Any.fromJSON(N)):[],non_critical_extension_options:Array.isArray(l==null?void 0:l.non_critical_extension_options)?l.non_critical_extension_options.map(N=>u.Any.fromJSON(N)):[]}),toJSON(l){const N={};return l.messages?N.messages=l.messages.map(j=>j?u.Any.toJSON(j):void 0):N.messages=[],l.memo!==void 0&&(N.memo=l.memo),l.timeout_height!==void 0&&(N.timeout_height=l.timeout_height),l.extension_options?N.extension_options=l.extension_options.map(j=>j?u.Any.toJSON(j):void 0):N.extension_options=[],l.non_critical_extension_options?N.non_critical_extension_options=l.non_critical_extension_options.map(j=>j?u.Any.toJSON(j):void 0):N.non_critical_extension_options=[],N},fromPartial(l){var N,j,R,I,x;const P={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};return P.messages=((N=l.messages)===null||N===void 0?void 0:N.map(w=>u.Any.fromPartial(w)))||[],P.memo=(j=l.memo)!==null&&j!==void 0?j:"",P.timeout_height=(R=l.timeout_height)!==null&&R!==void 0?R:"0",P.extension_options=((I=l.extension_options)===null||I===void 0?void 0:I.map(w=>u.Any.fromPartial(w)))||[],P.non_critical_extension_options=((x=l.non_critical_extension_options)===null||x===void 0?void 0:x.map(w=>u.Any.fromPartial(w)))||[],P}},e.AuthInfo={encode(l,N=t.Writer.create()){for(const j of l.signer_infos)e.SignerInfo.encode(j,N.uint32(10).fork()).ldelim();return l.fee!==void 0&&e.Fee.encode(l.fee,N.uint32(18).fork()).ldelim(),N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={signer_infos:[],fee:void 0};for(;j.pos>>3){case 1:I.signer_infos.push(e.SignerInfo.decode(j,j.uint32()));break;case 2:I.fee=e.Fee.decode(j,j.uint32());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({signer_infos:Array.isArray(l==null?void 0:l.signer_infos)?l.signer_infos.map(N=>e.SignerInfo.fromJSON(N)):[],fee:M(l.fee)?e.Fee.fromJSON(l.fee):void 0}),toJSON(l){const N={};return l.signer_infos?N.signer_infos=l.signer_infos.map(j=>j?e.SignerInfo.toJSON(j):void 0):N.signer_infos=[],l.fee!==void 0&&(N.fee=l.fee?e.Fee.toJSON(l.fee):void 0),N},fromPartial(l){var N;const j={signer_infos:[],fee:void 0};return j.signer_infos=((N=l.signer_infos)===null||N===void 0?void 0:N.map(R=>e.SignerInfo.fromPartial(R)))||[],j.fee=l.fee!==void 0&&l.fee!==null?e.Fee.fromPartial(l.fee):void 0,j}},e.SignerInfo={encode:(l,N=t.Writer.create())=>(l.public_key!==void 0&&u.Any.encode(l.public_key,N.uint32(10).fork()).ldelim(),l.mode_info!==void 0&&e.ModeInfo.encode(l.mode_info,N.uint32(18).fork()).ldelim(),l.sequence!=="0"&&N.uint32(24).uint64(l.sequence),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={public_key:void 0,mode_info:void 0,sequence:"0"};for(;j.pos>>3){case 1:I.public_key=u.Any.decode(j,j.uint32());break;case 2:I.mode_info=e.ModeInfo.decode(j,j.uint32());break;case 3:I.sequence=m(j.uint64());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({public_key:M(l.public_key)?u.Any.fromJSON(l.public_key):void 0,mode_info:M(l.mode_info)?e.ModeInfo.fromJSON(l.mode_info):void 0,sequence:M(l.sequence)?String(l.sequence):"0"}),toJSON(l){const N={};return l.public_key!==void 0&&(N.public_key=l.public_key?u.Any.toJSON(l.public_key):void 0),l.mode_info!==void 0&&(N.mode_info=l.mode_info?e.ModeInfo.toJSON(l.mode_info):void 0),l.sequence!==void 0&&(N.sequence=l.sequence),N},fromPartial(l){var N;const j={public_key:void 0,mode_info:void 0,sequence:"0"};return j.public_key=l.public_key!==void 0&&l.public_key!==null?u.Any.fromPartial(l.public_key):void 0,j.mode_info=l.mode_info!==void 0&&l.mode_info!==null?e.ModeInfo.fromPartial(l.mode_info):void 0,j.sequence=(N=l.sequence)!==null&&N!==void 0?N:"0",j}},e.ModeInfo={encode:(l,N=t.Writer.create())=>(l.single!==void 0&&e.ModeInfo_Single.encode(l.single,N.uint32(10).fork()).ldelim(),l.multi!==void 0&&e.ModeInfo_Multi.encode(l.multi,N.uint32(18).fork()).ldelim(),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={single:void 0,multi:void 0};for(;j.pos>>3){case 1:I.single=e.ModeInfo_Single.decode(j,j.uint32());break;case 2:I.multi=e.ModeInfo_Multi.decode(j,j.uint32());break;default:j.skipType(7&x)}}return I},fromJSON:l=>({single:M(l.single)?e.ModeInfo_Single.fromJSON(l.single):void 0,multi:M(l.multi)?e.ModeInfo_Multi.fromJSON(l.multi):void 0}),toJSON(l){const N={};return l.single!==void 0&&(N.single=l.single?e.ModeInfo_Single.toJSON(l.single):void 0),l.multi!==void 0&&(N.multi=l.multi?e.ModeInfo_Multi.toJSON(l.multi):void 0),N},fromPartial(l){const N={single:void 0,multi:void 0};return N.single=l.single!==void 0&&l.single!==null?e.ModeInfo_Single.fromPartial(l.single):void 0,N.multi=l.multi!==void 0&&l.multi!==null?e.ModeInfo_Multi.fromPartial(l.multi):void 0,N}},e.ModeInfo_Single={encode:(l,N=t.Writer.create())=>(l.mode!==0&&N.uint32(8).int32(l.mode),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={mode:0};for(;j.pos>>3==1?I.mode=j.int32():j.skipType(7&x)}return I},fromJSON:l=>({mode:M(l.mode)?(0,d.signModeFromJSON)(l.mode):0}),toJSON(l){const N={};return l.mode!==void 0&&(N.mode=(0,d.signModeToJSON)(l.mode)),N},fromPartial(l){var N;const j={mode:0};return j.mode=(N=l.mode)!==null&&N!==void 0?N:0,j}},e.ModeInfo_Multi={encode(l,N=t.Writer.create()){l.bitarray!==void 0&&s.CompactBitArray.encode(l.bitarray,N.uint32(10).fork()).ldelim();for(const j of l.mode_infos)e.ModeInfo.encode(j,N.uint32(18).fork()).ldelim();return N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={bitarray:void 0,mode_infos:[]};for(;j.pos>>3){case 1:I.bitarray=s.CompactBitArray.decode(j,j.uint32());break;case 2:I.mode_infos.push(e.ModeInfo.decode(j,j.uint32()));break;default:j.skipType(7&x)}}return I},fromJSON:l=>({bitarray:M(l.bitarray)?s.CompactBitArray.fromJSON(l.bitarray):void 0,mode_infos:Array.isArray(l==null?void 0:l.mode_infos)?l.mode_infos.map(N=>e.ModeInfo.fromJSON(N)):[]}),toJSON(l){const N={};return l.bitarray!==void 0&&(N.bitarray=l.bitarray?s.CompactBitArray.toJSON(l.bitarray):void 0),l.mode_infos?N.mode_infos=l.mode_infos.map(j=>j?e.ModeInfo.toJSON(j):void 0):N.mode_infos=[],N},fromPartial(l){var N;const j={bitarray:void 0,mode_infos:[]};return j.bitarray=l.bitarray!==void 0&&l.bitarray!==null?s.CompactBitArray.fromPartial(l.bitarray):void 0,j.mode_infos=((N=l.mode_infos)===null||N===void 0?void 0:N.map(R=>e.ModeInfo.fromPartial(R)))||[],j}},e.Fee={encode(l,N=t.Writer.create()){for(const j of l.amount)r.Coin.encode(j,N.uint32(10).fork()).ldelim();return l.gas_limit!=="0"&&N.uint32(16).uint64(l.gas_limit),l.payer!==""&&N.uint32(26).string(l.payer),l.granter!==""&&N.uint32(34).string(l.granter),N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={amount:[],gas_limit:"0",payer:"",granter:""};for(;j.pos>>3){case 1:I.amount.push(r.Coin.decode(j,j.uint32()));break;case 2:I.gas_limit=m(j.uint64());break;case 3:I.payer=j.string();break;case 4:I.granter=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({amount:Array.isArray(l==null?void 0:l.amount)?l.amount.map(N=>r.Coin.fromJSON(N)):[],gas_limit:M(l.gas_limit)?String(l.gas_limit):"0",payer:M(l.payer)?String(l.payer):"",granter:M(l.granter)?String(l.granter):""}),toJSON(l){const N={};return l.amount?N.amount=l.amount.map(j=>j?r.Coin.toJSON(j):void 0):N.amount=[],l.gas_limit!==void 0&&(N.gas_limit=l.gas_limit),l.payer!==void 0&&(N.payer=l.payer),l.granter!==void 0&&(N.granter=l.granter),N},fromPartial(l){var N,j,R,I;const x={amount:[],gas_limit:"0",payer:"",granter:""};return x.amount=((N=l.amount)===null||N===void 0?void 0:N.map(P=>r.Coin.fromPartial(P)))||[],x.gas_limit=(j=l.gas_limit)!==null&&j!==void 0?j:"0",x.payer=(R=l.payer)!==null&&R!==void 0?R:"",x.granter=(I=l.granter)!==null&&I!==void 0?I:"",x}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function c(l){const N=f(l),j=new Uint8Array(N.length);for(let R=0;Ri.Buffer.from(l,"binary").toString("base64"));function p(l){const N=[];for(const j of l)N.push(String.fromCharCode(j));return h(N.join(""))}function m(l){return l.toString()}function M(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8310:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(o,i,f,c){c===void 0&&(c=f),Object.defineProperty(o,c,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,c){c===void 0&&(c=f),o[c]=i[f]}),A=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&O(i,o,f);return A(i,o),i},b=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModuleVersion=e.CancelSoftwareUpgradeProposal=e.SoftwareUpgradeProposal=e.Plan=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5090),d=_(4191);function s(o){return{seconds:Math.trunc(o.getTime()/1e3).toString(),nanos:o.getTime()%1e3*1e6}}function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.upgrade.v1beta1",e.Plan={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.time!==void 0&&u.Timestamp.encode(o.time,i.uint32(18).fork()).ldelim(),o.height!=="0"&&i.uint32(24).int64(o.height),o.info!==""&&i.uint32(34).string(o.info),o.upgraded_client_state!==void 0&&d.Any.encode(o.upgraded_client_state,i.uint32(42).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};for(;f.pos>>3){case 1:h.name=f.string();break;case 2:h.time=u.Timestamp.decode(f,f.uint32());break;case 3:h.height=r(f.int64());break;case 4:h.info=f.string();break;case 5:h.upgraded_client_state=d.Any.decode(f,f.uint32());break;default:f.skipType(7&p)}}return h},fromJSON:o=>{return{name:n(o.name)?String(o.name):"",time:n(o.time)?(i=o.time,i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):u.Timestamp.fromJSON(i)):void 0,height:n(o.height)?String(o.height):"0",info:n(o.info)?String(o.info):"",upgraded_client_state:n(o.upgraded_client_state)?d.Any.fromJSON(o.upgraded_client_state):void 0};var i},toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.time!==void 0&&(i.time=function(f){let c=1e3*Number(f.seconds);return c+=f.nanos/1e6,new Date(c)}(o.time).toISOString()),o.height!==void 0&&(i.height=o.height),o.info!==void 0&&(i.info=o.info),o.upgraded_client_state!==void 0&&(i.upgraded_client_state=o.upgraded_client_state?d.Any.toJSON(o.upgraded_client_state):void 0),i},fromPartial(o){var i,f,c;const h={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};return h.name=(i=o.name)!==null&&i!==void 0?i:"",h.time=o.time!==void 0&&o.time!==null?u.Timestamp.fromPartial(o.time):void 0,h.height=(f=o.height)!==null&&f!==void 0?f:"0",h.info=(c=o.info)!==null&&c!==void 0?c:"",h.upgraded_client_state=o.upgraded_client_state!==void 0&&o.upgraded_client_state!==null?d.Any.fromPartial(o.upgraded_client_state):void 0,h}},e.SoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),o.plan!==void 0&&e.Plan.encode(o.plan,i.uint32(26).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={title:"",description:"",plan:void 0};for(;f.pos>>3){case 1:h.title=f.string();break;case 2:h.description=f.string();break;case 3:h.plan=e.Plan.decode(f,f.uint32());break;default:f.skipType(7&p)}}return h},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):"",plan:n(o.plan)?e.Plan.fromJSON(o.plan):void 0}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),o.plan!==void 0&&(i.plan=o.plan?e.Plan.toJSON(o.plan):void 0),i},fromPartial(o){var i,f;const c={title:"",description:"",plan:void 0};return c.title=(i=o.title)!==null&&i!==void 0?i:"",c.description=(f=o.description)!==null&&f!==void 0?f:"",c.plan=o.plan!==void 0&&o.plan!==null?e.Plan.fromPartial(o.plan):void 0,c}},e.CancelSoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={title:"",description:""};for(;f.pos>>3){case 1:h.title=f.string();break;case 2:h.description=f.string();break;default:f.skipType(7&p)}}return h},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):""}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),i},fromPartial(o){var i,f;const c={title:"",description:""};return c.title=(i=o.title)!==null&&i!==void 0?i:"",c.description=(f=o.description)!==null&&f!==void 0?f:"",c}},e.ModuleVersion={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.version!=="0"&&i.uint32(16).uint64(o.version),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let c=i===void 0?f.len:f.pos+i;const h={name:"",version:"0"};for(;f.pos>>3){case 1:h.name=f.string();break;case 2:h.version=r(f.uint64());break;default:f.skipType(7&p)}}return h},fromJSON:o=>({name:n(o.name)?String(o.name):"",version:n(o.version)?String(o.version):"0"}),toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.version!==void 0&&(i.version=o.version),i},fromPartial(o){var i,f;const c={name:"",version:"0"};return c.name=(i=o.name)!==null&&i!==void 0?i:"",c.version=(f=o.version)!==null&&f!==void 0?f:"0",c}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8644:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgCreateVestingAccountResponse=e.MsgCreateVestingAccount=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);function d(s){return s!=null}e.protobufPackage="cosmos.vesting.v1beta1",e.MsgCreateVestingAccount={encode(s,r=t.Writer.create()){s.from_address!==""&&r.uint32(10).string(s.from_address),s.to_address!==""&&r.uint32(18).string(s.to_address);for(const n of s.amount)u.Coin.encode(n,r.uint32(26).fork()).ldelim();return s.end_time!=="0"&&r.uint32(32).int64(s.end_time),s.delayed===!0&&r.uint32(40).bool(s.delayed),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};for(;n.pos>>3){case 1:i.from_address=n.string();break;case 2:i.to_address=n.string();break;case 3:i.amount.push(u.Coin.decode(n,n.uint32()));break;case 4:i.end_time=n.int64().toString();break;case 5:i.delayed=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({from_address:d(s.from_address)?String(s.from_address):"",to_address:d(s.to_address)?String(s.to_address):"",amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>u.Coin.fromJSON(r)):[],end_time:d(s.end_time)?String(s.end_time):"0",delayed:!!d(s.delayed)&&!!s.delayed}),toJSON(s){const r={};return s.from_address!==void 0&&(r.from_address=s.from_address),s.to_address!==void 0&&(r.to_address=s.to_address),s.amount?r.amount=s.amount.map(n=>n?u.Coin.toJSON(n):void 0):r.amount=[],s.end_time!==void 0&&(r.end_time=s.end_time),s.delayed!==void 0&&(r.delayed=s.delayed),r},fromPartial(s){var r,n,o,i,f;const c={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};return c.from_address=(r=s.from_address)!==null&&r!==void 0?r:"",c.to_address=(n=s.to_address)!==null&&n!==void 0?n:"",c.amount=((o=s.amount)===null||o===void 0?void 0:o.map(h=>u.Coin.fromPartial(h)))||[],c.end_time=(i=s.end_time)!==null&&i!==void 0?i:"0",c.delayed=(f=s.delayed)!==null&&f!==void 0&&f,c}},e.MsgCreateVestingAccountResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.CreateVestingAccount=this.CreateVestingAccount.bind(this)}CreateVestingAccount(s){const r=e.MsgCreateVestingAccount.encode(s).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",r).then(n=>e.MsgCreateVestingAccountResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4191:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(i,f,c,h){h===void 0&&(h=c),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[c]}})}:function(i,f,c,h){h===void 0&&(h=c),i[h]=f[c]}),A=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&O(f,i,c);return A(f,i),f},b=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Any=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{type_url:"",value:new Uint8Array}}e.protobufPackage="google.protobuf",e.Any={encode:(i,f=t.Writer.create())=>(i.type_url!==""&&f.uint32(10).string(i.type_url),i.value.length!==0&&f.uint32(18).bytes(i.value),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p=u();for(;c.pos>>3){case 1:p.type_url=c.string();break;case 2:p.value=c.bytes();break;default:c.skipType(7&m)}}return p},fromJSON:i=>({type_url:o(i.type_url)?String(i.type_url):"",value:o(i.value)?r(i.value):new Uint8Array}),toJSON(i){const f={};return i.type_url!==void 0&&(f.type_url=i.type_url),i.value!==void 0&&(f.value=function(c){const h=[];for(const p of c)h.push(String.fromCharCode(p));return n(h.join(""))}(i.value!==void 0?i.value:new Uint8Array)),f},fromPartial(i){var f,c;const h=u();return h.type_url=(f=i.type_url)!==null&&f!==void 0?f:"",h.value=(c=i.value)!==null&&c!==void 0?c:new Uint8Array,h}};var d=(()=>{if(d!==void 0)return d;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const s=d.atob||(i=>d.Buffer.from(i,"base64").toString("binary"));function r(i){const f=s(i),c=new Uint8Array(f.length);for(let h=0;hd.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6138:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Duration=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(d){return d!=null}e.protobufPackage="google.protobuf",e.Duration={encode:(d,s=t.Writer.create())=>(d.seconds!=="0"&&s.uint32(8).int64(d.seconds),d.nanos!==0&&s.uint32(16).int32(d.nanos),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({seconds:u(d.seconds)?String(d.seconds):"0",nanos:u(d.nanos)?Number(d.nanos):0}),toJSON(d){const s={};return d.seconds!==void 0&&(s.seconds=d.seconds),d.nanos!==void 0&&(s.nanos=Math.round(d.nanos)),s},fromPartial(d){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=d.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=d.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5090:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(d,s,r,n){n===void 0&&(n=r),Object.defineProperty(d,n,{enumerable:!0,get:function(){return s[r]}})}:function(d,s,r,n){n===void 0&&(n=r),d[n]=s[r]}),A=this&&this.__setModuleDefault||(Object.create?function(d,s){Object.defineProperty(d,"default",{enumerable:!0,value:s})}:function(d,s){d.default=s}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var s={};if(d!=null)for(var r in d)r!=="default"&&Object.prototype.hasOwnProperty.call(d,r)&&O(s,d,r);return A(s,d),s},b=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(d){return d!=null}e.protobufPackage="google.protobuf",e.Timestamp={encode:(d,s=t.Writer.create())=>(d.seconds!=="0"&&s.uint32(8).int64(d.seconds),d.nanos!==0&&s.uint32(16).int32(d.nanos),s),decode(d,s){const r=d instanceof t.Reader?d:new t.Reader(d);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:d=>({seconds:u(d.seconds)?String(d.seconds):"0",nanos:u(d.nanos)?Number(d.nanos):0}),toJSON(d){const s={};return d.seconds!==void 0&&(s.seconds=d.seconds),d.nanos!==void 0&&(s.nanos=Math.round(d.nanos)),s},fromPartial(d){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=d.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=d.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1106:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),A=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&O(n,r,o);return A(n,r),n},b=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.IdentifiedPacketFees=e.PacketFees=e.PacketFee=e.Fee=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5414),d=_(2976);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.Fee={encode(r,n=t.Writer.create()){for(const o of r.recv_fee)d.Coin.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.ack_fee)d.Coin.encode(o,n.uint32(18).fork()).ldelim();for(const o of r.timeout_fee)d.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};for(;o.pos>>3){case 1:f.recv_fee.push(d.Coin.decode(o,o.uint32()));break;case 2:f.ack_fee.push(d.Coin.decode(o,o.uint32()));break;case 3:f.timeout_fee.push(d.Coin.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({recv_fee:Array.isArray(r==null?void 0:r.recv_fee)?r.recv_fee.map(n=>d.Coin.fromJSON(n)):[],ack_fee:Array.isArray(r==null?void 0:r.ack_fee)?r.ack_fee.map(n=>d.Coin.fromJSON(n)):[],timeout_fee:Array.isArray(r==null?void 0:r.timeout_fee)?r.timeout_fee.map(n=>d.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.recv_fee?n.recv_fee=r.recv_fee.map(o=>o?d.Coin.toJSON(o):void 0):n.recv_fee=[],r.ack_fee?n.ack_fee=r.ack_fee.map(o=>o?d.Coin.toJSON(o):void 0):n.ack_fee=[],r.timeout_fee?n.timeout_fee=r.timeout_fee.map(o=>o?d.Coin.toJSON(o):void 0):n.timeout_fee=[],n},fromPartial(r){var n,o,i;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};return f.recv_fee=((n=r.recv_fee)===null||n===void 0?void 0:n.map(c=>d.Coin.fromPartial(c)))||[],f.ack_fee=((o=r.ack_fee)===null||o===void 0?void 0:o.map(c=>d.Coin.fromPartial(c)))||[],f.timeout_fee=((i=r.timeout_fee)===null||i===void 0?void 0:i.map(c=>d.Coin.fromPartial(c)))||[],f}},e.PacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&e.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.refund_address!==""&&n.uint32(18).string(r.refund_address);for(const o of r.relayers)n.uint32(26).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,refund_address:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=e.Fee.decode(o,o.uint32());break;case 2:f.refund_address=o.string();break;case 3:f.relayers.push(o.string());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({fee:s(r.fee)?e.Fee.fromJSON(r.fee):void 0,refund_address:s(r.refund_address)?String(r.refund_address):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?e.Fee.toJSON(r.fee):void 0),r.refund_address!==void 0&&(n.refund_address=r.refund_address),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o;const i={fee:void 0,refund_address:"",relayers:[]};return i.fee=r.fee!==void 0&&r.fee!==null?e.Fee.fromPartial(r.fee):void 0,i.refund_address=(n=r.refund_address)!==null&&n!==void 0?n:"",i.relayers=((o=r.relayers)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.PacketFees={encode(r,n=t.Writer.create()){for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_fees:[]};for(;o.pos>>3==1?f.packet_fees.push(e.PacketFee.decode(o,o.uint32())):o.skipType(7&c)}return f},fromJSON:r=>({packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_fees:[]};return o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},e.IdentifiedPacketFees={encode(r,n=t.Writer.create()){r.packet_id!==void 0&&u.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim();for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fees:[]};for(;o.pos>>3){case 1:f.packet_id=u.PacketId.decode(o,o.uint32());break;case 2:f.packet_fees.push(e.PacketFee.decode(o,o.uint32()));break;default:o.skipType(7&c)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?u.PacketId.fromJSON(r.packet_id):void 0,packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?u.PacketId.toJSON(r.packet_id):void 0),r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_id:void 0,packet_fees:[]};return o.packet_id=r.packet_id!==void 0&&r.packet_id!==null?u.PacketId.fromPartial(r.packet_id):void 0,o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6065:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),A=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&O(n,r,o);return A(n,r),n},b=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgPayPacketFeeAsyncResponse=e.MsgPayPacketFeeAsync=e.MsgPayPacketFeeResponse=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayeeResponse=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayeeResponse=e.MsgRegisterPayee=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(1106),d=_(5414);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.MsgRegisterPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.payee!==""&&n.uint32(34).string(r.payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.payee=o.string();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",payee:s(r.payee)?String(r.payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.payee!==void 0&&(n.payee=r.payee),n},fromPartial(r){var n,o,i,f;const c={port_id:"",channel_id:"",relayer:"",payee:""};return c.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",c.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",c.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",c.payee=(f=r.payee)!==null&&f!==void 0?f:"",c}},e.MsgRegisterPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgRegisterCounterpartyPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.counterparty_payee!==""&&n.uint32(34).string(r.counterparty_payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.counterparty_payee=o.string();break;default:o.skipType(7&c)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",counterparty_payee:s(r.counterparty_payee)?String(r.counterparty_payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.counterparty_payee!==void 0&&(n.counterparty_payee=r.counterparty_payee),n},fromPartial(r){var n,o,i,f;const c={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};return c.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",c.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",c.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",c.counterparty_payee=(f=r.counterparty_payee)!==null&&f!==void 0?f:"",c}},e.MsgRegisterCounterpartyPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&u.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.source_port_id!==""&&n.uint32(18).string(r.source_port_id),r.source_channel_id!==""&&n.uint32(26).string(r.source_channel_id),r.signer!==""&&n.uint32(34).string(r.signer);for(const o of r.relayers)n.uint32(42).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=u.Fee.decode(o,o.uint32());break;case 2:f.source_port_id=o.string();break;case 3:f.source_channel_id=o.string();break;case 4:f.signer=o.string();break;case 5:f.relayers.push(o.string());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({fee:s(r.fee)?u.Fee.fromJSON(r.fee):void 0,source_port_id:s(r.source_port_id)?String(r.source_port_id):"",source_channel_id:s(r.source_channel_id)?String(r.source_channel_id):"",signer:s(r.signer)?String(r.signer):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?u.Fee.toJSON(r.fee):void 0),r.source_port_id!==void 0&&(n.source_port_id=r.source_port_id),r.source_channel_id!==void 0&&(n.source_channel_id=r.source_channel_id),r.signer!==void 0&&(n.signer=r.signer),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o,i,f;const c={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};return c.fee=r.fee!==void 0&&r.fee!==null?u.Fee.fromPartial(r.fee):void 0,c.source_port_id=(n=r.source_port_id)!==null&&n!==void 0?n:"",c.source_channel_id=(o=r.source_channel_id)!==null&&o!==void 0?o:"",c.signer=(i=r.signer)!==null&&i!==void 0?i:"",c.relayers=((f=r.relayers)===null||f===void 0?void 0:f.map(h=>h))||[],c}},e.MsgPayPacketFeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFeeAsync={encode:(r,n=t.Writer.create())=>(r.packet_id!==void 0&&d.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim(),r.packet_fee!==void 0&&u.PacketFee.encode(r.packet_fee,n.uint32(18).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fee:void 0};for(;o.pos>>3){case 1:f.packet_id=d.PacketId.decode(o,o.uint32());break;case 2:f.packet_fee=u.PacketFee.decode(o,o.uint32());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?d.PacketId.fromJSON(r.packet_id):void 0,packet_fee:s(r.packet_fee)?u.PacketFee.fromJSON(r.packet_fee):void 0}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?d.PacketId.toJSON(r.packet_id):void 0),r.packet_fee!==void 0&&(n.packet_fee=r.packet_fee?u.PacketFee.toJSON(r.packet_fee):void 0),n},fromPartial(r){const n={packet_id:void 0,packet_fee:void 0};return n.packet_id=r.packet_id!==void 0&&r.packet_id!==null?d.PacketId.fromPartial(r.packet_id):void 0,n.packet_fee=r.packet_fee!==void 0&&r.packet_fee!==null?u.PacketFee.fromPartial(r.packet_fee):void 0,n}},e.MsgPayPacketFeeAsyncResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.RegisterPayee=this.RegisterPayee.bind(this),this.RegisterCounterpartyPayee=this.RegisterCounterpartyPayee.bind(this),this.PayPacketFee=this.PayPacketFee.bind(this),this.PayPacketFeeAsync=this.PayPacketFeeAsync.bind(this)}RegisterPayee(r){const n=e.MsgRegisterPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterPayee",n).then(o=>e.MsgRegisterPayeeResponse.decode(new t.Reader(o)))}RegisterCounterpartyPayee(r){const n=e.MsgRegisterCounterpartyPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterCounterpartyPayee",n).then(o=>e.MsgRegisterCounterpartyPayeeResponse.decode(new t.Reader(o)))}PayPacketFee(r){const n=e.MsgPayPacketFee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFee",n).then(o=>e.MsgPayPacketFeeResponse.decode(new t.Reader(o)))}PayPacketFeeAsync(r){const n=e.MsgPayPacketFeeAsync.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFeeAsync",n).then(o=>e.MsgPayPacketFeeAsyncResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},865:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),A=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&O(o,n,i);return A(o,n),o},b=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgTransferResponse=e.MsgTransfer=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976),d=_(5650);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.applications.transfer.v1",e.MsgTransfer={encode:(n,o=t.Writer.create())=>(n.source_port!==""&&o.uint32(10).string(n.source_port),n.source_channel!==""&&o.uint32(18).string(n.source_channel),n.token!==void 0&&u.Coin.encode(n.token,o.uint32(26).fork()).ldelim(),n.sender!==""&&o.uint32(34).string(n.sender),n.receiver!==""&&o.uint32(42).string(n.receiver),n.timeout_height!==void 0&&d.Height.encode(n.timeout_height,o.uint32(50).fork()).ldelim(),n.timeout_timestamp!=="0"&&o.uint32(56).uint64(n.timeout_timestamp),n.memo!==""&&o.uint32(66).string(n.memo),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};for(;i.pos>>3){case 1:c.source_port=i.string();break;case 2:c.source_channel=i.string();break;case 3:c.token=u.Coin.decode(i,i.uint32());break;case 4:c.sender=i.string();break;case 5:c.receiver=i.string();break;case 6:c.timeout_height=d.Height.decode(i,i.uint32());break;case 7:c.timeout_timestamp=s(i.uint64());break;case 8:c.memo=i.string();break;default:i.skipType(7&h)}}return c},fromJSON:n=>({source_port:r(n.source_port)?String(n.source_port):"",source_channel:r(n.source_channel)?String(n.source_channel):"",token:r(n.token)?u.Coin.fromJSON(n.token):void 0,sender:r(n.sender)?String(n.sender):"",receiver:r(n.receiver)?String(n.receiver):"",timeout_height:r(n.timeout_height)?d.Height.fromJSON(n.timeout_height):void 0,timeout_timestamp:r(n.timeout_timestamp)?String(n.timeout_timestamp):"0",memo:r(n.memo)?String(n.memo):""}),toJSON(n){const o={};return n.source_port!==void 0&&(o.source_port=n.source_port),n.source_channel!==void 0&&(o.source_channel=n.source_channel),n.token!==void 0&&(o.token=n.token?u.Coin.toJSON(n.token):void 0),n.sender!==void 0&&(o.sender=n.sender),n.receiver!==void 0&&(o.receiver=n.receiver),n.timeout_height!==void 0&&(o.timeout_height=n.timeout_height?d.Height.toJSON(n.timeout_height):void 0),n.timeout_timestamp!==void 0&&(o.timeout_timestamp=n.timeout_timestamp),n.memo!==void 0&&(o.memo=n.memo),o},fromPartial(n){var o,i,f,c,h,p;const m={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};return m.source_port=(o=n.source_port)!==null&&o!==void 0?o:"",m.source_channel=(i=n.source_channel)!==null&&i!==void 0?i:"",m.token=n.token!==void 0&&n.token!==null?u.Coin.fromPartial(n.token):void 0,m.sender=(f=n.sender)!==null&&f!==void 0?f:"",m.receiver=(c=n.receiver)!==null&&c!==void 0?c:"",m.timeout_height=n.timeout_height!==void 0&&n.timeout_height!==null?d.Height.fromPartial(n.timeout_height):void 0,m.timeout_timestamp=(h=n.timeout_timestamp)!==null&&h!==void 0?h:"0",m.memo=(p=n.memo)!==null&&p!==void 0?p:"",m}},e.MsgTransferResponse={encode:(n,o=t.Writer.create())=>(n.sequence!=="0"&&o.uint32(8).uint64(n.sequence),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={sequence:"0"};for(;i.pos>>3==1?c.sequence=s(i.uint64()):i.skipType(7&h)}return c},fromJSON:n=>({sequence:r(n.sequence)?String(n.sequence):"0"}),toJSON(n){const o={};return n.sequence!==void 0&&(o.sequence=n.sequence),o},fromPartial(n){var o;const i={sequence:"0"};return i.sequence=(o=n.sequence)!==null&&o!==void 0?o:"0",i}},e.MsgClientImpl=class{constructor(n){this.rpc=n,this.Transfer=this.Transfer.bind(this)}Transfer(n){const o=e.MsgTransfer.encode(n).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",o).then(i=>e.MsgTransferResponse.decode(new t.Reader(i)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5414:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(R,I,x,P){P===void 0&&(P=x),Object.defineProperty(R,P,{enumerable:!0,get:function(){return I[x]}})}:function(R,I,x,P){P===void 0&&(P=x),R[P]=I[x]}),A=this&&this.__setModuleDefault||(Object.create?function(R,I){Object.defineProperty(R,"default",{enumerable:!0,value:I})}:function(R,I){R.default=I}),k=this&&this.__importStar||function(R){if(R&&R.__esModule)return R;var I={};if(R!=null)for(var x in R)x!=="default"&&Object.prototype.hasOwnProperty.call(R,x)&&O(I,R,x);return A(I,R),I},b=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.Acknowledgement=e.PacketId=e.PacketState=e.Packet=e.Counterparty=e.IdentifiedChannel=e.Channel=e.orderToJSON=e.orderFromJSON=e.Order=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5650);var d,s;function r(R){switch(R){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return d.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return d.STATE_INIT;case 2:case"STATE_TRYOPEN":return d.STATE_TRYOPEN;case 3:case"STATE_OPEN":return d.STATE_OPEN;case 4:case"STATE_CLOSED":return d.STATE_CLOSED;default:return d.UNRECOGNIZED}}function n(R){switch(R){case d.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case d.STATE_INIT:return"STATE_INIT";case d.STATE_TRYOPEN:return"STATE_TRYOPEN";case d.STATE_OPEN:return"STATE_OPEN";case d.STATE_CLOSED:return"STATE_CLOSED";default:return"UNKNOWN"}}function o(R){switch(R){case 0:case"ORDER_NONE_UNSPECIFIED":return s.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return s.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return s.ORDER_ORDERED;default:return s.UNRECOGNIZED}}function i(R){switch(R){case s.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case s.ORDER_UNORDERED:return"ORDER_UNORDERED";case s.ORDER_ORDERED:return"ORDER_ORDERED";default:return"UNKNOWN"}}function f(){return{sequence:"0",source_port:"",source_channel:"",destination_port:"",destination_channel:"",data:new Uint8Array,timeout_height:void 0,timeout_timestamp:"0"}}function c(){return{port_id:"",channel_id:"",sequence:"0",data:new Uint8Array}}e.protobufPackage="ibc.core.channel.v1",function(R){R[R.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",R[R.STATE_INIT=1]="STATE_INIT",R[R.STATE_TRYOPEN=2]="STATE_TRYOPEN",R[R.STATE_OPEN=3]="STATE_OPEN",R[R.STATE_CLOSED=4]="STATE_CLOSED",R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.State||(e.State={})),e.stateFromJSON=r,e.stateToJSON=n,function(R){R[R.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",R[R.ORDER_UNORDERED=1]="ORDER_UNORDERED",R[R.ORDER_ORDERED=2]="ORDER_ORDERED",R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.Order||(e.Order={})),e.orderFromJSON=o,e.orderToJSON=i,e.Channel={encode(R,I=t.Writer.create()){R.state!==0&&I.uint32(8).int32(R.state),R.ordering!==0&&I.uint32(16).int32(R.ordering),R.counterparty!==void 0&&e.Counterparty.encode(R.counterparty,I.uint32(26).fork()).ldelim();for(const x of R.connection_hops)I.uint32(34).string(x);return R.version!==""&&I.uint32(42).string(R.version),I},decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};for(;x.pos>>3){case 1:w.state=x.int32();break;case 2:w.ordering=x.int32();break;case 3:w.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:w.connection_hops.push(x.string());break;case 5:w.version=x.string();break;default:x.skipType(7&g)}}return w},fromJSON:R=>({state:j(R.state)?r(R.state):0,ordering:j(R.ordering)?o(R.ordering):0,counterparty:j(R.counterparty)?e.Counterparty.fromJSON(R.counterparty):void 0,connection_hops:Array.isArray(R==null?void 0:R.connection_hops)?R.connection_hops.map(I=>String(I)):[],version:j(R.version)?String(R.version):""}),toJSON(R){const I={};return R.state!==void 0&&(I.state=n(R.state)),R.ordering!==void 0&&(I.ordering=i(R.ordering)),R.counterparty!==void 0&&(I.counterparty=R.counterparty?e.Counterparty.toJSON(R.counterparty):void 0),R.connection_hops?I.connection_hops=R.connection_hops.map(x=>x):I.connection_hops=[],R.version!==void 0&&(I.version=R.version),I},fromPartial(R){var I,x,P,w;const g={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};return g.state=(I=R.state)!==null&&I!==void 0?I:0,g.ordering=(x=R.ordering)!==null&&x!==void 0?x:0,g.counterparty=R.counterparty!==void 0&&R.counterparty!==null?e.Counterparty.fromPartial(R.counterparty):void 0,g.connection_hops=((P=R.connection_hops)===null||P===void 0?void 0:P.map(E=>E))||[],g.version=(w=R.version)!==null&&w!==void 0?w:"",g}},e.IdentifiedChannel={encode(R,I=t.Writer.create()){R.state!==0&&I.uint32(8).int32(R.state),R.ordering!==0&&I.uint32(16).int32(R.ordering),R.counterparty!==void 0&&e.Counterparty.encode(R.counterparty,I.uint32(26).fork()).ldelim();for(const x of R.connection_hops)I.uint32(34).string(x);return R.version!==""&&I.uint32(42).string(R.version),R.port_id!==""&&I.uint32(50).string(R.port_id),R.channel_id!==""&&I.uint32(58).string(R.channel_id),I},decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};for(;x.pos>>3){case 1:w.state=x.int32();break;case 2:w.ordering=x.int32();break;case 3:w.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:w.connection_hops.push(x.string());break;case 5:w.version=x.string();break;case 6:w.port_id=x.string();break;case 7:w.channel_id=x.string();break;default:x.skipType(7&g)}}return w},fromJSON:R=>({state:j(R.state)?r(R.state):0,ordering:j(R.ordering)?o(R.ordering):0,counterparty:j(R.counterparty)?e.Counterparty.fromJSON(R.counterparty):void 0,connection_hops:Array.isArray(R==null?void 0:R.connection_hops)?R.connection_hops.map(I=>String(I)):[],version:j(R.version)?String(R.version):"",port_id:j(R.port_id)?String(R.port_id):"",channel_id:j(R.channel_id)?String(R.channel_id):""}),toJSON(R){const I={};return R.state!==void 0&&(I.state=n(R.state)),R.ordering!==void 0&&(I.ordering=i(R.ordering)),R.counterparty!==void 0&&(I.counterparty=R.counterparty?e.Counterparty.toJSON(R.counterparty):void 0),R.connection_hops?I.connection_hops=R.connection_hops.map(x=>x):I.connection_hops=[],R.version!==void 0&&(I.version=R.version),R.port_id!==void 0&&(I.port_id=R.port_id),R.channel_id!==void 0&&(I.channel_id=R.channel_id),I},fromPartial(R){var I,x,P,w,g,E;const U={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};return U.state=(I=R.state)!==null&&I!==void 0?I:0,U.ordering=(x=R.ordering)!==null&&x!==void 0?x:0,U.counterparty=R.counterparty!==void 0&&R.counterparty!==null?e.Counterparty.fromPartial(R.counterparty):void 0,U.connection_hops=((P=R.connection_hops)===null||P===void 0?void 0:P.map(C=>C))||[],U.version=(w=R.version)!==null&&w!==void 0?w:"",U.port_id=(g=R.port_id)!==null&&g!==void 0?g:"",U.channel_id=(E=R.channel_id)!==null&&E!==void 0?E:"",U}},e.Counterparty={encode:(R,I=t.Writer.create())=>(R.port_id!==""&&I.uint32(10).string(R.port_id),R.channel_id!==""&&I.uint32(18).string(R.channel_id),I),decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w={port_id:"",channel_id:""};for(;x.pos>>3){case 1:w.port_id=x.string();break;case 2:w.channel_id=x.string();break;default:x.skipType(7&g)}}return w},fromJSON:R=>({port_id:j(R.port_id)?String(R.port_id):"",channel_id:j(R.channel_id)?String(R.channel_id):""}),toJSON(R){const I={};return R.port_id!==void 0&&(I.port_id=R.port_id),R.channel_id!==void 0&&(I.channel_id=R.channel_id),I},fromPartial(R){var I,x;const P={port_id:"",channel_id:""};return P.port_id=(I=R.port_id)!==null&&I!==void 0?I:"",P.channel_id=(x=R.channel_id)!==null&&x!==void 0?x:"",P}},e.Packet={encode:(R,I=t.Writer.create())=>(R.sequence!=="0"&&I.uint32(8).uint64(R.sequence),R.source_port!==""&&I.uint32(18).string(R.source_port),R.source_channel!==""&&I.uint32(26).string(R.source_channel),R.destination_port!==""&&I.uint32(34).string(R.destination_port),R.destination_channel!==""&&I.uint32(42).string(R.destination_channel),R.data.length!==0&&I.uint32(50).bytes(R.data),R.timeout_height!==void 0&&u.Height.encode(R.timeout_height,I.uint32(58).fork()).ldelim(),R.timeout_timestamp!=="0"&&I.uint32(64).uint64(R.timeout_timestamp),I),decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w=f();for(;x.pos>>3){case 1:w.sequence=N(x.uint64());break;case 2:w.source_port=x.string();break;case 3:w.source_channel=x.string();break;case 4:w.destination_port=x.string();break;case 5:w.destination_channel=x.string();break;case 6:w.data=x.bytes();break;case 7:w.timeout_height=u.Height.decode(x,x.uint32());break;case 8:w.timeout_timestamp=N(x.uint64());break;default:x.skipType(7&g)}}return w},fromJSON:R=>({sequence:j(R.sequence)?String(R.sequence):"0",source_port:j(R.source_port)?String(R.source_port):"",source_channel:j(R.source_channel)?String(R.source_channel):"",destination_port:j(R.destination_port)?String(R.destination_port):"",destination_channel:j(R.destination_channel)?String(R.destination_channel):"",data:j(R.data)?m(R.data):new Uint8Array,timeout_height:j(R.timeout_height)?u.Height.fromJSON(R.timeout_height):void 0,timeout_timestamp:j(R.timeout_timestamp)?String(R.timeout_timestamp):"0"}),toJSON(R){const I={};return R.sequence!==void 0&&(I.sequence=R.sequence),R.source_port!==void 0&&(I.source_port=R.source_port),R.source_channel!==void 0&&(I.source_channel=R.source_channel),R.destination_port!==void 0&&(I.destination_port=R.destination_port),R.destination_channel!==void 0&&(I.destination_channel=R.destination_channel),R.data!==void 0&&(I.data=l(R.data!==void 0?R.data:new Uint8Array)),R.timeout_height!==void 0&&(I.timeout_height=R.timeout_height?u.Height.toJSON(R.timeout_height):void 0),R.timeout_timestamp!==void 0&&(I.timeout_timestamp=R.timeout_timestamp),I},fromPartial(R){var I,x,P,w,g,E,U;const C=f();return C.sequence=(I=R.sequence)!==null&&I!==void 0?I:"0",C.source_port=(x=R.source_port)!==null&&x!==void 0?x:"",C.source_channel=(P=R.source_channel)!==null&&P!==void 0?P:"",C.destination_port=(w=R.destination_port)!==null&&w!==void 0?w:"",C.destination_channel=(g=R.destination_channel)!==null&&g!==void 0?g:"",C.data=(E=R.data)!==null&&E!==void 0?E:new Uint8Array,C.timeout_height=R.timeout_height!==void 0&&R.timeout_height!==null?u.Height.fromPartial(R.timeout_height):void 0,C.timeout_timestamp=(U=R.timeout_timestamp)!==null&&U!==void 0?U:"0",C}},e.PacketState={encode:(R,I=t.Writer.create())=>(R.port_id!==""&&I.uint32(10).string(R.port_id),R.channel_id!==""&&I.uint32(18).string(R.channel_id),R.sequence!=="0"&&I.uint32(24).uint64(R.sequence),R.data.length!==0&&I.uint32(34).bytes(R.data),I),decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w=c();for(;x.pos>>3){case 1:w.port_id=x.string();break;case 2:w.channel_id=x.string();break;case 3:w.sequence=N(x.uint64());break;case 4:w.data=x.bytes();break;default:x.skipType(7&g)}}return w},fromJSON:R=>({port_id:j(R.port_id)?String(R.port_id):"",channel_id:j(R.channel_id)?String(R.channel_id):"",sequence:j(R.sequence)?String(R.sequence):"0",data:j(R.data)?m(R.data):new Uint8Array}),toJSON(R){const I={};return R.port_id!==void 0&&(I.port_id=R.port_id),R.channel_id!==void 0&&(I.channel_id=R.channel_id),R.sequence!==void 0&&(I.sequence=R.sequence),R.data!==void 0&&(I.data=l(R.data!==void 0?R.data:new Uint8Array)),I},fromPartial(R){var I,x,P,w;const g=c();return g.port_id=(I=R.port_id)!==null&&I!==void 0?I:"",g.channel_id=(x=R.channel_id)!==null&&x!==void 0?x:"",g.sequence=(P=R.sequence)!==null&&P!==void 0?P:"0",g.data=(w=R.data)!==null&&w!==void 0?w:new Uint8Array,g}},e.PacketId={encode:(R,I=t.Writer.create())=>(R.port_id!==""&&I.uint32(10).string(R.port_id),R.channel_id!==""&&I.uint32(18).string(R.channel_id),R.sequence!=="0"&&I.uint32(24).uint64(R.sequence),I),decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w={port_id:"",channel_id:"",sequence:"0"};for(;x.pos>>3){case 1:w.port_id=x.string();break;case 2:w.channel_id=x.string();break;case 3:w.sequence=N(x.uint64());break;default:x.skipType(7&g)}}return w},fromJSON:R=>({port_id:j(R.port_id)?String(R.port_id):"",channel_id:j(R.channel_id)?String(R.channel_id):"",sequence:j(R.sequence)?String(R.sequence):"0"}),toJSON(R){const I={};return R.port_id!==void 0&&(I.port_id=R.port_id),R.channel_id!==void 0&&(I.channel_id=R.channel_id),R.sequence!==void 0&&(I.sequence=R.sequence),I},fromPartial(R){var I,x,P;const w={port_id:"",channel_id:"",sequence:"0"};return w.port_id=(I=R.port_id)!==null&&I!==void 0?I:"",w.channel_id=(x=R.channel_id)!==null&&x!==void 0?x:"",w.sequence=(P=R.sequence)!==null&&P!==void 0?P:"0",w}},e.Acknowledgement={encode:(R,I=t.Writer.create())=>(R.result!==void 0&&I.uint32(170).bytes(R.result),R.error!==void 0&&I.uint32(178).string(R.error),I),decode(R,I){const x=R instanceof t.Reader?R:new t.Reader(R);let P=I===void 0?x.len:x.pos+I;const w={result:void 0,error:void 0};for(;x.pos>>3){case 21:w.result=x.bytes();break;case 22:w.error=x.string();break;default:x.skipType(7&g)}}return w},fromJSON:R=>({result:j(R.result)?m(R.result):void 0,error:j(R.error)?String(R.error):void 0}),toJSON(R){const I={};return R.result!==void 0&&(I.result=R.result!==void 0?l(R.result):void 0),R.error!==void 0&&(I.error=R.error),I},fromPartial(R){var I,x;const P={result:void 0,error:void 0};return P.result=(I=R.result)!==null&&I!==void 0?I:void 0,P.error=(x=R.error)!==null&&x!==void 0?x:void 0,P}};var h=(()=>{if(h!==void 0)return h;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const p=h.atob||(R=>h.Buffer.from(R,"base64").toString("binary"));function m(R){const I=p(R),x=new Uint8Array(I.length);for(let P=0;Ph.Buffer.from(R,"binary").toString("base64"));function l(R){const I=[];for(const x of R)I.push(String.fromCharCode(x));return M(I.join(""))}function N(R){return R.toString()}function j(R){return R!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7579:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(w,g,E,U){U===void 0&&(U=E),Object.defineProperty(w,U,{enumerable:!0,get:function(){return g[E]}})}:function(w,g,E,U){U===void 0&&(U=E),w[U]=g[E]}),A=this&&this.__setModuleDefault||(Object.create?function(w,g){Object.defineProperty(w,"default",{enumerable:!0,value:g})}:function(w,g){w.default=g}),k=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var g={};if(w!=null)for(var E in w)E!=="default"&&Object.prototype.hasOwnProperty.call(w,E)&&O(g,w,E);return A(g,w),g},b=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgAcknowledgementResponse=e.MsgAcknowledgement=e.MsgTimeoutOnCloseResponse=e.MsgTimeoutOnClose=e.MsgTimeoutResponse=e.MsgTimeout=e.MsgRecvPacketResponse=e.MsgRecvPacket=e.MsgChannelCloseConfirmResponse=e.MsgChannelCloseConfirm=e.MsgChannelCloseInitResponse=e.MsgChannelCloseInit=e.MsgChannelOpenConfirmResponse=e.MsgChannelOpenConfirm=e.MsgChannelOpenAckResponse=e.MsgChannelOpenAck=e.MsgChannelOpenTryResponse=e.MsgChannelOpenTry=e.MsgChannelOpenInitResponse=e.MsgChannelOpenInit=e.responseResultTypeToJSON=e.responseResultTypeFromJSON=e.ResponseResultType=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5414),d=_(5650);var s;function r(w){switch(w){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return s.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return s.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return s.RESPONSE_RESULT_TYPE_SUCCESS;default:return s.UNRECOGNIZED}}function n(w){switch(w){case s.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case s.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case s.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";default:return"UNKNOWN"}}function o(){return{port_id:"",previous_channel_id:"",channel:void 0,counterparty_version:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function i(){return{port_id:"",channel_id:"",counterparty_channel_id:"",counterparty_version:"",proof_try:new Uint8Array,proof_height:void 0,signer:""}}function f(){return{port_id:"",channel_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}function c(){return{port_id:"",channel_id:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function h(){return{packet:void 0,proof_commitment:new Uint8Array,proof_height:void 0,signer:""}}function p(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function m(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_close:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function M(){return{packet:void 0,acknowledgement:new Uint8Array,proof_acked:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.channel.v1",function(w){w[w.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",w[w.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",w[w.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",w[w.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.ResponseResultType||(e.ResponseResultType={})),e.responseResultTypeFromJSON=r,e.responseResultTypeToJSON=n,e.MsgChannelOpenInit={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.channel!==void 0&&u.Channel.encode(w.channel,g.uint32(18).fork()).ldelim(),w.signer!==""&&g.uint32(26).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={port_id:"",channel:void 0,signer:""};for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.channel=u.Channel.decode(E,E.uint32());break;case 3:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",channel:P(w.channel)?u.Channel.fromJSON(w.channel):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.channel!==void 0&&(g.channel=w.channel?u.Channel.toJSON(w.channel):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E;const U={port_id:"",channel:void 0,signer:""};return U.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",U.channel=w.channel!==void 0&&w.channel!==null?u.Channel.fromPartial(w.channel):void 0,U.signer=(E=w.signer)!==null&&E!==void 0?E:"",U}},e.MsgChannelOpenInitResponse={encode:(w,g=t.Writer.create())=>(w.channel_id!==""&&g.uint32(10).string(w.channel_id),w.version!==""&&g.uint32(18).string(w.version),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={channel_id:"",version:""};for(;E.pos>>3){case 1:C.channel_id=E.string();break;case 2:C.version=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({channel_id:P(w.channel_id)?String(w.channel_id):"",version:P(w.version)?String(w.version):""}),toJSON(w){const g={};return w.channel_id!==void 0&&(g.channel_id=w.channel_id),w.version!==void 0&&(g.version=w.version),g},fromPartial(w){var g,E;const U={channel_id:"",version:""};return U.channel_id=(g=w.channel_id)!==null&&g!==void 0?g:"",U.version=(E=w.version)!==null&&E!==void 0?E:"",U}},e.MsgChannelOpenTry={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.previous_channel_id!==""&&g.uint32(18).string(w.previous_channel_id),w.channel!==void 0&&u.Channel.encode(w.channel,g.uint32(26).fork()).ldelim(),w.counterparty_version!==""&&g.uint32(34).string(w.counterparty_version),w.proof_init.length!==0&&g.uint32(42).bytes(w.proof_init),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(50).fork()).ldelim(),w.signer!==""&&g.uint32(58).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=o();for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.previous_channel_id=E.string();break;case 3:C.channel=u.Channel.decode(E,E.uint32());break;case 4:C.counterparty_version=E.string();break;case 5:C.proof_init=E.bytes();break;case 6:C.proof_height=d.Height.decode(E,E.uint32());break;case 7:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",previous_channel_id:P(w.previous_channel_id)?String(w.previous_channel_id):"",channel:P(w.channel)?u.Channel.fromJSON(w.channel):void 0,counterparty_version:P(w.counterparty_version)?String(w.counterparty_version):"",proof_init:P(w.proof_init)?j(w.proof_init):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.previous_channel_id!==void 0&&(g.previous_channel_id=w.previous_channel_id),w.channel!==void 0&&(g.channel=w.channel?u.Channel.toJSON(w.channel):void 0),w.counterparty_version!==void 0&&(g.counterparty_version=w.counterparty_version),w.proof_init!==void 0&&(g.proof_init=I(w.proof_init!==void 0?w.proof_init:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U,C,F;const re=o();return re.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",re.previous_channel_id=(E=w.previous_channel_id)!==null&&E!==void 0?E:"",re.channel=w.channel!==void 0&&w.channel!==null?u.Channel.fromPartial(w.channel):void 0,re.counterparty_version=(U=w.counterparty_version)!==null&&U!==void 0?U:"",re.proof_init=(C=w.proof_init)!==null&&C!==void 0?C:new Uint8Array,re.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,re.signer=(F=w.signer)!==null&&F!==void 0?F:"",re}},e.MsgChannelOpenTryResponse={encode:(w,g=t.Writer.create())=>(w.version!==""&&g.uint32(10).string(w.version),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={version:""};for(;E.pos>>3==1?C.version=E.string():E.skipType(7&F)}return C},fromJSON:w=>({version:P(w.version)?String(w.version):""}),toJSON(w){const g={};return w.version!==void 0&&(g.version=w.version),g},fromPartial(w){var g;const E={version:""};return E.version=(g=w.version)!==null&&g!==void 0?g:"",E}},e.MsgChannelOpenAck={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.channel_id!==""&&g.uint32(18).string(w.channel_id),w.counterparty_channel_id!==""&&g.uint32(26).string(w.counterparty_channel_id),w.counterparty_version!==""&&g.uint32(34).string(w.counterparty_version),w.proof_try.length!==0&&g.uint32(42).bytes(w.proof_try),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(50).fork()).ldelim(),w.signer!==""&&g.uint32(58).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=i();for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.channel_id=E.string();break;case 3:C.counterparty_channel_id=E.string();break;case 4:C.counterparty_version=E.string();break;case 5:C.proof_try=E.bytes();break;case 6:C.proof_height=d.Height.decode(E,E.uint32());break;case 7:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",channel_id:P(w.channel_id)?String(w.channel_id):"",counterparty_channel_id:P(w.counterparty_channel_id)?String(w.counterparty_channel_id):"",counterparty_version:P(w.counterparty_version)?String(w.counterparty_version):"",proof_try:P(w.proof_try)?j(w.proof_try):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.channel_id!==void 0&&(g.channel_id=w.channel_id),w.counterparty_channel_id!==void 0&&(g.counterparty_channel_id=w.counterparty_channel_id),w.counterparty_version!==void 0&&(g.counterparty_version=w.counterparty_version),w.proof_try!==void 0&&(g.proof_try=I(w.proof_try!==void 0?w.proof_try:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U,C,F,re;const ee=i();return ee.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",ee.channel_id=(E=w.channel_id)!==null&&E!==void 0?E:"",ee.counterparty_channel_id=(U=w.counterparty_channel_id)!==null&&U!==void 0?U:"",ee.counterparty_version=(C=w.counterparty_version)!==null&&C!==void 0?C:"",ee.proof_try=(F=w.proof_try)!==null&&F!==void 0?F:new Uint8Array,ee.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,ee.signer=(re=w.signer)!==null&&re!==void 0?re:"",ee}},e.MsgChannelOpenAckResponse={encode:(w,g=t.Writer.create())=>g,decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;for(;E.pos({}),toJSON:w=>({}),fromPartial:w=>({})},e.MsgChannelOpenConfirm={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.channel_id!==""&&g.uint32(18).string(w.channel_id),w.proof_ack.length!==0&&g.uint32(26).bytes(w.proof_ack),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(34).fork()).ldelim(),w.signer!==""&&g.uint32(42).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=f();for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.channel_id=E.string();break;case 3:C.proof_ack=E.bytes();break;case 4:C.proof_height=d.Height.decode(E,E.uint32());break;case 5:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",channel_id:P(w.channel_id)?String(w.channel_id):"",proof_ack:P(w.proof_ack)?j(w.proof_ack):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.channel_id!==void 0&&(g.channel_id=w.channel_id),w.proof_ack!==void 0&&(g.proof_ack=I(w.proof_ack!==void 0?w.proof_ack:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U,C;const F=f();return F.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",F.channel_id=(E=w.channel_id)!==null&&E!==void 0?E:"",F.proof_ack=(U=w.proof_ack)!==null&&U!==void 0?U:new Uint8Array,F.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,F.signer=(C=w.signer)!==null&&C!==void 0?C:"",F}},e.MsgChannelOpenConfirmResponse={encode:(w,g=t.Writer.create())=>g,decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;for(;E.pos({}),toJSON:w=>({}),fromPartial:w=>({})},e.MsgChannelCloseInit={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.channel_id!==""&&g.uint32(18).string(w.channel_id),w.signer!==""&&g.uint32(26).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={port_id:"",channel_id:"",signer:""};for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.channel_id=E.string();break;case 3:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",channel_id:P(w.channel_id)?String(w.channel_id):"",signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.channel_id!==void 0&&(g.channel_id=w.channel_id),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U;const C={port_id:"",channel_id:"",signer:""};return C.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",C.channel_id=(E=w.channel_id)!==null&&E!==void 0?E:"",C.signer=(U=w.signer)!==null&&U!==void 0?U:"",C}},e.MsgChannelCloseInitResponse={encode:(w,g=t.Writer.create())=>g,decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;for(;E.pos({}),toJSON:w=>({}),fromPartial:w=>({})},e.MsgChannelCloseConfirm={encode:(w,g=t.Writer.create())=>(w.port_id!==""&&g.uint32(10).string(w.port_id),w.channel_id!==""&&g.uint32(18).string(w.channel_id),w.proof_init.length!==0&&g.uint32(26).bytes(w.proof_init),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(34).fork()).ldelim(),w.signer!==""&&g.uint32(42).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=c();for(;E.pos>>3){case 1:C.port_id=E.string();break;case 2:C.channel_id=E.string();break;case 3:C.proof_init=E.bytes();break;case 4:C.proof_height=d.Height.decode(E,E.uint32());break;case 5:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({port_id:P(w.port_id)?String(w.port_id):"",channel_id:P(w.channel_id)?String(w.channel_id):"",proof_init:P(w.proof_init)?j(w.proof_init):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.port_id!==void 0&&(g.port_id=w.port_id),w.channel_id!==void 0&&(g.channel_id=w.channel_id),w.proof_init!==void 0&&(g.proof_init=I(w.proof_init!==void 0?w.proof_init:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U,C;const F=c();return F.port_id=(g=w.port_id)!==null&&g!==void 0?g:"",F.channel_id=(E=w.channel_id)!==null&&E!==void 0?E:"",F.proof_init=(U=w.proof_init)!==null&&U!==void 0?U:new Uint8Array,F.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,F.signer=(C=w.signer)!==null&&C!==void 0?C:"",F}},e.MsgChannelCloseConfirmResponse={encode:(w,g=t.Writer.create())=>g,decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;for(;E.pos({}),toJSON:w=>({}),fromPartial:w=>({})},e.MsgRecvPacket={encode:(w,g=t.Writer.create())=>(w.packet!==void 0&&u.Packet.encode(w.packet,g.uint32(10).fork()).ldelim(),w.proof_commitment.length!==0&&g.uint32(18).bytes(w.proof_commitment),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(26).fork()).ldelim(),w.signer!==""&&g.uint32(34).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=h();for(;E.pos>>3){case 1:C.packet=u.Packet.decode(E,E.uint32());break;case 2:C.proof_commitment=E.bytes();break;case 3:C.proof_height=d.Height.decode(E,E.uint32());break;case 4:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({packet:P(w.packet)?u.Packet.fromJSON(w.packet):void 0,proof_commitment:P(w.proof_commitment)?j(w.proof_commitment):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.packet!==void 0&&(g.packet=w.packet?u.Packet.toJSON(w.packet):void 0),w.proof_commitment!==void 0&&(g.proof_commitment=I(w.proof_commitment!==void 0?w.proof_commitment:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E;const U=h();return U.packet=w.packet!==void 0&&w.packet!==null?u.Packet.fromPartial(w.packet):void 0,U.proof_commitment=(g=w.proof_commitment)!==null&&g!==void 0?g:new Uint8Array,U.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,U.signer=(E=w.signer)!==null&&E!==void 0?E:"",U}},e.MsgRecvPacketResponse={encode:(w,g=t.Writer.create())=>(w.result!==0&&g.uint32(8).int32(w.result),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={result:0};for(;E.pos>>3==1?C.result=E.int32():E.skipType(7&F)}return C},fromJSON:w=>({result:P(w.result)?r(w.result):0}),toJSON(w){const g={};return w.result!==void 0&&(g.result=n(w.result)),g},fromPartial(w){var g;const E={result:0};return E.result=(g=w.result)!==null&&g!==void 0?g:0,E}},e.MsgTimeout={encode:(w,g=t.Writer.create())=>(w.packet!==void 0&&u.Packet.encode(w.packet,g.uint32(10).fork()).ldelim(),w.proof_unreceived.length!==0&&g.uint32(18).bytes(w.proof_unreceived),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(26).fork()).ldelim(),w.next_sequence_recv!=="0"&&g.uint32(32).uint64(w.next_sequence_recv),w.signer!==""&&g.uint32(42).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=p();for(;E.pos>>3){case 1:C.packet=u.Packet.decode(E,E.uint32());break;case 2:C.proof_unreceived=E.bytes();break;case 3:C.proof_height=d.Height.decode(E,E.uint32());break;case 4:C.next_sequence_recv=x(E.uint64());break;case 5:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({packet:P(w.packet)?u.Packet.fromJSON(w.packet):void 0,proof_unreceived:P(w.proof_unreceived)?j(w.proof_unreceived):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,next_sequence_recv:P(w.next_sequence_recv)?String(w.next_sequence_recv):"0",signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.packet!==void 0&&(g.packet=w.packet?u.Packet.toJSON(w.packet):void 0),w.proof_unreceived!==void 0&&(g.proof_unreceived=I(w.proof_unreceived!==void 0?w.proof_unreceived:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.next_sequence_recv!==void 0&&(g.next_sequence_recv=w.next_sequence_recv),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U;const C=p();return C.packet=w.packet!==void 0&&w.packet!==null?u.Packet.fromPartial(w.packet):void 0,C.proof_unreceived=(g=w.proof_unreceived)!==null&&g!==void 0?g:new Uint8Array,C.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,C.next_sequence_recv=(E=w.next_sequence_recv)!==null&&E!==void 0?E:"0",C.signer=(U=w.signer)!==null&&U!==void 0?U:"",C}},e.MsgTimeoutResponse={encode:(w,g=t.Writer.create())=>(w.result!==0&&g.uint32(8).int32(w.result),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={result:0};for(;E.pos>>3==1?C.result=E.int32():E.skipType(7&F)}return C},fromJSON:w=>({result:P(w.result)?r(w.result):0}),toJSON(w){const g={};return w.result!==void 0&&(g.result=n(w.result)),g},fromPartial(w){var g;const E={result:0};return E.result=(g=w.result)!==null&&g!==void 0?g:0,E}},e.MsgTimeoutOnClose={encode:(w,g=t.Writer.create())=>(w.packet!==void 0&&u.Packet.encode(w.packet,g.uint32(10).fork()).ldelim(),w.proof_unreceived.length!==0&&g.uint32(18).bytes(w.proof_unreceived),w.proof_close.length!==0&&g.uint32(26).bytes(w.proof_close),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(34).fork()).ldelim(),w.next_sequence_recv!=="0"&&g.uint32(40).uint64(w.next_sequence_recv),w.signer!==""&&g.uint32(50).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=m();for(;E.pos>>3){case 1:C.packet=u.Packet.decode(E,E.uint32());break;case 2:C.proof_unreceived=E.bytes();break;case 3:C.proof_close=E.bytes();break;case 4:C.proof_height=d.Height.decode(E,E.uint32());break;case 5:C.next_sequence_recv=x(E.uint64());break;case 6:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({packet:P(w.packet)?u.Packet.fromJSON(w.packet):void 0,proof_unreceived:P(w.proof_unreceived)?j(w.proof_unreceived):new Uint8Array,proof_close:P(w.proof_close)?j(w.proof_close):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,next_sequence_recv:P(w.next_sequence_recv)?String(w.next_sequence_recv):"0",signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.packet!==void 0&&(g.packet=w.packet?u.Packet.toJSON(w.packet):void 0),w.proof_unreceived!==void 0&&(g.proof_unreceived=I(w.proof_unreceived!==void 0?w.proof_unreceived:new Uint8Array)),w.proof_close!==void 0&&(g.proof_close=I(w.proof_close!==void 0?w.proof_close:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.next_sequence_recv!==void 0&&(g.next_sequence_recv=w.next_sequence_recv),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U,C;const F=m();return F.packet=w.packet!==void 0&&w.packet!==null?u.Packet.fromPartial(w.packet):void 0,F.proof_unreceived=(g=w.proof_unreceived)!==null&&g!==void 0?g:new Uint8Array,F.proof_close=(E=w.proof_close)!==null&&E!==void 0?E:new Uint8Array,F.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,F.next_sequence_recv=(U=w.next_sequence_recv)!==null&&U!==void 0?U:"0",F.signer=(C=w.signer)!==null&&C!==void 0?C:"",F}},e.MsgTimeoutOnCloseResponse={encode:(w,g=t.Writer.create())=>(w.result!==0&&g.uint32(8).int32(w.result),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={result:0};for(;E.pos>>3==1?C.result=E.int32():E.skipType(7&F)}return C},fromJSON:w=>({result:P(w.result)?r(w.result):0}),toJSON(w){const g={};return w.result!==void 0&&(g.result=n(w.result)),g},fromPartial(w){var g;const E={result:0};return E.result=(g=w.result)!==null&&g!==void 0?g:0,E}},e.MsgAcknowledgement={encode:(w,g=t.Writer.create())=>(w.packet!==void 0&&u.Packet.encode(w.packet,g.uint32(10).fork()).ldelim(),w.acknowledgement.length!==0&&g.uint32(18).bytes(w.acknowledgement),w.proof_acked.length!==0&&g.uint32(26).bytes(w.proof_acked),w.proof_height!==void 0&&d.Height.encode(w.proof_height,g.uint32(34).fork()).ldelim(),w.signer!==""&&g.uint32(42).string(w.signer),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C=M();for(;E.pos>>3){case 1:C.packet=u.Packet.decode(E,E.uint32());break;case 2:C.acknowledgement=E.bytes();break;case 3:C.proof_acked=E.bytes();break;case 4:C.proof_height=d.Height.decode(E,E.uint32());break;case 5:C.signer=E.string();break;default:E.skipType(7&F)}}return C},fromJSON:w=>({packet:P(w.packet)?u.Packet.fromJSON(w.packet):void 0,acknowledgement:P(w.acknowledgement)?j(w.acknowledgement):new Uint8Array,proof_acked:P(w.proof_acked)?j(w.proof_acked):new Uint8Array,proof_height:P(w.proof_height)?d.Height.fromJSON(w.proof_height):void 0,signer:P(w.signer)?String(w.signer):""}),toJSON(w){const g={};return w.packet!==void 0&&(g.packet=w.packet?u.Packet.toJSON(w.packet):void 0),w.acknowledgement!==void 0&&(g.acknowledgement=I(w.acknowledgement!==void 0?w.acknowledgement:new Uint8Array)),w.proof_acked!==void 0&&(g.proof_acked=I(w.proof_acked!==void 0?w.proof_acked:new Uint8Array)),w.proof_height!==void 0&&(g.proof_height=w.proof_height?d.Height.toJSON(w.proof_height):void 0),w.signer!==void 0&&(g.signer=w.signer),g},fromPartial(w){var g,E,U;const C=M();return C.packet=w.packet!==void 0&&w.packet!==null?u.Packet.fromPartial(w.packet):void 0,C.acknowledgement=(g=w.acknowledgement)!==null&&g!==void 0?g:new Uint8Array,C.proof_acked=(E=w.proof_acked)!==null&&E!==void 0?E:new Uint8Array,C.proof_height=w.proof_height!==void 0&&w.proof_height!==null?d.Height.fromPartial(w.proof_height):void 0,C.signer=(U=w.signer)!==null&&U!==void 0?U:"",C}},e.MsgAcknowledgementResponse={encode:(w,g=t.Writer.create())=>(w.result!==0&&g.uint32(8).int32(w.result),g),decode(w,g){const E=w instanceof t.Reader?w:new t.Reader(w);let U=g===void 0?E.len:E.pos+g;const C={result:0};for(;E.pos>>3==1?C.result=E.int32():E.skipType(7&F)}return C},fromJSON:w=>({result:P(w.result)?r(w.result):0}),toJSON(w){const g={};return w.result!==void 0&&(g.result=n(w.result)),g},fromPartial(w){var g;const E={result:0};return E.result=(g=w.result)!==null&&g!==void 0?g:0,E}},e.MsgClientImpl=class{constructor(w){this.rpc=w,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}ChannelOpenInit(w){const g=e.MsgChannelOpenInit.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",g).then(E=>e.MsgChannelOpenInitResponse.decode(new t.Reader(E)))}ChannelOpenTry(w){const g=e.MsgChannelOpenTry.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",g).then(E=>e.MsgChannelOpenTryResponse.decode(new t.Reader(E)))}ChannelOpenAck(w){const g=e.MsgChannelOpenAck.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",g).then(E=>e.MsgChannelOpenAckResponse.decode(new t.Reader(E)))}ChannelOpenConfirm(w){const g=e.MsgChannelOpenConfirm.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",g).then(E=>e.MsgChannelOpenConfirmResponse.decode(new t.Reader(E)))}ChannelCloseInit(w){const g=e.MsgChannelCloseInit.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",g).then(E=>e.MsgChannelCloseInitResponse.decode(new t.Reader(E)))}ChannelCloseConfirm(w){const g=e.MsgChannelCloseConfirm.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",g).then(E=>e.MsgChannelCloseConfirmResponse.decode(new t.Reader(E)))}RecvPacket(w){const g=e.MsgRecvPacket.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",g).then(E=>e.MsgRecvPacketResponse.decode(new t.Reader(E)))}Timeout(w){const g=e.MsgTimeout.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",g).then(E=>e.MsgTimeoutResponse.decode(new t.Reader(E)))}TimeoutOnClose(w){const g=e.MsgTimeoutOnClose.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",g).then(E=>e.MsgTimeoutOnCloseResponse.decode(new t.Reader(E)))}Acknowledgement(w){const g=e.MsgAcknowledgement.encode(w).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",g).then(E=>e.MsgAcknowledgementResponse.decode(new t.Reader(E)))}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const N=l.atob||(w=>l.Buffer.from(w,"base64").toString("binary"));function j(w){const g=N(w),E=new Uint8Array(g.length);for(let U=0;Ul.Buffer.from(w,"binary").toString("base64"));function I(w){const g=[];for(const E of w)g.push(String.fromCharCode(E));return R(g.join(""))}function x(w){return w.toString()}function P(w){return w!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5650:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),A=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&O(o,n,i);return A(o,n),o},b=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Height=e.UpgradeProposal=e.ClientUpdateProposal=e.ClientConsensusStates=e.ConsensusStateWithHeight=e.IdentifiedClientState=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191),d=_(8310);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.core.client.v1",e.IdentifiedClientState={encode:(n,o=t.Writer.create())=>(n.client_id!==""&&o.uint32(10).string(n.client_id),n.client_state!==void 0&&u.Any.encode(n.client_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={client_id:"",client_state:void 0};for(;i.pos>>3){case 1:c.client_id=i.string();break;case 2:c.client_state=u.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return c},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",client_state:r(n.client_state)?u.Any.fromJSON(n.client_state):void 0}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.client_state!==void 0&&(o.client_state=n.client_state?u.Any.toJSON(n.client_state):void 0),o},fromPartial(n){var o;const i={client_id:"",client_state:void 0};return i.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",i.client_state=n.client_state!==void 0&&n.client_state!==null?u.Any.fromPartial(n.client_state):void 0,i}},e.ConsensusStateWithHeight={encode:(n,o=t.Writer.create())=>(n.height!==void 0&&e.Height.encode(n.height,o.uint32(10).fork()).ldelim(),n.consensus_state!==void 0&&u.Any.encode(n.consensus_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={height:void 0,consensus_state:void 0};for(;i.pos>>3){case 1:c.height=e.Height.decode(i,i.uint32());break;case 2:c.consensus_state=u.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return c},fromJSON:n=>({height:r(n.height)?e.Height.fromJSON(n.height):void 0,consensus_state:r(n.consensus_state)?u.Any.fromJSON(n.consensus_state):void 0}),toJSON(n){const o={};return n.height!==void 0&&(o.height=n.height?e.Height.toJSON(n.height):void 0),n.consensus_state!==void 0&&(o.consensus_state=n.consensus_state?u.Any.toJSON(n.consensus_state):void 0),o},fromPartial(n){const o={height:void 0,consensus_state:void 0};return o.height=n.height!==void 0&&n.height!==null?e.Height.fromPartial(n.height):void 0,o.consensus_state=n.consensus_state!==void 0&&n.consensus_state!==null?u.Any.fromPartial(n.consensus_state):void 0,o}},e.ClientConsensusStates={encode(n,o=t.Writer.create()){n.client_id!==""&&o.uint32(10).string(n.client_id);for(const i of n.consensus_states)e.ConsensusStateWithHeight.encode(i,o.uint32(18).fork()).ldelim();return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={client_id:"",consensus_states:[]};for(;i.pos>>3){case 1:c.client_id=i.string();break;case 2:c.consensus_states.push(e.ConsensusStateWithHeight.decode(i,i.uint32()));break;default:i.skipType(7&h)}}return c},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",consensus_states:Array.isArray(n==null?void 0:n.consensus_states)?n.consensus_states.map(o=>e.ConsensusStateWithHeight.fromJSON(o)):[]}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.consensus_states?o.consensus_states=n.consensus_states.map(i=>i?e.ConsensusStateWithHeight.toJSON(i):void 0):o.consensus_states=[],o},fromPartial(n){var o,i;const f={client_id:"",consensus_states:[]};return f.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",f.consensus_states=((i=n.consensus_states)===null||i===void 0?void 0:i.map(c=>e.ConsensusStateWithHeight.fromPartial(c)))||[],f}},e.ClientUpdateProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.subject_client_id!==""&&o.uint32(26).string(n.subject_client_id),n.substitute_client_id!==""&&o.uint32(34).string(n.substitute_client_id),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={title:"",description:"",subject_client_id:"",substitute_client_id:""};for(;i.pos>>3){case 1:c.title=i.string();break;case 2:c.description=i.string();break;case 3:c.subject_client_id=i.string();break;case 4:c.substitute_client_id=i.string();break;default:i.skipType(7&h)}}return c},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",subject_client_id:r(n.subject_client_id)?String(n.subject_client_id):"",substitute_client_id:r(n.substitute_client_id)?String(n.substitute_client_id):""}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.subject_client_id!==void 0&&(o.subject_client_id=n.subject_client_id),n.substitute_client_id!==void 0&&(o.substitute_client_id=n.substitute_client_id),o},fromPartial(n){var o,i,f,c;const h={title:"",description:"",subject_client_id:"",substitute_client_id:""};return h.title=(o=n.title)!==null&&o!==void 0?o:"",h.description=(i=n.description)!==null&&i!==void 0?i:"",h.subject_client_id=(f=n.subject_client_id)!==null&&f!==void 0?f:"",h.substitute_client_id=(c=n.substitute_client_id)!==null&&c!==void 0?c:"",h}},e.UpgradeProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.plan!==void 0&&d.Plan.encode(n.plan,o.uint32(26).fork()).ldelim(),n.upgraded_client_state!==void 0&&u.Any.encode(n.upgraded_client_state,o.uint32(34).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={title:"",description:"",plan:void 0,upgraded_client_state:void 0};for(;i.pos>>3){case 1:c.title=i.string();break;case 2:c.description=i.string();break;case 3:c.plan=d.Plan.decode(i,i.uint32());break;case 4:c.upgraded_client_state=u.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return c},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",plan:r(n.plan)?d.Plan.fromJSON(n.plan):void 0,upgraded_client_state:r(n.upgraded_client_state)?u.Any.fromJSON(n.upgraded_client_state):void 0}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.plan!==void 0&&(o.plan=n.plan?d.Plan.toJSON(n.plan):void 0),n.upgraded_client_state!==void 0&&(o.upgraded_client_state=n.upgraded_client_state?u.Any.toJSON(n.upgraded_client_state):void 0),o},fromPartial(n){var o,i;const f={title:"",description:"",plan:void 0,upgraded_client_state:void 0};return f.title=(o=n.title)!==null&&o!==void 0?o:"",f.description=(i=n.description)!==null&&i!==void 0?i:"",f.plan=n.plan!==void 0&&n.plan!==null?d.Plan.fromPartial(n.plan):void 0,f.upgraded_client_state=n.upgraded_client_state!==void 0&&n.upgraded_client_state!==null?u.Any.fromPartial(n.upgraded_client_state):void 0,f}},e.Height={encode:(n,o=t.Writer.create())=>(n.revision_number!=="0"&&o.uint32(8).uint64(n.revision_number),n.revision_height!=="0"&&o.uint32(16).uint64(n.revision_height),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={revision_number:"0",revision_height:"0"};for(;i.pos>>3){case 1:c.revision_number=s(i.uint64());break;case 2:c.revision_height=s(i.uint64());break;default:i.skipType(7&h)}}return c},fromJSON:n=>({revision_number:r(n.revision_number)?String(n.revision_number):"0",revision_height:r(n.revision_height)?String(n.revision_height):"0"}),toJSON(n){const o={};return n.revision_number!==void 0&&(o.revision_number=n.revision_number),n.revision_height!==void 0&&(o.revision_height=n.revision_height),o},fromPartial(n){var o,i;const f={revision_number:"0",revision_height:"0"};return f.revision_number=(o=n.revision_number)!==null&&o!==void 0?o:"0",f.revision_height=(i=n.revision_height)!==null&&i!==void 0?i:"0",f}},e.Params={encode(n,o=t.Writer.create()){for(const i of n.allowed_clients)o.uint32(10).string(i);return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const c={allowed_clients:[]};for(;i.pos>>3==1?c.allowed_clients.push(i.string()):i.skipType(7&h)}return c},fromJSON:n=>({allowed_clients:Array.isArray(n==null?void 0:n.allowed_clients)?n.allowed_clients.map(o=>String(o)):[]}),toJSON(n){const o={};return n.allowed_clients?o.allowed_clients=n.allowed_clients.map(i=>i):o.allowed_clients=[],o},fromPartial(n){var o;const i={allowed_clients:[]};return i.allowed_clients=((o=n.allowed_clients)===null||o===void 0?void 0:o.map(f=>f))||[],i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},322:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitMisbehaviourResponse=e.MsgSubmitMisbehaviour=e.MsgUpgradeClientResponse=e.MsgUpgradeClient=e.MsgUpdateClientResponse=e.MsgUpdateClient=e.MsgCreateClientResponse=e.MsgCreateClient=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(4191);function d(){return{client_id:"",client_state:void 0,consensus_state:void 0,proof_upgrade_client:new Uint8Array,proof_upgrade_consensus_state:new Uint8Array,signer:""}}e.protobufPackage="ibc.core.client.v1",e.MsgCreateClient={encode:(c,h=t.Writer.create())=>(c.client_state!==void 0&&u.Any.encode(c.client_state,h.uint32(10).fork()).ldelim(),c.consensus_state!==void 0&&u.Any.encode(c.consensus_state,h.uint32(18).fork()).ldelim(),c.signer!==""&&h.uint32(26).string(c.signer),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={client_state:void 0,consensus_state:void 0,signer:""};for(;p.pos>>3){case 1:M.client_state=u.Any.decode(p,p.uint32());break;case 2:M.consensus_state=u.Any.decode(p,p.uint32());break;case 3:M.signer=p.string();break;default:p.skipType(7&l)}}return M},fromJSON:c=>({client_state:f(c.client_state)?u.Any.fromJSON(c.client_state):void 0,consensus_state:f(c.consensus_state)?u.Any.fromJSON(c.consensus_state):void 0,signer:f(c.signer)?String(c.signer):""}),toJSON(c){const h={};return c.client_state!==void 0&&(h.client_state=c.client_state?u.Any.toJSON(c.client_state):void 0),c.consensus_state!==void 0&&(h.consensus_state=c.consensus_state?u.Any.toJSON(c.consensus_state):void 0),c.signer!==void 0&&(h.signer=c.signer),h},fromPartial(c){var h;const p={client_state:void 0,consensus_state:void 0,signer:""};return p.client_state=c.client_state!==void 0&&c.client_state!==null?u.Any.fromPartial(c.client_state):void 0,p.consensus_state=c.consensus_state!==void 0&&c.consensus_state!==null?u.Any.fromPartial(c.consensus_state):void 0,p.signer=(h=c.signer)!==null&&h!==void 0?h:"",p}},e.MsgCreateClientResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgUpdateClient={encode:(c,h=t.Writer.create())=>(c.client_id!==""&&h.uint32(10).string(c.client_id),c.header!==void 0&&u.Any.encode(c.header,h.uint32(18).fork()).ldelim(),c.signer!==""&&h.uint32(26).string(c.signer),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={client_id:"",header:void 0,signer:""};for(;p.pos>>3){case 1:M.client_id=p.string();break;case 2:M.header=u.Any.decode(p,p.uint32());break;case 3:M.signer=p.string();break;default:p.skipType(7&l)}}return M},fromJSON:c=>({client_id:f(c.client_id)?String(c.client_id):"",header:f(c.header)?u.Any.fromJSON(c.header):void 0,signer:f(c.signer)?String(c.signer):""}),toJSON(c){const h={};return c.client_id!==void 0&&(h.client_id=c.client_id),c.header!==void 0&&(h.header=c.header?u.Any.toJSON(c.header):void 0),c.signer!==void 0&&(h.signer=c.signer),h},fromPartial(c){var h,p;const m={client_id:"",header:void 0,signer:""};return m.client_id=(h=c.client_id)!==null&&h!==void 0?h:"",m.header=c.header!==void 0&&c.header!==null?u.Any.fromPartial(c.header):void 0,m.signer=(p=c.signer)!==null&&p!==void 0?p:"",m}},e.MsgUpdateClientResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgUpgradeClient={encode:(c,h=t.Writer.create())=>(c.client_id!==""&&h.uint32(10).string(c.client_id),c.client_state!==void 0&&u.Any.encode(c.client_state,h.uint32(18).fork()).ldelim(),c.consensus_state!==void 0&&u.Any.encode(c.consensus_state,h.uint32(26).fork()).ldelim(),c.proof_upgrade_client.length!==0&&h.uint32(34).bytes(c.proof_upgrade_client),c.proof_upgrade_consensus_state.length!==0&&h.uint32(42).bytes(c.proof_upgrade_consensus_state),c.signer!==""&&h.uint32(50).string(c.signer),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=d();for(;p.pos>>3){case 1:M.client_id=p.string();break;case 2:M.client_state=u.Any.decode(p,p.uint32());break;case 3:M.consensus_state=u.Any.decode(p,p.uint32());break;case 4:M.proof_upgrade_client=p.bytes();break;case 5:M.proof_upgrade_consensus_state=p.bytes();break;case 6:M.signer=p.string();break;default:p.skipType(7&l)}}return M},fromJSON:c=>({client_id:f(c.client_id)?String(c.client_id):"",client_state:f(c.client_state)?u.Any.fromJSON(c.client_state):void 0,consensus_state:f(c.consensus_state)?u.Any.fromJSON(c.consensus_state):void 0,proof_upgrade_client:f(c.proof_upgrade_client)?n(c.proof_upgrade_client):new Uint8Array,proof_upgrade_consensus_state:f(c.proof_upgrade_consensus_state)?n(c.proof_upgrade_consensus_state):new Uint8Array,signer:f(c.signer)?String(c.signer):""}),toJSON(c){const h={};return c.client_id!==void 0&&(h.client_id=c.client_id),c.client_state!==void 0&&(h.client_state=c.client_state?u.Any.toJSON(c.client_state):void 0),c.consensus_state!==void 0&&(h.consensus_state=c.consensus_state?u.Any.toJSON(c.consensus_state):void 0),c.proof_upgrade_client!==void 0&&(h.proof_upgrade_client=i(c.proof_upgrade_client!==void 0?c.proof_upgrade_client:new Uint8Array)),c.proof_upgrade_consensus_state!==void 0&&(h.proof_upgrade_consensus_state=i(c.proof_upgrade_consensus_state!==void 0?c.proof_upgrade_consensus_state:new Uint8Array)),c.signer!==void 0&&(h.signer=c.signer),h},fromPartial(c){var h,p,m,M;const l=d();return l.client_id=(h=c.client_id)!==null&&h!==void 0?h:"",l.client_state=c.client_state!==void 0&&c.client_state!==null?u.Any.fromPartial(c.client_state):void 0,l.consensus_state=c.consensus_state!==void 0&&c.consensus_state!==null?u.Any.fromPartial(c.consensus_state):void 0,l.proof_upgrade_client=(p=c.proof_upgrade_client)!==null&&p!==void 0?p:new Uint8Array,l.proof_upgrade_consensus_state=(m=c.proof_upgrade_consensus_state)!==null&&m!==void 0?m:new Uint8Array,l.signer=(M=c.signer)!==null&&M!==void 0?M:"",l}},e.MsgUpgradeClientResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgSubmitMisbehaviour={encode:(c,h=t.Writer.create())=>(c.client_id!==""&&h.uint32(10).string(c.client_id),c.misbehaviour!==void 0&&u.Any.encode(c.misbehaviour,h.uint32(18).fork()).ldelim(),c.signer!==""&&h.uint32(26).string(c.signer),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={client_id:"",misbehaviour:void 0,signer:""};for(;p.pos>>3){case 1:M.client_id=p.string();break;case 2:M.misbehaviour=u.Any.decode(p,p.uint32());break;case 3:M.signer=p.string();break;default:p.skipType(7&l)}}return M},fromJSON:c=>({client_id:f(c.client_id)?String(c.client_id):"",misbehaviour:f(c.misbehaviour)?u.Any.fromJSON(c.misbehaviour):void 0,signer:f(c.signer)?String(c.signer):""}),toJSON(c){const h={};return c.client_id!==void 0&&(h.client_id=c.client_id),c.misbehaviour!==void 0&&(h.misbehaviour=c.misbehaviour?u.Any.toJSON(c.misbehaviour):void 0),c.signer!==void 0&&(h.signer=c.signer),h},fromPartial(c){var h,p;const m={client_id:"",misbehaviour:void 0,signer:""};return m.client_id=(h=c.client_id)!==null&&h!==void 0?h:"",m.misbehaviour=c.misbehaviour!==void 0&&c.misbehaviour!==null?u.Any.fromPartial(c.misbehaviour):void 0,m.signer=(p=c.signer)!==null&&p!==void 0?p:"",m}},e.MsgSubmitMisbehaviourResponse={encode:(c,h=t.Writer.create())=>h,decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;for(;p.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.CreateClient=this.CreateClient.bind(this),this.UpdateClient=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(c){const h=e.MsgCreateClient.encode(c).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",h).then(p=>e.MsgCreateClientResponse.decode(new t.Reader(p)))}UpdateClient(c){const h=e.MsgUpdateClient.encode(c).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",h).then(p=>e.MsgUpdateClientResponse.decode(new t.Reader(p)))}UpgradeClient(c){const h=e.MsgUpgradeClient.encode(c).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",h).then(p=>e.MsgUpgradeClientResponse.decode(new t.Reader(p)))}SubmitMisbehaviour(c){const h=e.MsgSubmitMisbehaviour.encode(c).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",h).then(p=>e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(p)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(c=>s.Buffer.from(c,"base64").toString("binary"));function n(c){const h=r(c),p=new Uint8Array(h.length);for(let m=0;ms.Buffer.from(c,"binary").toString("base64"));function i(c){const h=[];for(const p of c)h.push(String.fromCharCode(p));return o(h.join(""))}function f(c){return c!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5261:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(h,p,m,M){M===void 0&&(M=m),Object.defineProperty(h,M,{enumerable:!0,get:function(){return p[m]}})}:function(h,p,m,M){M===void 0&&(M=m),h[M]=p[m]}),A=this&&this.__setModuleDefault||(Object.create?function(h,p){Object.defineProperty(h,"default",{enumerable:!0,value:p})}:function(h,p){h.default=p}),k=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var m in h)m!=="default"&&Object.prototype.hasOwnProperty.call(h,m)&&O(p,h,m);return A(p,h),p},b=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=e.MerklePath=e.MerklePrefix=e.MerkleRoot=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(6578);function d(){return{hash:new Uint8Array}}function s(){return{key_prefix:new Uint8Array}}e.protobufPackage="ibc.core.commitment.v1",e.MerkleRoot={encode:(h,p=t.Writer.create())=>(h.hash.length!==0&&p.uint32(10).bytes(h.hash),p),decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l=d();for(;m.pos>>3==1?l.hash=m.bytes():m.skipType(7&N)}return l},fromJSON:h=>({hash:c(h.hash)?o(h.hash):new Uint8Array}),toJSON(h){const p={};return h.hash!==void 0&&(p.hash=f(h.hash!==void 0?h.hash:new Uint8Array)),p},fromPartial(h){var p;const m=d();return m.hash=(p=h.hash)!==null&&p!==void 0?p:new Uint8Array,m}},e.MerklePrefix={encode:(h,p=t.Writer.create())=>(h.key_prefix.length!==0&&p.uint32(10).bytes(h.key_prefix),p),decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l=s();for(;m.pos>>3==1?l.key_prefix=m.bytes():m.skipType(7&N)}return l},fromJSON:h=>({key_prefix:c(h.key_prefix)?o(h.key_prefix):new Uint8Array}),toJSON(h){const p={};return h.key_prefix!==void 0&&(p.key_prefix=f(h.key_prefix!==void 0?h.key_prefix:new Uint8Array)),p},fromPartial(h){var p;const m=s();return m.key_prefix=(p=h.key_prefix)!==null&&p!==void 0?p:new Uint8Array,m}},e.MerklePath={encode(h,p=t.Writer.create()){for(const m of h.key_path)p.uint32(10).string(m);return p},decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l={key_path:[]};for(;m.pos>>3==1?l.key_path.push(m.string()):m.skipType(7&N)}return l},fromJSON:h=>({key_path:Array.isArray(h==null?void 0:h.key_path)?h.key_path.map(p=>String(p)):[]}),toJSON(h){const p={};return h.key_path?p.key_path=h.key_path.map(m=>m):p.key_path=[],p},fromPartial(h){var p;const m={key_path:[]};return m.key_path=((p=h.key_path)===null||p===void 0?void 0:p.map(M=>M))||[],m}},e.MerkleProof={encode(h,p=t.Writer.create()){for(const m of h.proofs)u.CommitmentProof.encode(m,p.uint32(10).fork()).ldelim();return p},decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l={proofs:[]};for(;m.pos>>3==1?l.proofs.push(u.CommitmentProof.decode(m,m.uint32())):m.skipType(7&N)}return l},fromJSON:h=>({proofs:Array.isArray(h==null?void 0:h.proofs)?h.proofs.map(p=>u.CommitmentProof.fromJSON(p)):[]}),toJSON(h){const p={};return h.proofs?p.proofs=h.proofs.map(m=>m?u.CommitmentProof.toJSON(m):void 0):p.proofs=[],p},fromPartial(h){var p;const m={proofs:[]};return m.proofs=((p=h.proofs)===null||p===void 0?void 0:p.map(M=>u.CommitmentProof.fromPartial(M)))||[],m}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const n=r.atob||(h=>r.Buffer.from(h,"base64").toString("binary"));function o(h){const p=n(h),m=new Uint8Array(p.length);for(let M=0;Mr.Buffer.from(h,"binary").toString("base64"));function f(h){const p=[];for(const m of h)p.push(String.fromCharCode(m));return i(p.join(""))}function c(h){return h!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6788:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(i,f,c,h){h===void 0&&(h=c),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[c]}})}:function(i,f,c,h){h===void 0&&(h=c),i[h]=f[c]}),A=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&O(f,i,c);return A(f,i),f},b=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Version=e.ConnectionPaths=e.ClientPaths=e.Counterparty=e.IdentifiedConnection=e.ConnectionEnd=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5261);var d;function s(i){switch(i){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return d.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return d.STATE_INIT;case 2:case"STATE_TRYOPEN":return d.STATE_TRYOPEN;case 3:case"STATE_OPEN":return d.STATE_OPEN;default:return d.UNRECOGNIZED}}function r(i){switch(i){case d.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case d.STATE_INIT:return"STATE_INIT";case d.STATE_TRYOPEN:return"STATE_TRYOPEN";case d.STATE_OPEN:return"STATE_OPEN";default:return"UNKNOWN"}}function n(i){return i.toString()}function o(i){return i!=null}e.protobufPackage="ibc.core.connection.v1",function(i){i[i.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",i[i.STATE_INIT=1]="STATE_INIT",i[i.STATE_TRYOPEN=2]="STATE_TRYOPEN",i[i.STATE_OPEN=3]="STATE_OPEN",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.State||(e.State={})),e.stateFromJSON=s,e.stateToJSON=r,e.ConnectionEnd={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const c of i.versions)e.Version.encode(c,f.uint32(18).fork()).ldelim();return i.state!==0&&f.uint32(24).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(34).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(40).uint64(i.delay_period),f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;c.pos>>3){case 1:p.client_id=c.string();break;case 2:p.versions.push(e.Version.decode(c,c.uint32()));break;case 3:p.state=c.int32();break;case 4:p.counterparty=e.Counterparty.decode(c,c.uint32());break;case 5:p.delay_period=n(c.uint64());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(c=>c?e.Version.toJSON(c):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,c,h,p;const m={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return m.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",m.versions=((c=i.versions)===null||c===void 0?void 0:c.map(M=>e.Version.fromPartial(M)))||[],m.state=(h=i.state)!==null&&h!==void 0?h:0,m.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,m.delay_period=(p=i.delay_period)!==null&&p!==void 0?p:"0",m}},e.IdentifiedConnection={encode(i,f=t.Writer.create()){i.id!==""&&f.uint32(10).string(i.id),i.client_id!==""&&f.uint32(18).string(i.client_id);for(const c of i.versions)e.Version.encode(c,f.uint32(26).fork()).ldelim();return i.state!==0&&f.uint32(32).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(42).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(48).uint64(i.delay_period),f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;c.pos>>3){case 1:p.id=c.string();break;case 2:p.client_id=c.string();break;case 3:p.versions.push(e.Version.decode(c,c.uint32()));break;case 4:p.state=c.int32();break;case 5:p.counterparty=e.Counterparty.decode(c,c.uint32());break;case 6:p.delay_period=n(c.uint64());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({id:o(i.id)?String(i.id):"",client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.id!==void 0&&(f.id=i.id),i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(c=>c?e.Version.toJSON(c):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,c,h,p,m;const M={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return M.id=(f=i.id)!==null&&f!==void 0?f:"",M.client_id=(c=i.client_id)!==null&&c!==void 0?c:"",M.versions=((h=i.versions)===null||h===void 0?void 0:h.map(l=>e.Version.fromPartial(l)))||[],M.state=(p=i.state)!==null&&p!==void 0?p:0,M.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,M.delay_period=(m=i.delay_period)!==null&&m!==void 0?m:"0",M}},e.Counterparty={encode:(i,f=t.Writer.create())=>(i.client_id!==""&&f.uint32(10).string(i.client_id),i.connection_id!==""&&f.uint32(18).string(i.connection_id),i.prefix!==void 0&&u.MerklePrefix.encode(i.prefix,f.uint32(26).fork()).ldelim(),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={client_id:"",connection_id:"",prefix:void 0};for(;c.pos>>3){case 1:p.client_id=c.string();break;case 2:p.connection_id=c.string();break;case 3:p.prefix=u.MerklePrefix.decode(c,c.uint32());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",connection_id:o(i.connection_id)?String(i.connection_id):"",prefix:o(i.prefix)?u.MerklePrefix.fromJSON(i.prefix):void 0}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.connection_id!==void 0&&(f.connection_id=i.connection_id),i.prefix!==void 0&&(f.prefix=i.prefix?u.MerklePrefix.toJSON(i.prefix):void 0),f},fromPartial(i){var f,c;const h={client_id:"",connection_id:"",prefix:void 0};return h.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",h.connection_id=(c=i.connection_id)!==null&&c!==void 0?c:"",h.prefix=i.prefix!==void 0&&i.prefix!==null?u.MerklePrefix.fromPartial(i.prefix):void 0,h}},e.ClientPaths={encode(i,f=t.Writer.create()){for(const c of i.paths)f.uint32(10).string(c);return f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={paths:[]};for(;c.pos>>3==1?p.paths.push(c.string()):c.skipType(7&m)}return p},fromJSON:i=>({paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.paths?f.paths=i.paths.map(c=>c):f.paths=[],f},fromPartial(i){var f;const c={paths:[]};return c.paths=((f=i.paths)===null||f===void 0?void 0:f.map(h=>h))||[],c}},e.ConnectionPaths={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const c of i.paths)f.uint32(18).string(c);return f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={client_id:"",paths:[]};for(;c.pos>>3){case 1:p.client_id=c.string();break;case 2:p.paths.push(c.string());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.paths?f.paths=i.paths.map(c=>c):f.paths=[],f},fromPartial(i){var f,c;const h={client_id:"",paths:[]};return h.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",h.paths=((c=i.paths)===null||c===void 0?void 0:c.map(p=>p))||[],h}},e.Version={encode(i,f=t.Writer.create()){i.identifier!==""&&f.uint32(10).string(i.identifier);for(const c of i.features)f.uint32(18).string(c);return f},decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={identifier:"",features:[]};for(;c.pos>>3){case 1:p.identifier=c.string();break;case 2:p.features.push(c.string());break;default:c.skipType(7&m)}}return p},fromJSON:i=>({identifier:o(i.identifier)?String(i.identifier):"",features:Array.isArray(i==null?void 0:i.features)?i.features.map(f=>String(f)):[]}),toJSON(i){const f={};return i.identifier!==void 0&&(f.identifier=i.identifier),i.features?f.features=i.features.map(c=>c):f.features=[],f},fromPartial(i){var f,c;const h={identifier:"",features:[]};return h.identifier=(f=i.identifier)!==null&&f!==void 0?f:"",h.features=((c=i.features)===null||c===void 0?void 0:c.map(p=>p))||[],h}},e.Params={encode:(i,f=t.Writer.create())=>(i.max_expected_time_per_block!=="0"&&f.uint32(8).uint64(i.max_expected_time_per_block),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={max_expected_time_per_block:"0"};for(;c.pos>>3==1?p.max_expected_time_per_block=n(c.uint64()):c.skipType(7&m)}return p},fromJSON:i=>({max_expected_time_per_block:o(i.max_expected_time_per_block)?String(i.max_expected_time_per_block):"0"}),toJSON(i){const f={};return i.max_expected_time_per_block!==void 0&&(f.max_expected_time_per_block=i.max_expected_time_per_block),f},fromPartial(i){var f;const c={max_expected_time_per_block:"0"};return c.max_expected_time_per_block=(f=i.max_expected_time_per_block)!==null&&f!==void 0?f:"0",c}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8344:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(l,N,j,R){R===void 0&&(R=j),Object.defineProperty(l,R,{enumerable:!0,get:function(){return N[j]}})}:function(l,N,j,R){R===void 0&&(R=j),l[R]=N[j]}),A=this&&this.__setModuleDefault||(Object.create?function(l,N){Object.defineProperty(l,"default",{enumerable:!0,value:N})}:function(l,N){l.default=N}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var N={};if(l!=null)for(var j in l)j!=="default"&&Object.prototype.hasOwnProperty.call(l,j)&&O(N,l,j);return A(N,l),N},b=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgConnectionOpenConfirmResponse=e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAckResponse=e.MsgConnectionOpenAck=e.MsgConnectionOpenTryResponse=e.MsgConnectionOpenTry=e.MsgConnectionOpenInitResponse=e.MsgConnectionOpenInit=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(6788),d=_(4191),s=_(5650);function r(){return{client_id:"",previous_connection_id:"",client_state:void 0,counterparty:void 0,delay_period:"0",counterparty_versions:[],proof_height:void 0,proof_init:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function n(){return{connection_id:"",counterparty_connection_id:"",version:void 0,client_state:void 0,proof_height:void 0,proof_try:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function o(){return{connection_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.connection.v1",e.MsgConnectionOpenInit={encode:(l,N=t.Writer.create())=>(l.client_id!==""&&N.uint32(10).string(l.client_id),l.counterparty!==void 0&&u.Counterparty.encode(l.counterparty,N.uint32(18).fork()).ldelim(),l.version!==void 0&&u.Version.encode(l.version,N.uint32(26).fork()).ldelim(),l.delay_period!=="0"&&N.uint32(32).uint64(l.delay_period),l.signer!==""&&N.uint32(42).string(l.signer),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};for(;j.pos>>3){case 1:I.client_id=j.string();break;case 2:I.counterparty=u.Counterparty.decode(j,j.uint32());break;case 3:I.version=u.Version.decode(j,j.uint32());break;case 4:I.delay_period=m(j.uint64());break;case 5:I.signer=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({client_id:M(l.client_id)?String(l.client_id):"",counterparty:M(l.counterparty)?u.Counterparty.fromJSON(l.counterparty):void 0,version:M(l.version)?u.Version.fromJSON(l.version):void 0,delay_period:M(l.delay_period)?String(l.delay_period):"0",signer:M(l.signer)?String(l.signer):""}),toJSON(l){const N={};return l.client_id!==void 0&&(N.client_id=l.client_id),l.counterparty!==void 0&&(N.counterparty=l.counterparty?u.Counterparty.toJSON(l.counterparty):void 0),l.version!==void 0&&(N.version=l.version?u.Version.toJSON(l.version):void 0),l.delay_period!==void 0&&(N.delay_period=l.delay_period),l.signer!==void 0&&(N.signer=l.signer),N},fromPartial(l){var N,j,R;const I={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};return I.client_id=(N=l.client_id)!==null&&N!==void 0?N:"",I.counterparty=l.counterparty!==void 0&&l.counterparty!==null?u.Counterparty.fromPartial(l.counterparty):void 0,I.version=l.version!==void 0&&l.version!==null?u.Version.fromPartial(l.version):void 0,I.delay_period=(j=l.delay_period)!==null&&j!==void 0?j:"0",I.signer=(R=l.signer)!==null&&R!==void 0?R:"",I}},e.MsgConnectionOpenInitResponse={encode:(l,N=t.Writer.create())=>N,decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;for(;j.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenTry={encode(l,N=t.Writer.create()){l.client_id!==""&&N.uint32(10).string(l.client_id),l.previous_connection_id!==""&&N.uint32(18).string(l.previous_connection_id),l.client_state!==void 0&&d.Any.encode(l.client_state,N.uint32(26).fork()).ldelim(),l.counterparty!==void 0&&u.Counterparty.encode(l.counterparty,N.uint32(34).fork()).ldelim(),l.delay_period!=="0"&&N.uint32(40).uint64(l.delay_period);for(const j of l.counterparty_versions)u.Version.encode(j,N.uint32(50).fork()).ldelim();return l.proof_height!==void 0&&s.Height.encode(l.proof_height,N.uint32(58).fork()).ldelim(),l.proof_init.length!==0&&N.uint32(66).bytes(l.proof_init),l.proof_client.length!==0&&N.uint32(74).bytes(l.proof_client),l.proof_consensus.length!==0&&N.uint32(82).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,N.uint32(90).fork()).ldelim(),l.signer!==""&&N.uint32(98).string(l.signer),N},decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I=r();for(;j.pos>>3){case 1:I.client_id=j.string();break;case 2:I.previous_connection_id=j.string();break;case 3:I.client_state=d.Any.decode(j,j.uint32());break;case 4:I.counterparty=u.Counterparty.decode(j,j.uint32());break;case 5:I.delay_period=m(j.uint64());break;case 6:I.counterparty_versions.push(u.Version.decode(j,j.uint32()));break;case 7:I.proof_height=s.Height.decode(j,j.uint32());break;case 8:I.proof_init=j.bytes();break;case 9:I.proof_client=j.bytes();break;case 10:I.proof_consensus=j.bytes();break;case 11:I.consensus_height=s.Height.decode(j,j.uint32());break;case 12:I.signer=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({client_id:M(l.client_id)?String(l.client_id):"",previous_connection_id:M(l.previous_connection_id)?String(l.previous_connection_id):"",client_state:M(l.client_state)?d.Any.fromJSON(l.client_state):void 0,counterparty:M(l.counterparty)?u.Counterparty.fromJSON(l.counterparty):void 0,delay_period:M(l.delay_period)?String(l.delay_period):"0",counterparty_versions:Array.isArray(l==null?void 0:l.counterparty_versions)?l.counterparty_versions.map(N=>u.Version.fromJSON(N)):[],proof_height:M(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_init:M(l.proof_init)?c(l.proof_init):new Uint8Array,proof_client:M(l.proof_client)?c(l.proof_client):new Uint8Array,proof_consensus:M(l.proof_consensus)?c(l.proof_consensus):new Uint8Array,consensus_height:M(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:M(l.signer)?String(l.signer):""}),toJSON(l){const N={};return l.client_id!==void 0&&(N.client_id=l.client_id),l.previous_connection_id!==void 0&&(N.previous_connection_id=l.previous_connection_id),l.client_state!==void 0&&(N.client_state=l.client_state?d.Any.toJSON(l.client_state):void 0),l.counterparty!==void 0&&(N.counterparty=l.counterparty?u.Counterparty.toJSON(l.counterparty):void 0),l.delay_period!==void 0&&(N.delay_period=l.delay_period),l.counterparty_versions?N.counterparty_versions=l.counterparty_versions.map(j=>j?u.Version.toJSON(j):void 0):N.counterparty_versions=[],l.proof_height!==void 0&&(N.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_init!==void 0&&(N.proof_init=p(l.proof_init!==void 0?l.proof_init:new Uint8Array)),l.proof_client!==void 0&&(N.proof_client=p(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(N.proof_consensus=p(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(N.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(N.signer=l.signer),N},fromPartial(l){var N,j,R,I,x,P,w,g;const E=r();return E.client_id=(N=l.client_id)!==null&&N!==void 0?N:"",E.previous_connection_id=(j=l.previous_connection_id)!==null&&j!==void 0?j:"",E.client_state=l.client_state!==void 0&&l.client_state!==null?d.Any.fromPartial(l.client_state):void 0,E.counterparty=l.counterparty!==void 0&&l.counterparty!==null?u.Counterparty.fromPartial(l.counterparty):void 0,E.delay_period=(R=l.delay_period)!==null&&R!==void 0?R:"0",E.counterparty_versions=((I=l.counterparty_versions)===null||I===void 0?void 0:I.map(U=>u.Version.fromPartial(U)))||[],E.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,E.proof_init=(x=l.proof_init)!==null&&x!==void 0?x:new Uint8Array,E.proof_client=(P=l.proof_client)!==null&&P!==void 0?P:new Uint8Array,E.proof_consensus=(w=l.proof_consensus)!==null&&w!==void 0?w:new Uint8Array,E.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,E.signer=(g=l.signer)!==null&&g!==void 0?g:"",E}},e.MsgConnectionOpenTryResponse={encode:(l,N=t.Writer.create())=>N,decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;for(;j.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenAck={encode:(l,N=t.Writer.create())=>(l.connection_id!==""&&N.uint32(10).string(l.connection_id),l.counterparty_connection_id!==""&&N.uint32(18).string(l.counterparty_connection_id),l.version!==void 0&&u.Version.encode(l.version,N.uint32(26).fork()).ldelim(),l.client_state!==void 0&&d.Any.encode(l.client_state,N.uint32(34).fork()).ldelim(),l.proof_height!==void 0&&s.Height.encode(l.proof_height,N.uint32(42).fork()).ldelim(),l.proof_try.length!==0&&N.uint32(50).bytes(l.proof_try),l.proof_client.length!==0&&N.uint32(58).bytes(l.proof_client),l.proof_consensus.length!==0&&N.uint32(66).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,N.uint32(74).fork()).ldelim(),l.signer!==""&&N.uint32(82).string(l.signer),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I=n();for(;j.pos>>3){case 1:I.connection_id=j.string();break;case 2:I.counterparty_connection_id=j.string();break;case 3:I.version=u.Version.decode(j,j.uint32());break;case 4:I.client_state=d.Any.decode(j,j.uint32());break;case 5:I.proof_height=s.Height.decode(j,j.uint32());break;case 6:I.proof_try=j.bytes();break;case 7:I.proof_client=j.bytes();break;case 8:I.proof_consensus=j.bytes();break;case 9:I.consensus_height=s.Height.decode(j,j.uint32());break;case 10:I.signer=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({connection_id:M(l.connection_id)?String(l.connection_id):"",counterparty_connection_id:M(l.counterparty_connection_id)?String(l.counterparty_connection_id):"",version:M(l.version)?u.Version.fromJSON(l.version):void 0,client_state:M(l.client_state)?d.Any.fromJSON(l.client_state):void 0,proof_height:M(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_try:M(l.proof_try)?c(l.proof_try):new Uint8Array,proof_client:M(l.proof_client)?c(l.proof_client):new Uint8Array,proof_consensus:M(l.proof_consensus)?c(l.proof_consensus):new Uint8Array,consensus_height:M(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:M(l.signer)?String(l.signer):""}),toJSON(l){const N={};return l.connection_id!==void 0&&(N.connection_id=l.connection_id),l.counterparty_connection_id!==void 0&&(N.counterparty_connection_id=l.counterparty_connection_id),l.version!==void 0&&(N.version=l.version?u.Version.toJSON(l.version):void 0),l.client_state!==void 0&&(N.client_state=l.client_state?d.Any.toJSON(l.client_state):void 0),l.proof_height!==void 0&&(N.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_try!==void 0&&(N.proof_try=p(l.proof_try!==void 0?l.proof_try:new Uint8Array)),l.proof_client!==void 0&&(N.proof_client=p(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(N.proof_consensus=p(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(N.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(N.signer=l.signer),N},fromPartial(l){var N,j,R,I,x,P;const w=n();return w.connection_id=(N=l.connection_id)!==null&&N!==void 0?N:"",w.counterparty_connection_id=(j=l.counterparty_connection_id)!==null&&j!==void 0?j:"",w.version=l.version!==void 0&&l.version!==null?u.Version.fromPartial(l.version):void 0,w.client_state=l.client_state!==void 0&&l.client_state!==null?d.Any.fromPartial(l.client_state):void 0,w.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,w.proof_try=(R=l.proof_try)!==null&&R!==void 0?R:new Uint8Array,w.proof_client=(I=l.proof_client)!==null&&I!==void 0?I:new Uint8Array,w.proof_consensus=(x=l.proof_consensus)!==null&&x!==void 0?x:new Uint8Array,w.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,w.signer=(P=l.signer)!==null&&P!==void 0?P:"",w}},e.MsgConnectionOpenAckResponse={encode:(l,N=t.Writer.create())=>N,decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;for(;j.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenConfirm={encode:(l,N=t.Writer.create())=>(l.connection_id!==""&&N.uint32(10).string(l.connection_id),l.proof_ack.length!==0&&N.uint32(18).bytes(l.proof_ack),l.proof_height!==void 0&&s.Height.encode(l.proof_height,N.uint32(26).fork()).ldelim(),l.signer!==""&&N.uint32(34).string(l.signer),N),decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;const I=o();for(;j.pos>>3){case 1:I.connection_id=j.string();break;case 2:I.proof_ack=j.bytes();break;case 3:I.proof_height=s.Height.decode(j,j.uint32());break;case 4:I.signer=j.string();break;default:j.skipType(7&x)}}return I},fromJSON:l=>({connection_id:M(l.connection_id)?String(l.connection_id):"",proof_ack:M(l.proof_ack)?c(l.proof_ack):new Uint8Array,proof_height:M(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,signer:M(l.signer)?String(l.signer):""}),toJSON(l){const N={};return l.connection_id!==void 0&&(N.connection_id=l.connection_id),l.proof_ack!==void 0&&(N.proof_ack=p(l.proof_ack!==void 0?l.proof_ack:new Uint8Array)),l.proof_height!==void 0&&(N.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.signer!==void 0&&(N.signer=l.signer),N},fromPartial(l){var N,j,R;const I=o();return I.connection_id=(N=l.connection_id)!==null&&N!==void 0?N:"",I.proof_ack=(j=l.proof_ack)!==null&&j!==void 0?j:new Uint8Array,I.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,I.signer=(R=l.signer)!==null&&R!==void 0?R:"",I}},e.MsgConnectionOpenConfirmResponse={encode:(l,N=t.Writer.create())=>N,decode(l,N){const j=l instanceof t.Reader?l:new t.Reader(l);let R=N===void 0?j.len:j.pos+N;for(;j.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgClientImpl=class{constructor(l){this.rpc=l,this.ConnectionOpenInit=this.ConnectionOpenInit.bind(this),this.ConnectionOpenTry=this.ConnectionOpenTry.bind(this),this.ConnectionOpenAck=this.ConnectionOpenAck.bind(this),this.ConnectionOpenConfirm=this.ConnectionOpenConfirm.bind(this)}ConnectionOpenInit(l){const N=e.MsgConnectionOpenInit.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",N).then(j=>e.MsgConnectionOpenInitResponse.decode(new t.Reader(j)))}ConnectionOpenTry(l){const N=e.MsgConnectionOpenTry.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",N).then(j=>e.MsgConnectionOpenTryResponse.decode(new t.Reader(j)))}ConnectionOpenAck(l){const N=e.MsgConnectionOpenAck.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",N).then(j=>e.MsgConnectionOpenAckResponse.decode(new t.Reader(j)))}ConnectionOpenConfirm(l){const N=e.MsgConnectionOpenConfirm.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",N).then(j=>e.MsgConnectionOpenConfirmResponse.decode(new t.Reader(j)))}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function c(l){const N=f(l),j=new Uint8Array(N.length);for(let R=0;Ri.Buffer.from(l,"binary").toString("base64"));function p(l){const N=[];for(const j of l)N.push(String.fromCharCode(j));return h(N.join(""))}function m(l){return l.toString()}function M(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2896:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(I,x,P,w){w===void 0&&(w=P),Object.defineProperty(I,w,{enumerable:!0,get:function(){return x[P]}})}:function(I,x,P,w){w===void 0&&(w=P),I[w]=x[P]}),A=this&&this.__setModuleDefault||(Object.create?function(I,x){Object.defineProperty(I,"default",{enumerable:!0,value:x})}:function(I,x){I.default=x}),k=this&&this.__importStar||function(I){if(I&&I.__esModule)return I;var x={};if(I!=null)for(var P in I)P!=="default"&&Object.prototype.hasOwnProperty.call(I,P)&&O(x,I,P);return A(x,I),x},b=this&&this.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgClearAdminResponse=e.MsgClearAdmin=e.MsgUpdateAdminResponse=e.MsgUpdateAdmin=e.MsgMigrateContractResponse=e.MsgMigrateContract=e.MsgExecuteContractResponse=e.MsgExecuteContract=e.MsgInstantiateContractResponse=e.MsgInstantiateContract=e.MsgStoreCodeResponse=e.MsgStoreCode=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2976);function d(){return{sender:new Uint8Array,wasm_byte_code:new Uint8Array,source:"",builder:""}}function s(){return{sender:new Uint8Array,callback_code_hash:"",code_id:"0",label:"",init_msg:new Uint8Array,init_funds:[],callback_sig:new Uint8Array,admin:""}}function r(){return{address:"",data:new Uint8Array}}function n(){return{sender:new Uint8Array,contract:new Uint8Array,msg:new Uint8Array,callback_code_hash:"",sent_funds:[],callback_sig:new Uint8Array}}function o(){return{data:new Uint8Array}}function i(){return{sender:"",contract:"",code_id:"0",msg:new Uint8Array,callback_sig:new Uint8Array,callback_code_hash:""}}function f(){return{data:new Uint8Array}}function c(){return{sender:"",new_admin:"",contract:"",callback_sig:new Uint8Array}}function h(){return{sender:"",contract:"",callback_sig:new Uint8Array}}e.protobufPackage="secret.compute.v1beta1",e.MsgStoreCode={encode:(I,x=t.Writer.create())=>(I.sender.length!==0&&x.uint32(10).bytes(I.sender),I.wasm_byte_code.length!==0&&x.uint32(18).bytes(I.wasm_byte_code),I.source!==""&&x.uint32(26).string(I.source),I.builder!==""&&x.uint32(34).string(I.builder),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=d();for(;P.pos>>3){case 1:g.sender=P.bytes();break;case 2:g.wasm_byte_code=P.bytes();break;case 3:g.source=P.string();break;case 4:g.builder=P.string();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?M(I.sender):new Uint8Array,wasm_byte_code:R(I.wasm_byte_code)?M(I.wasm_byte_code):new Uint8Array,source:R(I.source)?String(I.source):"",builder:R(I.builder)?String(I.builder):""}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=N(I.sender!==void 0?I.sender:new Uint8Array)),I.wasm_byte_code!==void 0&&(x.wasm_byte_code=N(I.wasm_byte_code!==void 0?I.wasm_byte_code:new Uint8Array)),I.source!==void 0&&(x.source=I.source),I.builder!==void 0&&(x.builder=I.builder),x},fromPartial(I){var x,P,w,g;const E=d();return E.sender=(x=I.sender)!==null&&x!==void 0?x:new Uint8Array,E.wasm_byte_code=(P=I.wasm_byte_code)!==null&&P!==void 0?P:new Uint8Array,E.source=(w=I.source)!==null&&w!==void 0?w:"",E.builder=(g=I.builder)!==null&&g!==void 0?g:"",E}},e.MsgStoreCodeResponse={encode:(I,x=t.Writer.create())=>(I.code_id!=="0"&&x.uint32(8).uint64(I.code_id),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g={code_id:"0"};for(;P.pos>>3==1?g.code_id=j(P.uint64()):P.skipType(7&E)}return g},fromJSON:I=>({code_id:R(I.code_id)?String(I.code_id):"0"}),toJSON(I){const x={};return I.code_id!==void 0&&(x.code_id=I.code_id),x},fromPartial(I){var x;const P={code_id:"0"};return P.code_id=(x=I.code_id)!==null&&x!==void 0?x:"0",P}},e.MsgInstantiateContract={encode(I,x=t.Writer.create()){I.sender.length!==0&&x.uint32(10).bytes(I.sender),I.callback_code_hash!==""&&x.uint32(18).string(I.callback_code_hash),I.code_id!=="0"&&x.uint32(24).uint64(I.code_id),I.label!==""&&x.uint32(34).string(I.label),I.init_msg.length!==0&&x.uint32(42).bytes(I.init_msg);for(const P of I.init_funds)u.Coin.encode(P,x.uint32(50).fork()).ldelim();return I.callback_sig.length!==0&&x.uint32(58).bytes(I.callback_sig),I.admin!==""&&x.uint32(66).string(I.admin),x},decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=s();for(;P.pos>>3){case 1:g.sender=P.bytes();break;case 2:g.callback_code_hash=P.string();break;case 3:g.code_id=j(P.uint64());break;case 4:g.label=P.string();break;case 5:g.init_msg=P.bytes();break;case 6:g.init_funds.push(u.Coin.decode(P,P.uint32()));break;case 7:g.callback_sig=P.bytes();break;case 8:g.admin=P.string();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?M(I.sender):new Uint8Array,callback_code_hash:R(I.callback_code_hash)?String(I.callback_code_hash):"",code_id:R(I.code_id)?String(I.code_id):"0",label:R(I.label)?String(I.label):"",init_msg:R(I.init_msg)?M(I.init_msg):new Uint8Array,init_funds:Array.isArray(I==null?void 0:I.init_funds)?I.init_funds.map(x=>u.Coin.fromJSON(x)):[],callback_sig:R(I.callback_sig)?M(I.callback_sig):new Uint8Array,admin:R(I.admin)?String(I.admin):""}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=N(I.sender!==void 0?I.sender:new Uint8Array)),I.callback_code_hash!==void 0&&(x.callback_code_hash=I.callback_code_hash),I.code_id!==void 0&&(x.code_id=I.code_id),I.label!==void 0&&(x.label=I.label),I.init_msg!==void 0&&(x.init_msg=N(I.init_msg!==void 0?I.init_msg:new Uint8Array)),I.init_funds?x.init_funds=I.init_funds.map(P=>P?u.Coin.toJSON(P):void 0):x.init_funds=[],I.callback_sig!==void 0&&(x.callback_sig=N(I.callback_sig!==void 0?I.callback_sig:new Uint8Array)),I.admin!==void 0&&(x.admin=I.admin),x},fromPartial(I){var x,P,w,g,E,U,C,F;const re=s();return re.sender=(x=I.sender)!==null&&x!==void 0?x:new Uint8Array,re.callback_code_hash=(P=I.callback_code_hash)!==null&&P!==void 0?P:"",re.code_id=(w=I.code_id)!==null&&w!==void 0?w:"0",re.label=(g=I.label)!==null&&g!==void 0?g:"",re.init_msg=(E=I.init_msg)!==null&&E!==void 0?E:new Uint8Array,re.init_funds=((U=I.init_funds)===null||U===void 0?void 0:U.map(ee=>u.Coin.fromPartial(ee)))||[],re.callback_sig=(C=I.callback_sig)!==null&&C!==void 0?C:new Uint8Array,re.admin=(F=I.admin)!==null&&F!==void 0?F:"",re}},e.MsgInstantiateContractResponse={encode:(I,x=t.Writer.create())=>(I.address!==""&&x.uint32(10).string(I.address),I.data.length!==0&&x.uint32(18).bytes(I.data),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=r();for(;P.pos>>3){case 1:g.address=P.string();break;case 2:g.data=P.bytes();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({address:R(I.address)?String(I.address):"",data:R(I.data)?M(I.data):new Uint8Array}),toJSON(I){const x={};return I.address!==void 0&&(x.address=I.address),I.data!==void 0&&(x.data=N(I.data!==void 0?I.data:new Uint8Array)),x},fromPartial(I){var x,P;const w=r();return w.address=(x=I.address)!==null&&x!==void 0?x:"",w.data=(P=I.data)!==null&&P!==void 0?P:new Uint8Array,w}},e.MsgExecuteContract={encode(I,x=t.Writer.create()){I.sender.length!==0&&x.uint32(10).bytes(I.sender),I.contract.length!==0&&x.uint32(18).bytes(I.contract),I.msg.length!==0&&x.uint32(26).bytes(I.msg),I.callback_code_hash!==""&&x.uint32(34).string(I.callback_code_hash);for(const P of I.sent_funds)u.Coin.encode(P,x.uint32(42).fork()).ldelim();return I.callback_sig.length!==0&&x.uint32(50).bytes(I.callback_sig),x},decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=n();for(;P.pos>>3){case 1:g.sender=P.bytes();break;case 2:g.contract=P.bytes();break;case 3:g.msg=P.bytes();break;case 4:g.callback_code_hash=P.string();break;case 5:g.sent_funds.push(u.Coin.decode(P,P.uint32()));break;case 6:g.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?M(I.sender):new Uint8Array,contract:R(I.contract)?M(I.contract):new Uint8Array,msg:R(I.msg)?M(I.msg):new Uint8Array,callback_code_hash:R(I.callback_code_hash)?String(I.callback_code_hash):"",sent_funds:Array.isArray(I==null?void 0:I.sent_funds)?I.sent_funds.map(x=>u.Coin.fromJSON(x)):[],callback_sig:R(I.callback_sig)?M(I.callback_sig):new Uint8Array}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=N(I.sender!==void 0?I.sender:new Uint8Array)),I.contract!==void 0&&(x.contract=N(I.contract!==void 0?I.contract:new Uint8Array)),I.msg!==void 0&&(x.msg=N(I.msg!==void 0?I.msg:new Uint8Array)),I.callback_code_hash!==void 0&&(x.callback_code_hash=I.callback_code_hash),I.sent_funds?x.sent_funds=I.sent_funds.map(P=>P?u.Coin.toJSON(P):void 0):x.sent_funds=[],I.callback_sig!==void 0&&(x.callback_sig=N(I.callback_sig!==void 0?I.callback_sig:new Uint8Array)),x},fromPartial(I){var x,P,w,g,E,U;const C=n();return C.sender=(x=I.sender)!==null&&x!==void 0?x:new Uint8Array,C.contract=(P=I.contract)!==null&&P!==void 0?P:new Uint8Array,C.msg=(w=I.msg)!==null&&w!==void 0?w:new Uint8Array,C.callback_code_hash=(g=I.callback_code_hash)!==null&&g!==void 0?g:"",C.sent_funds=((E=I.sent_funds)===null||E===void 0?void 0:E.map(F=>u.Coin.fromPartial(F)))||[],C.callback_sig=(U=I.callback_sig)!==null&&U!==void 0?U:new Uint8Array,C}},e.MsgExecuteContractResponse={encode:(I,x=t.Writer.create())=>(I.data.length!==0&&x.uint32(10).bytes(I.data),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=o();for(;P.pos>>3==1?g.data=P.bytes():P.skipType(7&E)}return g},fromJSON:I=>({data:R(I.data)?M(I.data):new Uint8Array}),toJSON(I){const x={};return I.data!==void 0&&(x.data=N(I.data!==void 0?I.data:new Uint8Array)),x},fromPartial(I){var x;const P=o();return P.data=(x=I.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgMigrateContract={encode:(I,x=t.Writer.create())=>(I.sender!==""&&x.uint32(10).string(I.sender),I.contract!==""&&x.uint32(18).string(I.contract),I.code_id!=="0"&&x.uint32(24).uint64(I.code_id),I.msg.length!==0&&x.uint32(34).bytes(I.msg),I.callback_sig.length!==0&&x.uint32(58).bytes(I.callback_sig),I.callback_code_hash!==""&&x.uint32(66).string(I.callback_code_hash),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=i();for(;P.pos>>3){case 1:g.sender=P.string();break;case 2:g.contract=P.string();break;case 3:g.code_id=j(P.uint64());break;case 4:g.msg=P.bytes();break;case 7:g.callback_sig=P.bytes();break;case 8:g.callback_code_hash=P.string();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?String(I.sender):"",contract:R(I.contract)?String(I.contract):"",code_id:R(I.code_id)?String(I.code_id):"0",msg:R(I.msg)?M(I.msg):new Uint8Array,callback_sig:R(I.callback_sig)?M(I.callback_sig):new Uint8Array,callback_code_hash:R(I.callback_code_hash)?String(I.callback_code_hash):""}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=I.sender),I.contract!==void 0&&(x.contract=I.contract),I.code_id!==void 0&&(x.code_id=I.code_id),I.msg!==void 0&&(x.msg=N(I.msg!==void 0?I.msg:new Uint8Array)),I.callback_sig!==void 0&&(x.callback_sig=N(I.callback_sig!==void 0?I.callback_sig:new Uint8Array)),I.callback_code_hash!==void 0&&(x.callback_code_hash=I.callback_code_hash),x},fromPartial(I){var x,P,w,g,E,U;const C=i();return C.sender=(x=I.sender)!==null&&x!==void 0?x:"",C.contract=(P=I.contract)!==null&&P!==void 0?P:"",C.code_id=(w=I.code_id)!==null&&w!==void 0?w:"0",C.msg=(g=I.msg)!==null&&g!==void 0?g:new Uint8Array,C.callback_sig=(E=I.callback_sig)!==null&&E!==void 0?E:new Uint8Array,C.callback_code_hash=(U=I.callback_code_hash)!==null&&U!==void 0?U:"",C}},e.MsgMigrateContractResponse={encode:(I,x=t.Writer.create())=>(I.data.length!==0&&x.uint32(10).bytes(I.data),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=f();for(;P.pos>>3==1?g.data=P.bytes():P.skipType(7&E)}return g},fromJSON:I=>({data:R(I.data)?M(I.data):new Uint8Array}),toJSON(I){const x={};return I.data!==void 0&&(x.data=N(I.data!==void 0?I.data:new Uint8Array)),x},fromPartial(I){var x;const P=f();return P.data=(x=I.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgUpdateAdmin={encode:(I,x=t.Writer.create())=>(I.sender!==""&&x.uint32(10).string(I.sender),I.new_admin!==""&&x.uint32(18).string(I.new_admin),I.contract!==""&&x.uint32(26).string(I.contract),I.callback_sig.length!==0&&x.uint32(58).bytes(I.callback_sig),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=c();for(;P.pos>>3){case 1:g.sender=P.string();break;case 2:g.new_admin=P.string();break;case 3:g.contract=P.string();break;case 7:g.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?String(I.sender):"",new_admin:R(I.new_admin)?String(I.new_admin):"",contract:R(I.contract)?String(I.contract):"",callback_sig:R(I.callback_sig)?M(I.callback_sig):new Uint8Array}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=I.sender),I.new_admin!==void 0&&(x.new_admin=I.new_admin),I.contract!==void 0&&(x.contract=I.contract),I.callback_sig!==void 0&&(x.callback_sig=N(I.callback_sig!==void 0?I.callback_sig:new Uint8Array)),x},fromPartial(I){var x,P,w,g;const E=c();return E.sender=(x=I.sender)!==null&&x!==void 0?x:"",E.new_admin=(P=I.new_admin)!==null&&P!==void 0?P:"",E.contract=(w=I.contract)!==null&&w!==void 0?w:"",E.callback_sig=(g=I.callback_sig)!==null&&g!==void 0?g:new Uint8Array,E}},e.MsgUpdateAdminResponse={encode:(I,x=t.Writer.create())=>x,decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:I=>({}),fromPartial:I=>({})},e.MsgClearAdmin={encode:(I,x=t.Writer.create())=>(I.sender!==""&&x.uint32(10).string(I.sender),I.contract!==""&&x.uint32(26).string(I.contract),I.callback_sig.length!==0&&x.uint32(58).bytes(I.callback_sig),x),decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;const g=h();for(;P.pos>>3){case 1:g.sender=P.string();break;case 3:g.contract=P.string();break;case 7:g.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return g},fromJSON:I=>({sender:R(I.sender)?String(I.sender):"",contract:R(I.contract)?String(I.contract):"",callback_sig:R(I.callback_sig)?M(I.callback_sig):new Uint8Array}),toJSON(I){const x={};return I.sender!==void 0&&(x.sender=I.sender),I.contract!==void 0&&(x.contract=I.contract),I.callback_sig!==void 0&&(x.callback_sig=N(I.callback_sig!==void 0?I.callback_sig:new Uint8Array)),x},fromPartial(I){var x,P,w;const g=h();return g.sender=(x=I.sender)!==null&&x!==void 0?x:"",g.contract=(P=I.contract)!==null&&P!==void 0?P:"",g.callback_sig=(w=I.callback_sig)!==null&&w!==void 0?w:new Uint8Array,g}},e.MsgClearAdminResponse={encode:(I,x=t.Writer.create())=>x,decode(I,x){const P=I instanceof t.Reader?I:new t.Reader(I);let w=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:I=>({}),fromPartial:I=>({})},e.MsgClientImpl=class{constructor(I){this.rpc=I,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this)}StoreCode(I){const x=e.MsgStoreCode.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","StoreCode",x).then(P=>e.MsgStoreCodeResponse.decode(new t.Reader(P)))}InstantiateContract(I){const x=e.MsgInstantiateContract.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","InstantiateContract",x).then(P=>e.MsgInstantiateContractResponse.decode(new t.Reader(P)))}ExecuteContract(I){const x=e.MsgExecuteContract.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ExecuteContract",x).then(P=>e.MsgExecuteContractResponse.decode(new t.Reader(P)))}MigrateContract(I){const x=e.MsgMigrateContract.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","MigrateContract",x).then(P=>e.MsgMigrateContractResponse.decode(new t.Reader(P)))}UpdateAdmin(I){const x=e.MsgUpdateAdmin.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","UpdateAdmin",x).then(P=>e.MsgUpdateAdminResponse.decode(new t.Reader(P)))}ClearAdmin(I){const x=e.MsgClearAdmin.encode(I).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ClearAdmin",x).then(P=>e.MsgClearAdminResponse.decode(new t.Reader(P)))}};var p=(()=>{if(p!==void 0)return p;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const m=p.atob||(I=>p.Buffer.from(I,"base64").toString("binary"));function M(I){const x=m(I),P=new Uint8Array(x.length);for(let w=0;wp.Buffer.from(I,"binary").toString("base64"));function N(I){const x=[];for(const P of I)x.push(String.fromCharCode(P));return l(x.join(""))}function j(I){return I.toString()}function R(I){return I!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4657:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(u,d,s,r){r===void 0&&(r=s),Object.defineProperty(u,r,{enumerable:!0,get:function(){return d[s]}})}:function(u,d,s,r){r===void 0&&(r=s),u[r]=d[s]}),A=this&&this.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&O(d,u,s);return A(d,u),d},b=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgToggleIbcSwitchResponse=e.MsgToggleIbcSwitch=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));e.protobufPackage="secret.emergencybutton.v1beta1",e.MsgToggleIbcSwitch={encode:(u,d=t.Writer.create())=>(u.sender!==""&&d.uint32(10).string(u.sender),d),decode(u,d){const s=u instanceof t.Reader?u:new t.Reader(u);let r=d===void 0?s.len:s.pos+d;const n={sender:""};for(;s.pos>>3==1?n.sender=s.string():s.skipType(7&o)}return n},fromJSON(u){return{sender:(d=u.sender,d!=null?String(u.sender):"")};var d},toJSON(u){const d={};return u.sender!==void 0&&(d.sender=u.sender),d},fromPartial(u){var d;const s={sender:""};return s.sender=(d=u.sender)!==null&&d!==void 0?d:"",s}},e.MsgToggleIbcSwitchResponse={encode:(u,d=t.Writer.create())=>d,decode(u,d){const s=u instanceof t.Reader?u:new t.Reader(u);let r=d===void 0?s.len:s.pos+d;for(;s.pos({}),toJSON:u=>({}),fromPartial:u=>({})},e.MsgClientImpl=class{constructor(u){this.rpc=u,this.ToggleIbcSwitch=this.ToggleIbcSwitch.bind(this)}ToggleIbcSwitch(u){const d=e.MsgToggleIbcSwitch.encode(u).finish();return this.rpc.request("secret.emergencybutton.v1beta1.Msg","ToggleIbcSwitch",d).then(s=>e.MsgToggleIbcSwitchResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1901:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(h,p,m,M){M===void 0&&(M=m),Object.defineProperty(h,M,{enumerable:!0,get:function(){return p[m]}})}:function(h,p,m,M){M===void 0&&(M=m),h[M]=p[m]}),A=this&&this.__setModuleDefault||(Object.create?function(h,p){Object.defineProperty(h,"default",{enumerable:!0,value:p})}:function(h,p){h.default=p}),k=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var m in h)m!=="default"&&Object.prototype.hasOwnProperty.call(h,m)&&O(p,h,m);return A(p,h),p},b=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.Key=e.MasterKey=e.RaAuthenticate=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{sender:new Uint8Array,certificate:new Uint8Array}}function d(){return{bytes:new Uint8Array}}function s(){return{key:new Uint8Array}}e.protobufPackage="secret.registration.v1beta1",e.RaAuthenticate={encode:(h,p=t.Writer.create())=>(h.sender.length!==0&&p.uint32(10).bytes(h.sender),h.certificate.length!==0&&p.uint32(18).bytes(h.certificate),p),decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l=u();for(;m.pos>>3){case 1:l.sender=m.bytes();break;case 2:l.certificate=m.bytes();break;default:m.skipType(7&N)}}return l},fromJSON:h=>({sender:c(h.sender)?o(h.sender):new Uint8Array,certificate:c(h.certificate)?o(h.certificate):new Uint8Array}),toJSON(h){const p={};return h.sender!==void 0&&(p.sender=f(h.sender!==void 0?h.sender:new Uint8Array)),h.certificate!==void 0&&(p.certificate=f(h.certificate!==void 0?h.certificate:new Uint8Array)),p},fromPartial(h){var p,m;const M=u();return M.sender=(p=h.sender)!==null&&p!==void 0?p:new Uint8Array,M.certificate=(m=h.certificate)!==null&&m!==void 0?m:new Uint8Array,M}},e.MasterKey={encode:(h,p=t.Writer.create())=>(h.bytes.length!==0&&p.uint32(10).bytes(h.bytes),p),decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l=d();for(;m.pos>>3==1?l.bytes=m.bytes():m.skipType(7&N)}return l},fromJSON:h=>({bytes:c(h.bytes)?o(h.bytes):new Uint8Array}),toJSON(h){const p={};return h.bytes!==void 0&&(p.bytes=f(h.bytes!==void 0?h.bytes:new Uint8Array)),p},fromPartial(h){var p;const m=d();return m.bytes=(p=h.bytes)!==null&&p!==void 0?p:new Uint8Array,m}},e.Key={encode:(h,p=t.Writer.create())=>(h.key.length!==0&&p.uint32(10).bytes(h.key),p),decode(h,p){const m=h instanceof t.Reader?h:new t.Reader(h);let M=p===void 0?m.len:m.pos+p;const l=s();for(;m.pos>>3==1?l.key=m.bytes():m.skipType(7&N)}return l},fromJSON:h=>({key:c(h.key)?o(h.key):new Uint8Array}),toJSON(h){const p={};return h.key!==void 0&&(p.key=f(h.key!==void 0?h.key:new Uint8Array)),p},fromPartial(h){var p;const m=s();return m.key=(p=h.key)!==null&&p!==void 0?p:new Uint8Array,m}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const n=r.atob||(h=>r.Buffer.from(h,"base64").toString("binary"));function o(h){const p=n(h),m=new Uint8Array(p.length);for(let M=0;Mr.Buffer.from(h,"binary").toString("base64"));function f(h){const p=[];for(const m of h)p.push(String.fromCharCode(m));return i(p.join(""))}function c(h){return h!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2093:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(v,y,S,T){T===void 0&&(T=S),Object.defineProperty(v,T,{enumerable:!0,get:function(){return y[S]}})}:function(v,y,S,T){T===void 0&&(T=S),v[T]=y[S]}),A=this&&this.__setModuleDefault||(Object.create?function(v,y){Object.defineProperty(v,"default",{enumerable:!0,value:y})}:function(v,y){v.default=y}),k=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var y={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&O(y,v,S);return A(y,v),y},b=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.LastCommitInfo=e.BlockParams=e.ConsensusParams=e.ResponseApplySnapshotChunk=e.ResponseLoadSnapshotChunk=e.ResponseOfferSnapshot=e.ResponseListSnapshots=e.ResponseCommit=e.ResponseEndBlock=e.ResponseDeliverTx=e.ResponseCheckTx=e.ResponseBeginBlock=e.ResponseQuery=e.ResponseInitChain=e.ResponseSetOption=e.ResponseInfo=e.ResponseFlush=e.ResponseEcho=e.ResponseException=e.Response=e.RequestApplySnapshotChunk=e.RequestLoadSnapshotChunk=e.RequestOfferSnapshot=e.RequestListSnapshots=e.RequestCommit=e.RequestEndBlock=e.RequestDeliverTx=e.RequestCheckTx=e.RequestBeginBlock=e.RequestQuery=e.RequestInitChain=e.RequestSetOption=e.RequestInfo=e.RequestFlush=e.RequestEcho=e.Request=e.responseApplySnapshotChunk_ResultToJSON=e.responseApplySnapshotChunk_ResultFromJSON=e.ResponseApplySnapshotChunk_Result=e.responseOfferSnapshot_ResultToJSON=e.responseOfferSnapshot_ResultFromJSON=e.ResponseOfferSnapshot_Result=e.evidenceTypeToJSON=e.evidenceTypeFromJSON=e.EvidenceType=e.checkTxTypeToJSON=e.checkTxTypeFromJSON=e.CheckTxType=e.protobufPackage=void 0,e.ABCIApplicationClientImpl=e.Snapshot=e.Evidence=e.VoteInfo=e.ValidatorUpdate=e.Validator=e.TxResult=e.EventAttribute=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(5090),d=_(9928),s=_(1093),r=_(5672),n=_(2740);var o,i,f,c;function h(v){switch(v){case 0:case"NEW":return o.NEW;case 1:case"RECHECK":return o.RECHECK;default:return o.UNRECOGNIZED}}function p(v){switch(v){case o.NEW:return"NEW";case o.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function m(v){switch(v){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"DUPLICATE_VOTE":return i.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return i.LIGHT_CLIENT_ATTACK;default:return i.UNRECOGNIZED}}function M(v){switch(v){case i.UNKNOWN:return"UNKNOWN";case i.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case i.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function l(v){switch(v){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"ACCEPT":return f.ACCEPT;case 2:case"ABORT":return f.ABORT;case 3:case"REJECT":return f.REJECT;case 4:case"REJECT_FORMAT":return f.REJECT_FORMAT;case 5:case"REJECT_SENDER":return f.REJECT_SENDER;default:return f.UNRECOGNIZED}}function N(v){switch(v){case f.UNKNOWN:return"UNKNOWN";case f.ACCEPT:return"ACCEPT";case f.ABORT:return"ABORT";case f.REJECT:return"REJECT";case f.REJECT_FORMAT:return"REJECT_FORMAT";case f.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function j(v){switch(v){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"ACCEPT":return c.ACCEPT;case 2:case"ABORT":return c.ABORT;case 3:case"RETRY":return c.RETRY;case 4:case"RETRY_SNAPSHOT":return c.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return c.REJECT_SNAPSHOT;default:return c.UNRECOGNIZED}}function R(v){switch(v){case c.UNKNOWN:return"UNKNOWN";case c.ACCEPT:return"ACCEPT";case c.ABORT:return"ABORT";case c.RETRY:return"RETRY";case c.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case c.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}function I(){return{time:void 0,chain_id:"",consensus_params:void 0,validators:[],app_state_bytes:new Uint8Array,initial_height:"0"}}function x(){return{data:new Uint8Array,path:"",height:"0",prove:!1}}function P(){return{hash:new Uint8Array,header:void 0,last_commit_info:void 0,byzantine_validators:[],commit:void 0,txs:[]}}function w(){return{tx:new Uint8Array,type:0}}function g(){return{tx:new Uint8Array}}function E(){return{snapshot:void 0,app_hash:new Uint8Array}}function U(){return{index:0,chunk:new Uint8Array,sender:""}}function C(){return{data:"",version:"",app_version:"0",last_block_height:"0",last_block_app_hash:new Uint8Array}}function F(){return{consensus_params:void 0,validators:[],app_hash:new Uint8Array}}function re(){return{code:0,log:"",info:"",index:"0",key:new Uint8Array,value:new Uint8Array,proof_ops:void 0,height:"0",codespace:""}}function ee(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:"",sender:"",priority:"0",mempool_error:""}}function ne(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:""}}function D(){return{data:new Uint8Array,retain_height:"0"}}function Z(){return{chunk:new Uint8Array}}function $(){return{key:new Uint8Array,value:new Uint8Array,index:!1}}function X(){return{height:"0",index:0,tx:new Uint8Array,result:void 0}}function K(){return{address:new Uint8Array,power:"0"}}function Y(){return{height:"0",format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}e.protobufPackage="tendermint.abci",function(v){v[v.NEW=0]="NEW",v[v.RECHECK=1]="RECHECK",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.CheckTxType||(e.CheckTxType={})),e.checkTxTypeFromJSON=h,e.checkTxTypeToJSON=p,function(v){v[v.UNKNOWN=0]="UNKNOWN",v[v.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",v[v.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=e.EvidenceType||(e.EvidenceType={})),e.evidenceTypeFromJSON=m,e.evidenceTypeToJSON=M,function(v){v[v.UNKNOWN=0]="UNKNOWN",v[v.ACCEPT=1]="ACCEPT",v[v.ABORT=2]="ABORT",v[v.REJECT=3]="REJECT",v[v.REJECT_FORMAT=4]="REJECT_FORMAT",v[v.REJECT_SENDER=5]="REJECT_SENDER",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=e.ResponseOfferSnapshot_Result||(e.ResponseOfferSnapshot_Result={})),e.responseOfferSnapshot_ResultFromJSON=l,e.responseOfferSnapshot_ResultToJSON=N,function(v){v[v.UNKNOWN=0]="UNKNOWN",v[v.ACCEPT=1]="ACCEPT",v[v.ABORT=2]="ABORT",v[v.RETRY=3]="RETRY",v[v.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",v[v.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=e.ResponseApplySnapshotChunk_Result||(e.ResponseApplySnapshotChunk_Result={})),e.responseApplySnapshotChunk_ResultFromJSON=j,e.responseApplySnapshotChunk_ResultToJSON=R,e.Request={encode:(v,y=t.Writer.create())=>(v.echo!==void 0&&e.RequestEcho.encode(v.echo,y.uint32(10).fork()).ldelim(),v.flush!==void 0&&e.RequestFlush.encode(v.flush,y.uint32(18).fork()).ldelim(),v.info!==void 0&&e.RequestInfo.encode(v.info,y.uint32(26).fork()).ldelim(),v.set_option!==void 0&&e.RequestSetOption.encode(v.set_option,y.uint32(34).fork()).ldelim(),v.init_chain!==void 0&&e.RequestInitChain.encode(v.init_chain,y.uint32(42).fork()).ldelim(),v.query!==void 0&&e.RequestQuery.encode(v.query,y.uint32(50).fork()).ldelim(),v.begin_block!==void 0&&e.RequestBeginBlock.encode(v.begin_block,y.uint32(58).fork()).ldelim(),v.check_tx!==void 0&&e.RequestCheckTx.encode(v.check_tx,y.uint32(66).fork()).ldelim(),v.deliver_tx!==void 0&&e.RequestDeliverTx.encode(v.deliver_tx,y.uint32(74).fork()).ldelim(),v.end_block!==void 0&&e.RequestEndBlock.encode(v.end_block,y.uint32(82).fork()).ldelim(),v.commit!==void 0&&e.RequestCommit.encode(v.commit,y.uint32(90).fork()).ldelim(),v.list_snapshots!==void 0&&e.RequestListSnapshots.encode(v.list_snapshots,y.uint32(98).fork()).ldelim(),v.offer_snapshot!==void 0&&e.RequestOfferSnapshot.encode(v.offer_snapshot,y.uint32(106).fork()).ldelim(),v.load_snapshot_chunk!==void 0&&e.RequestLoadSnapshotChunk.encode(v.load_snapshot_chunk,y.uint32(114).fork()).ldelim(),v.apply_snapshot_chunk!==void 0&&e.RequestApplySnapshotChunk.encode(v.apply_snapshot_chunk,y.uint32(122).fork()).ldelim(),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;S.pos>>3){case 1:B.echo=e.RequestEcho.decode(S,S.uint32());break;case 2:B.flush=e.RequestFlush.decode(S,S.uint32());break;case 3:B.info=e.RequestInfo.decode(S,S.uint32());break;case 4:B.set_option=e.RequestSetOption.decode(S,S.uint32());break;case 5:B.init_chain=e.RequestInitChain.decode(S,S.uint32());break;case 6:B.query=e.RequestQuery.decode(S,S.uint32());break;case 7:B.begin_block=e.RequestBeginBlock.decode(S,S.uint32());break;case 8:B.check_tx=e.RequestCheckTx.decode(S,S.uint32());break;case 9:B.deliver_tx=e.RequestDeliverTx.decode(S,S.uint32());break;case 10:B.end_block=e.RequestEndBlock.decode(S,S.uint32());break;case 11:B.commit=e.RequestCommit.decode(S,S.uint32());break;case 12:B.list_snapshots=e.RequestListSnapshots.decode(S,S.uint32());break;case 13:B.offer_snapshot=e.RequestOfferSnapshot.decode(S,S.uint32());break;case 14:B.load_snapshot_chunk=e.RequestLoadSnapshotChunk.decode(S,S.uint32());break;case 15:B.apply_snapshot_chunk=e.RequestApplySnapshotChunk.decode(S,S.uint32());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({echo:W(v.echo)?e.RequestEcho.fromJSON(v.echo):void 0,flush:W(v.flush)?e.RequestFlush.fromJSON(v.flush):void 0,info:W(v.info)?e.RequestInfo.fromJSON(v.info):void 0,set_option:W(v.set_option)?e.RequestSetOption.fromJSON(v.set_option):void 0,init_chain:W(v.init_chain)?e.RequestInitChain.fromJSON(v.init_chain):void 0,query:W(v.query)?e.RequestQuery.fromJSON(v.query):void 0,begin_block:W(v.begin_block)?e.RequestBeginBlock.fromJSON(v.begin_block):void 0,check_tx:W(v.check_tx)?e.RequestCheckTx.fromJSON(v.check_tx):void 0,deliver_tx:W(v.deliver_tx)?e.RequestDeliverTx.fromJSON(v.deliver_tx):void 0,end_block:W(v.end_block)?e.RequestEndBlock.fromJSON(v.end_block):void 0,commit:W(v.commit)?e.RequestCommit.fromJSON(v.commit):void 0,list_snapshots:W(v.list_snapshots)?e.RequestListSnapshots.fromJSON(v.list_snapshots):void 0,offer_snapshot:W(v.offer_snapshot)?e.RequestOfferSnapshot.fromJSON(v.offer_snapshot):void 0,load_snapshot_chunk:W(v.load_snapshot_chunk)?e.RequestLoadSnapshotChunk.fromJSON(v.load_snapshot_chunk):void 0,apply_snapshot_chunk:W(v.apply_snapshot_chunk)?e.RequestApplySnapshotChunk.fromJSON(v.apply_snapshot_chunk):void 0}),toJSON(v){const y={};return v.echo!==void 0&&(y.echo=v.echo?e.RequestEcho.toJSON(v.echo):void 0),v.flush!==void 0&&(y.flush=v.flush?e.RequestFlush.toJSON(v.flush):void 0),v.info!==void 0&&(y.info=v.info?e.RequestInfo.toJSON(v.info):void 0),v.set_option!==void 0&&(y.set_option=v.set_option?e.RequestSetOption.toJSON(v.set_option):void 0),v.init_chain!==void 0&&(y.init_chain=v.init_chain?e.RequestInitChain.toJSON(v.init_chain):void 0),v.query!==void 0&&(y.query=v.query?e.RequestQuery.toJSON(v.query):void 0),v.begin_block!==void 0&&(y.begin_block=v.begin_block?e.RequestBeginBlock.toJSON(v.begin_block):void 0),v.check_tx!==void 0&&(y.check_tx=v.check_tx?e.RequestCheckTx.toJSON(v.check_tx):void 0),v.deliver_tx!==void 0&&(y.deliver_tx=v.deliver_tx?e.RequestDeliverTx.toJSON(v.deliver_tx):void 0),v.end_block!==void 0&&(y.end_block=v.end_block?e.RequestEndBlock.toJSON(v.end_block):void 0),v.commit!==void 0&&(y.commit=v.commit?e.RequestCommit.toJSON(v.commit):void 0),v.list_snapshots!==void 0&&(y.list_snapshots=v.list_snapshots?e.RequestListSnapshots.toJSON(v.list_snapshots):void 0),v.offer_snapshot!==void 0&&(y.offer_snapshot=v.offer_snapshot?e.RequestOfferSnapshot.toJSON(v.offer_snapshot):void 0),v.load_snapshot_chunk!==void 0&&(y.load_snapshot_chunk=v.load_snapshot_chunk?e.RequestLoadSnapshotChunk.toJSON(v.load_snapshot_chunk):void 0),v.apply_snapshot_chunk!==void 0&&(y.apply_snapshot_chunk=v.apply_snapshot_chunk?e.RequestApplySnapshotChunk.toJSON(v.apply_snapshot_chunk):void 0),y},fromPartial(v){const y={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return y.echo=v.echo!==void 0&&v.echo!==null?e.RequestEcho.fromPartial(v.echo):void 0,y.flush=v.flush!==void 0&&v.flush!==null?e.RequestFlush.fromPartial(v.flush):void 0,y.info=v.info!==void 0&&v.info!==null?e.RequestInfo.fromPartial(v.info):void 0,y.set_option=v.set_option!==void 0&&v.set_option!==null?e.RequestSetOption.fromPartial(v.set_option):void 0,y.init_chain=v.init_chain!==void 0&&v.init_chain!==null?e.RequestInitChain.fromPartial(v.init_chain):void 0,y.query=v.query!==void 0&&v.query!==null?e.RequestQuery.fromPartial(v.query):void 0,y.begin_block=v.begin_block!==void 0&&v.begin_block!==null?e.RequestBeginBlock.fromPartial(v.begin_block):void 0,y.check_tx=v.check_tx!==void 0&&v.check_tx!==null?e.RequestCheckTx.fromPartial(v.check_tx):void 0,y.deliver_tx=v.deliver_tx!==void 0&&v.deliver_tx!==null?e.RequestDeliverTx.fromPartial(v.deliver_tx):void 0,y.end_block=v.end_block!==void 0&&v.end_block!==null?e.RequestEndBlock.fromPartial(v.end_block):void 0,y.commit=v.commit!==void 0&&v.commit!==null?e.RequestCommit.fromPartial(v.commit):void 0,y.list_snapshots=v.list_snapshots!==void 0&&v.list_snapshots!==null?e.RequestListSnapshots.fromPartial(v.list_snapshots):void 0,y.offer_snapshot=v.offer_snapshot!==void 0&&v.offer_snapshot!==null?e.RequestOfferSnapshot.fromPartial(v.offer_snapshot):void 0,y.load_snapshot_chunk=v.load_snapshot_chunk!==void 0&&v.load_snapshot_chunk!==null?e.RequestLoadSnapshotChunk.fromPartial(v.load_snapshot_chunk):void 0,y.apply_snapshot_chunk=v.apply_snapshot_chunk!==void 0&&v.apply_snapshot_chunk!==null?e.RequestApplySnapshotChunk.fromPartial(v.apply_snapshot_chunk):void 0,y}},e.RequestEcho={encode:(v,y=t.Writer.create())=>(v.message!==""&&y.uint32(10).string(v.message),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={message:""};for(;S.pos>>3==1?B.message=S.string():S.skipType(7&z)}return B},fromJSON:v=>({message:W(v.message)?String(v.message):""}),toJSON(v){const y={};return v.message!==void 0&&(y.message=v.message),y},fromPartial(v){var y;const S={message:""};return S.message=(y=v.message)!==null&&y!==void 0?y:"",S}},e.RequestFlush={encode:(v,y=t.Writer.create())=>y,decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;for(;S.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.RequestInfo={encode:(v,y=t.Writer.create())=>(v.version!==""&&y.uint32(10).string(v.version),v.block_version!=="0"&&y.uint32(16).uint64(v.block_version),v.p2p_version!=="0"&&y.uint32(24).uint64(v.p2p_version),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={version:"",block_version:"0",p2p_version:"0"};for(;S.pos>>3){case 1:B.version=S.string();break;case 2:B.block_version=_e(S.uint64());break;case 3:B.p2p_version=_e(S.uint64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({version:W(v.version)?String(v.version):"",block_version:W(v.block_version)?String(v.block_version):"0",p2p_version:W(v.p2p_version)?String(v.p2p_version):"0"}),toJSON(v){const y={};return v.version!==void 0&&(y.version=v.version),v.block_version!==void 0&&(y.block_version=v.block_version),v.p2p_version!==void 0&&(y.p2p_version=v.p2p_version),y},fromPartial(v){var y,S,T;const B={version:"",block_version:"0",p2p_version:"0"};return B.version=(y=v.version)!==null&&y!==void 0?y:"",B.block_version=(S=v.block_version)!==null&&S!==void 0?S:"0",B.p2p_version=(T=v.p2p_version)!==null&&T!==void 0?T:"0",B}},e.RequestSetOption={encode:(v,y=t.Writer.create())=>(v.key!==""&&y.uint32(10).string(v.key),v.value!==""&&y.uint32(18).string(v.value),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={key:"",value:""};for(;S.pos>>3){case 1:B.key=S.string();break;case 2:B.value=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({key:W(v.key)?String(v.key):"",value:W(v.value)?String(v.value):""}),toJSON(v){const y={};return v.key!==void 0&&(y.key=v.key),v.value!==void 0&&(y.value=v.value),y},fromPartial(v){var y,S;const T={key:"",value:""};return T.key=(y=v.key)!==null&&y!==void 0?y:"",T.value=(S=v.value)!==null&&S!==void 0?S:"",T}},e.RequestInitChain={encode(v,y=t.Writer.create()){v.time!==void 0&&u.Timestamp.encode(v.time,y.uint32(10).fork()).ldelim(),v.chain_id!==""&&y.uint32(18).string(v.chain_id),v.consensus_params!==void 0&&e.ConsensusParams.encode(v.consensus_params,y.uint32(26).fork()).ldelim();for(const S of v.validators)e.ValidatorUpdate.encode(S,y.uint32(34).fork()).ldelim();return v.app_state_bytes.length!==0&&y.uint32(42).bytes(v.app_state_bytes),v.initial_height!=="0"&&y.uint32(48).int64(v.initial_height),y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=I();for(;S.pos>>3){case 1:B.time=u.Timestamp.decode(S,S.uint32());break;case 2:B.chain_id=S.string();break;case 3:B.consensus_params=e.ConsensusParams.decode(S,S.uint32());break;case 4:B.validators.push(e.ValidatorUpdate.decode(S,S.uint32()));break;case 5:B.app_state_bytes=S.bytes();break;case 6:B.initial_height=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({time:W(v.time)?pe(v.time):void 0,chain_id:W(v.chain_id)?String(v.chain_id):"",consensus_params:W(v.consensus_params)?e.ConsensusParams.fromJSON(v.consensus_params):void 0,validators:Array.isArray(v==null?void 0:v.validators)?v.validators.map(y=>e.ValidatorUpdate.fromJSON(y)):[],app_state_bytes:W(v.app_state_bytes)?ce(v.app_state_bytes):new Uint8Array,initial_height:W(v.initial_height)?String(v.initial_height):"0"}),toJSON(v){const y={};return v.time!==void 0&&(y.time=de(v.time).toISOString()),v.chain_id!==void 0&&(y.chain_id=v.chain_id),v.consensus_params!==void 0&&(y.consensus_params=v.consensus_params?e.ConsensusParams.toJSON(v.consensus_params):void 0),v.validators?y.validators=v.validators.map(S=>S?e.ValidatorUpdate.toJSON(S):void 0):y.validators=[],v.app_state_bytes!==void 0&&(y.app_state_bytes=le(v.app_state_bytes!==void 0?v.app_state_bytes:new Uint8Array)),v.initial_height!==void 0&&(y.initial_height=v.initial_height),y},fromPartial(v){var y,S,T,B;const z=I();return z.time=v.time!==void 0&&v.time!==null?u.Timestamp.fromPartial(v.time):void 0,z.chain_id=(y=v.chain_id)!==null&&y!==void 0?y:"",z.consensus_params=v.consensus_params!==void 0&&v.consensus_params!==null?e.ConsensusParams.fromPartial(v.consensus_params):void 0,z.validators=((S=v.validators)===null||S===void 0?void 0:S.map(q=>e.ValidatorUpdate.fromPartial(q)))||[],z.app_state_bytes=(T=v.app_state_bytes)!==null&&T!==void 0?T:new Uint8Array,z.initial_height=(B=v.initial_height)!==null&&B!==void 0?B:"0",z}},e.RequestQuery={encode:(v,y=t.Writer.create())=>(v.data.length!==0&&y.uint32(10).bytes(v.data),v.path!==""&&y.uint32(18).string(v.path),v.height!=="0"&&y.uint32(24).int64(v.height),v.prove===!0&&y.uint32(32).bool(v.prove),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=x();for(;S.pos>>3){case 1:B.data=S.bytes();break;case 2:B.path=S.string();break;case 3:B.height=_e(S.int64());break;case 4:B.prove=S.bool();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({data:W(v.data)?ce(v.data):new Uint8Array,path:W(v.path)?String(v.path):"",height:W(v.height)?String(v.height):"0",prove:!!W(v.prove)&&!!v.prove}),toJSON(v){const y={};return v.data!==void 0&&(y.data=le(v.data!==void 0?v.data:new Uint8Array)),v.path!==void 0&&(y.path=v.path),v.height!==void 0&&(y.height=v.height),v.prove!==void 0&&(y.prove=v.prove),y},fromPartial(v){var y,S,T,B;const z=x();return z.data=(y=v.data)!==null&&y!==void 0?y:new Uint8Array,z.path=(S=v.path)!==null&&S!==void 0?S:"",z.height=(T=v.height)!==null&&T!==void 0?T:"0",z.prove=(B=v.prove)!==null&&B!==void 0&&B,z}},e.RequestBeginBlock={encode(v,y=t.Writer.create()){v.hash.length!==0&&y.uint32(10).bytes(v.hash),v.header!==void 0&&d.Header.encode(v.header,y.uint32(18).fork()).ldelim(),v.last_commit_info!==void 0&&e.LastCommitInfo.encode(v.last_commit_info,y.uint32(26).fork()).ldelim();for(const S of v.byzantine_validators)e.Evidence.encode(S,y.uint32(34).fork()).ldelim();v.commit!==void 0&&d.Commit.encode(v.commit,y.uint32(42).fork()).ldelim();for(const S of v.txs)y.uint32(50).bytes(S);return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=P();for(;S.pos>>3){case 1:B.hash=S.bytes();break;case 2:B.header=d.Header.decode(S,S.uint32());break;case 3:B.last_commit_info=e.LastCommitInfo.decode(S,S.uint32());break;case 4:B.byzantine_validators.push(e.Evidence.decode(S,S.uint32()));break;case 5:B.commit=d.Commit.decode(S,S.uint32());break;case 6:B.txs.push(S.bytes());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({hash:W(v.hash)?ce(v.hash):new Uint8Array,header:W(v.header)?d.Header.fromJSON(v.header):void 0,last_commit_info:W(v.last_commit_info)?e.LastCommitInfo.fromJSON(v.last_commit_info):void 0,byzantine_validators:Array.isArray(v==null?void 0:v.byzantine_validators)?v.byzantine_validators.map(y=>e.Evidence.fromJSON(y)):[],commit:W(v.commit)?d.Commit.fromJSON(v.commit):void 0,txs:Array.isArray(v==null?void 0:v.txs)?v.txs.map(y=>ce(y)):[]}),toJSON(v){const y={};return v.hash!==void 0&&(y.hash=le(v.hash!==void 0?v.hash:new Uint8Array)),v.header!==void 0&&(y.header=v.header?d.Header.toJSON(v.header):void 0),v.last_commit_info!==void 0&&(y.last_commit_info=v.last_commit_info?e.LastCommitInfo.toJSON(v.last_commit_info):void 0),v.byzantine_validators?y.byzantine_validators=v.byzantine_validators.map(S=>S?e.Evidence.toJSON(S):void 0):y.byzantine_validators=[],v.commit!==void 0&&(y.commit=v.commit?d.Commit.toJSON(v.commit):void 0),v.txs?y.txs=v.txs.map(S=>le(S!==void 0?S:new Uint8Array)):y.txs=[],y},fromPartial(v){var y,S,T;const B=P();return B.hash=(y=v.hash)!==null&&y!==void 0?y:new Uint8Array,B.header=v.header!==void 0&&v.header!==null?d.Header.fromPartial(v.header):void 0,B.last_commit_info=v.last_commit_info!==void 0&&v.last_commit_info!==null?e.LastCommitInfo.fromPartial(v.last_commit_info):void 0,B.byzantine_validators=((S=v.byzantine_validators)===null||S===void 0?void 0:S.map(z=>e.Evidence.fromPartial(z)))||[],B.commit=v.commit!==void 0&&v.commit!==null?d.Commit.fromPartial(v.commit):void 0,B.txs=((T=v.txs)===null||T===void 0?void 0:T.map(z=>z))||[],B}},e.RequestCheckTx={encode:(v,y=t.Writer.create())=>(v.tx.length!==0&&y.uint32(10).bytes(v.tx),v.type!==0&&y.uint32(16).int32(v.type),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=w();for(;S.pos>>3){case 1:B.tx=S.bytes();break;case 2:B.type=S.int32();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({tx:W(v.tx)?ce(v.tx):new Uint8Array,type:W(v.type)?h(v.type):0}),toJSON(v){const y={};return v.tx!==void 0&&(y.tx=le(v.tx!==void 0?v.tx:new Uint8Array)),v.type!==void 0&&(y.type=p(v.type)),y},fromPartial(v){var y,S;const T=w();return T.tx=(y=v.tx)!==null&&y!==void 0?y:new Uint8Array,T.type=(S=v.type)!==null&&S!==void 0?S:0,T}},e.RequestDeliverTx={encode:(v,y=t.Writer.create())=>(v.tx.length!==0&&y.uint32(10).bytes(v.tx),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=g();for(;S.pos>>3==1?B.tx=S.bytes():S.skipType(7&z)}return B},fromJSON:v=>({tx:W(v.tx)?ce(v.tx):new Uint8Array}),toJSON(v){const y={};return v.tx!==void 0&&(y.tx=le(v.tx!==void 0?v.tx:new Uint8Array)),y},fromPartial(v){var y;const S=g();return S.tx=(y=v.tx)!==null&&y!==void 0?y:new Uint8Array,S}},e.RequestEndBlock={encode:(v,y=t.Writer.create())=>(v.height!=="0"&&y.uint32(8).int64(v.height),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={height:"0"};for(;S.pos>>3==1?B.height=_e(S.int64()):S.skipType(7&z)}return B},fromJSON:v=>({height:W(v.height)?String(v.height):"0"}),toJSON(v){const y={};return v.height!==void 0&&(y.height=v.height),y},fromPartial(v){var y;const S={height:"0"};return S.height=(y=v.height)!==null&&y!==void 0?y:"0",S}},e.RequestCommit={encode:(v,y=t.Writer.create())=>y,decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;for(;S.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.RequestListSnapshots={encode:(v,y=t.Writer.create())=>y,decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;for(;S.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.RequestOfferSnapshot={encode:(v,y=t.Writer.create())=>(v.snapshot!==void 0&&e.Snapshot.encode(v.snapshot,y.uint32(10).fork()).ldelim(),v.app_hash.length!==0&&y.uint32(18).bytes(v.app_hash),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=E();for(;S.pos>>3){case 1:B.snapshot=e.Snapshot.decode(S,S.uint32());break;case 2:B.app_hash=S.bytes();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({snapshot:W(v.snapshot)?e.Snapshot.fromJSON(v.snapshot):void 0,app_hash:W(v.app_hash)?ce(v.app_hash):new Uint8Array}),toJSON(v){const y={};return v.snapshot!==void 0&&(y.snapshot=v.snapshot?e.Snapshot.toJSON(v.snapshot):void 0),v.app_hash!==void 0&&(y.app_hash=le(v.app_hash!==void 0?v.app_hash:new Uint8Array)),y},fromPartial(v){var y;const S=E();return S.snapshot=v.snapshot!==void 0&&v.snapshot!==null?e.Snapshot.fromPartial(v.snapshot):void 0,S.app_hash=(y=v.app_hash)!==null&&y!==void 0?y:new Uint8Array,S}},e.RequestLoadSnapshotChunk={encode:(v,y=t.Writer.create())=>(v.height!=="0"&&y.uint32(8).uint64(v.height),v.format!==0&&y.uint32(16).uint32(v.format),v.chunk!==0&&y.uint32(24).uint32(v.chunk),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={height:"0",format:0,chunk:0};for(;S.pos>>3){case 1:B.height=_e(S.uint64());break;case 2:B.format=S.uint32();break;case 3:B.chunk=S.uint32();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({height:W(v.height)?String(v.height):"0",format:W(v.format)?Number(v.format):0,chunk:W(v.chunk)?Number(v.chunk):0}),toJSON(v){const y={};return v.height!==void 0&&(y.height=v.height),v.format!==void 0&&(y.format=Math.round(v.format)),v.chunk!==void 0&&(y.chunk=Math.round(v.chunk)),y},fromPartial(v){var y,S,T;const B={height:"0",format:0,chunk:0};return B.height=(y=v.height)!==null&&y!==void 0?y:"0",B.format=(S=v.format)!==null&&S!==void 0?S:0,B.chunk=(T=v.chunk)!==null&&T!==void 0?T:0,B}},e.RequestApplySnapshotChunk={encode:(v,y=t.Writer.create())=>(v.index!==0&&y.uint32(8).uint32(v.index),v.chunk.length!==0&&y.uint32(18).bytes(v.chunk),v.sender!==""&&y.uint32(26).string(v.sender),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=U();for(;S.pos>>3){case 1:B.index=S.uint32();break;case 2:B.chunk=S.bytes();break;case 3:B.sender=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({index:W(v.index)?Number(v.index):0,chunk:W(v.chunk)?ce(v.chunk):new Uint8Array,sender:W(v.sender)?String(v.sender):""}),toJSON(v){const y={};return v.index!==void 0&&(y.index=Math.round(v.index)),v.chunk!==void 0&&(y.chunk=le(v.chunk!==void 0?v.chunk:new Uint8Array)),v.sender!==void 0&&(y.sender=v.sender),y},fromPartial(v){var y,S,T;const B=U();return B.index=(y=v.index)!==null&&y!==void 0?y:0,B.chunk=(S=v.chunk)!==null&&S!==void 0?S:new Uint8Array,B.sender=(T=v.sender)!==null&&T!==void 0?T:"",B}},e.Response={encode:(v,y=t.Writer.create())=>(v.exception!==void 0&&e.ResponseException.encode(v.exception,y.uint32(10).fork()).ldelim(),v.echo!==void 0&&e.ResponseEcho.encode(v.echo,y.uint32(18).fork()).ldelim(),v.flush!==void 0&&e.ResponseFlush.encode(v.flush,y.uint32(26).fork()).ldelim(),v.info!==void 0&&e.ResponseInfo.encode(v.info,y.uint32(34).fork()).ldelim(),v.set_option!==void 0&&e.ResponseSetOption.encode(v.set_option,y.uint32(42).fork()).ldelim(),v.init_chain!==void 0&&e.ResponseInitChain.encode(v.init_chain,y.uint32(50).fork()).ldelim(),v.query!==void 0&&e.ResponseQuery.encode(v.query,y.uint32(58).fork()).ldelim(),v.begin_block!==void 0&&e.ResponseBeginBlock.encode(v.begin_block,y.uint32(66).fork()).ldelim(),v.check_tx!==void 0&&e.ResponseCheckTx.encode(v.check_tx,y.uint32(74).fork()).ldelim(),v.deliver_tx!==void 0&&e.ResponseDeliverTx.encode(v.deliver_tx,y.uint32(82).fork()).ldelim(),v.end_block!==void 0&&e.ResponseEndBlock.encode(v.end_block,y.uint32(90).fork()).ldelim(),v.commit!==void 0&&e.ResponseCommit.encode(v.commit,y.uint32(98).fork()).ldelim(),v.list_snapshots!==void 0&&e.ResponseListSnapshots.encode(v.list_snapshots,y.uint32(106).fork()).ldelim(),v.offer_snapshot!==void 0&&e.ResponseOfferSnapshot.encode(v.offer_snapshot,y.uint32(114).fork()).ldelim(),v.load_snapshot_chunk!==void 0&&e.ResponseLoadSnapshotChunk.encode(v.load_snapshot_chunk,y.uint32(122).fork()).ldelim(),v.apply_snapshot_chunk!==void 0&&e.ResponseApplySnapshotChunk.encode(v.apply_snapshot_chunk,y.uint32(130).fork()).ldelim(),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;S.pos>>3){case 1:B.exception=e.ResponseException.decode(S,S.uint32());break;case 2:B.echo=e.ResponseEcho.decode(S,S.uint32());break;case 3:B.flush=e.ResponseFlush.decode(S,S.uint32());break;case 4:B.info=e.ResponseInfo.decode(S,S.uint32());break;case 5:B.set_option=e.ResponseSetOption.decode(S,S.uint32());break;case 6:B.init_chain=e.ResponseInitChain.decode(S,S.uint32());break;case 7:B.query=e.ResponseQuery.decode(S,S.uint32());break;case 8:B.begin_block=e.ResponseBeginBlock.decode(S,S.uint32());break;case 9:B.check_tx=e.ResponseCheckTx.decode(S,S.uint32());break;case 10:B.deliver_tx=e.ResponseDeliverTx.decode(S,S.uint32());break;case 11:B.end_block=e.ResponseEndBlock.decode(S,S.uint32());break;case 12:B.commit=e.ResponseCommit.decode(S,S.uint32());break;case 13:B.list_snapshots=e.ResponseListSnapshots.decode(S,S.uint32());break;case 14:B.offer_snapshot=e.ResponseOfferSnapshot.decode(S,S.uint32());break;case 15:B.load_snapshot_chunk=e.ResponseLoadSnapshotChunk.decode(S,S.uint32());break;case 16:B.apply_snapshot_chunk=e.ResponseApplySnapshotChunk.decode(S,S.uint32());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({exception:W(v.exception)?e.ResponseException.fromJSON(v.exception):void 0,echo:W(v.echo)?e.ResponseEcho.fromJSON(v.echo):void 0,flush:W(v.flush)?e.ResponseFlush.fromJSON(v.flush):void 0,info:W(v.info)?e.ResponseInfo.fromJSON(v.info):void 0,set_option:W(v.set_option)?e.ResponseSetOption.fromJSON(v.set_option):void 0,init_chain:W(v.init_chain)?e.ResponseInitChain.fromJSON(v.init_chain):void 0,query:W(v.query)?e.ResponseQuery.fromJSON(v.query):void 0,begin_block:W(v.begin_block)?e.ResponseBeginBlock.fromJSON(v.begin_block):void 0,check_tx:W(v.check_tx)?e.ResponseCheckTx.fromJSON(v.check_tx):void 0,deliver_tx:W(v.deliver_tx)?e.ResponseDeliverTx.fromJSON(v.deliver_tx):void 0,end_block:W(v.end_block)?e.ResponseEndBlock.fromJSON(v.end_block):void 0,commit:W(v.commit)?e.ResponseCommit.fromJSON(v.commit):void 0,list_snapshots:W(v.list_snapshots)?e.ResponseListSnapshots.fromJSON(v.list_snapshots):void 0,offer_snapshot:W(v.offer_snapshot)?e.ResponseOfferSnapshot.fromJSON(v.offer_snapshot):void 0,load_snapshot_chunk:W(v.load_snapshot_chunk)?e.ResponseLoadSnapshotChunk.fromJSON(v.load_snapshot_chunk):void 0,apply_snapshot_chunk:W(v.apply_snapshot_chunk)?e.ResponseApplySnapshotChunk.fromJSON(v.apply_snapshot_chunk):void 0}),toJSON(v){const y={};return v.exception!==void 0&&(y.exception=v.exception?e.ResponseException.toJSON(v.exception):void 0),v.echo!==void 0&&(y.echo=v.echo?e.ResponseEcho.toJSON(v.echo):void 0),v.flush!==void 0&&(y.flush=v.flush?e.ResponseFlush.toJSON(v.flush):void 0),v.info!==void 0&&(y.info=v.info?e.ResponseInfo.toJSON(v.info):void 0),v.set_option!==void 0&&(y.set_option=v.set_option?e.ResponseSetOption.toJSON(v.set_option):void 0),v.init_chain!==void 0&&(y.init_chain=v.init_chain?e.ResponseInitChain.toJSON(v.init_chain):void 0),v.query!==void 0&&(y.query=v.query?e.ResponseQuery.toJSON(v.query):void 0),v.begin_block!==void 0&&(y.begin_block=v.begin_block?e.ResponseBeginBlock.toJSON(v.begin_block):void 0),v.check_tx!==void 0&&(y.check_tx=v.check_tx?e.ResponseCheckTx.toJSON(v.check_tx):void 0),v.deliver_tx!==void 0&&(y.deliver_tx=v.deliver_tx?e.ResponseDeliverTx.toJSON(v.deliver_tx):void 0),v.end_block!==void 0&&(y.end_block=v.end_block?e.ResponseEndBlock.toJSON(v.end_block):void 0),v.commit!==void 0&&(y.commit=v.commit?e.ResponseCommit.toJSON(v.commit):void 0),v.list_snapshots!==void 0&&(y.list_snapshots=v.list_snapshots?e.ResponseListSnapshots.toJSON(v.list_snapshots):void 0),v.offer_snapshot!==void 0&&(y.offer_snapshot=v.offer_snapshot?e.ResponseOfferSnapshot.toJSON(v.offer_snapshot):void 0),v.load_snapshot_chunk!==void 0&&(y.load_snapshot_chunk=v.load_snapshot_chunk?e.ResponseLoadSnapshotChunk.toJSON(v.load_snapshot_chunk):void 0),v.apply_snapshot_chunk!==void 0&&(y.apply_snapshot_chunk=v.apply_snapshot_chunk?e.ResponseApplySnapshotChunk.toJSON(v.apply_snapshot_chunk):void 0),y},fromPartial(v){const y={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return y.exception=v.exception!==void 0&&v.exception!==null?e.ResponseException.fromPartial(v.exception):void 0,y.echo=v.echo!==void 0&&v.echo!==null?e.ResponseEcho.fromPartial(v.echo):void 0,y.flush=v.flush!==void 0&&v.flush!==null?e.ResponseFlush.fromPartial(v.flush):void 0,y.info=v.info!==void 0&&v.info!==null?e.ResponseInfo.fromPartial(v.info):void 0,y.set_option=v.set_option!==void 0&&v.set_option!==null?e.ResponseSetOption.fromPartial(v.set_option):void 0,y.init_chain=v.init_chain!==void 0&&v.init_chain!==null?e.ResponseInitChain.fromPartial(v.init_chain):void 0,y.query=v.query!==void 0&&v.query!==null?e.ResponseQuery.fromPartial(v.query):void 0,y.begin_block=v.begin_block!==void 0&&v.begin_block!==null?e.ResponseBeginBlock.fromPartial(v.begin_block):void 0,y.check_tx=v.check_tx!==void 0&&v.check_tx!==null?e.ResponseCheckTx.fromPartial(v.check_tx):void 0,y.deliver_tx=v.deliver_tx!==void 0&&v.deliver_tx!==null?e.ResponseDeliverTx.fromPartial(v.deliver_tx):void 0,y.end_block=v.end_block!==void 0&&v.end_block!==null?e.ResponseEndBlock.fromPartial(v.end_block):void 0,y.commit=v.commit!==void 0&&v.commit!==null?e.ResponseCommit.fromPartial(v.commit):void 0,y.list_snapshots=v.list_snapshots!==void 0&&v.list_snapshots!==null?e.ResponseListSnapshots.fromPartial(v.list_snapshots):void 0,y.offer_snapshot=v.offer_snapshot!==void 0&&v.offer_snapshot!==null?e.ResponseOfferSnapshot.fromPartial(v.offer_snapshot):void 0,y.load_snapshot_chunk=v.load_snapshot_chunk!==void 0&&v.load_snapshot_chunk!==null?e.ResponseLoadSnapshotChunk.fromPartial(v.load_snapshot_chunk):void 0,y.apply_snapshot_chunk=v.apply_snapshot_chunk!==void 0&&v.apply_snapshot_chunk!==null?e.ResponseApplySnapshotChunk.fromPartial(v.apply_snapshot_chunk):void 0,y}},e.ResponseException={encode:(v,y=t.Writer.create())=>(v.error!==""&&y.uint32(10).string(v.error),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={error:""};for(;S.pos>>3==1?B.error=S.string():S.skipType(7&z)}return B},fromJSON:v=>({error:W(v.error)?String(v.error):""}),toJSON(v){const y={};return v.error!==void 0&&(y.error=v.error),y},fromPartial(v){var y;const S={error:""};return S.error=(y=v.error)!==null&&y!==void 0?y:"",S}},e.ResponseEcho={encode:(v,y=t.Writer.create())=>(v.message!==""&&y.uint32(10).string(v.message),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={message:""};for(;S.pos>>3==1?B.message=S.string():S.skipType(7&z)}return B},fromJSON:v=>({message:W(v.message)?String(v.message):""}),toJSON(v){const y={};return v.message!==void 0&&(y.message=v.message),y},fromPartial(v){var y;const S={message:""};return S.message=(y=v.message)!==null&&y!==void 0?y:"",S}},e.ResponseFlush={encode:(v,y=t.Writer.create())=>y,decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;for(;S.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.ResponseInfo={encode:(v,y=t.Writer.create())=>(v.data!==""&&y.uint32(10).string(v.data),v.version!==""&&y.uint32(18).string(v.version),v.app_version!=="0"&&y.uint32(24).uint64(v.app_version),v.last_block_height!=="0"&&y.uint32(32).int64(v.last_block_height),v.last_block_app_hash.length!==0&&y.uint32(42).bytes(v.last_block_app_hash),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=C();for(;S.pos>>3){case 1:B.data=S.string();break;case 2:B.version=S.string();break;case 3:B.app_version=_e(S.uint64());break;case 4:B.last_block_height=_e(S.int64());break;case 5:B.last_block_app_hash=S.bytes();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({data:W(v.data)?String(v.data):"",version:W(v.version)?String(v.version):"",app_version:W(v.app_version)?String(v.app_version):"0",last_block_height:W(v.last_block_height)?String(v.last_block_height):"0",last_block_app_hash:W(v.last_block_app_hash)?ce(v.last_block_app_hash):new Uint8Array}),toJSON(v){const y={};return v.data!==void 0&&(y.data=v.data),v.version!==void 0&&(y.version=v.version),v.app_version!==void 0&&(y.app_version=v.app_version),v.last_block_height!==void 0&&(y.last_block_height=v.last_block_height),v.last_block_app_hash!==void 0&&(y.last_block_app_hash=le(v.last_block_app_hash!==void 0?v.last_block_app_hash:new Uint8Array)),y},fromPartial(v){var y,S,T,B,z;const q=C();return q.data=(y=v.data)!==null&&y!==void 0?y:"",q.version=(S=v.version)!==null&&S!==void 0?S:"",q.app_version=(T=v.app_version)!==null&&T!==void 0?T:"0",q.last_block_height=(B=v.last_block_height)!==null&&B!==void 0?B:"0",q.last_block_app_hash=(z=v.last_block_app_hash)!==null&&z!==void 0?z:new Uint8Array,q}},e.ResponseSetOption={encode:(v,y=t.Writer.create())=>(v.code!==0&&y.uint32(8).uint32(v.code),v.log!==""&&y.uint32(26).string(v.log),v.info!==""&&y.uint32(34).string(v.info),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={code:0,log:"",info:""};for(;S.pos>>3){case 1:B.code=S.uint32();break;case 3:B.log=S.string();break;case 4:B.info=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({code:W(v.code)?Number(v.code):0,log:W(v.log)?String(v.log):"",info:W(v.info)?String(v.info):""}),toJSON(v){const y={};return v.code!==void 0&&(y.code=Math.round(v.code)),v.log!==void 0&&(y.log=v.log),v.info!==void 0&&(y.info=v.info),y},fromPartial(v){var y,S,T;const B={code:0,log:"",info:""};return B.code=(y=v.code)!==null&&y!==void 0?y:0,B.log=(S=v.log)!==null&&S!==void 0?S:"",B.info=(T=v.info)!==null&&T!==void 0?T:"",B}},e.ResponseInitChain={encode(v,y=t.Writer.create()){v.consensus_params!==void 0&&e.ConsensusParams.encode(v.consensus_params,y.uint32(10).fork()).ldelim();for(const S of v.validators)e.ValidatorUpdate.encode(S,y.uint32(18).fork()).ldelim();return v.app_hash.length!==0&&y.uint32(26).bytes(v.app_hash),y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=F();for(;S.pos>>3){case 1:B.consensus_params=e.ConsensusParams.decode(S,S.uint32());break;case 2:B.validators.push(e.ValidatorUpdate.decode(S,S.uint32()));break;case 3:B.app_hash=S.bytes();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({consensus_params:W(v.consensus_params)?e.ConsensusParams.fromJSON(v.consensus_params):void 0,validators:Array.isArray(v==null?void 0:v.validators)?v.validators.map(y=>e.ValidatorUpdate.fromJSON(y)):[],app_hash:W(v.app_hash)?ce(v.app_hash):new Uint8Array}),toJSON(v){const y={};return v.consensus_params!==void 0&&(y.consensus_params=v.consensus_params?e.ConsensusParams.toJSON(v.consensus_params):void 0),v.validators?y.validators=v.validators.map(S=>S?e.ValidatorUpdate.toJSON(S):void 0):y.validators=[],v.app_hash!==void 0&&(y.app_hash=le(v.app_hash!==void 0?v.app_hash:new Uint8Array)),y},fromPartial(v){var y,S;const T=F();return T.consensus_params=v.consensus_params!==void 0&&v.consensus_params!==null?e.ConsensusParams.fromPartial(v.consensus_params):void 0,T.validators=((y=v.validators)===null||y===void 0?void 0:y.map(B=>e.ValidatorUpdate.fromPartial(B)))||[],T.app_hash=(S=v.app_hash)!==null&&S!==void 0?S:new Uint8Array,T}},e.ResponseQuery={encode:(v,y=t.Writer.create())=>(v.code!==0&&y.uint32(8).uint32(v.code),v.log!==""&&y.uint32(26).string(v.log),v.info!==""&&y.uint32(34).string(v.info),v.index!=="0"&&y.uint32(40).int64(v.index),v.key.length!==0&&y.uint32(50).bytes(v.key),v.value.length!==0&&y.uint32(58).bytes(v.value),v.proof_ops!==void 0&&s.ProofOps.encode(v.proof_ops,y.uint32(66).fork()).ldelim(),v.height!=="0"&&y.uint32(72).int64(v.height),v.codespace!==""&&y.uint32(82).string(v.codespace),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=re();for(;S.pos>>3){case 1:B.code=S.uint32();break;case 3:B.log=S.string();break;case 4:B.info=S.string();break;case 5:B.index=_e(S.int64());break;case 6:B.key=S.bytes();break;case 7:B.value=S.bytes();break;case 8:B.proof_ops=s.ProofOps.decode(S,S.uint32());break;case 9:B.height=_e(S.int64());break;case 10:B.codespace=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({code:W(v.code)?Number(v.code):0,log:W(v.log)?String(v.log):"",info:W(v.info)?String(v.info):"",index:W(v.index)?String(v.index):"0",key:W(v.key)?ce(v.key):new Uint8Array,value:W(v.value)?ce(v.value):new Uint8Array,proof_ops:W(v.proof_ops)?s.ProofOps.fromJSON(v.proof_ops):void 0,height:W(v.height)?String(v.height):"0",codespace:W(v.codespace)?String(v.codespace):""}),toJSON(v){const y={};return v.code!==void 0&&(y.code=Math.round(v.code)),v.log!==void 0&&(y.log=v.log),v.info!==void 0&&(y.info=v.info),v.index!==void 0&&(y.index=v.index),v.key!==void 0&&(y.key=le(v.key!==void 0?v.key:new Uint8Array)),v.value!==void 0&&(y.value=le(v.value!==void 0?v.value:new Uint8Array)),v.proof_ops!==void 0&&(y.proof_ops=v.proof_ops?s.ProofOps.toJSON(v.proof_ops):void 0),v.height!==void 0&&(y.height=v.height),v.codespace!==void 0&&(y.codespace=v.codespace),y},fromPartial(v){var y,S,T,B,z,q,te,oe;const V=re();return V.code=(y=v.code)!==null&&y!==void 0?y:0,V.log=(S=v.log)!==null&&S!==void 0?S:"",V.info=(T=v.info)!==null&&T!==void 0?T:"",V.index=(B=v.index)!==null&&B!==void 0?B:"0",V.key=(z=v.key)!==null&&z!==void 0?z:new Uint8Array,V.value=(q=v.value)!==null&&q!==void 0?q:new Uint8Array,V.proof_ops=v.proof_ops!==void 0&&v.proof_ops!==null?s.ProofOps.fromPartial(v.proof_ops):void 0,V.height=(te=v.height)!==null&&te!==void 0?te:"0",V.codespace=(oe=v.codespace)!==null&&oe!==void 0?oe:"",V}},e.ResponseBeginBlock={encode(v,y=t.Writer.create()){for(const S of v.events)e.Event.encode(S,y.uint32(10).fork()).ldelim();return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={events:[]};for(;S.pos>>3==1?B.events.push(e.Event.decode(S,S.uint32())):S.skipType(7&z)}return B},fromJSON:v=>({events:Array.isArray(v==null?void 0:v.events)?v.events.map(y=>e.Event.fromJSON(y)):[]}),toJSON(v){const y={};return v.events?y.events=v.events.map(S=>S?e.Event.toJSON(S):void 0):y.events=[],y},fromPartial(v){var y;const S={events:[]};return S.events=((y=v.events)===null||y===void 0?void 0:y.map(T=>e.Event.fromPartial(T)))||[],S}},e.ResponseCheckTx={encode(v,y=t.Writer.create()){v.code!==0&&y.uint32(8).uint32(v.code),v.data.length!==0&&y.uint32(18).bytes(v.data),v.log!==""&&y.uint32(26).string(v.log),v.info!==""&&y.uint32(34).string(v.info),v.gas_wanted!=="0"&&y.uint32(40).int64(v.gas_wanted),v.gas_used!=="0"&&y.uint32(48).int64(v.gas_used);for(const S of v.events)e.Event.encode(S,y.uint32(58).fork()).ldelim();return v.codespace!==""&&y.uint32(66).string(v.codespace),v.sender!==""&&y.uint32(74).string(v.sender),v.priority!=="0"&&y.uint32(80).int64(v.priority),v.mempool_error!==""&&y.uint32(90).string(v.mempool_error),y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=ee();for(;S.pos>>3){case 1:B.code=S.uint32();break;case 2:B.data=S.bytes();break;case 3:B.log=S.string();break;case 4:B.info=S.string();break;case 5:B.gas_wanted=_e(S.int64());break;case 6:B.gas_used=_e(S.int64());break;case 7:B.events.push(e.Event.decode(S,S.uint32()));break;case 8:B.codespace=S.string();break;case 9:B.sender=S.string();break;case 10:B.priority=_e(S.int64());break;case 11:B.mempool_error=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({code:W(v.code)?Number(v.code):0,data:W(v.data)?ce(v.data):new Uint8Array,log:W(v.log)?String(v.log):"",info:W(v.info)?String(v.info):"",gas_wanted:W(v.gas_wanted)?String(v.gas_wanted):"0",gas_used:W(v.gas_used)?String(v.gas_used):"0",events:Array.isArray(v==null?void 0:v.events)?v.events.map(y=>e.Event.fromJSON(y)):[],codespace:W(v.codespace)?String(v.codespace):"",sender:W(v.sender)?String(v.sender):"",priority:W(v.priority)?String(v.priority):"0",mempool_error:W(v.mempool_error)?String(v.mempool_error):""}),toJSON(v){const y={};return v.code!==void 0&&(y.code=Math.round(v.code)),v.data!==void 0&&(y.data=le(v.data!==void 0?v.data:new Uint8Array)),v.log!==void 0&&(y.log=v.log),v.info!==void 0&&(y.info=v.info),v.gas_wanted!==void 0&&(y.gas_wanted=v.gas_wanted),v.gas_used!==void 0&&(y.gas_used=v.gas_used),v.events?y.events=v.events.map(S=>S?e.Event.toJSON(S):void 0):y.events=[],v.codespace!==void 0&&(y.codespace=v.codespace),v.sender!==void 0&&(y.sender=v.sender),v.priority!==void 0&&(y.priority=v.priority),v.mempool_error!==void 0&&(y.mempool_error=v.mempool_error),y},fromPartial(v){var y,S,T,B,z,q,te,oe,V,Q,G;const H=ee();return H.code=(y=v.code)!==null&&y!==void 0?y:0,H.data=(S=v.data)!==null&&S!==void 0?S:new Uint8Array,H.log=(T=v.log)!==null&&T!==void 0?T:"",H.info=(B=v.info)!==null&&B!==void 0?B:"",H.gas_wanted=(z=v.gas_wanted)!==null&&z!==void 0?z:"0",H.gas_used=(q=v.gas_used)!==null&&q!==void 0?q:"0",H.events=((te=v.events)===null||te===void 0?void 0:te.map(ie=>e.Event.fromPartial(ie)))||[],H.codespace=(oe=v.codespace)!==null&&oe!==void 0?oe:"",H.sender=(V=v.sender)!==null&&V!==void 0?V:"",H.priority=(Q=v.priority)!==null&&Q!==void 0?Q:"0",H.mempool_error=(G=v.mempool_error)!==null&&G!==void 0?G:"",H}},e.ResponseDeliverTx={encode(v,y=t.Writer.create()){v.code!==0&&y.uint32(8).uint32(v.code),v.data.length!==0&&y.uint32(18).bytes(v.data),v.log!==""&&y.uint32(26).string(v.log),v.info!==""&&y.uint32(34).string(v.info),v.gas_wanted!=="0"&&y.uint32(40).int64(v.gas_wanted),v.gas_used!=="0"&&y.uint32(48).int64(v.gas_used);for(const S of v.events)e.Event.encode(S,y.uint32(58).fork()).ldelim();return v.codespace!==""&&y.uint32(66).string(v.codespace),y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=ne();for(;S.pos>>3){case 1:B.code=S.uint32();break;case 2:B.data=S.bytes();break;case 3:B.log=S.string();break;case 4:B.info=S.string();break;case 5:B.gas_wanted=_e(S.int64());break;case 6:B.gas_used=_e(S.int64());break;case 7:B.events.push(e.Event.decode(S,S.uint32()));break;case 8:B.codespace=S.string();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({code:W(v.code)?Number(v.code):0,data:W(v.data)?ce(v.data):new Uint8Array,log:W(v.log)?String(v.log):"",info:W(v.info)?String(v.info):"",gas_wanted:W(v.gas_wanted)?String(v.gas_wanted):"0",gas_used:W(v.gas_used)?String(v.gas_used):"0",events:Array.isArray(v==null?void 0:v.events)?v.events.map(y=>e.Event.fromJSON(y)):[],codespace:W(v.codespace)?String(v.codespace):""}),toJSON(v){const y={};return v.code!==void 0&&(y.code=Math.round(v.code)),v.data!==void 0&&(y.data=le(v.data!==void 0?v.data:new Uint8Array)),v.log!==void 0&&(y.log=v.log),v.info!==void 0&&(y.info=v.info),v.gas_wanted!==void 0&&(y.gas_wanted=v.gas_wanted),v.gas_used!==void 0&&(y.gas_used=v.gas_used),v.events?y.events=v.events.map(S=>S?e.Event.toJSON(S):void 0):y.events=[],v.codespace!==void 0&&(y.codespace=v.codespace),y},fromPartial(v){var y,S,T,B,z,q,te,oe;const V=ne();return V.code=(y=v.code)!==null&&y!==void 0?y:0,V.data=(S=v.data)!==null&&S!==void 0?S:new Uint8Array,V.log=(T=v.log)!==null&&T!==void 0?T:"",V.info=(B=v.info)!==null&&B!==void 0?B:"",V.gas_wanted=(z=v.gas_wanted)!==null&&z!==void 0?z:"0",V.gas_used=(q=v.gas_used)!==null&&q!==void 0?q:"0",V.events=((te=v.events)===null||te===void 0?void 0:te.map(Q=>e.Event.fromPartial(Q)))||[],V.codespace=(oe=v.codespace)!==null&&oe!==void 0?oe:"",V}},e.ResponseEndBlock={encode(v,y=t.Writer.create()){for(const S of v.validator_updates)e.ValidatorUpdate.encode(S,y.uint32(10).fork()).ldelim();v.consensus_param_updates!==void 0&&e.ConsensusParams.encode(v.consensus_param_updates,y.uint32(18).fork()).ldelim();for(const S of v.events)e.Event.encode(S,y.uint32(26).fork()).ldelim();return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={validator_updates:[],consensus_param_updates:void 0,events:[]};for(;S.pos>>3){case 1:B.validator_updates.push(e.ValidatorUpdate.decode(S,S.uint32()));break;case 2:B.consensus_param_updates=e.ConsensusParams.decode(S,S.uint32());break;case 3:B.events.push(e.Event.decode(S,S.uint32()));break;default:S.skipType(7&z)}}return B},fromJSON:v=>({validator_updates:Array.isArray(v==null?void 0:v.validator_updates)?v.validator_updates.map(y=>e.ValidatorUpdate.fromJSON(y)):[],consensus_param_updates:W(v.consensus_param_updates)?e.ConsensusParams.fromJSON(v.consensus_param_updates):void 0,events:Array.isArray(v==null?void 0:v.events)?v.events.map(y=>e.Event.fromJSON(y)):[]}),toJSON(v){const y={};return v.validator_updates?y.validator_updates=v.validator_updates.map(S=>S?e.ValidatorUpdate.toJSON(S):void 0):y.validator_updates=[],v.consensus_param_updates!==void 0&&(y.consensus_param_updates=v.consensus_param_updates?e.ConsensusParams.toJSON(v.consensus_param_updates):void 0),v.events?y.events=v.events.map(S=>S?e.Event.toJSON(S):void 0):y.events=[],y},fromPartial(v){var y,S;const T={validator_updates:[],consensus_param_updates:void 0,events:[]};return T.validator_updates=((y=v.validator_updates)===null||y===void 0?void 0:y.map(B=>e.ValidatorUpdate.fromPartial(B)))||[],T.consensus_param_updates=v.consensus_param_updates!==void 0&&v.consensus_param_updates!==null?e.ConsensusParams.fromPartial(v.consensus_param_updates):void 0,T.events=((S=v.events)===null||S===void 0?void 0:S.map(B=>e.Event.fromPartial(B)))||[],T}},e.ResponseCommit={encode:(v,y=t.Writer.create())=>(v.data.length!==0&&y.uint32(18).bytes(v.data),v.retain_height!=="0"&&y.uint32(24).int64(v.retain_height),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=D();for(;S.pos>>3){case 2:B.data=S.bytes();break;case 3:B.retain_height=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({data:W(v.data)?ce(v.data):new Uint8Array,retain_height:W(v.retain_height)?String(v.retain_height):"0"}),toJSON(v){const y={};return v.data!==void 0&&(y.data=le(v.data!==void 0?v.data:new Uint8Array)),v.retain_height!==void 0&&(y.retain_height=v.retain_height),y},fromPartial(v){var y,S;const T=D();return T.data=(y=v.data)!==null&&y!==void 0?y:new Uint8Array,T.retain_height=(S=v.retain_height)!==null&&S!==void 0?S:"0",T}},e.ResponseListSnapshots={encode(v,y=t.Writer.create()){for(const S of v.snapshots)e.Snapshot.encode(S,y.uint32(10).fork()).ldelim();return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={snapshots:[]};for(;S.pos>>3==1?B.snapshots.push(e.Snapshot.decode(S,S.uint32())):S.skipType(7&z)}return B},fromJSON:v=>({snapshots:Array.isArray(v==null?void 0:v.snapshots)?v.snapshots.map(y=>e.Snapshot.fromJSON(y)):[]}),toJSON(v){const y={};return v.snapshots?y.snapshots=v.snapshots.map(S=>S?e.Snapshot.toJSON(S):void 0):y.snapshots=[],y},fromPartial(v){var y;const S={snapshots:[]};return S.snapshots=((y=v.snapshots)===null||y===void 0?void 0:y.map(T=>e.Snapshot.fromPartial(T)))||[],S}},e.ResponseOfferSnapshot={encode:(v,y=t.Writer.create())=>(v.result!==0&&y.uint32(8).int32(v.result),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={result:0};for(;S.pos>>3==1?B.result=S.int32():S.skipType(7&z)}return B},fromJSON:v=>({result:W(v.result)?l(v.result):0}),toJSON(v){const y={};return v.result!==void 0&&(y.result=N(v.result)),y},fromPartial(v){var y;const S={result:0};return S.result=(y=v.result)!==null&&y!==void 0?y:0,S}},e.ResponseLoadSnapshotChunk={encode:(v,y=t.Writer.create())=>(v.chunk.length!==0&&y.uint32(10).bytes(v.chunk),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=Z();for(;S.pos>>3==1?B.chunk=S.bytes():S.skipType(7&z)}return B},fromJSON:v=>({chunk:W(v.chunk)?ce(v.chunk):new Uint8Array}),toJSON(v){const y={};return v.chunk!==void 0&&(y.chunk=le(v.chunk!==void 0?v.chunk:new Uint8Array)),y},fromPartial(v){var y;const S=Z();return S.chunk=(y=v.chunk)!==null&&y!==void 0?y:new Uint8Array,S}},e.ResponseApplySnapshotChunk={encode(v,y=t.Writer.create()){v.result!==0&&y.uint32(8).int32(v.result),y.uint32(18).fork();for(const S of v.refetch_chunks)y.uint32(S);y.ldelim();for(const S of v.reject_senders)y.uint32(26).string(S);return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={result:0,refetch_chunks:[],reject_senders:[]};for(;S.pos>>3){case 1:B.result=S.int32();break;case 2:if((7&z)==2){const q=S.uint32()+S.pos;for(;S.pos({result:W(v.result)?j(v.result):0,refetch_chunks:Array.isArray(v==null?void 0:v.refetch_chunks)?v.refetch_chunks.map(y=>Number(y)):[],reject_senders:Array.isArray(v==null?void 0:v.reject_senders)?v.reject_senders.map(y=>String(y)):[]}),toJSON(v){const y={};return v.result!==void 0&&(y.result=R(v.result)),v.refetch_chunks?y.refetch_chunks=v.refetch_chunks.map(S=>Math.round(S)):y.refetch_chunks=[],v.reject_senders?y.reject_senders=v.reject_senders.map(S=>S):y.reject_senders=[],y},fromPartial(v){var y,S,T;const B={result:0,refetch_chunks:[],reject_senders:[]};return B.result=(y=v.result)!==null&&y!==void 0?y:0,B.refetch_chunks=((S=v.refetch_chunks)===null||S===void 0?void 0:S.map(z=>z))||[],B.reject_senders=((T=v.reject_senders)===null||T===void 0?void 0:T.map(z=>z))||[],B}},e.ConsensusParams={encode:(v,y=t.Writer.create())=>(v.block!==void 0&&e.BlockParams.encode(v.block,y.uint32(10).fork()).ldelim(),v.evidence!==void 0&&r.EvidenceParams.encode(v.evidence,y.uint32(18).fork()).ldelim(),v.validator!==void 0&&r.ValidatorParams.encode(v.validator,y.uint32(26).fork()).ldelim(),v.version!==void 0&&r.VersionParams.encode(v.version,y.uint32(34).fork()).ldelim(),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;S.pos>>3){case 1:B.block=e.BlockParams.decode(S,S.uint32());break;case 2:B.evidence=r.EvidenceParams.decode(S,S.uint32());break;case 3:B.validator=r.ValidatorParams.decode(S,S.uint32());break;case 4:B.version=r.VersionParams.decode(S,S.uint32());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({block:W(v.block)?e.BlockParams.fromJSON(v.block):void 0,evidence:W(v.evidence)?r.EvidenceParams.fromJSON(v.evidence):void 0,validator:W(v.validator)?r.ValidatorParams.fromJSON(v.validator):void 0,version:W(v.version)?r.VersionParams.fromJSON(v.version):void 0}),toJSON(v){const y={};return v.block!==void 0&&(y.block=v.block?e.BlockParams.toJSON(v.block):void 0),v.evidence!==void 0&&(y.evidence=v.evidence?r.EvidenceParams.toJSON(v.evidence):void 0),v.validator!==void 0&&(y.validator=v.validator?r.ValidatorParams.toJSON(v.validator):void 0),v.version!==void 0&&(y.version=v.version?r.VersionParams.toJSON(v.version):void 0),y},fromPartial(v){const y={block:void 0,evidence:void 0,validator:void 0,version:void 0};return y.block=v.block!==void 0&&v.block!==null?e.BlockParams.fromPartial(v.block):void 0,y.evidence=v.evidence!==void 0&&v.evidence!==null?r.EvidenceParams.fromPartial(v.evidence):void 0,y.validator=v.validator!==void 0&&v.validator!==null?r.ValidatorParams.fromPartial(v.validator):void 0,y.version=v.version!==void 0&&v.version!==null?r.VersionParams.fromPartial(v.version):void 0,y}},e.BlockParams={encode:(v,y=t.Writer.create())=>(v.max_bytes!=="0"&&y.uint32(8).int64(v.max_bytes),v.max_gas!=="0"&&y.uint32(16).int64(v.max_gas),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={max_bytes:"0",max_gas:"0"};for(;S.pos>>3){case 1:B.max_bytes=_e(S.int64());break;case 2:B.max_gas=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({max_bytes:W(v.max_bytes)?String(v.max_bytes):"0",max_gas:W(v.max_gas)?String(v.max_gas):"0"}),toJSON(v){const y={};return v.max_bytes!==void 0&&(y.max_bytes=v.max_bytes),v.max_gas!==void 0&&(y.max_gas=v.max_gas),y},fromPartial(v){var y,S;const T={max_bytes:"0",max_gas:"0"};return T.max_bytes=(y=v.max_bytes)!==null&&y!==void 0?y:"0",T.max_gas=(S=v.max_gas)!==null&&S!==void 0?S:"0",T}},e.LastCommitInfo={encode(v,y=t.Writer.create()){v.round!==0&&y.uint32(8).int32(v.round);for(const S of v.votes)e.VoteInfo.encode(S,y.uint32(18).fork()).ldelim();return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={round:0,votes:[]};for(;S.pos>>3){case 1:B.round=S.int32();break;case 2:B.votes.push(e.VoteInfo.decode(S,S.uint32()));break;default:S.skipType(7&z)}}return B},fromJSON:v=>({round:W(v.round)?Number(v.round):0,votes:Array.isArray(v==null?void 0:v.votes)?v.votes.map(y=>e.VoteInfo.fromJSON(y)):[]}),toJSON(v){const y={};return v.round!==void 0&&(y.round=Math.round(v.round)),v.votes?y.votes=v.votes.map(S=>S?e.VoteInfo.toJSON(S):void 0):y.votes=[],y},fromPartial(v){var y,S;const T={round:0,votes:[]};return T.round=(y=v.round)!==null&&y!==void 0?y:0,T.votes=((S=v.votes)===null||S===void 0?void 0:S.map(B=>e.VoteInfo.fromPartial(B)))||[],T}},e.Event={encode(v,y=t.Writer.create()){v.type!==""&&y.uint32(10).string(v.type);for(const S of v.attributes)e.EventAttribute.encode(S,y.uint32(18).fork()).ldelim();return y},decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={type:"",attributes:[]};for(;S.pos>>3){case 1:B.type=S.string();break;case 2:B.attributes.push(e.EventAttribute.decode(S,S.uint32()));break;default:S.skipType(7&z)}}return B},fromJSON:v=>({type:W(v.type)?String(v.type):"",attributes:Array.isArray(v==null?void 0:v.attributes)?v.attributes.map(y=>e.EventAttribute.fromJSON(y)):[]}),toJSON(v){const y={};return v.type!==void 0&&(y.type=v.type),v.attributes?y.attributes=v.attributes.map(S=>S?e.EventAttribute.toJSON(S):void 0):y.attributes=[],y},fromPartial(v){var y,S;const T={type:"",attributes:[]};return T.type=(y=v.type)!==null&&y!==void 0?y:"",T.attributes=((S=v.attributes)===null||S===void 0?void 0:S.map(B=>e.EventAttribute.fromPartial(B)))||[],T}},e.EventAttribute={encode:(v,y=t.Writer.create())=>(v.key.length!==0&&y.uint32(10).bytes(v.key),v.value.length!==0&&y.uint32(18).bytes(v.value),v.index===!0&&y.uint32(24).bool(v.index),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=$();for(;S.pos>>3){case 1:B.key=S.bytes();break;case 2:B.value=S.bytes();break;case 3:B.index=S.bool();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({key:W(v.key)?ce(v.key):new Uint8Array,value:W(v.value)?ce(v.value):new Uint8Array,index:!!W(v.index)&&!!v.index}),toJSON(v){const y={};return v.key!==void 0&&(y.key=le(v.key!==void 0?v.key:new Uint8Array)),v.value!==void 0&&(y.value=le(v.value!==void 0?v.value:new Uint8Array)),v.index!==void 0&&(y.index=v.index),y},fromPartial(v){var y,S,T;const B=$();return B.key=(y=v.key)!==null&&y!==void 0?y:new Uint8Array,B.value=(S=v.value)!==null&&S!==void 0?S:new Uint8Array,B.index=(T=v.index)!==null&&T!==void 0&&T,B}},e.TxResult={encode:(v,y=t.Writer.create())=>(v.height!=="0"&&y.uint32(8).int64(v.height),v.index!==0&&y.uint32(16).uint32(v.index),v.tx.length!==0&&y.uint32(26).bytes(v.tx),v.result!==void 0&&e.ResponseDeliverTx.encode(v.result,y.uint32(34).fork()).ldelim(),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=X();for(;S.pos>>3){case 1:B.height=_e(S.int64());break;case 2:B.index=S.uint32();break;case 3:B.tx=S.bytes();break;case 4:B.result=e.ResponseDeliverTx.decode(S,S.uint32());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({height:W(v.height)?String(v.height):"0",index:W(v.index)?Number(v.index):0,tx:W(v.tx)?ce(v.tx):new Uint8Array,result:W(v.result)?e.ResponseDeliverTx.fromJSON(v.result):void 0}),toJSON(v){const y={};return v.height!==void 0&&(y.height=v.height),v.index!==void 0&&(y.index=Math.round(v.index)),v.tx!==void 0&&(y.tx=le(v.tx!==void 0?v.tx:new Uint8Array)),v.result!==void 0&&(y.result=v.result?e.ResponseDeliverTx.toJSON(v.result):void 0),y},fromPartial(v){var y,S,T;const B=X();return B.height=(y=v.height)!==null&&y!==void 0?y:"0",B.index=(S=v.index)!==null&&S!==void 0?S:0,B.tx=(T=v.tx)!==null&&T!==void 0?T:new Uint8Array,B.result=v.result!==void 0&&v.result!==null?e.ResponseDeliverTx.fromPartial(v.result):void 0,B}},e.Validator={encode:(v,y=t.Writer.create())=>(v.address.length!==0&&y.uint32(10).bytes(v.address),v.power!=="0"&&y.uint32(24).int64(v.power),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=K();for(;S.pos>>3){case 1:B.address=S.bytes();break;case 3:B.power=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({address:W(v.address)?ce(v.address):new Uint8Array,power:W(v.power)?String(v.power):"0"}),toJSON(v){const y={};return v.address!==void 0&&(y.address=le(v.address!==void 0?v.address:new Uint8Array)),v.power!==void 0&&(y.power=v.power),y},fromPartial(v){var y,S;const T=K();return T.address=(y=v.address)!==null&&y!==void 0?y:new Uint8Array,T.power=(S=v.power)!==null&&S!==void 0?S:"0",T}},e.ValidatorUpdate={encode:(v,y=t.Writer.create())=>(v.pub_key!==void 0&&n.PublicKey.encode(v.pub_key,y.uint32(10).fork()).ldelim(),v.power!=="0"&&y.uint32(16).int64(v.power),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={pub_key:void 0,power:"0"};for(;S.pos>>3){case 1:B.pub_key=n.PublicKey.decode(S,S.uint32());break;case 2:B.power=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({pub_key:W(v.pub_key)?n.PublicKey.fromJSON(v.pub_key):void 0,power:W(v.power)?String(v.power):"0"}),toJSON(v){const y={};return v.pub_key!==void 0&&(y.pub_key=v.pub_key?n.PublicKey.toJSON(v.pub_key):void 0),v.power!==void 0&&(y.power=v.power),y},fromPartial(v){var y;const S={pub_key:void 0,power:"0"};return S.pub_key=v.pub_key!==void 0&&v.pub_key!==null?n.PublicKey.fromPartial(v.pub_key):void 0,S.power=(y=v.power)!==null&&y!==void 0?y:"0",S}},e.VoteInfo={encode:(v,y=t.Writer.create())=>(v.validator!==void 0&&e.Validator.encode(v.validator,y.uint32(10).fork()).ldelim(),v.signed_last_block===!0&&y.uint32(16).bool(v.signed_last_block),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={validator:void 0,signed_last_block:!1};for(;S.pos>>3){case 1:B.validator=e.Validator.decode(S,S.uint32());break;case 2:B.signed_last_block=S.bool();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({validator:W(v.validator)?e.Validator.fromJSON(v.validator):void 0,signed_last_block:!!W(v.signed_last_block)&&!!v.signed_last_block}),toJSON(v){const y={};return v.validator!==void 0&&(y.validator=v.validator?e.Validator.toJSON(v.validator):void 0),v.signed_last_block!==void 0&&(y.signed_last_block=v.signed_last_block),y},fromPartial(v){var y;const S={validator:void 0,signed_last_block:!1};return S.validator=v.validator!==void 0&&v.validator!==null?e.Validator.fromPartial(v.validator):void 0,S.signed_last_block=(y=v.signed_last_block)!==null&&y!==void 0&&y,S}},e.Evidence={encode:(v,y=t.Writer.create())=>(v.type!==0&&y.uint32(8).int32(v.type),v.validator!==void 0&&e.Validator.encode(v.validator,y.uint32(18).fork()).ldelim(),v.height!=="0"&&y.uint32(24).int64(v.height),v.time!==void 0&&u.Timestamp.encode(v.time,y.uint32(34).fork()).ldelim(),v.total_voting_power!=="0"&&y.uint32(40).int64(v.total_voting_power),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};for(;S.pos>>3){case 1:B.type=S.int32();break;case 2:B.validator=e.Validator.decode(S,S.uint32());break;case 3:B.height=_e(S.int64());break;case 4:B.time=u.Timestamp.decode(S,S.uint32());break;case 5:B.total_voting_power=_e(S.int64());break;default:S.skipType(7&z)}}return B},fromJSON:v=>({type:W(v.type)?m(v.type):0,validator:W(v.validator)?e.Validator.fromJSON(v.validator):void 0,height:W(v.height)?String(v.height):"0",time:W(v.time)?pe(v.time):void 0,total_voting_power:W(v.total_voting_power)?String(v.total_voting_power):"0"}),toJSON(v){const y={};return v.type!==void 0&&(y.type=M(v.type)),v.validator!==void 0&&(y.validator=v.validator?e.Validator.toJSON(v.validator):void 0),v.height!==void 0&&(y.height=v.height),v.time!==void 0&&(y.time=de(v.time).toISOString()),v.total_voting_power!==void 0&&(y.total_voting_power=v.total_voting_power),y},fromPartial(v){var y,S,T;const B={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};return B.type=(y=v.type)!==null&&y!==void 0?y:0,B.validator=v.validator!==void 0&&v.validator!==null?e.Validator.fromPartial(v.validator):void 0,B.height=(S=v.height)!==null&&S!==void 0?S:"0",B.time=v.time!==void 0&&v.time!==null?u.Timestamp.fromPartial(v.time):void 0,B.total_voting_power=(T=v.total_voting_power)!==null&&T!==void 0?T:"0",B}},e.Snapshot={encode:(v,y=t.Writer.create())=>(v.height!=="0"&&y.uint32(8).uint64(v.height),v.format!==0&&y.uint32(16).uint32(v.format),v.chunks!==0&&y.uint32(24).uint32(v.chunks),v.hash.length!==0&&y.uint32(34).bytes(v.hash),v.metadata.length!==0&&y.uint32(42).bytes(v.metadata),y),decode(v,y){const S=v instanceof t.Reader?v:new t.Reader(v);let T=y===void 0?S.len:S.pos+y;const B=Y();for(;S.pos>>3){case 1:B.height=_e(S.uint64());break;case 2:B.format=S.uint32();break;case 3:B.chunks=S.uint32();break;case 4:B.hash=S.bytes();break;case 5:B.metadata=S.bytes();break;default:S.skipType(7&z)}}return B},fromJSON:v=>({height:W(v.height)?String(v.height):"0",format:W(v.format)?Number(v.format):0,chunks:W(v.chunks)?Number(v.chunks):0,hash:W(v.hash)?ce(v.hash):new Uint8Array,metadata:W(v.metadata)?ce(v.metadata):new Uint8Array}),toJSON(v){const y={};return v.height!==void 0&&(y.height=v.height),v.format!==void 0&&(y.format=Math.round(v.format)),v.chunks!==void 0&&(y.chunks=Math.round(v.chunks)),v.hash!==void 0&&(y.hash=le(v.hash!==void 0?v.hash:new Uint8Array)),v.metadata!==void 0&&(y.metadata=le(v.metadata!==void 0?v.metadata:new Uint8Array)),y},fromPartial(v){var y,S,T,B,z;const q=Y();return q.height=(y=v.height)!==null&&y!==void 0?y:"0",q.format=(S=v.format)!==null&&S!==void 0?S:0,q.chunks=(T=v.chunks)!==null&&T!==void 0?T:0,q.hash=(B=v.hash)!==null&&B!==void 0?B:new Uint8Array,q.metadata=(z=v.metadata)!==null&&z!==void 0?z:new Uint8Array,q}},e.ABCIApplicationClientImpl=class{constructor(v){this.rpc=v,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}Echo(v){const y=e.RequestEcho.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",y).then(S=>e.ResponseEcho.decode(new t.Reader(S)))}Flush(v){const y=e.RequestFlush.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",y).then(S=>e.ResponseFlush.decode(new t.Reader(S)))}Info(v){const y=e.RequestInfo.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",y).then(S=>e.ResponseInfo.decode(new t.Reader(S)))}SetOption(v){const y=e.RequestSetOption.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","SetOption",y).then(S=>e.ResponseSetOption.decode(new t.Reader(S)))}DeliverTx(v){const y=e.RequestDeliverTx.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",y).then(S=>e.ResponseDeliverTx.decode(new t.Reader(S)))}CheckTx(v){const y=e.RequestCheckTx.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",y).then(S=>e.ResponseCheckTx.decode(new t.Reader(S)))}Query(v){const y=e.RequestQuery.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",y).then(S=>e.ResponseQuery.decode(new t.Reader(S)))}Commit(v){const y=e.RequestCommit.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",y).then(S=>e.ResponseCommit.decode(new t.Reader(S)))}InitChain(v){const y=e.RequestInitChain.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",y).then(S=>e.ResponseInitChain.decode(new t.Reader(S)))}BeginBlock(v){const y=e.RequestBeginBlock.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",y).then(S=>e.ResponseBeginBlock.decode(new t.Reader(S)))}EndBlock(v){const y=e.RequestEndBlock.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",y).then(S=>e.ResponseEndBlock.decode(new t.Reader(S)))}ListSnapshots(v){const y=e.RequestListSnapshots.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",y).then(S=>e.ResponseListSnapshots.decode(new t.Reader(S)))}OfferSnapshot(v){const y=e.RequestOfferSnapshot.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",y).then(S=>e.ResponseOfferSnapshot.decode(new t.Reader(S)))}LoadSnapshotChunk(v){const y=e.RequestLoadSnapshotChunk.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",y).then(S=>e.ResponseLoadSnapshotChunk.decode(new t.Reader(S)))}ApplySnapshotChunk(v){const y=e.RequestApplySnapshotChunk.encode(v).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",y).then(S=>e.ResponseApplySnapshotChunk.decode(new t.Reader(S)))}};var L=(()=>{if(L!==void 0)return L;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const ae=L.atob||(v=>L.Buffer.from(v,"base64").toString("binary"));function ce(v){const y=ae(v),S=new Uint8Array(y.length);for(let T=0;TL.Buffer.from(v,"binary").toString("base64"));function le(v){const y=[];for(const S of v)y.push(String.fromCharCode(S));return ue(y.join(""))}function be(v){return{seconds:Math.trunc(v.getTime()/1e3).toString(),nanos:v.getTime()%1e3*1e6}}function de(v){let y=1e3*Number(v.seconds);return y+=v.nanos/1e6,new Date(y)}function pe(v){return v instanceof Date?be(v):typeof v=="string"?be(new Date(v)):u.Timestamp.fromJSON(v)}function _e(v){return v.toString()}function W(v){return v!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2740:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(i,f,c,h){h===void 0&&(h=c),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[c]}})}:function(i,f,c,h){h===void 0&&(h=c),i[h]=f[c]}),A=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&O(f,i,c);return A(f,i),f},b=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));e.protobufPackage="tendermint.crypto",e.PublicKey={encode:(i,f=t.Writer.create())=>(i.ed25519!==void 0&&f.uint32(10).bytes(i.ed25519),i.secp256k1!==void 0&&f.uint32(18).bytes(i.secp256k1),f),decode(i,f){const c=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?c.len:c.pos+f;const p={ed25519:void 0,secp256k1:void 0};for(;c.pos>>3){case 1:p.ed25519=c.bytes();break;case 2:p.secp256k1=c.bytes();break;default:c.skipType(7&m)}}return p},fromJSON:i=>({ed25519:o(i.ed25519)?s(i.ed25519):void 0,secp256k1:o(i.secp256k1)?s(i.secp256k1):void 0}),toJSON(i){const f={};return i.ed25519!==void 0&&(f.ed25519=i.ed25519!==void 0?n(i.ed25519):void 0),i.secp256k1!==void 0&&(f.secp256k1=i.secp256k1!==void 0?n(i.secp256k1):void 0),f},fromPartial(i){var f,c;const h={ed25519:void 0,secp256k1:void 0};return h.ed25519=(f=i.ed25519)!==null&&f!==void 0?f:void 0,h.secp256k1=(c=i.secp256k1)!==null&&c!==void 0?c:void 0,h}};var u=(()=>{if(u!==void 0)return u;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const d=u.atob||(i=>u.Buffer.from(i,"base64").toString("binary"));function s(i){const f=d(i),c=new Uint8Array(f.length);for(let h=0;hu.Buffer.from(i,"binary").toString("base64"));function n(i){const f=[];for(const c of i)f.push(String.fromCharCode(c));return r(f.join(""))}function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1093:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(p,m,M,l){l===void 0&&(l=M),Object.defineProperty(p,l,{enumerable:!0,get:function(){return m[M]}})}:function(p,m,M,l){l===void 0&&(l=M),p[l]=m[M]}),A=this&&this.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),k=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var M in p)M!=="default"&&Object.prototype.hasOwnProperty.call(p,M)&&O(m,p,M);return A(m,p),m},b=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofOps=e.ProofOp=e.DominoOp=e.ValueOp=e.Proof=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(){return{total:"0",index:"0",leaf_hash:new Uint8Array,aunts:[]}}function d(){return{key:new Uint8Array,proof:void 0}}function s(){return{type:"",key:new Uint8Array,data:new Uint8Array}}e.protobufPackage="tendermint.crypto",e.Proof={encode(p,m=t.Writer.create()){p.total!=="0"&&m.uint32(8).int64(p.total),p.index!=="0"&&m.uint32(16).int64(p.index),p.leaf_hash.length!==0&&m.uint32(26).bytes(p.leaf_hash);for(const M of p.aunts)m.uint32(34).bytes(M);return m},decode(p,m){const M=p instanceof t.Reader?p:new t.Reader(p);let l=m===void 0?M.len:M.pos+m;const N=u();for(;M.pos>>3){case 1:N.total=c(M.int64());break;case 2:N.index=c(M.int64());break;case 3:N.leaf_hash=M.bytes();break;case 4:N.aunts.push(M.bytes());break;default:M.skipType(7&j)}}return N},fromJSON:p=>({total:h(p.total)?String(p.total):"0",index:h(p.index)?String(p.index):"0",leaf_hash:h(p.leaf_hash)?o(p.leaf_hash):new Uint8Array,aunts:Array.isArray(p==null?void 0:p.aunts)?p.aunts.map(m=>o(m)):[]}),toJSON(p){const m={};return p.total!==void 0&&(m.total=p.total),p.index!==void 0&&(m.index=p.index),p.leaf_hash!==void 0&&(m.leaf_hash=f(p.leaf_hash!==void 0?p.leaf_hash:new Uint8Array)),p.aunts?m.aunts=p.aunts.map(M=>f(M!==void 0?M:new Uint8Array)):m.aunts=[],m},fromPartial(p){var m,M,l,N;const j=u();return j.total=(m=p.total)!==null&&m!==void 0?m:"0",j.index=(M=p.index)!==null&&M!==void 0?M:"0",j.leaf_hash=(l=p.leaf_hash)!==null&&l!==void 0?l:new Uint8Array,j.aunts=((N=p.aunts)===null||N===void 0?void 0:N.map(R=>R))||[],j}},e.ValueOp={encode:(p,m=t.Writer.create())=>(p.key.length!==0&&m.uint32(10).bytes(p.key),p.proof!==void 0&&e.Proof.encode(p.proof,m.uint32(18).fork()).ldelim(),m),decode(p,m){const M=p instanceof t.Reader?p:new t.Reader(p);let l=m===void 0?M.len:M.pos+m;const N=d();for(;M.pos>>3){case 1:N.key=M.bytes();break;case 2:N.proof=e.Proof.decode(M,M.uint32());break;default:M.skipType(7&j)}}return N},fromJSON:p=>({key:h(p.key)?o(p.key):new Uint8Array,proof:h(p.proof)?e.Proof.fromJSON(p.proof):void 0}),toJSON(p){const m={};return p.key!==void 0&&(m.key=f(p.key!==void 0?p.key:new Uint8Array)),p.proof!==void 0&&(m.proof=p.proof?e.Proof.toJSON(p.proof):void 0),m},fromPartial(p){var m;const M=d();return M.key=(m=p.key)!==null&&m!==void 0?m:new Uint8Array,M.proof=p.proof!==void 0&&p.proof!==null?e.Proof.fromPartial(p.proof):void 0,M}},e.DominoOp={encode:(p,m=t.Writer.create())=>(p.key!==""&&m.uint32(10).string(p.key),p.input!==""&&m.uint32(18).string(p.input),p.output!==""&&m.uint32(26).string(p.output),m),decode(p,m){const M=p instanceof t.Reader?p:new t.Reader(p);let l=m===void 0?M.len:M.pos+m;const N={key:"",input:"",output:""};for(;M.pos>>3){case 1:N.key=M.string();break;case 2:N.input=M.string();break;case 3:N.output=M.string();break;default:M.skipType(7&j)}}return N},fromJSON:p=>({key:h(p.key)?String(p.key):"",input:h(p.input)?String(p.input):"",output:h(p.output)?String(p.output):""}),toJSON(p){const m={};return p.key!==void 0&&(m.key=p.key),p.input!==void 0&&(m.input=p.input),p.output!==void 0&&(m.output=p.output),m},fromPartial(p){var m,M,l;const N={key:"",input:"",output:""};return N.key=(m=p.key)!==null&&m!==void 0?m:"",N.input=(M=p.input)!==null&&M!==void 0?M:"",N.output=(l=p.output)!==null&&l!==void 0?l:"",N}},e.ProofOp={encode:(p,m=t.Writer.create())=>(p.type!==""&&m.uint32(10).string(p.type),p.key.length!==0&&m.uint32(18).bytes(p.key),p.data.length!==0&&m.uint32(26).bytes(p.data),m),decode(p,m){const M=p instanceof t.Reader?p:new t.Reader(p);let l=m===void 0?M.len:M.pos+m;const N=s();for(;M.pos>>3){case 1:N.type=M.string();break;case 2:N.key=M.bytes();break;case 3:N.data=M.bytes();break;default:M.skipType(7&j)}}return N},fromJSON:p=>({type:h(p.type)?String(p.type):"",key:h(p.key)?o(p.key):new Uint8Array,data:h(p.data)?o(p.data):new Uint8Array}),toJSON(p){const m={};return p.type!==void 0&&(m.type=p.type),p.key!==void 0&&(m.key=f(p.key!==void 0?p.key:new Uint8Array)),p.data!==void 0&&(m.data=f(p.data!==void 0?p.data:new Uint8Array)),m},fromPartial(p){var m,M,l;const N=s();return N.type=(m=p.type)!==null&&m!==void 0?m:"",N.key=(M=p.key)!==null&&M!==void 0?M:new Uint8Array,N.data=(l=p.data)!==null&&l!==void 0?l:new Uint8Array,N}},e.ProofOps={encode(p,m=t.Writer.create()){for(const M of p.ops)e.ProofOp.encode(M,m.uint32(10).fork()).ldelim();return m},decode(p,m){const M=p instanceof t.Reader?p:new t.Reader(p);let l=m===void 0?M.len:M.pos+m;const N={ops:[]};for(;M.pos>>3==1?N.ops.push(e.ProofOp.decode(M,M.uint32())):M.skipType(7&j)}return N},fromJSON:p=>({ops:Array.isArray(p==null?void 0:p.ops)?p.ops.map(m=>e.ProofOp.fromJSON(m)):[]}),toJSON(p){const m={};return p.ops?m.ops=p.ops.map(M=>M?e.ProofOp.toJSON(M):void 0):m.ops=[],m},fromPartial(p){var m;const M={ops:[]};return M.ops=((m=p.ops)===null||m===void 0?void 0:m.map(l=>e.ProofOp.fromPartial(l)))||[],M}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const n=r.atob||(p=>r.Buffer.from(p,"base64").toString("binary"));function o(p){const m=n(p),M=new Uint8Array(m.length);for(let l=0;lr.Buffer.from(p,"binary").toString("base64"));function f(p){const m=[];for(const M of p)m.push(String.fromCharCode(M));return i(m.join(""))}function c(p){return p.toString()}function h(p){return p!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5672:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),A=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&O(n,r,o);return A(n,r),n},b=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.HashedParams=e.VersionParams=e.ValidatorParams=e.EvidenceParams=e.BlockParams=e.ConsensusParams=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(6138);function d(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="tendermint.types",e.ConsensusParams={encode:(r,n=t.Writer.create())=>(r.block!==void 0&&e.BlockParams.encode(r.block,n.uint32(10).fork()).ldelim(),r.evidence!==void 0&&e.EvidenceParams.encode(r.evidence,n.uint32(18).fork()).ldelim(),r.validator!==void 0&&e.ValidatorParams.encode(r.validator,n.uint32(26).fork()).ldelim(),r.version!==void 0&&e.VersionParams.encode(r.version,n.uint32(34).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;o.pos>>3){case 1:f.block=e.BlockParams.decode(o,o.uint32());break;case 2:f.evidence=e.EvidenceParams.decode(o,o.uint32());break;case 3:f.validator=e.ValidatorParams.decode(o,o.uint32());break;case 4:f.version=e.VersionParams.decode(o,o.uint32());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({block:s(r.block)?e.BlockParams.fromJSON(r.block):void 0,evidence:s(r.evidence)?e.EvidenceParams.fromJSON(r.evidence):void 0,validator:s(r.validator)?e.ValidatorParams.fromJSON(r.validator):void 0,version:s(r.version)?e.VersionParams.fromJSON(r.version):void 0}),toJSON(r){const n={};return r.block!==void 0&&(n.block=r.block?e.BlockParams.toJSON(r.block):void 0),r.evidence!==void 0&&(n.evidence=r.evidence?e.EvidenceParams.toJSON(r.evidence):void 0),r.validator!==void 0&&(n.validator=r.validator?e.ValidatorParams.toJSON(r.validator):void 0),r.version!==void 0&&(n.version=r.version?e.VersionParams.toJSON(r.version):void 0),n},fromPartial(r){const n={block:void 0,evidence:void 0,validator:void 0,version:void 0};return n.block=r.block!==void 0&&r.block!==null?e.BlockParams.fromPartial(r.block):void 0,n.evidence=r.evidence!==void 0&&r.evidence!==null?e.EvidenceParams.fromPartial(r.evidence):void 0,n.validator=r.validator!==void 0&&r.validator!==null?e.ValidatorParams.fromPartial(r.validator):void 0,n.version=r.version!==void 0&&r.version!==null?e.VersionParams.fromPartial(r.version):void 0,n}},e.BlockParams={encode:(r,n=t.Writer.create())=>(r.max_bytes!=="0"&&n.uint32(8).int64(r.max_bytes),r.max_gas!=="0"&&n.uint32(16).int64(r.max_gas),r.time_iota_ms!=="0"&&n.uint32(24).int64(r.time_iota_ms),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};for(;o.pos>>3){case 1:f.max_bytes=d(o.int64());break;case 2:f.max_gas=d(o.int64());break;case 3:f.time_iota_ms=d(o.int64());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({max_bytes:s(r.max_bytes)?String(r.max_bytes):"0",max_gas:s(r.max_gas)?String(r.max_gas):"0",time_iota_ms:s(r.time_iota_ms)?String(r.time_iota_ms):"0"}),toJSON(r){const n={};return r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),r.max_gas!==void 0&&(n.max_gas=r.max_gas),r.time_iota_ms!==void 0&&(n.time_iota_ms=r.time_iota_ms),n},fromPartial(r){var n,o,i;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};return f.max_bytes=(n=r.max_bytes)!==null&&n!==void 0?n:"0",f.max_gas=(o=r.max_gas)!==null&&o!==void 0?o:"0",f.time_iota_ms=(i=r.time_iota_ms)!==null&&i!==void 0?i:"0",f}},e.EvidenceParams={encode:(r,n=t.Writer.create())=>(r.max_age_num_blocks!=="0"&&n.uint32(8).int64(r.max_age_num_blocks),r.max_age_duration!==void 0&&u.Duration.encode(r.max_age_duration,n.uint32(18).fork()).ldelim(),r.max_bytes!=="0"&&n.uint32(24).int64(r.max_bytes),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};for(;o.pos>>3){case 1:f.max_age_num_blocks=d(o.int64());break;case 2:f.max_age_duration=u.Duration.decode(o,o.uint32());break;case 3:f.max_bytes=d(o.int64());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({max_age_num_blocks:s(r.max_age_num_blocks)?String(r.max_age_num_blocks):"0",max_age_duration:s(r.max_age_duration)?u.Duration.fromJSON(r.max_age_duration):void 0,max_bytes:s(r.max_bytes)?String(r.max_bytes):"0"}),toJSON(r){const n={};return r.max_age_num_blocks!==void 0&&(n.max_age_num_blocks=r.max_age_num_blocks),r.max_age_duration!==void 0&&(n.max_age_duration=r.max_age_duration?u.Duration.toJSON(r.max_age_duration):void 0),r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),n},fromPartial(r){var n,o;const i={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};return i.max_age_num_blocks=(n=r.max_age_num_blocks)!==null&&n!==void 0?n:"0",i.max_age_duration=r.max_age_duration!==void 0&&r.max_age_duration!==null?u.Duration.fromPartial(r.max_age_duration):void 0,i.max_bytes=(o=r.max_bytes)!==null&&o!==void 0?o:"0",i}},e.ValidatorParams={encode(r,n=t.Writer.create()){for(const o of r.pub_key_types)n.uint32(10).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={pub_key_types:[]};for(;o.pos>>3==1?f.pub_key_types.push(o.string()):o.skipType(7&c)}return f},fromJSON:r=>({pub_key_types:Array.isArray(r==null?void 0:r.pub_key_types)?r.pub_key_types.map(n=>String(n)):[]}),toJSON(r){const n={};return r.pub_key_types?n.pub_key_types=r.pub_key_types.map(o=>o):n.pub_key_types=[],n},fromPartial(r){var n;const o={pub_key_types:[]};return o.pub_key_types=((n=r.pub_key_types)===null||n===void 0?void 0:n.map(i=>i))||[],o}},e.VersionParams={encode:(r,n=t.Writer.create())=>(r.app_version!=="0"&&n.uint32(8).uint64(r.app_version),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={app_version:"0"};for(;o.pos>>3==1?f.app_version=d(o.uint64()):o.skipType(7&c)}return f},fromJSON:r=>({app_version:s(r.app_version)?String(r.app_version):"0"}),toJSON(r){const n={};return r.app_version!==void 0&&(n.app_version=r.app_version),n},fromPartial(r){var n;const o={app_version:"0"};return o.app_version=(n=r.app_version)!==null&&n!==void 0?n:"0",o}},e.HashedParams={encode:(r,n=t.Writer.create())=>(r.block_max_bytes!=="0"&&n.uint32(8).int64(r.block_max_bytes),r.block_max_gas!=="0"&&n.uint32(16).int64(r.block_max_gas),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block_max_bytes:"0",block_max_gas:"0"};for(;o.pos>>3){case 1:f.block_max_bytes=d(o.int64());break;case 2:f.block_max_gas=d(o.int64());break;default:o.skipType(7&c)}}return f},fromJSON:r=>({block_max_bytes:s(r.block_max_bytes)?String(r.block_max_bytes):"0",block_max_gas:s(r.block_max_gas)?String(r.block_max_gas):"0"}),toJSON(r){const n={};return r.block_max_bytes!==void 0&&(n.block_max_bytes=r.block_max_bytes),r.block_max_gas!==void 0&&(n.block_max_gas=r.block_max_gas),n},fromPartial(r){var n,o;const i={block_max_bytes:"0",block_max_gas:"0"};return i.block_max_bytes=(n=r.block_max_bytes)!==null&&n!==void 0?n:"0",i.block_max_gas=(o=r.block_max_gas)!==null&&o!==void 0?o:"0",i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9928:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(D,Z,$,X){X===void 0&&(X=$),Object.defineProperty(D,X,{enumerable:!0,get:function(){return Z[$]}})}:function(D,Z,$,X){X===void 0&&(X=$),D[X]=Z[$]}),A=this&&this.__setModuleDefault||(Object.create?function(D,Z){Object.defineProperty(D,"default",{enumerable:!0,value:Z})}:function(D,Z){D.default=Z}),k=this&&this.__importStar||function(D){if(D&&D.__esModule)return D;var Z={};if(D!=null)for(var $ in D)$!=="default"&&Object.prototype.hasOwnProperty.call(D,$)&&O(Z,D,$);return A(Z,D),Z},b=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(e,"__esModule",{value:!0}),e.TxProof=e.BlockMeta=e.LightBlock=e.SignedHeader=e.Proposal=e.CommitSig=e.Commit=e.Vote=e.Data=e.EncryptedRandom=e.Header=e.BlockID=e.Part=e.PartSetHeader=e.signedMsgTypeToJSON=e.signedMsgTypeFromJSON=e.SignedMsgType=e.blockIDFlagToJSON=e.blockIDFlagFromJSON=e.BlockIDFlag=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(1093),d=_(5640),s=_(5090),r=_(3563);var n,o;function i(D){switch(D){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return n.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return n.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return n.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return n.BLOCK_ID_FLAG_NIL;default:return n.UNRECOGNIZED}}function f(D){switch(D){case n.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case n.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case n.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case n.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function c(D){switch(D){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function h(D){switch(D){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}function p(){return{total:0,hash:new Uint8Array}}function m(){return{index:0,bytes:new Uint8Array,proof:void 0}}function M(){return{hash:new Uint8Array,part_set_header:void 0}}function l(){return{version:void 0,chain_id:"",height:"0",time:void 0,last_block_id:void 0,last_commit_hash:new Uint8Array,data_hash:new Uint8Array,validators_hash:new Uint8Array,next_validators_hash:new Uint8Array,consensus_hash:new Uint8Array,app_hash:new Uint8Array,last_results_hash:new Uint8Array,evidence_hash:new Uint8Array,proposer_address:new Uint8Array,encrypted_random:void 0}}function N(){return{random:new Uint8Array,proof:new Uint8Array}}function j(){return{type:0,height:"0",round:0,block_id:void 0,timestamp:void 0,validator_address:new Uint8Array,validator_index:0,signature:new Uint8Array}}function R(){return{block_id_flag:0,validator_address:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}function I(){return{type:0,height:"0",round:0,pol_round:0,block_id:void 0,timestamp:void 0,signature:new Uint8Array}}function x(){return{root_hash:new Uint8Array,data:new Uint8Array,proof:void 0}}e.protobufPackage="tendermint.types",function(D){D[D.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",D[D.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",D[D.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",D[D.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.BlockIDFlag||(e.BlockIDFlag={})),e.blockIDFlagFromJSON=i,e.blockIDFlagToJSON=f,function(D){D[D.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",D[D.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",D[D.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",D[D.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",D[D.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.SignedMsgType||(e.SignedMsgType={})),e.signedMsgTypeFromJSON=c,e.signedMsgTypeToJSON=h,e.PartSetHeader={encode:(D,Z=t.Writer.create())=>(D.total!==0&&Z.uint32(8).uint32(D.total),D.hash.length!==0&&Z.uint32(18).bytes(D.hash),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=p();for(;$.pos>>3){case 1:K.total=$.uint32();break;case 2:K.hash=$.bytes();break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({total:ne(D.total)?Number(D.total):0,hash:ne(D.hash)?g(D.hash):new Uint8Array}),toJSON(D){const Z={};return D.total!==void 0&&(Z.total=Math.round(D.total)),D.hash!==void 0&&(Z.hash=U(D.hash!==void 0?D.hash:new Uint8Array)),Z},fromPartial(D){var Z,$;const X=p();return X.total=(Z=D.total)!==null&&Z!==void 0?Z:0,X.hash=($=D.hash)!==null&&$!==void 0?$:new Uint8Array,X}},e.Part={encode:(D,Z=t.Writer.create())=>(D.index!==0&&Z.uint32(8).uint32(D.index),D.bytes.length!==0&&Z.uint32(18).bytes(D.bytes),D.proof!==void 0&&u.Proof.encode(D.proof,Z.uint32(26).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=m();for(;$.pos>>3){case 1:K.index=$.uint32();break;case 2:K.bytes=$.bytes();break;case 3:K.proof=u.Proof.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({index:ne(D.index)?Number(D.index):0,bytes:ne(D.bytes)?g(D.bytes):new Uint8Array,proof:ne(D.proof)?u.Proof.fromJSON(D.proof):void 0}),toJSON(D){const Z={};return D.index!==void 0&&(Z.index=Math.round(D.index)),D.bytes!==void 0&&(Z.bytes=U(D.bytes!==void 0?D.bytes:new Uint8Array)),D.proof!==void 0&&(Z.proof=D.proof?u.Proof.toJSON(D.proof):void 0),Z},fromPartial(D){var Z,$;const X=m();return X.index=(Z=D.index)!==null&&Z!==void 0?Z:0,X.bytes=($=D.bytes)!==null&&$!==void 0?$:new Uint8Array,X.proof=D.proof!==void 0&&D.proof!==null?u.Proof.fromPartial(D.proof):void 0,X}},e.BlockID={encode:(D,Z=t.Writer.create())=>(D.hash.length!==0&&Z.uint32(10).bytes(D.hash),D.part_set_header!==void 0&&e.PartSetHeader.encode(D.part_set_header,Z.uint32(18).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=M();for(;$.pos>>3){case 1:K.hash=$.bytes();break;case 2:K.part_set_header=e.PartSetHeader.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({hash:ne(D.hash)?g(D.hash):new Uint8Array,part_set_header:ne(D.part_set_header)?e.PartSetHeader.fromJSON(D.part_set_header):void 0}),toJSON(D){const Z={};return D.hash!==void 0&&(Z.hash=U(D.hash!==void 0?D.hash:new Uint8Array)),D.part_set_header!==void 0&&(Z.part_set_header=D.part_set_header?e.PartSetHeader.toJSON(D.part_set_header):void 0),Z},fromPartial(D){var Z;const $=M();return $.hash=(Z=D.hash)!==null&&Z!==void 0?Z:new Uint8Array,$.part_set_header=D.part_set_header!==void 0&&D.part_set_header!==null?e.PartSetHeader.fromPartial(D.part_set_header):void 0,$}},e.Header={encode:(D,Z=t.Writer.create())=>(D.version!==void 0&&d.Consensus.encode(D.version,Z.uint32(10).fork()).ldelim(),D.chain_id!==""&&Z.uint32(18).string(D.chain_id),D.height!=="0"&&Z.uint32(24).int64(D.height),D.time!==void 0&&s.Timestamp.encode(D.time,Z.uint32(34).fork()).ldelim(),D.last_block_id!==void 0&&e.BlockID.encode(D.last_block_id,Z.uint32(42).fork()).ldelim(),D.last_commit_hash.length!==0&&Z.uint32(50).bytes(D.last_commit_hash),D.data_hash.length!==0&&Z.uint32(58).bytes(D.data_hash),D.validators_hash.length!==0&&Z.uint32(66).bytes(D.validators_hash),D.next_validators_hash.length!==0&&Z.uint32(74).bytes(D.next_validators_hash),D.consensus_hash.length!==0&&Z.uint32(82).bytes(D.consensus_hash),D.app_hash.length!==0&&Z.uint32(90).bytes(D.app_hash),D.last_results_hash.length!==0&&Z.uint32(98).bytes(D.last_results_hash),D.evidence_hash.length!==0&&Z.uint32(106).bytes(D.evidence_hash),D.proposer_address.length!==0&&Z.uint32(114).bytes(D.proposer_address),D.encrypted_random!==void 0&&e.EncryptedRandom.encode(D.encrypted_random,Z.uint32(122).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=l();for(;$.pos>>3){case 1:K.version=d.Consensus.decode($,$.uint32());break;case 2:K.chain_id=$.string();break;case 3:K.height=ee($.int64());break;case 4:K.time=s.Timestamp.decode($,$.uint32());break;case 5:K.last_block_id=e.BlockID.decode($,$.uint32());break;case 6:K.last_commit_hash=$.bytes();break;case 7:K.data_hash=$.bytes();break;case 8:K.validators_hash=$.bytes();break;case 9:K.next_validators_hash=$.bytes();break;case 10:K.consensus_hash=$.bytes();break;case 11:K.app_hash=$.bytes();break;case 12:K.last_results_hash=$.bytes();break;case 13:K.evidence_hash=$.bytes();break;case 14:K.proposer_address=$.bytes();break;case 15:K.encrypted_random=e.EncryptedRandom.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({version:ne(D.version)?d.Consensus.fromJSON(D.version):void 0,chain_id:ne(D.chain_id)?String(D.chain_id):"",height:ne(D.height)?String(D.height):"0",time:ne(D.time)?re(D.time):void 0,last_block_id:ne(D.last_block_id)?e.BlockID.fromJSON(D.last_block_id):void 0,last_commit_hash:ne(D.last_commit_hash)?g(D.last_commit_hash):new Uint8Array,data_hash:ne(D.data_hash)?g(D.data_hash):new Uint8Array,validators_hash:ne(D.validators_hash)?g(D.validators_hash):new Uint8Array,next_validators_hash:ne(D.next_validators_hash)?g(D.next_validators_hash):new Uint8Array,consensus_hash:ne(D.consensus_hash)?g(D.consensus_hash):new Uint8Array,app_hash:ne(D.app_hash)?g(D.app_hash):new Uint8Array,last_results_hash:ne(D.last_results_hash)?g(D.last_results_hash):new Uint8Array,evidence_hash:ne(D.evidence_hash)?g(D.evidence_hash):new Uint8Array,proposer_address:ne(D.proposer_address)?g(D.proposer_address):new Uint8Array,encrypted_random:ne(D.encrypted_random)?e.EncryptedRandom.fromJSON(D.encrypted_random):void 0}),toJSON(D){const Z={};return D.version!==void 0&&(Z.version=D.version?d.Consensus.toJSON(D.version):void 0),D.chain_id!==void 0&&(Z.chain_id=D.chain_id),D.height!==void 0&&(Z.height=D.height),D.time!==void 0&&(Z.time=F(D.time).toISOString()),D.last_block_id!==void 0&&(Z.last_block_id=D.last_block_id?e.BlockID.toJSON(D.last_block_id):void 0),D.last_commit_hash!==void 0&&(Z.last_commit_hash=U(D.last_commit_hash!==void 0?D.last_commit_hash:new Uint8Array)),D.data_hash!==void 0&&(Z.data_hash=U(D.data_hash!==void 0?D.data_hash:new Uint8Array)),D.validators_hash!==void 0&&(Z.validators_hash=U(D.validators_hash!==void 0?D.validators_hash:new Uint8Array)),D.next_validators_hash!==void 0&&(Z.next_validators_hash=U(D.next_validators_hash!==void 0?D.next_validators_hash:new Uint8Array)),D.consensus_hash!==void 0&&(Z.consensus_hash=U(D.consensus_hash!==void 0?D.consensus_hash:new Uint8Array)),D.app_hash!==void 0&&(Z.app_hash=U(D.app_hash!==void 0?D.app_hash:new Uint8Array)),D.last_results_hash!==void 0&&(Z.last_results_hash=U(D.last_results_hash!==void 0?D.last_results_hash:new Uint8Array)),D.evidence_hash!==void 0&&(Z.evidence_hash=U(D.evidence_hash!==void 0?D.evidence_hash:new Uint8Array)),D.proposer_address!==void 0&&(Z.proposer_address=U(D.proposer_address!==void 0?D.proposer_address:new Uint8Array)),D.encrypted_random!==void 0&&(Z.encrypted_random=D.encrypted_random?e.EncryptedRandom.toJSON(D.encrypted_random):void 0),Z},fromPartial(D){var Z,$,X,K,Y,L,ae,ce,ue,le,be;const de=l();return de.version=D.version!==void 0&&D.version!==null?d.Consensus.fromPartial(D.version):void 0,de.chain_id=(Z=D.chain_id)!==null&&Z!==void 0?Z:"",de.height=($=D.height)!==null&&$!==void 0?$:"0",de.time=D.time!==void 0&&D.time!==null?s.Timestamp.fromPartial(D.time):void 0,de.last_block_id=D.last_block_id!==void 0&&D.last_block_id!==null?e.BlockID.fromPartial(D.last_block_id):void 0,de.last_commit_hash=(X=D.last_commit_hash)!==null&&X!==void 0?X:new Uint8Array,de.data_hash=(K=D.data_hash)!==null&&K!==void 0?K:new Uint8Array,de.validators_hash=(Y=D.validators_hash)!==null&&Y!==void 0?Y:new Uint8Array,de.next_validators_hash=(L=D.next_validators_hash)!==null&&L!==void 0?L:new Uint8Array,de.consensus_hash=(ae=D.consensus_hash)!==null&&ae!==void 0?ae:new Uint8Array,de.app_hash=(ce=D.app_hash)!==null&&ce!==void 0?ce:new Uint8Array,de.last_results_hash=(ue=D.last_results_hash)!==null&&ue!==void 0?ue:new Uint8Array,de.evidence_hash=(le=D.evidence_hash)!==null&&le!==void 0?le:new Uint8Array,de.proposer_address=(be=D.proposer_address)!==null&&be!==void 0?be:new Uint8Array,de.encrypted_random=D.encrypted_random!==void 0&&D.encrypted_random!==null?e.EncryptedRandom.fromPartial(D.encrypted_random):void 0,de}},e.EncryptedRandom={encode:(D,Z=t.Writer.create())=>(D.random.length!==0&&Z.uint32(10).bytes(D.random),D.proof.length!==0&&Z.uint32(18).bytes(D.proof),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=N();for(;$.pos>>3){case 1:K.random=$.bytes();break;case 2:K.proof=$.bytes();break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({random:ne(D.random)?g(D.random):new Uint8Array,proof:ne(D.proof)?g(D.proof):new Uint8Array}),toJSON(D){const Z={};return D.random!==void 0&&(Z.random=U(D.random!==void 0?D.random:new Uint8Array)),D.proof!==void 0&&(Z.proof=U(D.proof!==void 0?D.proof:new Uint8Array)),Z},fromPartial(D){var Z,$;const X=N();return X.random=(Z=D.random)!==null&&Z!==void 0?Z:new Uint8Array,X.proof=($=D.proof)!==null&&$!==void 0?$:new Uint8Array,X}},e.Data={encode(D,Z=t.Writer.create()){for(const $ of D.txs)Z.uint32(10).bytes($);return Z},decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K={txs:[]};for(;$.pos>>3==1?K.txs.push($.bytes()):$.skipType(7&Y)}return K},fromJSON:D=>({txs:Array.isArray(D==null?void 0:D.txs)?D.txs.map(Z=>g(Z)):[]}),toJSON(D){const Z={};return D.txs?Z.txs=D.txs.map($=>U($!==void 0?$:new Uint8Array)):Z.txs=[],Z},fromPartial(D){var Z;const $={txs:[]};return $.txs=((Z=D.txs)===null||Z===void 0?void 0:Z.map(X=>X))||[],$}},e.Vote={encode:(D,Z=t.Writer.create())=>(D.type!==0&&Z.uint32(8).int32(D.type),D.height!=="0"&&Z.uint32(16).int64(D.height),D.round!==0&&Z.uint32(24).int32(D.round),D.block_id!==void 0&&e.BlockID.encode(D.block_id,Z.uint32(34).fork()).ldelim(),D.timestamp!==void 0&&s.Timestamp.encode(D.timestamp,Z.uint32(42).fork()).ldelim(),D.validator_address.length!==0&&Z.uint32(50).bytes(D.validator_address),D.validator_index!==0&&Z.uint32(56).int32(D.validator_index),D.signature.length!==0&&Z.uint32(66).bytes(D.signature),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=j();for(;$.pos>>3){case 1:K.type=$.int32();break;case 2:K.height=ee($.int64());break;case 3:K.round=$.int32();break;case 4:K.block_id=e.BlockID.decode($,$.uint32());break;case 5:K.timestamp=s.Timestamp.decode($,$.uint32());break;case 6:K.validator_address=$.bytes();break;case 7:K.validator_index=$.int32();break;case 8:K.signature=$.bytes();break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({type:ne(D.type)?c(D.type):0,height:ne(D.height)?String(D.height):"0",round:ne(D.round)?Number(D.round):0,block_id:ne(D.block_id)?e.BlockID.fromJSON(D.block_id):void 0,timestamp:ne(D.timestamp)?re(D.timestamp):void 0,validator_address:ne(D.validator_address)?g(D.validator_address):new Uint8Array,validator_index:ne(D.validator_index)?Number(D.validator_index):0,signature:ne(D.signature)?g(D.signature):new Uint8Array}),toJSON(D){const Z={};return D.type!==void 0&&(Z.type=h(D.type)),D.height!==void 0&&(Z.height=D.height),D.round!==void 0&&(Z.round=Math.round(D.round)),D.block_id!==void 0&&(Z.block_id=D.block_id?e.BlockID.toJSON(D.block_id):void 0),D.timestamp!==void 0&&(Z.timestamp=F(D.timestamp).toISOString()),D.validator_address!==void 0&&(Z.validator_address=U(D.validator_address!==void 0?D.validator_address:new Uint8Array)),D.validator_index!==void 0&&(Z.validator_index=Math.round(D.validator_index)),D.signature!==void 0&&(Z.signature=U(D.signature!==void 0?D.signature:new Uint8Array)),Z},fromPartial(D){var Z,$,X,K,Y,L;const ae=j();return ae.type=(Z=D.type)!==null&&Z!==void 0?Z:0,ae.height=($=D.height)!==null&&$!==void 0?$:"0",ae.round=(X=D.round)!==null&&X!==void 0?X:0,ae.block_id=D.block_id!==void 0&&D.block_id!==null?e.BlockID.fromPartial(D.block_id):void 0,ae.timestamp=D.timestamp!==void 0&&D.timestamp!==null?s.Timestamp.fromPartial(D.timestamp):void 0,ae.validator_address=(K=D.validator_address)!==null&&K!==void 0?K:new Uint8Array,ae.validator_index=(Y=D.validator_index)!==null&&Y!==void 0?Y:0,ae.signature=(L=D.signature)!==null&&L!==void 0?L:new Uint8Array,ae}},e.Commit={encode(D,Z=t.Writer.create()){D.height!=="0"&&Z.uint32(8).int64(D.height),D.round!==0&&Z.uint32(16).int32(D.round),D.block_id!==void 0&&e.BlockID.encode(D.block_id,Z.uint32(26).fork()).ldelim();for(const $ of D.signatures)e.CommitSig.encode($,Z.uint32(34).fork()).ldelim();return Z},decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K={height:"0",round:0,block_id:void 0,signatures:[]};for(;$.pos>>3){case 1:K.height=ee($.int64());break;case 2:K.round=$.int32();break;case 3:K.block_id=e.BlockID.decode($,$.uint32());break;case 4:K.signatures.push(e.CommitSig.decode($,$.uint32()));break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({height:ne(D.height)?String(D.height):"0",round:ne(D.round)?Number(D.round):0,block_id:ne(D.block_id)?e.BlockID.fromJSON(D.block_id):void 0,signatures:Array.isArray(D==null?void 0:D.signatures)?D.signatures.map(Z=>e.CommitSig.fromJSON(Z)):[]}),toJSON(D){const Z={};return D.height!==void 0&&(Z.height=D.height),D.round!==void 0&&(Z.round=Math.round(D.round)),D.block_id!==void 0&&(Z.block_id=D.block_id?e.BlockID.toJSON(D.block_id):void 0),D.signatures?Z.signatures=D.signatures.map($=>$?e.CommitSig.toJSON($):void 0):Z.signatures=[],Z},fromPartial(D){var Z,$,X;const K={height:"0",round:0,block_id:void 0,signatures:[]};return K.height=(Z=D.height)!==null&&Z!==void 0?Z:"0",K.round=($=D.round)!==null&&$!==void 0?$:0,K.block_id=D.block_id!==void 0&&D.block_id!==null?e.BlockID.fromPartial(D.block_id):void 0,K.signatures=((X=D.signatures)===null||X===void 0?void 0:X.map(Y=>e.CommitSig.fromPartial(Y)))||[],K}},e.CommitSig={encode:(D,Z=t.Writer.create())=>(D.block_id_flag!==0&&Z.uint32(8).int32(D.block_id_flag),D.validator_address.length!==0&&Z.uint32(18).bytes(D.validator_address),D.timestamp!==void 0&&s.Timestamp.encode(D.timestamp,Z.uint32(26).fork()).ldelim(),D.signature.length!==0&&Z.uint32(34).bytes(D.signature),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=R();for(;$.pos>>3){case 1:K.block_id_flag=$.int32();break;case 2:K.validator_address=$.bytes();break;case 3:K.timestamp=s.Timestamp.decode($,$.uint32());break;case 4:K.signature=$.bytes();break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({block_id_flag:ne(D.block_id_flag)?i(D.block_id_flag):0,validator_address:ne(D.validator_address)?g(D.validator_address):new Uint8Array,timestamp:ne(D.timestamp)?re(D.timestamp):void 0,signature:ne(D.signature)?g(D.signature):new Uint8Array}),toJSON(D){const Z={};return D.block_id_flag!==void 0&&(Z.block_id_flag=f(D.block_id_flag)),D.validator_address!==void 0&&(Z.validator_address=U(D.validator_address!==void 0?D.validator_address:new Uint8Array)),D.timestamp!==void 0&&(Z.timestamp=F(D.timestamp).toISOString()),D.signature!==void 0&&(Z.signature=U(D.signature!==void 0?D.signature:new Uint8Array)),Z},fromPartial(D){var Z,$,X;const K=R();return K.block_id_flag=(Z=D.block_id_flag)!==null&&Z!==void 0?Z:0,K.validator_address=($=D.validator_address)!==null&&$!==void 0?$:new Uint8Array,K.timestamp=D.timestamp!==void 0&&D.timestamp!==null?s.Timestamp.fromPartial(D.timestamp):void 0,K.signature=(X=D.signature)!==null&&X!==void 0?X:new Uint8Array,K}},e.Proposal={encode:(D,Z=t.Writer.create())=>(D.type!==0&&Z.uint32(8).int32(D.type),D.height!=="0"&&Z.uint32(16).int64(D.height),D.round!==0&&Z.uint32(24).int32(D.round),D.pol_round!==0&&Z.uint32(32).int32(D.pol_round),D.block_id!==void 0&&e.BlockID.encode(D.block_id,Z.uint32(42).fork()).ldelim(),D.timestamp!==void 0&&s.Timestamp.encode(D.timestamp,Z.uint32(50).fork()).ldelim(),D.signature.length!==0&&Z.uint32(58).bytes(D.signature),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=I();for(;$.pos>>3){case 1:K.type=$.int32();break;case 2:K.height=ee($.int64());break;case 3:K.round=$.int32();break;case 4:K.pol_round=$.int32();break;case 5:K.block_id=e.BlockID.decode($,$.uint32());break;case 6:K.timestamp=s.Timestamp.decode($,$.uint32());break;case 7:K.signature=$.bytes();break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({type:ne(D.type)?c(D.type):0,height:ne(D.height)?String(D.height):"0",round:ne(D.round)?Number(D.round):0,pol_round:ne(D.pol_round)?Number(D.pol_round):0,block_id:ne(D.block_id)?e.BlockID.fromJSON(D.block_id):void 0,timestamp:ne(D.timestamp)?re(D.timestamp):void 0,signature:ne(D.signature)?g(D.signature):new Uint8Array}),toJSON(D){const Z={};return D.type!==void 0&&(Z.type=h(D.type)),D.height!==void 0&&(Z.height=D.height),D.round!==void 0&&(Z.round=Math.round(D.round)),D.pol_round!==void 0&&(Z.pol_round=Math.round(D.pol_round)),D.block_id!==void 0&&(Z.block_id=D.block_id?e.BlockID.toJSON(D.block_id):void 0),D.timestamp!==void 0&&(Z.timestamp=F(D.timestamp).toISOString()),D.signature!==void 0&&(Z.signature=U(D.signature!==void 0?D.signature:new Uint8Array)),Z},fromPartial(D){var Z,$,X,K,Y;const L=I();return L.type=(Z=D.type)!==null&&Z!==void 0?Z:0,L.height=($=D.height)!==null&&$!==void 0?$:"0",L.round=(X=D.round)!==null&&X!==void 0?X:0,L.pol_round=(K=D.pol_round)!==null&&K!==void 0?K:0,L.block_id=D.block_id!==void 0&&D.block_id!==null?e.BlockID.fromPartial(D.block_id):void 0,L.timestamp=D.timestamp!==void 0&&D.timestamp!==null?s.Timestamp.fromPartial(D.timestamp):void 0,L.signature=(Y=D.signature)!==null&&Y!==void 0?Y:new Uint8Array,L}},e.SignedHeader={encode:(D,Z=t.Writer.create())=>(D.header!==void 0&&e.Header.encode(D.header,Z.uint32(10).fork()).ldelim(),D.commit!==void 0&&e.Commit.encode(D.commit,Z.uint32(18).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K={header:void 0,commit:void 0};for(;$.pos>>3){case 1:K.header=e.Header.decode($,$.uint32());break;case 2:K.commit=e.Commit.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({header:ne(D.header)?e.Header.fromJSON(D.header):void 0,commit:ne(D.commit)?e.Commit.fromJSON(D.commit):void 0}),toJSON(D){const Z={};return D.header!==void 0&&(Z.header=D.header?e.Header.toJSON(D.header):void 0),D.commit!==void 0&&(Z.commit=D.commit?e.Commit.toJSON(D.commit):void 0),Z},fromPartial(D){const Z={header:void 0,commit:void 0};return Z.header=D.header!==void 0&&D.header!==null?e.Header.fromPartial(D.header):void 0,Z.commit=D.commit!==void 0&&D.commit!==null?e.Commit.fromPartial(D.commit):void 0,Z}},e.LightBlock={encode:(D,Z=t.Writer.create())=>(D.signed_header!==void 0&&e.SignedHeader.encode(D.signed_header,Z.uint32(10).fork()).ldelim(),D.validator_set!==void 0&&r.ValidatorSet.encode(D.validator_set,Z.uint32(18).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K={signed_header:void 0,validator_set:void 0};for(;$.pos>>3){case 1:K.signed_header=e.SignedHeader.decode($,$.uint32());break;case 2:K.validator_set=r.ValidatorSet.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({signed_header:ne(D.signed_header)?e.SignedHeader.fromJSON(D.signed_header):void 0,validator_set:ne(D.validator_set)?r.ValidatorSet.fromJSON(D.validator_set):void 0}),toJSON(D){const Z={};return D.signed_header!==void 0&&(Z.signed_header=D.signed_header?e.SignedHeader.toJSON(D.signed_header):void 0),D.validator_set!==void 0&&(Z.validator_set=D.validator_set?r.ValidatorSet.toJSON(D.validator_set):void 0),Z},fromPartial(D){const Z={signed_header:void 0,validator_set:void 0};return Z.signed_header=D.signed_header!==void 0&&D.signed_header!==null?e.SignedHeader.fromPartial(D.signed_header):void 0,Z.validator_set=D.validator_set!==void 0&&D.validator_set!==null?r.ValidatorSet.fromPartial(D.validator_set):void 0,Z}},e.BlockMeta={encode:(D,Z=t.Writer.create())=>(D.block_id!==void 0&&e.BlockID.encode(D.block_id,Z.uint32(10).fork()).ldelim(),D.block_size!=="0"&&Z.uint32(16).int64(D.block_size),D.header!==void 0&&e.Header.encode(D.header,Z.uint32(26).fork()).ldelim(),D.num_txs!=="0"&&Z.uint32(32).int64(D.num_txs),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};for(;$.pos>>3){case 1:K.block_id=e.BlockID.decode($,$.uint32());break;case 2:K.block_size=ee($.int64());break;case 3:K.header=e.Header.decode($,$.uint32());break;case 4:K.num_txs=ee($.int64());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({block_id:ne(D.block_id)?e.BlockID.fromJSON(D.block_id):void 0,block_size:ne(D.block_size)?String(D.block_size):"0",header:ne(D.header)?e.Header.fromJSON(D.header):void 0,num_txs:ne(D.num_txs)?String(D.num_txs):"0"}),toJSON(D){const Z={};return D.block_id!==void 0&&(Z.block_id=D.block_id?e.BlockID.toJSON(D.block_id):void 0),D.block_size!==void 0&&(Z.block_size=D.block_size),D.header!==void 0&&(Z.header=D.header?e.Header.toJSON(D.header):void 0),D.num_txs!==void 0&&(Z.num_txs=D.num_txs),Z},fromPartial(D){var Z,$;const X={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};return X.block_id=D.block_id!==void 0&&D.block_id!==null?e.BlockID.fromPartial(D.block_id):void 0,X.block_size=(Z=D.block_size)!==null&&Z!==void 0?Z:"0",X.header=D.header!==void 0&&D.header!==null?e.Header.fromPartial(D.header):void 0,X.num_txs=($=D.num_txs)!==null&&$!==void 0?$:"0",X}},e.TxProof={encode:(D,Z=t.Writer.create())=>(D.root_hash.length!==0&&Z.uint32(10).bytes(D.root_hash),D.data.length!==0&&Z.uint32(18).bytes(D.data),D.proof!==void 0&&u.Proof.encode(D.proof,Z.uint32(26).fork()).ldelim(),Z),decode(D,Z){const $=D instanceof t.Reader?D:new t.Reader(D);let X=Z===void 0?$.len:$.pos+Z;const K=x();for(;$.pos>>3){case 1:K.root_hash=$.bytes();break;case 2:K.data=$.bytes();break;case 3:K.proof=u.Proof.decode($,$.uint32());break;default:$.skipType(7&Y)}}return K},fromJSON:D=>({root_hash:ne(D.root_hash)?g(D.root_hash):new Uint8Array,data:ne(D.data)?g(D.data):new Uint8Array,proof:ne(D.proof)?u.Proof.fromJSON(D.proof):void 0}),toJSON(D){const Z={};return D.root_hash!==void 0&&(Z.root_hash=U(D.root_hash!==void 0?D.root_hash:new Uint8Array)),D.data!==void 0&&(Z.data=U(D.data!==void 0?D.data:new Uint8Array)),D.proof!==void 0&&(Z.proof=D.proof?u.Proof.toJSON(D.proof):void 0),Z},fromPartial(D){var Z,$;const X=x();return X.root_hash=(Z=D.root_hash)!==null&&Z!==void 0?Z:new Uint8Array,X.data=($=D.data)!==null&&$!==void 0?$:new Uint8Array,X.proof=D.proof!==void 0&&D.proof!==null?u.Proof.fromPartial(D.proof):void 0,X}};var P=(()=>{if(P!==void 0)return P;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const w=P.atob||(D=>P.Buffer.from(D,"base64").toString("binary"));function g(D){const Z=w(D),$=new Uint8Array(Z.length);for(let X=0;XP.Buffer.from(D,"binary").toString("base64"));function U(D){const Z=[];for(const $ of D)Z.push(String.fromCharCode($));return E(Z.join(""))}function C(D){return{seconds:Math.trunc(D.getTime()/1e3).toString(),nanos:D.getTime()%1e3*1e6}}function F(D){let Z=1e3*Number(D.seconds);return Z+=D.nanos/1e6,new Date(Z)}function re(D){return D instanceof Date?C(D):typeof D=="string"?C(new Date(D)):s.Timestamp.fromJSON(D)}function ee(D){return D.toString()}function ne(D){return D!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3563:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleValidator=e.Validator=e.ValidatorSet=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100)),u=_(2740);function d(){return{address:new Uint8Array,pub_key:void 0,voting_power:"0",proposer_priority:"0"}}e.protobufPackage="tendermint.types",e.ValidatorSet={encode(c,h=t.Writer.create()){for(const p of c.validators)e.Validator.encode(p,h.uint32(10).fork()).ldelim();return c.proposer!==void 0&&e.Validator.encode(c.proposer,h.uint32(18).fork()).ldelim(),c.total_voting_power!=="0"&&h.uint32(24).int64(c.total_voting_power),h},decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={validators:[],proposer:void 0,total_voting_power:"0"};for(;p.pos>>3){case 1:M.validators.push(e.Validator.decode(p,p.uint32()));break;case 2:M.proposer=e.Validator.decode(p,p.uint32());break;case 3:M.total_voting_power=i(p.int64());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({validators:Array.isArray(c==null?void 0:c.validators)?c.validators.map(h=>e.Validator.fromJSON(h)):[],proposer:f(c.proposer)?e.Validator.fromJSON(c.proposer):void 0,total_voting_power:f(c.total_voting_power)?String(c.total_voting_power):"0"}),toJSON(c){const h={};return c.validators?h.validators=c.validators.map(p=>p?e.Validator.toJSON(p):void 0):h.validators=[],c.proposer!==void 0&&(h.proposer=c.proposer?e.Validator.toJSON(c.proposer):void 0),c.total_voting_power!==void 0&&(h.total_voting_power=c.total_voting_power),h},fromPartial(c){var h,p;const m={validators:[],proposer:void 0,total_voting_power:"0"};return m.validators=((h=c.validators)===null||h===void 0?void 0:h.map(M=>e.Validator.fromPartial(M)))||[],m.proposer=c.proposer!==void 0&&c.proposer!==null?e.Validator.fromPartial(c.proposer):void 0,m.total_voting_power=(p=c.total_voting_power)!==null&&p!==void 0?p:"0",m}},e.Validator={encode:(c,h=t.Writer.create())=>(c.address.length!==0&&h.uint32(10).bytes(c.address),c.pub_key!==void 0&&u.PublicKey.encode(c.pub_key,h.uint32(18).fork()).ldelim(),c.voting_power!=="0"&&h.uint32(24).int64(c.voting_power),c.proposer_priority!=="0"&&h.uint32(32).int64(c.proposer_priority),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M=d();for(;p.pos>>3){case 1:M.address=p.bytes();break;case 2:M.pub_key=u.PublicKey.decode(p,p.uint32());break;case 3:M.voting_power=i(p.int64());break;case 4:M.proposer_priority=i(p.int64());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({address:f(c.address)?n(c.address):new Uint8Array,pub_key:f(c.pub_key)?u.PublicKey.fromJSON(c.pub_key):void 0,voting_power:f(c.voting_power)?String(c.voting_power):"0",proposer_priority:f(c.proposer_priority)?String(c.proposer_priority):"0"}),toJSON(c){const h={};return c.address!==void 0&&(h.address=function(p){const m=[];for(const M of p)m.push(String.fromCharCode(M));return o(m.join(""))}(c.address!==void 0?c.address:new Uint8Array)),c.pub_key!==void 0&&(h.pub_key=c.pub_key?u.PublicKey.toJSON(c.pub_key):void 0),c.voting_power!==void 0&&(h.voting_power=c.voting_power),c.proposer_priority!==void 0&&(h.proposer_priority=c.proposer_priority),h},fromPartial(c){var h,p,m;const M=d();return M.address=(h=c.address)!==null&&h!==void 0?h:new Uint8Array,M.pub_key=c.pub_key!==void 0&&c.pub_key!==null?u.PublicKey.fromPartial(c.pub_key):void 0,M.voting_power=(p=c.voting_power)!==null&&p!==void 0?p:"0",M.proposer_priority=(m=c.proposer_priority)!==null&&m!==void 0?m:"0",M}},e.SimpleValidator={encode:(c,h=t.Writer.create())=>(c.pub_key!==void 0&&u.PublicKey.encode(c.pub_key,h.uint32(10).fork()).ldelim(),c.voting_power!=="0"&&h.uint32(16).int64(c.voting_power),h),decode(c,h){const p=c instanceof t.Reader?c:new t.Reader(c);let m=h===void 0?p.len:p.pos+h;const M={pub_key:void 0,voting_power:"0"};for(;p.pos>>3){case 1:M.pub_key=u.PublicKey.decode(p,p.uint32());break;case 2:M.voting_power=i(p.int64());break;default:p.skipType(7&l)}}return M},fromJSON:c=>({pub_key:f(c.pub_key)?u.PublicKey.fromJSON(c.pub_key):void 0,voting_power:f(c.voting_power)?String(c.voting_power):"0"}),toJSON(c){const h={};return c.pub_key!==void 0&&(h.pub_key=c.pub_key?u.PublicKey.toJSON(c.pub_key):void 0),c.voting_power!==void 0&&(h.voting_power=c.voting_power),h},fromPartial(c){var h;const p={pub_key:void 0,voting_power:"0"};return p.pub_key=c.pub_key!==void 0&&c.pub_key!==null?u.PublicKey.fromPartial(c.pub_key):void 0,p.voting_power=(h=c.voting_power)!==null&&h!==void 0?h:"0",p}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(_.g!==void 0)return _.g;throw"Unable to locate global object"})();const r=s.atob||(c=>s.Buffer.from(c,"base64").toString("binary"));function n(c){const h=r(c),p=new Uint8Array(h.length);for(let m=0;ms.Buffer.from(c,"binary").toString("base64"));function i(c){return c.toString()}function f(c){return c!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5640:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Consensus=e.App=e.protobufPackage=void 0;const a=b(_(3720)),t=k(_(2100));function u(s){return s.toString()}function d(s){return s!=null}e.protobufPackage="tendermint.version",e.App={encode:(s,r=t.Writer.create())=>(s.protocol!=="0"&&r.uint32(8).uint64(s.protocol),s.software!==""&&r.uint32(18).string(s.software),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={protocol:"0",software:""};for(;n.pos>>3){case 1:i.protocol=u(n.uint64());break;case 2:i.software=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({protocol:d(s.protocol)?String(s.protocol):"0",software:d(s.software)?String(s.software):""}),toJSON(s){const r={};return s.protocol!==void 0&&(r.protocol=s.protocol),s.software!==void 0&&(r.software=s.software),r},fromPartial(s){var r,n;const o={protocol:"0",software:""};return o.protocol=(r=s.protocol)!==null&&r!==void 0?r:"0",o.software=(n=s.software)!==null&&n!==void 0?n:"",o}},e.Consensus={encode:(s,r=t.Writer.create())=>(s.block!=="0"&&r.uint32(8).uint64(s.block),s.app!=="0"&&r.uint32(16).uint64(s.app),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={block:"0",app:"0"};for(;n.pos>>3){case 1:i.block=u(n.uint64());break;case 2:i.app=u(n.uint64());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({block:d(s.block)?String(s.block):"0",app:d(s.app)?String(s.app):"0"}),toJSON(s){const r={};return s.block!==void 0&&(r.block=s.block),s.app!==void 0&&(r.app=s.app),r},fromPartial(s){var r,n;const o={block:"0",app:"0"};return o.block=(r=s.block)!==null&&r!==void 0?r:"0",o.app=(n=s.app)!==null&&n!==void 0?n:"0",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2076:function(J,e,_){var O=this&&this.__awaiter||function(k,b,a,t){return new(a||(a=Promise))(function(u,d){function s(o){try{n(t.next(o))}catch(i){d(i)}}function r(o){try{n(t.throw(o))}catch(i){d(i)}}function n(o){var i;o.done?u(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,b||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AuthQuerier=void 0;const A=_(3004);e.AuthQuerier=class{constructor(k){this.url=k}accounts(k,b){return O(this,void 0,void 0,function*(){return A.Query.Accounts(k,{headers:b,pathPrefix:this.url})})}account(k,b){return O(this,void 0,void 0,function*(){return A.Query.Account(k,{headers:b,pathPrefix:this.url})})}params(k,b){return O(this,void 0,void 0,function*(){return A.Query.Params(k,{headers:b,pathPrefix:this.url})})}moduleAccountByName(k,b){return O(this,void 0,void 0,function*(){return A.Query.ModuleAccountByName(k,{headers:b,pathPrefix:this.url})})}}},298:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AuthzQuerier=void 0;const O=_(3704);e.AuthzQuerier=class{constructor(A){this.url=A}grants(A,k){return O.Query.Grants(A,{headers:k,pathPrefix:this.url})}granterGrants(A,k){return O.Query.GranterGrants(A,{headers:k,pathPrefix:this.url})}granteeGrants(A,k){return O.Query.GranteeGrants(A,{headers:k,pathPrefix:this.url})}}},8622:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BankQuerier=void 0;const O=_(1926);e.BankQuerier=class{constructor(A){this.url=A}balance(A,k){return O.Query.Balance(A,{headers:k,pathPrefix:this.url})}allBalances(A,k){return O.Query.AllBalances(A,{headers:k,pathPrefix:this.url})}spendableBalances(A,k){return O.Query.SpendableBalances(A,{headers:k,pathPrefix:this.url})}totalSupply(A,k){return O.Query.TotalSupply(A,{headers:k,pathPrefix:this.url})}supplyOf(A,k){return O.Query.SupplyOf(A,{headers:k,pathPrefix:this.url})}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}denomMetadata(A,k){return O.Query.DenomMetadata(A,{headers:k,pathPrefix:this.url})}denomsMetadata(A,k){return O.Query.DenomsMetadata(A,{headers:k,pathPrefix:this.url})}}},8526:function(J,e,_){var O=_(5108),A=this&&this.__awaiter||function(u,d,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{c(r.next(h))}catch(p){o(p)}}function f(h){try{c(r.throw(h))}catch(p){o(p)}}function c(h){var p;h.done?n(h.value):(p=h.value,p instanceof s?p:new s(function(m){m(p)})).then(i,f)}c((r=r.apply(u,d||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ComputeQuerier=void 0;const k=_(8972),b=_(3607),a=_(8136),t=_(5250);e.ComputeQuerier=class{constructor(u,d){this.url=u,this.encryption=d,this.codeHashCache=new Map,this.encryption||(this.encryption=new a.EncryptionUtilsImpl(u))}contractInfo(u,d){return t.Query.ContractInfo(u,{headers:d,pathPrefix:this.url})}contractsByCodeId(u,d){return t.Query.ContractsByCodeId(u,{headers:d,pathPrefix:this.url})}code(u,d){return t.Query.Code(u,{headers:d,pathPrefix:this.url})}codes(u,d){return t.Query.Codes(u,{headers:d,pathPrefix:this.url})}codeHashByContractAddress(u,d){return A(this,void 0,void 0,function*(){let s=this.codeHashCache.get(u.contract_address);return s||({code_hash:s}=yield t.Query.CodeHashByContractAddress(u,{headers:d,pathPrefix:this.url}),this.codeHashCache.set(u.contract_address,s)),{code_hash:s}})}codeHashByCodeId(u,d){return A(this,void 0,void 0,function*(){let s=this.codeHashCache.get(u.code_id);return s||({code_hash:s}=yield t.Query.CodeHashByCodeId({code_id:u.code_id},{headers:d,pathPrefix:this.url}),this.codeHashCache.set(u.code_id,s)),{code_hash:s}})}labelByAddress(u,d){return t.Query.LabelByAddress(u,{headers:d,pathPrefix:this.url})}addressByLabel(u,d){return t.Query.AddressByLabel(u,{headers:d,pathPrefix:this.url})}queryContract({contract_address:u,code_hash:d,query:s},r){return A(this,void 0,void 0,function*(){d||(O.warn((0,b.getMissingCodeHashWarning)("queryContract()")),{code_hash:d}=yield this.codeHashByContractAddress({contract_address:u})),d=d.replace("0x","").toLowerCase();const n=yield this.encryption.encrypt(d,s),o=n.slice(0,32);try{const{data:i}=yield t.Query.QuerySecretContract({contract_address:u,query:n},{headers:r,pathPrefix:this.url}),f=yield this.encryption.decrypt((0,k.fromBase64)(i),o);return f!=null&&f.length?JSON.parse((0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(f)))):{}}catch(i){try{const f=/encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(i.message);if(f==null||(f==null?void 0:f.length)!=2)throw i;const c=(0,k.fromBase64)(f[1]),h=yield this.encryption.decrypt(c,o);try{return(0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(h)))}catch(p){if(p.message==="Invalid base64 string format")return(0,k.fromUtf8)(h);throw i}}catch{throw i}}})}contractHistory(u,d){return A(this,void 0,void 0,function*(){const{entries:s}=yield t.Query.ContractHistory(u,{headers:d,pathPrefix:this.url});let r=[];for(const n of s??[]){let o=n.msg;try{const i=(0,k.fromBase64)(o),f=i.slice(0,32),c=i.slice(64),h=yield this.encryption.decrypt(c,f);o=(0,k.fromUtf8)(h).slice(64)}catch{}r.push({operation:n.operation,code_id:n.code_id,updated:n.updated,msg:o})}return{entries:r}})}}},2012:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DistributionQuerier=void 0;const O=_(406);e.DistributionQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}validatorOutstandingRewards(A,k){return O.Query.ValidatorOutstandingRewards(A,{headers:k,pathPrefix:this.url})}validatorCommission(A,k){return O.Query.ValidatorCommission(A,{headers:k,pathPrefix:this.url})}validatorSlashes(A,k){return O.Query.ValidatorSlashes(A,{headers:k,pathPrefix:this.url})}delegationRewards(A,k){return O.Query.DelegationRewards(A,{headers:k,pathPrefix:this.url})}delegationTotalRewards(A,k){return O.Query.DelegationTotalRewards(A,{headers:k,pathPrefix:this.url})}delegatorValidators(A,k){return O.Query.DelegatorValidators(A,{headers:k,pathPrefix:this.url})}delegatorWithdrawAddress(A,k){return O.Query.DelegatorWithdrawAddress(A,{headers:k,pathPrefix:this.url})}communityPool(A,k){return O.Query.CommunityPool(A,{headers:k,pathPrefix:this.url})}foundationTax(A,k){return O.Query.FoundationTax(A,{headers:k,pathPrefix:this.url})}restakeThreshold(A,k){return O.Query.RestakeThreshold(A,{headers:k,pathPrefix:this.url})}restakingEntries(A,k){return O.Query.RestakingEntries(A,{headers:k,pathPrefix:this.url})}}},5468:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EmergencyButtonQuerier=void 0;const O=_(71);e.EmergencyButtonQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}}},3394:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EvidenceQuerier=void 0;const O=_(6898);e.EvidenceQuerier=class{constructor(A){this.url=A}evidence(A,k){return O.Query.Evidence(A,{headers:k,pathPrefix:this.url})}allEvidence(A,k){return O.Query.AllEvidence(A,{headers:k,pathPrefix:this.url})}}},380:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FeegrantQuerier=void 0;const O=_(876);e.FeegrantQuerier=class{constructor(A){this.url=A}allowance(A,k){return O.Query.Allowance(A,{headers:k,pathPrefix:this.url})}allowances(A,k){return O.Query.Allowances(A,{headers:k,pathPrefix:this.url})}allowancesByGranter(A,k){return O.Query.AllowancesByGranter(A,{headers:k,pathPrefix:this.url})}}},3095:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GovQuerier=void 0;const O=_(7331);e.GovQuerier=class{constructor(A){this.url=A}proposal(A,k){return O.Query.Proposal(A,{headers:k,pathPrefix:this.url})}proposals(A,k){return O.Query.Proposals(A,{headers:k,pathPrefix:this.url})}vote(A,k){return O.Query.Vote(A,{headers:k,pathPrefix:this.url})}votes(A,k){return O.Query.Votes(A,{headers:k,pathPrefix:this.url})}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}deposit(A,k){return O.Query.Deposit(A,{headers:k,pathPrefix:this.url})}deposits(A,k){return O.Query.Deposits(A,{headers:k,pathPrefix:this.url})}tallyResult(A,k){return O.Query.TallyResult(A,{headers:k,pathPrefix:this.url})}}},7807:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcChannelQuerier=void 0;const O=_(6409);e.IbcChannelQuerier=class{constructor(A){this.url=A}channel(A,k){return O.Query.Channel(A,{headers:k,pathPrefix:this.url})}channels(A,k){return O.Query.Channels(A,{headers:k,pathPrefix:this.url})}connectionChannels(A,k){return O.Query.ConnectionChannels(A,{headers:k,pathPrefix:this.url})}channelClientState(A,k){return O.Query.ChannelClientState(A,{headers:k,pathPrefix:this.url})}channelConsensusState(A,k){return O.Query.ChannelConsensusState(A,{headers:k,pathPrefix:this.url})}packetCommitment(A,k){return O.Query.PacketCommitment(A,{headers:k,pathPrefix:this.url})}packetCommitments(A,k){return O.Query.PacketCommitments(A,{headers:k,pathPrefix:this.url})}packetReceipt(A,k){return O.Query.PacketReceipt(A,{headers:k,pathPrefix:this.url})}packetAcknowledgement(A,k){return O.Query.PacketAcknowledgement(A,{headers:k,pathPrefix:this.url})}packetAcknowledgements(A,k){return O.Query.PacketAcknowledgements(A,{headers:k,pathPrefix:this.url})}unreceivedPackets(A,k){return O.Query.UnreceivedPackets(A,{headers:k,pathPrefix:this.url})}unreceivedAcks(A,k){return O.Query.UnreceivedAcks(A,{headers:k,pathPrefix:this.url})}nextSequenceReceive(A,k){return O.Query.NextSequenceReceive(A,{headers:k,pathPrefix:this.url})}}},1654:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcClientQuerier=void 0;const O=_(301);e.IbcClientQuerier=class{constructor(A){this.url=A}clientState(A,k){return O.Query.ClientState(A,{headers:k,pathPrefix:this.url})}clientStates(A,k){return O.Query.ClientStates(A,{headers:k,pathPrefix:this.url})}consensusState(A,k){return O.Query.ConsensusState(A,{headers:k,pathPrefix:this.url})}consensusStates(A,k){return O.Query.ConsensusStates(A,{headers:k,pathPrefix:this.url})}clientStatus(A,k){return O.Query.ClientStatus(A,{headers:k,pathPrefix:this.url})}clientParams(A,k){return O.Query.ClientParams(A,{headers:k,pathPrefix:this.url})}upgradedClientState(A,k){return O.Query.UpgradedClientState(A,{headers:k,pathPrefix:this.url})}upgradedConsensusState(A,k){return O.Query.UpgradedConsensusState(A,{headers:k,pathPrefix:this.url})}consensusStateHeights(A,k){return O.Query.ConsensusStateHeights(A,{headers:k,pathPrefix:this.url})}}},2840:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcConnectionQuerier=void 0;const O=_(5258);e.IbcConnectionQuerier=class{constructor(A){this.url=A}connection(A,k){return O.Query.Connection(A,{headers:k,pathPrefix:this.url})}connections(A,k){return O.Query.Connections(A,{headers:k,pathPrefix:this.url})}clientConnections(A,k){return O.Query.ClientConnections(A,{headers:k,pathPrefix:this.url})}connectionClientState(A,k){return O.Query.ConnectionClientState(A,{headers:k,pathPrefix:this.url})}connectionConsensusState(A,k){return O.Query.ConnectionConsensusState(A,{headers:k,pathPrefix:this.url})}}},5570:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcFeeQuerier=void 0;const O=_(187);e.IbcFeeQuerier=class{constructor(A){this.url=A}incentivizedPackets(A,k){return O.Query.IncentivizedPackets(A,{headers:k,pathPrefix:this.url})}incentivizedPacket(A,k){return O.Query.IncentivizedPacket(A,{headers:k,pathPrefix:this.url})}incentivizedPacketsForChannel(A,k){return O.Query.IncentivizedPacketsForChannel(A,{headers:k,pathPrefix:this.url})}totalRecvFees(A,k){return O.Query.TotalRecvFees(A,{headers:k,pathPrefix:this.url})}totalAckFees(A,k){return O.Query.TotalAckFees(A,{headers:k,pathPrefix:this.url})}totalTimeoutFees(A,k){return O.Query.TotalTimeoutFees(A,{headers:k,pathPrefix:this.url})}payee(A,k){return O.Query.Payee(A,{headers:k,pathPrefix:this.url})}counterpartyPayee(A,k){return O.Query.CounterpartyPayee(A,{headers:k,pathPrefix:this.url})}feeEnabledChannels(A,k){return O.Query.FeeEnabledChannels(A,{headers:k,pathPrefix:this.url})}feeEnabledChannel(A,k){return O.Query.FeeEnabledChannel(A,{headers:k,pathPrefix:this.url})}}},5037:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsControllerQuerier=void 0;const O=_(2847);e.IbcInterchainAccountsControllerQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}interchainAccount(A,k){return O.Query.InterchainAccount(A,{headers:k,pathPrefix:this.url})}}},3635:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsHostQuerier=void 0;const O=_(1154);e.IbcInterchainAccountsHostQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}}},9637:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcPacketForwardQuerier=void 0;const O=_(1692);e.IbcPacketForwardQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}}},1387:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcTransferQuerier=void 0;const O=_(4921);e.IbcTransferQuerier=class{constructor(A){this.url=A}denomTrace(A,k){return O.Query.DenomTrace(A,{headers:k,pathPrefix:this.url})}denomTraces(A,k){return O.Query.DenomTraces(A,{headers:k,pathPrefix:this.url})}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}denomHash(A,k){return O.Query.DenomHash(A,{headers:k,pathPrefix:this.url})}escrowAddress(A,k){return O.Query.EscrowAddress(A,{headers:k,pathPrefix:this.url})}}},9150:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(k,b,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return b[a]}})}:function(k,b,a,t){t===void 0&&(t=a),k[t]=b[a]}),A=this&&this.__exportStar||function(k,b){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(b,a)||O(b,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),A(_(2076),e),A(_(298),e),A(_(8622),e),A(_(8526),e),A(_(2012),e),A(_(3394),e),A(_(380),e),A(_(3095),e),A(_(7807),e),A(_(1654),e),A(_(2840),e),A(_(1387),e),A(_(5714),e),A(_(5932),e),A(_(8513),e),A(_(4482),e),A(_(7224),e),A(_(5562),e),A(_(7174),e),A(_(1743),e),A(_(6189),e),A(_(5468),e)},5714:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MauthQuerier=void 0;const O=_(9743);e.MauthQuerier=class{constructor(A){this.url=A}interchainAccountFromAddress(A,k){return O.Query.InterchainAccountFromAddress(A,{headers:k,pathPrefix:this.url})}}},5932:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MintQuerier=void 0;const O=_(468);e.MintQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}inflation(A,k){return O.Query.Inflation(A,{headers:k,pathPrefix:this.url})}annualProvisions(A,k){return O.Query.AnnualProvisions(A,{headers:k,pathPrefix:this.url})}}},8513:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeQuerier=void 0;const O=_(4210);e.NodeQuerier=class{constructor(A){this.url=A}config(A,k){return O.Service.Config(A,{headers:k,pathPrefix:this.url})}}},4482:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParamsQuerier=void 0;const O=_(5440);e.ParamsQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}}},7224:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegistrationQuerier=void 0;const O=_(6402);e.RegistrationQuerier=class{constructor(A){this.url=A}txKey(A,k){return O.Query.TxKey(A,{headers:k,pathPrefix:this.url})}registrationKey(A,k){return O.Query.RegistrationKey(A,{headers:k,pathPrefix:this.url})}encryptedSeed(A,k){return O.Query.EncryptedSeed(A,{headers:k,pathPrefix:this.url})}}},5562:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SlashingQuerier=void 0;const O=_(1575);e.SlashingQuerier=class{constructor(A){this.url=A}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}signingInfo(A,k){return O.Query.SigningInfo(A,{headers:k,pathPrefix:this.url})}signingInfos(A,k){return O.Query.SigningInfos(A,{headers:k,pathPrefix:this.url})}}},7174:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StakingQuerier=void 0;const O=_(4066);e.StakingQuerier=class{constructor(A){this.url=A}validators(A,k){return O.Query.Validators(A,{headers:k,pathPrefix:this.url})}validator(A,k){return O.Query.Validator(A,{headers:k,pathPrefix:this.url})}validatorDelegations(A,k){return O.Query.ValidatorDelegations(A,{headers:k,pathPrefix:this.url})}validatorUnbondingDelegations(A,k){return O.Query.ValidatorUnbondingDelegations(A,{headers:k,pathPrefix:this.url})}delegation(A,k){return O.Query.Delegation(A,{headers:k,pathPrefix:this.url})}unbondingDelegation(A,k){return O.Query.UnbondingDelegation(A,{headers:k,pathPrefix:this.url})}delegatorDelegations(A,k){return O.Query.DelegatorDelegations(A,{headers:k,pathPrefix:this.url})}delegatorUnbondingDelegations(A,k){return O.Query.DelegatorUnbondingDelegations(A,{headers:k,pathPrefix:this.url})}redelegations(A,k){return O.Query.Redelegations(A,{headers:k,pathPrefix:this.url})}delegatorValidators(A,k){return O.Query.DelegatorValidators(A,{headers:k,pathPrefix:this.url})}delegatorValidator(A,k){return O.Query.DelegatorValidator(A,{headers:k,pathPrefix:this.url})}historicalInfo(A,k){return O.Query.HistoricalInfo(A,{headers:k,pathPrefix:this.url})}pool(A,k){return O.Query.Pool(A,{headers:k,pathPrefix:this.url})}params(A,k){return O.Query.Params(A,{headers:k,pathPrefix:this.url})}}},1743:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TendermintQuerier=void 0;const O=_(2390);e.TendermintQuerier=class{constructor(A){this.url=A}getNodeInfo(A,k){return O.Service.GetNodeInfo(A,{headers:k,pathPrefix:this.url})}getSyncing(A,k){return O.Service.GetSyncing(A,{headers:k,pathPrefix:this.url})}getLatestBlock(A,k){return O.Service.GetLatestBlock(A,{headers:k,pathPrefix:this.url})}getBlockByHeight(A,k){return O.Service.GetBlockByHeight(A,{headers:k,pathPrefix:this.url})}getLatestValidatorSet(A,k){return O.Service.GetLatestValidatorSet(A,{headers:k,pathPrefix:this.url})}getValidatorSetByHeight(A,k){return O.Service.GetValidatorSetByHeight(A,{headers:k,pathPrefix:this.url})}}},6189:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UpgradeQuerier=void 0;const O=_(2265);e.UpgradeQuerier=class{constructor(A){this.url=A}currentPlan(A,k){return O.Query.CurrentPlan(A,{headers:k,pathPrefix:this.url})}appliedPlan(A,k){return O.Query.AppliedPlan(A,{headers:k,pathPrefix:this.url})}upgradedConsensusState(A,k){return O.Query.UpgradedConsensusState(A,{headers:k,pathPrefix:this.url})}moduleVersions(A,k){return O.Query.ModuleVersions(A,{headers:k,pathPrefix:this.url})}}},1972:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(V,Q,G,H){H===void 0&&(H=G),Object.defineProperty(V,H,{enumerable:!0,get:function(){return Q[G]}})}:function(V,Q,G,H){H===void 0&&(H=G),V[H]=Q[G]}),A=this&&this.__setModuleDefault||(Object.create?function(V,Q){Object.defineProperty(V,"default",{enumerable:!0,value:Q})}:function(V,Q){V.default=Q}),k=this&&this.__importStar||function(V){if(V&&V.__esModule)return V;var Q={};if(V!=null)for(var G in V)G!=="default"&&Object.prototype.hasOwnProperty.call(V,G)&&O(Q,V,G);return A(Q,V),Q},b=this&&this.__awaiter||function(V,Q,G,H){return new(G||(G=Promise))(function(ie,se){function fe(me){try{ve(H.next(me))}catch(ge){se(ge)}}function he(me){try{ve(H.throw(me))}catch(ge){se(ge)}}function ve(me){var ge;me.done?ie(me.value):(ge=me.value,ge instanceof G?ge:new G(function(ye){ye(ge)})).then(fe,he)}ve((H=H.apply(V,Q||[])).next())})};if(Object.defineProperty(e,"__esModule",{value:!0}),e.TxResultCode=e.gasToFee=e.SecretNetworkClient=e.ReadonlySigner=e.BroadcastMode=void 0,typeof window>"u"||window.fetch===void 0){const V=_(4098);_.g.fetch=V}const a=_(8972),t=_(3061),u=_(3607),d=_(8136),s=_(3117),r=_(1610),n=_(4447),o=_(7350),i=_(8471),f=_(2412),c=_(6519),h=_(9849),p=_(5818),m=_(6010),M=_(6994),l=_(4191),N=_(2896),j=_(2076),R=_(298),I=_(8622),x=_(8526),P=_(2012),w=_(5468),g=_(3394),E=_(380),U=_(3095),C=_(7807),F=_(1654),re=_(2840),ee=_(5570),ne=_(5037),D=_(3635),Z=_(9637),$=_(1387),X=_(5932),K=_(4482),Y=_(7224),L=_(5562),ae=_(7174),ce=_(1743),ue=_(6189),le=_(3745),be=_(6049),de=_(8772),pe=_(5498),_e=_(5360);var W,v;(function(V){V.Block="Block",V.Sync="Sync",V.Async="Async"})(W=e.BroadcastMode||(e.BroadcastMode={}));class y{getAccounts(){throw new Error("getAccounts() is not supported in readonly mode.")}signAmino(Q,G){throw new Error("signAmino() is not supported in readonly mode.")}}function S(V){return new Promise(Q=>setTimeout(Q,V))}function T(V,Q){return Math.ceil(V*Q)}function B(V,Q,G,H,ie){return b(this,void 0,void 0,function*(){ie||(ie=(yield Promise.resolve().then(()=>k(_(8502)))).SignMode.SIGN_MODE_DIRECT);const se={signer_infos:z(V,ie),fee:{amount:[...Q],gas_limit:String(G),granter:H??"",payer:""}},{AuthInfo:fe}=yield Promise.resolve().then(()=>k(_(6994)));return fe.encode(fe.fromPartial(se)).finish()})}function z(V,Q){return V.map(({pubkey:G,sequence:H})=>({public_key:G,mode_info:{single:{mode:Q}},sequence:String(H)}))}function q(V){return b(this,void 0,void 0,function*(){const{Any:Q}=yield Promise.resolve().then(()=>k(_(4191)));if(function(G){return G.type==="tendermint/PubKeySecp256k1"}(V)){const{PubKey:G}=yield Promise.resolve().then(()=>k(_(6010))),H=G.fromPartial({key:(0,a.fromBase64)(V.value)});return Q.fromPartial({type_url:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(G.encode(H).finish())})}if(function(G){return G.type==="tendermint/PubKeyMultisigThreshold"}(V)){const{LegacyAminoPubKey:G}=yield Promise.resolve().then(()=>k(_(5818))),H=G.fromPartial({threshold:Number(V.value.threshold),public_keys:V.value.pubkeys.map(q)});return Q.fromPartial({type_url:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(G.encode(H).finish())})}throw new Error(`Pubkey type ${V.type} not recognized`)})}function te(V){if(typeof V!="object"||V===null)return V;if(Array.isArray(V))return V.map(te);if(Object.keys(V).length===2&&typeof V.type_url=="string"&&typeof V.value=="object")return Object.assign({"@type":V.type_url},te(V.value));const Q={};return Object.keys(V).forEach(G=>{Q[G]=te(V[G])}),Q}function oe(){return{pub_key:{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(new Uint8Array(33).fill(0))},signature:(0,a.toBase64)(new Uint8Array(64).fill(0))}}e.ReadonlySigner=y,e.SecretNetworkClient=class{constructor(V){var Q,G;if(this.url=V.url.replace(/\/*$/g,""),this.query={auth:new j.AuthQuerier(V.url),authz:new R.AuthzQuerier(V.url),bank:new I.BankQuerier(V.url),compute:new x.ComputeQuerier(V.url),snip20:new i.Snip20Querier(V.url),snip721:new f.Snip721Querier(V.url),snip1155:new n.Snip1155Querier(V.url),distribution:new P.DistributionQuerier(V.url),evidence:new g.EvidenceQuerier(V.url),feegrant:new E.FeegrantQuerier(V.url),gov:new U.GovQuerier(V.url),ibc_channel:new C.IbcChannelQuerier(V.url),ibc_client:new F.IbcClientQuerier(V.url),ibc_connection:new re.IbcConnectionQuerier(V.url),ibc_transfer:new $.IbcTransferQuerier(V.url),ibc_iterchain_accounts_host:new D.IbcInterchainAccountsHostQuerier(V.url),ibc_iterchain_accounts_controller:new ne.IbcInterchainAccountsControllerQuerier(V.url),ibc_fee:new ee.IbcFeeQuerier(V.url),ibc_packet_forward:new Z.IbcPacketForwardQuerier(V.url),emergency_button:new w.EmergencyButtonQuerier(V.url),mauth:new u.MauthQuerier(V.url),mint:new X.MintQuerier(V.url),node:new u.NodeQuerier(V.url),params:new K.ParamsQuerier(V.url),registration:new Y.RegistrationQuerier(V.url),slashing:new L.SlashingQuerier(V.url),staking:new ae.StakingQuerier(V.url),tendermint:new ce.TendermintQuerier(V.url),upgrade:new ue.UpgradeQuerier(V.url),getTx:(ie,se)=>this.getTx(ie,se),txsQuery:(ie,se,fe,he)=>this.txsQuery(ie,se,fe,he)},V.wallet&&V.walletAddress===void 0)throw new Error("Must also pass 'walletAddress' when passing 'wallet'");this.wallet=(Q=V.wallet)!==null&&Q!==void 0?Q:new y,this.address=(G=V.walletAddress)!==null&&G!==void 0?G:"",this.chainId=V.chainId,this.utils={accessControl:{permit:new s.PermitSigner(this.wallet)}};const H=ie=>{const se=(fe,he)=>this.tx.broadcast([new ie(fe)],he);return se.simulate=(fe,he)=>this.tx.simulate([new ie(fe)],he),se};this.tx={signTx:this.signTx.bind(this),broadcastSignedTx:this.broadcastSignedTx.bind(this),broadcast:this.signAndBroadcast.bind(this),simulate:this.simulate.bind(this),snip20:{send:H(i.MsgSnip20Send),transfer:H(i.MsgSnip20Transfer),increaseAllowance:H(i.MsgSnip20IncreaseAllowance),decreaseAllowance:H(i.MsgSnip20DecreaseAllowance),setViewingKey:H(r.MsgSetViewingKey),createViewingKey:H(r.MsgCreateViewingKey)},snip721:{send:H(f.MsgSnip721Send),mint:H(u.MsgSnip721Mint),addMinter:H(u.MsgSnip721AddMinter),setViewingKey:H(r.MsgSetViewingKey),createViewingKey:H(r.MsgCreateViewingKey)},snip1155:{changeAdmin:H(o.MsgSnip1155ChangeAdmin),removeAdmin:H(o.MsgSnip1155RemoveAdmin),addCurator:H(o.MsgSnip1155AddCurator),removeCurator:H(o.MsgSnip1155RemoveCurator),addMinter:H(o.MsgSnipAddMinter),removeMinter:H(o.MsgSnip1155RemoveMinter),send:H(o.MsgSnip1155Send),batchSend:H(o.MsgSnip1155BatchSend),transfer:H(o.MsgSnip1155Transfer),batchTransfer:H(o.MsgSnip1155BatchTransfer),curate:H(o.MsgSnip1155CurateTokens),mint:H(o.MsgSnip1155Mint),burn:H(o.MsgSnip1155Burn),changeMetaData:H(o.MsgSnip1155ChangeMetadata),setViewingKey:H(r.MsgSetViewingKey),createViewingKey:H(r.MsgCreateViewingKey)},authz:{exec:H(u.MsgExec),grant:H(u.MsgGrant),revoke:H(u.MsgRevoke)},bank:{multiSend:H(u.MsgMultiSend),send:H(u.MsgSend)},compute:{storeCode:H(u.MsgStoreCode),instantiateContract:H(u.MsgInstantiateContract),executeContract:H(u.MsgExecuteContract),migrateContract:H(le.MsgMigrateContract),updateAdmin:H(le.MsgUpdateAdmin),clearAdmin:H(le.MsgClearAdmin)},emergency_button:{toggleIbcSwitch:H(be.MsgToggleIbcSwitch)},crisis:{verifyInvariant:H(u.MsgVerifyInvariant)},distribution:{fundCommunityPool:H(u.MsgFundCommunityPool),setWithdrawAddress:H(u.MsgSetWithdrawAddress),withdrawDelegatorReward:H(u.MsgWithdrawDelegatorReward),withdrawValidatorCommission:H(u.MsgWithdrawValidatorCommission),setAutoRestake:H(le.MsgSetAutoRestake)},evidence:{submitEvidence:H(u.MsgSubmitEvidence)},feegrant:{grantAllowance:H(u.MsgGrantAllowance),revokeAllowance:H(u.MsgRevokeAllowance)},gov:{deposit:H(u.MsgDeposit),submitProposal:H(u.MsgSubmitProposal),vote:H(u.MsgVote),voteWeighted:H(u.MsgVoteWeighted)},ibc:{transfer:H(u.MsgTransfer)},ibc_fee:{payPacketFee:H(le.MsgPayPacketFee),payPacketFeeAsync:H(le.MsgPayPacketFeeAsync),registerPayee:H(le.MsgRegisterPayee),registerCounterpartyPayee:H(le.MsgRegisterCounterpartyPayee)},registration:{register:H(de.RaAuthenticate)},slashing:{unjail:H(u.MsgUnjail)},staking:{beginRedelegate:H(u.MsgBeginRedelegate),createValidator:H(u.MsgCreateValidator),delegate:H(u.MsgDelegate),editValidator:H(u.MsgEditValidator),undelegate:H(u.MsgUndelegate)},vesting:{createVestingAccount:H(pe.MsgCreateVestingAccount)}},V.encryptionUtils?this.encryptionUtils=V.encryptionUtils:this.encryptionUtils=new d.EncryptionUtilsImpl(this.url,V.encryptionSeed,this.chainId),this.query.compute=new x.ComputeQuerier(this.url,this.encryptionUtils)}getTx(V,Q){return b(this,void 0,void 0,function*(){try{const{tx_response:G}=yield c.Service.GetTx({hash:V},{pathPrefix:this.url});return G?this.decodeTxResponse(G,Q):null}catch(G){if((G==null?void 0:G.message)===`tx not found: ${V}`)return null;throw G}})}txsQuery(V,Q={resolveResponses:!1},G={key:void 0,offset:void 0,limit:void 0,count_total:void 0,reverse:void 0},H){return b(this,void 0,void 0,function*(){const{tx_responses:ie}=yield c.Service.GetTxsEvent({events:V.split(" AND ").map(se=>se.trim()),pagination:G,order_by:H},{pathPrefix:this.url});return this.decodeTxResponses(ie??[],Q)})}waitForIbcResponse(V,Q,G,H,ie){return b(this,void 0,void 0,function*(){return new Promise((se,fe)=>b(this,void 0,void 0,function*(){let he=H.resolveResponsesTimeoutMs/H.resolveResponsesCheckIntervalMs,ve=G;G==="ack"&&(ve="acknowledge");const me=[`${ve}_packet.packet_src_channel = '${Q}'`,`${ve}_packet.packet_sequence = '${V}'`].join(" AND ");for(;he>0&&!ie.isDone;){const ge=(yield this.txsQuery(me)).find(ye=>ye.code===0);ge&&(ie.isDone=!0,se({type:G,tx:ge})),he--,yield S(H.resolveResponsesCheckIntervalMs)}fe(`timed-out while trying to resolve IBC ${G} tx for packet_src_channel='${Q}' and packet_sequence='${V}'`)}))})}decodeTxResponses(V,Q){return b(this,void 0,void 0,function*(){return yield Promise.all(V.map(G=>this.decodeTxResponse(G,Q)))})}decodeTxResponse(V,Q){var G,H,ie,se;return b(this,void 0,void 0,function*(){let fe;fe=Q?{resolveResponses:typeof Q.resolveResponses!="boolean"||Q.resolveResponses,resolveResponsesTimeoutMs:typeof Q.resolveResponsesTimeoutMs=="number"?Q.resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:typeof Q.resolveResponsesCheckIntervalMs=="number"?Q.resolveResponsesCheckIntervalMs:15e3}:{resolveResponses:!0,resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:15e3};const he=[],ve=V.tx;for(let ke=0;!isNaN(Number((H=(G=ve==null?void 0:ve.body)===null||G===void 0?void 0:G.messages)===null||H===void 0?void 0:H.length))&&kewe.type==="send_packet"&&we.key==="packet_sequence"))||[],xe=(ge==null?void 0:ge.filter(we=>we.type==="send_packet"&&we.key==="packet_src_channel"))||[];if(fe.resolveResponses)for(let we=0;we<(ke==null?void 0:ke.length);we++){const Se={isDone:!1};Ee.push(Promise.race([this.waitForIbcResponse(ke[we].value,xe[we].value,"ack",fe,Se),this.waitForIbcResponse(ke[we].value,xe[we].value,"timeout",fe,Se)]))}}return{height:Number(V.height),timestamp:V.timestamp,transactionHash:V.txhash,code:V.code,codespace:V.codespace,info:V.info,tx:ve,rawLog:ye,jsonLog:me,arrayLog:ge,events:V.events,data:Pe,gasUsed:Number(V.gas_used),gasWanted:Number(V.gas_wanted),ibcResponses:Ee}})}broadcastTx(V,Q,G,H,ie,se){var fe,he,ve,me,ge,ye;return b(this,void 0,void 0,function*(){const Ee=Date.now(),Ae=(0,a.toHex)((0,t.sha256)(V)).toUpperCase();let Pe;if(ie||H!=W.Block||(H=W.Sync),H===W.Block){ie=!0;const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(_(6519)));let xe=!1;try{({tx_response:Pe}=yield c.Service.BroadcastTx({txBytes:(0,a.toBase64)(V),mode:ke.BROADCAST_MODE_BLOCK},{pathPrefix:this.url}))}catch(we){if(!JSON.stringify(we).toLowerCase().includes("timed out waiting for tx to be included in a block"))throw new Error(`Failed to broadcast transaction ID ${Ae}: '${JSON.stringify(we)}'.`);xe=!0}if(!xe){Pe.tx=(yield Promise.resolve().then(()=>k(_(6994)))).Tx.toJSON((yield Promise.resolve().then(()=>k(_(6994)))).Tx.decode(V));const we=Pe.tx,Se=Re=>{if(Re.type_url==="/cosmos.crypto.multisig.LegacyAminoPubKey"){const Oe=p.LegacyAminoPubKey.decode((0,a.fromBase64)(Re.value));for(let Me=0;Me(Re.public_key=Se(Re.public_key),Re));for(let Re=0;!isNaN(Number((me=(ve=we.body)===null||ve===void 0?void 0:ve.messages)===null||me===void 0?void 0:me.length))&&Rek(_(6519)));if({tx_response:Pe}=yield c.Service.BroadcastTx({txBytes:(0,a.toBase64)(V),mode:ke.BROADCAST_MODE_SYNC},{pathPrefix:this.url}),(Pe==null?void 0:Pe.code)!==0)throw new Error(`Broadcasting transaction failed with code ${Pe==null?void 0:Pe.code} (codespace: ${Pe==null?void 0:Pe.codespace}). Log: ${Pe==null?void 0:Pe.raw_log}`)}else{if(H!==W.Async)throw new Error(`Unknown broadcast mode "${String(H)}", must be either "${String(W.Block)}", "${String(W.Sync)}" or "${String(W.Async)}".`);{const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(_(6519)));c.Service.BroadcastTx({txBytes:(0,a.toBase64)(V),mode:ke.BROADCAST_MODE_ASYNC},{pathPrefix:this.url})}}if(!ie)return{transactionHash:Ae};for(yield S(G/2);;){const ke=yield this.getTx(Ae,se);if(ke)return ke;if(Ee+Qme.address===this.address);if(!he)throw new Error("Failed to retrieve account from signer");let ve;if(H)ve=H;else{const{account:me}=yield this.query.auth.account({address:this.address});if(!me)throw new Error(`Cannot find account "${this.address}", make sure it has a balance.`);let ge;if(me["@type"]==="/cosmos.auth.v1beta1.BaseAccount")ge=me;else if(me["@type"]==="/cosmos.vesting.v1beta1.ContinuousVestingAccount")ge=(se=me.base_vesting_account)===null||se===void 0?void 0:se.base_account;else if(me["@type"]==="/cosmos.vesting.v1beta1.DelayedVestingAccount")ge=(fe=me.base_vesting_account)===null||fe===void 0?void 0:fe.base_account;else{if(me["@type"]!=="/cosmos.auth.v1beta1.ModuleAccount")throw new Error(`Cannot sign with account of type "${me["@type"]}".`);ge=me.base_account}if(!ge)throw new Error(`Cannot extract BaseAccount from "${JSON.stringify(me)}".`);ve={accountNumber:Number(ge.account_number),sequence:Number(ge.sequence),chainId:this.chainId}}return(0,_e.isDirectSigner)(this.wallet)?this.signDirect(he,V,Q,G,ve,ie):this.signAmino(he,V,Q,G,ve,ie)})}signAmino(V,Q,G,H,{accountNumber:ie,sequence:se,chainId:fe},he=!1){return b(this,void 0,void 0,function*(){if((0,_e.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected AminoSigner or AminoEip191Signer.");let ve=(yield Promise.resolve().then(()=>k(_(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON;typeof this.wallet.getSignMode=="function"&&(ve=yield this.wallet.getSignMode());const me=function(Se,Re,Oe,Me,Te,Ne){return{chain_id:Oe,account_number:String(Te),sequence:String(Ne),fee:Re,msgs:Se,memo:Me||""}}(yield Promise.all(Q.map(Se=>b(this,void 0,void 0,function*(){return yield this.populateCodeHash(Se),Se.toAmino(this.encryptionUtils)}))),G,fe,H,ie,se);let ge,ye;he?(ge=me,ye=oe()):{signature:ye,signed:ge}=yield this.wallet.signAmino(V.address,me);const Ee={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(Q.map((Se,Re)=>b(this,void 0,void 0,function*(){return yield this.populateCodeHash(Se),yield Se.toProto(this.encryptionUtils)}))),memo:H}},Ae=yield this.encodeTx(Ee),Pe=Number(ge.fee.gas),ke=Number(ge.sequence),xe=yield q((0,_e.encodeSecp256k1Pubkey)(V.pubkey)),we=yield B([{pubkey:xe,sequence:ke}],ge.fee.amount,Pe,ge.fee.granter,ve);return M.TxRaw.fromPartial({body_bytes:Ae,auth_info_bytes:we,signatures:[(0,a.fromBase64)(ye.signature)]})})}populateCodeHash(V){return b(this,void 0,void 0,function*(){V instanceof u.MsgExecuteContract?V.codeHash||(V.codeHash=(yield this.query.compute.codeHashByContractAddress({contract_address:V.contractAddress})).code_hash):(V instanceof u.MsgInstantiateContract||V instanceof le.MsgMigrateContract)&&(V.codeHash||(V.codeHash=(yield this.query.compute.codeHashByCodeId({code_id:V.codeId})).code_hash))})}encodeTx(V){return b(this,void 0,void 0,function*(){const Q=yield Promise.all(V.value.messages.map(H=>b(this,void 0,void 0,function*(){const ie=yield H.encode();return l.Any.fromPartial({type_url:H.type_url,value:ie})}))),G=M.TxBody.fromPartial(Object.assign(Object.assign({},V.value),{messages:Q}));return M.TxBody.encode(G).finish()})}signDirect(V,Q,G,H,{accountNumber:ie,sequence:se,chainId:fe},he=!1){return b(this,void 0,void 0,function*(){if(!(0,_e.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected DirectSigner.");const ve={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(Q.map((ke,xe)=>b(this,void 0,void 0,function*(){return yield this.populateCodeHash(ke),yield ke.toProto(this.encryptionUtils)}))),memo:H}},me=yield this.encodeTx(ve),ge=yield q((0,_e.encodeSecp256k1Pubkey)(V.pubkey)),ye=Number(G.gas),Ee=function(ke,xe,we,Se){return{body_bytes:ke,auth_info_bytes:xe,chain_id:we,account_number:String(Se),bodyBytes:ke,authInfoBytes:xe,chainId:we,accountNumber:String(Se)}}(me,yield B([{pubkey:ge,sequence:se}],G.amount,ye,G.granter),fe,ie);let Ae,Pe;if(he?(Ae=Ee,Pe=oe()):{signature:Pe,signed:Ae}=yield this.wallet.signDirect(V.address,Ee),(0,_e.isSignDoc)(Ae))return M.TxRaw.fromPartial({body_bytes:Ae.body_bytes,auth_info_bytes:Ae.auth_info_bytes,signatures:[(0,a.fromBase64)(Pe.signature)]});if((0,_e.isSignDocCamelCase)(Ae))return M.TxRaw.fromPartial({body_bytes:Ae.bodyBytes,auth_info_bytes:Ae.authInfoBytes,signatures:[(0,a.fromBase64)(Pe.signature)]});throw new Error(`unknown SignDoc instance: ${JSON.stringify(Ae)}`)})}},e.gasToFee=T,function(V){V[V.Success=0]="Success",V[V.ErrInternal=1]="ErrInternal",V[V.ErrTxDecode=2]="ErrTxDecode",V[V.ErrInvalidSequence=3]="ErrInvalidSequence",V[V.ErrUnauthorized=4]="ErrUnauthorized",V[V.ErrInsufficientFunds=5]="ErrInsufficientFunds",V[V.ErrUnknownRequest=6]="ErrUnknownRequest",V[V.ErrInvalidAddress=7]="ErrInvalidAddress",V[V.ErrInvalidPubKey=8]="ErrInvalidPubKey",V[V.ErrUnknownAddress=9]="ErrUnknownAddress",V[V.ErrInvalidCoins=10]="ErrInvalidCoins",V[V.ErrOutOfGas=11]="ErrOutOfGas",V[V.ErrMemoTooLarge=12]="ErrMemoTooLarge",V[V.ErrInsufficientFee=13]="ErrInsufficientFee",V[V.ErrTooManySignatures=14]="ErrTooManySignatures",V[V.ErrNoSignatures=15]="ErrNoSignatures",V[V.ErrJSONMarshal=16]="ErrJSONMarshal",V[V.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",V[V.ErrInvalidRequest=18]="ErrInvalidRequest",V[V.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",V[V.ErrMempoolIsFull=20]="ErrMempoolIsFull",V[V.ErrTxTooLarge=21]="ErrTxTooLarge",V[V.ErrKeyNotFound=22]="ErrKeyNotFound",V[V.ErrWrongPassword=23]="ErrWrongPassword",V[V.ErrorInvalidSigner=24]="ErrorInvalidSigner",V[V.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",V[V.ErrInvalidHeight=26]="ErrInvalidHeight",V[V.ErrInvalidVersion=27]="ErrInvalidVersion",V[V.ErrInvalidChainID=28]="ErrInvalidChainID",V[V.ErrInvalidType=29]="ErrInvalidType",V[V.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",V[V.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",V[V.ErrWrongSequence=32]="ErrWrongSequence",V[V.ErrPackAny=33]="ErrPackAny",V[V.ErrUnpackAny=34]="ErrUnpackAny",V[V.ErrLogic=35]="ErrLogic",V[V.ErrConflict=36]="ErrConflict",V[V.ErrNotSupported=37]="ErrNotSupported",V[V.ErrNotFound=38]="ErrNotFound",V[V.ErrIO=39]="ErrIO",V[V.ErrAppConfig=40]="ErrAppConfig",V[V.ErrPanic=111222]="ErrPanic"}(v=e.TxResultCode||(e.TxResultCode={}))},2132:function(J,e,_){var O=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(c,h){function p(l){try{M(f.next(l))}catch(N){h(N)}}function m(l){try{M(f.throw(l))}catch(N){h(N)}}function M(l){var N;l.done?c(l.value):(N=l.value,N instanceof i?N:new i(function(j){j(N)})).then(p,m)}M((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevoke=e.MsgExec=e.MsgGrant=e.StakeAuthorizationType=e.MsgGrantAuthorization=void 0;const A=_(9094),k=_(5635),b=_(5939),a=_(837);function t(n){return"msg"in n}function u(n){return"spend_limit"in n}function d(n){return"max_tokens"in n&&"allow_list"in n&&"deny_list"in n&&"authorization_type"in n}var s,r;(r=e.MsgGrantAuthorization||(e.MsgGrantAuthorization={})).MsgAcknowledgement="/ibc.core.channel.v1.MsgAcknowledgement",r.MsgBeginRedelegate="/cosmos.staking.v1beta1.MsgBeginRedelegate",r.MsgChannelCloseConfirm="/ibc.core.channel.v1.MsgChannelCloseConfirm",r.MsgChannelCloseInit="/ibc.core.channel.v1.MsgChannelCloseInit",r.MsgChannelOpenAck="/ibc.core.channel.v1.MsgChannelOpenAck",r.MsgChannelOpenConfirm="/ibc.core.channel.v1.MsgChannelOpenConfirm",r.MsgChannelOpenInit="/ibc.core.channel.v1.MsgChannelOpenInit",r.MsgChannelOpenTry="/ibc.core.channel.v1.MsgChannelOpenTry",r.MsgConnectionOpenAck="/ibc.core.connection.v1.MsgConnectionOpenAck",r.MsgConnectionOpenConfirm="/ibc.core.connection.v1.MsgConnectionOpenConfirm",r.MsgConnectionOpenInit="/ibc.core.connection.v1.MsgConnectionOpenInit",r.MsgConnectionOpenTry="/ibc.core.connection.v1.MsgConnectionOpenTry",r.MsgCreateClient="/ibc.core.client.v1.MsgCreateClient",r.MsgCreateValidator="/cosmos.staking.v1beta1.MsgCreateValidator",r.MsgDelegate="/cosmos.staking.v1beta1.MsgDelegate",r.MsgDeposit="/cosmos.gov.v1beta1.MsgDeposit",r.MsgEditValidator="/cosmos.staking.v1beta1.MsgEditValidator",r.MsgExec="/cosmos.authz.v1beta1.MsgExec",r.MsgExecuteContract="/secret.compute.v1beta1.MsgExecuteContract",r.MsgFundCommunityPool="/cosmos.distribution.v1beta1.MsgFundCommunityPool",r.MsgGrant="/cosmos.authz.v1beta1.MsgGrant",r.MsgGrantAllowance="/cosmos.feegrant.v1beta1.MsgGrantAllowance",r.MsgInstantiateContract="/secret.compute.v1beta1.MsgInstantiateContract",r.MsgMultiSend="/cosmos.bank.v1beta1.MsgMultiSend",r.MsgRecvPacket="/ibc.core.channel.v1.MsgRecvPacket",r.MsgRevoke="/cosmos.authz.v1beta1.MsgRevoke",r.MsgRevokeAllowance="/cosmos.feegrant.v1beta1.MsgRevokeAllowance",r.MsgSend="/cosmos.bank.v1beta1.MsgSend",r.MsgSetWithdrawAddress="/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",r.MsgStoreCode="/secret.compute.v1beta1.MsgStoreCode",r.MsgSubmitEvidence="/cosmos.evidence.v1beta1.MsgSubmitEvidence",r.MsgSubmitMisbehaviour="/ibc.core.client.v1.MsgSubmitMisbehaviour",r.MsgSubmitProposal="/cosmos.gov.v1beta1.MsgSubmitProposal",r.MsgTimeout="/ibc.core.channel.v1.MsgTimeout",r.MsgTimeoutOnClose="/ibc.core.channel.v1.MsgTimeoutOnClose",r.MsgTransfer="/ibc.applications.transfer.v1.MsgTransfer",r.MsgUndelegate="/cosmos.staking.v1beta1.MsgUndelegate",r.MsgUnjail="/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUpdateClient="/ibc.core.client.v1.MsgUpdateClient",r.MsgUpgradeClient="/ibc.core.client.v1.MsgUpgradeClient",r.MsgVerifyInvariant="/cosmos.crisis.v1beta1.MsgVerifyInvariant",r.MsgVote="/cosmos.gov.v1beta1.MsgVote",r.MsgVoteWeighted="/cosmos.gov.v1beta1.MsgVoteWeighted",r.MsgWithdrawDelegatorReward="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",r.MsgWithdrawValidatorCommission="/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",(s=e.StakeAuthorizationType||(e.StakeAuthorizationType={}))[s.Delegate=1]="Delegate",s[s.Undelegate=2]="Undelegate",s[s.Redelegate=3]="Redelegate",e.MsgGrant=class{constructor(n){this.params=n}toProto(){var n,o;return O(this,void 0,void 0,function*(){let i;const f={seconds:String(Math.floor(this.params.expiration)),nanos:0};if(u(this.params.authorization))i={authorization:{type_url:"/cosmos.bank.v1beta1.SendAuthorization",value:b.SendAuthorization.encode(this.params.authorization).finish()},expiration:f};else if(d(this.params.authorization)){let h,p;((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0?h={address:this.params.authorization.allow_list}:((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0&&(p={address:this.params.authorization.deny_list}),i={authorization:{type_url:"/cosmos.staking.v1beta1.StakeAuthorization",value:a.StakeAuthorization.encode({max_tokens:this.params.authorization.max_tokens,allow_list:h,deny_list:p,authorization_type:Number(this.params.authorization.authorization_type)}).finish()},expiration:f}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i={authorization:{type_url:"/cosmos.authz.v1beta1.GenericAuthorization",value:A.GenericAuthorization.encode({msg:String(this.params.authorization.msg)}).finish()},expiration:f}}const c={granter:this.params.granter,grantee:this.params.grantee,grant:i};return{type_url:"/cosmos.authz.v1beta1.MsgGrant",value:c,encode:()=>O(this,void 0,void 0,function*(){return k.MsgGrant.encode(c).finish()})}})}toAmino(){var n,o;return O(this,void 0,void 0,function*(){let i={type:"cosmos-sdk/MsgGrant",value:{granter:this.params.granter,grantee:this.params.grantee,grant:{authorization:{},expiration:new Date(1e3*Math.floor(this.params.expiration)).toISOString().replace(/\.\d+Z/,"Z")}}};if(u(this.params.authorization))i.value.grant.authorization={type:"cosmos-sdk/SendAuthorization",value:{spend_limit:this.params.authorization.spend_limit}};else if(d(this.params.authorization)){let f;if(((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0)f={type:"cosmos-sdk/StakeAuthorization/AllowList",value:{allow_list:{address:this.params.authorization.allow_list}}};else{if(!(((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0))throw new Error("Must pass in allow_list or deny_list.");f={type:"cosmos-sdk/StakeAuthorization/DenyList",value:{deny_list:{address:this.params.authorization.deny_list}}}}i.value.grant.authorization={type:"cosmos-sdk/StakeAuthorization",value:{max_tokens:this.params.authorization.max_tokens,authorization_type:this.params.authorization.authorization_type,Validators:f}}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i.value.grant.authorization={type:"cosmos-sdk/GenericAuthorization",value:{msg:this.params.authorization.msg}}}return i})}},e.MsgExec=class{constructor(n){this.params=n}toProto(n){return O(this,void 0,void 0,function*(){const o=[];for(const f of this.params.msgs){const c=yield f.toProto(n);o.push({type_url:c.type_url,value:yield c.encode()})}const i={grantee:this.params.grantee,msgs:o};return{type_url:"/cosmos.authz.v1beta1.MsgExec",value:i,encode:()=>O(this,void 0,void 0,function*(){return k.MsgExec.encode(i).finish()})}})}toAmino(n){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgExec",value:{grantee:this.params.grantee,msgs:yield Promise.all(this.params.msgs.map(o=>o.toAmino(n)))}}})}},e.MsgRevoke=class{constructor(n){this.params=n}toProto(){return O(this,void 0,void 0,function*(){const n={granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)};return{type_url:"/cosmos.authz.v1beta1.MsgRevoke",value:n,encode:()=>O(this,void 0,void 0,function*(){return k.MsgRevoke.encode(n).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevoke",value:{granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)}}})}}},587:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgMultiSend=e.MsgSend=void 0,e.MsgSend=class{constructor({from_address:a,to_address:t,amount:u}){this.from_address=a,this.to_address=t,this.amount=u}toProto(){return b(this,void 0,void 0,function*(){const a={from_address:this.from_address,to_address:this.to_address,amount:this.amount};return{type_url:"/cosmos.bank.v1beta1.MsgSend",value:a,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(810)))).MsgSend.encode(a).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSend",value:{from_address:this.from_address,to_address:this.to_address,amount:this.amount}}})}},e.MsgMultiSend=class{constructor({inputs:a,outputs:t}){this.inputs=a,this.outputs=t}toProto(){return b(this,void 0,void 0,function*(){const a={inputs:this.inputs,outputs:this.outputs};return{type_url:"/cosmos.bank.v1beta1.MsgMultiSend",value:a,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(810)))).MsgMultiSend.encode(a).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgMultiSend",value:{inputs:this.inputs,outputs:this.outputs}}})}}},7278:function(J,e,_){var O=_(5108),A=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),k=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),b=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&A(r,s,n);return k(r,s),r},a=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function c(m){try{p(o.next(m))}catch(M){f(M)}}function h(m){try{p(o.throw(m))}catch(M){f(M)}}function p(m){var M;m.done?i(m.value):(M=m.value,M instanceof n?M:new n(function(l){l(M)})).then(c,h)}p((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClearAdmin=e.MsgUpdateAdmin=e.MsgMigrateContract=e.MsgStoreCode=e.MsgExecuteContract=e.MsgInstantiateContract=e.getMissingCodeHashWarning=void 0;const t=_(8972),u=_(8593);function d(s){return`${new Date().toISOString()} WARNING: ${s} was used without the "code_hash" parameter. This is discouraged and will result in much slower execution times for your app.`}e.getMissingCodeHashWarning=d,e.MsgInstantiateContract=class{constructor({sender:s,code_id:r,label:n,init_msg:o,init_funds:i,code_hash:f,admin:c}){this.warnCodeHash=!1,this.sender=s,this.codeId=String(r),this.label=n,this.initMsg=o,this.initMsgEncrypted=null,this.initFunds=i??[],this.admin=c??"",f?this.codeHash=f.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,O.warn(d("MsgInstantiateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&O.warn(d("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg));const r={sender:(0,u.addressToBytes)(this.sender),code_id:this.codeId,label:this.label,init_msg:this.initMsgEncrypted,init_funds:this.initFunds,callback_sig:new Uint8Array(0),callback_code_hash:"",admin:this.admin};return{type_url:"/secret.compute.v1beta1.MsgInstantiateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgInstantiateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&O.warn(d("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg)),{type:"wasm/MsgInstantiateContract",value:{sender:this.sender,code_id:this.codeId,label:this.label,init_msg:(0,t.toBase64)(this.initMsgEncrypted),init_funds:this.initFunds,admin:this.admin.length>0?this.admin:void 0}}})}},e.MsgExecuteContract=class{constructor({sender:s,contract_address:r,msg:n,sent_funds:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.sentFunds=o??[],i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,O.warn(d("MsgExecuteContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&O.warn(d("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:(0,u.addressToBytes)(this.sender),contract:(0,u.addressToBytes)(this.contractAddress),msg:this.msgEncrypted,sent_funds:this.sentFunds,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgExecuteContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgExecuteContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&O.warn(d("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgExecuteContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),sent_funds:this.sentFunds}}})}},e.MsgStoreCode=class{constructor({sender:s,wasm_byte_code:r,source:n,builder:o}){this.sender=s,this.source=n,this.builder=o,this.wasmByteCode=r}gzipWasm(){return a(this,void 0,void 0,function*(){if(!(0,u.is_gzip)(this.wasmByteCode)){const s=yield Promise.resolve().then(()=>b(_(9591)));this.wasmByteCode=s.gzip(this.wasmByteCode,{level:9})}})}toProto(){return a(this,void 0,void 0,function*(){yield this.gzipWasm();const s={sender:(0,u.addressToBytes)(this.sender),wasm_byte_code:this.wasmByteCode,source:this.source,builder:this.builder};return{type_url:"/secret.compute.v1beta1.MsgStoreCode",value:s,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgStoreCode.encode(s).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return yield this.gzipWasm(),{type:"wasm/MsgStoreCode",value:{sender:this.sender,wasm_byte_code:(0,t.toBase64)(this.wasmByteCode),source:this.source.length>0?this.source:void 0,builder:this.builder.length>0?this.builder:void 0}}})}},e.MsgMigrateContract=class{constructor({sender:s,contract_address:r,msg:n,code_id:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.codeId=String(o),i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,O.warn(d("MsgMigrateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&O.warn(d("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:this.sender,contract:this.contractAddress,msg:this.msgEncrypted,code_id:this.codeId,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgMigrateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgMigrateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&O.warn(d("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgMigrateContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),code_id:this.codeId}}})}},e.MsgUpdateAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgUpdateAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgUpdateAdmin.encode({sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgUpdateAdmin",value:{sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address}}})}},e.MsgClearAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgClearAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>b(_(2896)))).MsgClearAdmin.encode({sender:this.params.sender,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgClearAdmin",value:{sender:this.params.sender,contract:this.params.contract_address}}})}}},7949:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgVerifyInvariant=void 0,e.MsgVerifyInvariant=class{constructor(a){this.params=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.crisis.v1beta1.MsgVerifyInvariant",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4489)))).MsgVerifyInvariant.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVerifyInvariant",value:{sender:this.params.sender||void 0,invariant_module_name:this.params.invariant_module_name||void 0,invariant_route:this.params.invariant_route||void 0}}})}}},1890:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(u,d,s,r){r===void 0&&(r=s),Object.defineProperty(u,r,{enumerable:!0,get:function(){return d[s]}})}:function(u,d,s,r){r===void 0&&(r=s),u[r]=d[s]}),A=this&&this.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&O(d,u,s);return A(d,u),d},b=this&&this.__awaiter||function(u,d,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{c(r.next(h))}catch(p){o(p)}}function f(h){try{c(r.throw(h))}catch(p){o(p)}}function c(h){var p;h.done?n(h.value):(p=h.value,p instanceof s?p:new s(function(m){m(p)})).then(i,f)}c((r=r.apply(u,d||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSetAutoRestake=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorReward=e.MsgWithdrawDelegationReward=e.MsgModifyWithdrawAddress=e.MsgSetWithdrawAddress=void 0;class a{constructor(d){this.params=d}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4301)))).MsgSetWithdrawAddress.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgModifyWithdrawAddress",value:this.params}})}}e.MsgSetWithdrawAddress=a,e.MsgModifyWithdrawAddress=a;class t{constructor(d){this.params=d}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawDelegationReward",value:this.params}})}}e.MsgWithdrawDelegatorReward=t,e.MsgWithdrawDelegationReward=t,e.MsgWithdrawValidatorCommission=class{constructor(u){this.params=u}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawValidatorCommission",value:this.params}})}},e.MsgFundCommunityPool=class{constructor(u){this.params=u}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgFundCommunityPool",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4301)))).MsgFundCommunityPool.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgFundCommunityPool",value:this.params}})}},e.MsgSetAutoRestake=class{constructor(u){this.params=u}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetAutoRestake",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4301)))).MsgSetAutoRestake.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSetAutoRestake",value:Object.assign({},this.params,{enabled:!!this.params.enabled||void 0})}})}}},6049:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgToggleIbcSwitch=void 0,e.MsgToggleIbcSwitch=class{constructor(a){this.params=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(4657)))).MsgToggleIbcSwitch.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"emergencybutton/MsgToggleIbcSwitch",value:this.params}})}}},3651:function(J,e){var _=this&&this.__awaiter||function(O,A,k,b){return new(k||(k=Promise))(function(a,t){function u(r){try{s(b.next(r))}catch(n){t(n)}}function d(r){try{s(b.throw(r))}catch(n){t(n)}}function s(r){var n;r.done?a(r.value):(n=r.value,n instanceof k?n:new k(function(o){o(n)})).then(u,d)}s((b=b.apply(O,A||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSubmitEvidence=void 0,e.MsgSubmitEvidence=class{constructor(O){this.params=O}toProto(){return _(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}toAmino(){return _(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}}},8434:function(J,e,_){var O=this&&this.__awaiter||function(u,d,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{c(r.next(h))}catch(p){o(p)}}function f(h){try{c(r.throw(h))}catch(p){o(p)}}function c(h){var p;h.done?n(h.value):(p=h.value,p instanceof s?p:new s(function(m){m(p)})).then(i,f)}c((r=r.apply(u,d||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevokeAllowance=e.MsgGrantAllowance=void 0;const A=_(4932),k=_(6513);function b(u){return"spend_limit"in u}function a(u){return"period_spend_limit"in u}function t(u){return"allowed_messages"in u}e.MsgGrantAllowance=class{constructor(u){this.params=u}toProto(){return O(this,void 0,void 0,function*(){let u;if(b(this.params.allowance))u={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:A.BasicAllowance.encode(this.params.allowance).finish()};else if(a(this.params.allowance))u={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:A.PeriodicAllowance.encode(this.params.allowance).finish()};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let d;if(b(this.params.allowance.allowance))d={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:A.BasicAllowance.encode(this.params.allowance.allowance).finish()};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);d={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:A.PeriodicAllowance.encode(this.params.allowance.allowance).finish()}}u={type_url:"/cosmos.feegrant.v1beta1.AllowedMsgAllowance",value:A.AllowedMsgAllowance.encode({allowed_messages:this.params.allowance.allowed_messages,allowance:d}).finish()}}}return{type_url:"/cosmos.feegrant.v1beta1.MsgGrantAllowance",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return k.MsgGrantAllowance.encode({grantee:this.params.grantee,granter:this.params.granter,allowance:u}).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){let u;if(b(this.params.allowance))u={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.spend_limit,expiration:this.params.allowance.expiration}};else if(a(this.params.allowance))u={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.basic,period:this.params.allowance.period,period_spend_limit:this.params.allowance.period_spend_limit,period_can_spend:this.params.allowance.period_can_spend,period_reset:this.params.allowance.period_reset}};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let d;if(b(this.params.allowance.allowance))d={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.allowance.spend_limit,expiration:this.params.allowance.allowance.expiration}};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);d={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.allowance.basic,period:this.params.allowance.allowance.period,period_spend_limit:this.params.allowance.allowance.period_spend_limit,period_can_spend:this.params.allowance.allowance.period_can_spend,period_reset:this.params.allowance.allowance.period_reset}}}u={type:"cosmos-sdk/AllowedMsgAllowance",value:{allowed_messages:this.params.allowance.allowed_messages,allowance:d}}}}return{type:"cosmos-sdk/MsgGrantAllowance",value:{granter:this.params.granter,grantee:this.params.grantee,allowance:u}}})}},e.MsgRevokeAllowance=class{constructor(u){this.params=u}toProto(){return O(this,void 0,void 0,function*(){return{type_url:"/cosmos.feegrant.v1beta1.MsgRevokeAllowance",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return k.MsgRevokeAllowance.encode(this.params).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevokeAllowance",value:this.params}})}}},4509:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(o,i,f,c){c===void 0&&(c=f),Object.defineProperty(o,c,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,c){c===void 0&&(c=f),o[c]=i[f]}),A=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&O(i,o,f);return A(i,o),i},b=this&&this.__awaiter||function(o,i,f,c){return new(f||(f=Promise))(function(h,p){function m(N){try{l(c.next(N))}catch(j){p(j)}}function M(N){try{l(c.throw(N))}catch(j){p(j)}}function l(N){var j;N.done?h(N.value):(j=N.value,j instanceof f?j:new f(function(R){R(j)})).then(m,M)}l((c=c.apply(o,i||[])).next())})},a=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgDeposit=e.MsgVoteWeighted=e.MsgVote=e.MsgSubmitProposal=e.ProposalType=e.ProposalStatus=e.VoteOption=void 0;const t=a(_(4431)),u=_(4191);var d,s,r;(r=e.VoteOption||(e.VoteOption={}))[r.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",r[r.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",r[r.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",r[r.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",r[r.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",(s=e.ProposalStatus||(e.ProposalStatus={}))[s.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",s[s.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",s[s.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",s[s.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",s[s.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",s[s.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED",function(o){o.TextProposal="TextProposal",o.CommunityPoolSpendProposal="CommunityPoolSpendProposal",o.ParameterChangeProposal="ParameterChangeProposal",o.ClientUpdateProposal="ClientUpdateProposal",o.UpgradeProposal="UpgradeProposal",o.SoftwareUpgradeProposal="SoftwareUpgradeProposal",o.CancelSoftwareUpgradeProposal="CancelSoftwareUpgradeProposal"}(d=e.ProposalType||(e.ProposalType={}));const n=new Map([[d.TextProposal,"cosmos-sdk/TextProposal"],[d.CommunityPoolSpendProposal,"cosmos-sdk/CommunityPoolSpendProposal"],[d.ParameterChangeProposal,"cosmos-sdk/ParameterChangeProposal"],[d.SoftwareUpgradeProposal,"cosmos-sdk/SoftwareUpgradeProposal"],[d.CancelSoftwareUpgradeProposal,"cosmos-sdk/CancelSoftwareUpgradeProposal"]]);e.MsgSubmitProposal=class{constructor(o){this.params=o}toProto(){var o;return b(this,void 0,void 0,function*(){let i;switch(this.params.type){case d.TextProposal:const{TextProposal:c}=yield Promise.resolve().then(()=>k(_(9074)));i=u.Any.fromPartial({type_url:"/cosmos.gov.v1beta1.TextProposal",value:c.encode(c.fromPartial(this.params.content)).finish()});break;case d.CommunityPoolSpendProposal:const{CommunityPoolSpendProposal:h}=yield Promise.resolve().then(()=>k(_(8866)));i=u.Any.fromPartial({type_url:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",value:h.encode(h.fromPartial(this.params.content)).finish()});break;case d.ParameterChangeProposal:const{ParameterChangeProposal:p}=yield Promise.resolve().then(()=>k(_(9913)));i=u.Any.fromPartial({type_url:"/cosmos.params.v1beta1.ParameterChangeProposal",value:p.encode(p.fromPartial(this.params.content)).finish()});break;case d.ClientUpdateProposal:const{ClientUpdateProposal:m}=yield Promise.resolve().then(()=>k(_(5650)));i=u.Any.fromPartial({type_url:"/ibc.core.client.v1.ClientUpdateProposal",value:m.encode(m.fromPartial(this.params.content)).finish()});break;case d.UpgradeProposal:const{UpgradeProposal:M}=yield Promise.resolve().then(()=>k(_(5650)));i=u.Any.fromPartial({type_url:"/ibc.core.client.v1.UpgradeProposal",value:M.encode(M.fromPartial(this.params.content)).finish()});break;case d.SoftwareUpgradeProposal:const{SoftwareUpgradeProposal:l}=yield Promise.resolve().then(()=>k(_(8310)));i=u.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:l.encode(l.fromPartial(this.params.content)).finish()});break;case d.CancelSoftwareUpgradeProposal:const{CancelSoftwareUpgradeProposal:N}=yield Promise.resolve().then(()=>k(_(8310)));i=u.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:N.encode(N.fromPartial(this.params.content)).finish()});break;default:throw new Error(`Unknown proposal type: "${this.params.type}" - ${JSON.stringify(this.params.content)}`)}const f={content:i,initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:(o=this.params.is_expedited)!==null&&o!==void 0&&o};return{type_url:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:f,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(88)))).MsgSubmitProposal.encode(f).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){const o=n.get(this.params.type);if(!o)throw new Error(`Proposal of type "${String(this.params.type)}" is not supported with an Amino signer.`);let i=this.params.content;return this.params.type===d.SoftwareUpgradeProposal&&i.plan&&(i=Object.assign(Object.assign({},i),{plan:Object.assign(Object.assign({},i.plan),{time:"0001-01-01T00:00:00Z"})})),{type:"cosmos-sdk/MsgSubmitProposal",value:{content:{type:o,value:i},initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:!!this.params.is_expedited||void 0}}})}},e.MsgVote=class{constructor(o){this.params=o}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgVote",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(88)))).MsgVote.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVote",value:this.params}})}},e.MsgVoteWeighted=class{constructor(o){this.params=o}toProto(){return b(this,void 0,void 0,function*(){const o={voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(i=>({option:i.option,weight:new t.default(i.weight).toFixed(18).replace(/0\.0*/,"")}))};return{type_url:"/cosmos.gov.v1beta1.MsgVoteWeighted",value:o,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(88)))).MsgVoteWeighted.encode(o).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVoteWeighted",value:{voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(o=>({option:o.option,weight:new t.default(o.weight).toFixed(18)}))}}})}},e.MsgDeposit=class{constructor(o){this.params=o}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgDeposit",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(88)))).MsgDeposit.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDeposit",value:this.params}})}}},6130:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgChannelCloseConfirm=e.MsgChannelCloseInit=e.MsgChannelOpenConfirm=e.MsgChannelOpenAck=e.MsgChannelOpenTry=e.MsgAcknowledgement=e.MsgChannelOpenInit=e.MsgTimeoutOnClose=e.MsgTimeout=e.MsgRecvPacket=void 0,e.MsgRecvPacket=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgRecvPacket",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgRecvPacket.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgRecvPacket doesn't support Amino encoding.")})}},e.MsgTimeout=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeout",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgTimeout.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgTimeout doesn't support Amino encoding.")})}},e.MsgTimeoutOnClose=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgTimeoutOnClose.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgTimeoutOnClose doesn't support Amino encoding.")})}},e.MsgChannelOpenInit=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenInit",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelOpenInit.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenInit doesn't support Amino encoding.")})}},e.MsgAcknowledgement=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgAcknowledgement",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgAcknowledgement.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgAcknowledgement doesn't support Amino encoding.")})}},e.MsgChannelOpenTry=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenTry",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelOpenTry.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenTry doesn't support Amino encoding.")})}},e.MsgChannelOpenAck=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenAck",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelOpenAck.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenAck doesn't support Amino encoding.")})}},e.MsgChannelOpenConfirm=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenConfirm doesn't support Amino encoding.")})}},e.MsgChannelCloseInit=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseInit",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelCloseInit.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseInit doesn't support Amino encoding.")})}},e.MsgChannelCloseConfirm=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseConfirm doesn't support Amino encoding.")})}}},574:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateClient=e.MsgSubmitMisbehaviour=e.MsgUpgradeClient=e.MsgUpdateClient=void 0,e.MsgUpdateClient=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpdateClient",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(322)))).MsgUpdateClient.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgUpdateClient doesn't support Amino encoding.")})}},e.MsgUpgradeClient=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpgradeClient",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(322)))).MsgUpgradeClient.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgUpgradeClient doesn't support Amino encoding.")})}},e.MsgSubmitMisbehaviour=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgSubmitMisbehaviour doesn't support Amino encoding.")})}},e.MsgCreateClient=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgCreateClient",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(322)))).MsgCreateClient.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgCreateClient doesn't support Amino encoding.")})}}},6187:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAck=e.MsgConnectionOpenTry=e.MsgConnectionOpenInit=void 0,e.MsgConnectionOpenInit=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8344)))).MsgConnectionOpenInit.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenInit doesn't support Amino encoding.")})}},e.MsgConnectionOpenTry=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8344)))).MsgConnectionOpenTry.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenTry doesn't support Amino encoding.")})}},e.MsgConnectionOpenAck=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8344)))).MsgConnectionOpenAck.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenAck doesn't support Amino encoding.")})}},e.MsgConnectionOpenConfirm=class{constructor(a){this.msg=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:this.msg,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenConfirm doesn't support Amino encoding.")})}}},7989:function(J,e,_){var O=this&&this.__awaiter||function(k,b,a,t){return new(a||(a=Promise))(function(u,d){function s(o){try{n(t.next(o))}catch(i){d(i)}}function r(o){try{n(t.throw(o))}catch(i){d(i)}}function n(o){var i;o.done?u(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,b||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgPayPacketFeeAsync=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayee=void 0;const A=_(6065);e.MsgRegisterPayee=class{constructor(k){this.params=k}toProto(){return O(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterPayee",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return A.MsgRegisterPayee.encode(this.params).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterPayee",value:this.params}})}},e.MsgRegisterCounterpartyPayee=class{constructor(k){this.params=k}toProto(){return O(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return A.MsgRegisterCounterpartyPayee.encode(this.params).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterCounterpartyPayee",value:this.params}})}},e.MsgPayPacketFee=class{constructor(k){this.params=k}toProto(){return O(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFee",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return A.MsgPayPacketFee.encode({fee:this.params.fee,source_port_id:this.params.source_port_id,source_channel_id:this.params.source_channel_id,signer:this.params.signer,relayers:this.params.relayers||[]}).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFee",value:this.params}})}},e.MsgPayPacketFeeAsync=class{constructor(k){this.params=k}toProto(){return O(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFeeAsync",value:this.params,encode:()=>O(this,void 0,void 0,function*(){return A.MsgPayPacketFeeAsync.encode(this.params).finish()})}})}toAmino(){return O(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFeeAsync",value:this.params}})}}},6272:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgTransfer=void 0,e.MsgTransfer=class{constructor(a){this.params=a}toProto(){return b(this,void 0,void 0,function*(){const a={source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height,timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo||""};return{type_url:"/ibc.applications.transfer.v1.MsgTransfer",value:a,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(865)))).MsgTransfer.encode(a).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgTransfer",value:{source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height?{revision_number:this.params.timeout_height.revision_number,revision_height:this.params.timeout_height.revision_height}:{},timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo}}})}}},3745:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(N,j,R,I){I===void 0&&(I=R),Object.defineProperty(N,I,{enumerable:!0,get:function(){return j[R]}})}:function(N,j,R,I){I===void 0&&(I=R),N[I]=j[R]}),A=this&&this.__exportStar||function(N,j){for(var R in N)R==="default"||Object.prototype.hasOwnProperty.call(j,R)||O(j,N,R)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRegistry=void 0;const k=_(5635),b=_(810),a=_(4489),t=_(4301),u=_(3676),d=_(6513),s=_(88),r=_(5925),n=_(7704),o=_(8644),i=_(6065),f=_(865),c=_(7579),h=_(322),p=_(8344),m=_(2896),M=_(4657),l=_(1901);A(_(2132),e),A(_(587),e),A(_(7278),e),A(_(7949),e),A(_(1890),e),A(_(6049),e),A(_(3651),e),A(_(8434),e),A(_(4509),e),A(_(6130),e),A(_(574),e),A(_(6187),e),A(_(7989),e),A(_(6272),e),A(_(5656),e),A(_(2731),e),A(_(8382),e),A(_(5498),e),e.MsgRegistry=new Map([["/cosmos.authz.v1beta1.MsgGrant",k.MsgGrant],["/cosmos.authz.v1beta1.MsgExec",k.MsgExec],["/cosmos.authz.v1beta1.MsgRevoke",k.MsgRevoke],["/cosmos.bank.v1beta1.MsgSend",b.MsgSend],["/cosmos.bank.v1beta1.MsgMultiSend",b.MsgMultiSend],["/cosmos.crisis.v1beta1.MsgVerifyInvariant",a.MsgVerifyInvariant],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",t.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",t.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",t.MsgWithdrawValidatorCommission],["/cosmos.distribution.v1beta1.MsgFundCommunityPool",t.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetAutoRestake",t.MsgSetAutoRestake],["/cosmos.evidence.v1beta1.MsgSubmitEvidence",u.MsgSubmitEvidence],["/cosmos.feegrant.v1beta1.MsgGrantAllowance",d.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",d.MsgRevokeAllowance],["/cosmos.gov.v1beta1.MsgSubmitProposal",s.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",s.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",s.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",s.MsgDeposit],["/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUnjail],["/cosmos.staking.v1beta1.MsgCreateValidator",n.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgEditValidator",n.MsgEditValidator],["/cosmos.staking.v1beta1.MsgDelegate",n.MsgDelegate],["/cosmos.staking.v1beta1.MsgBeginRedelegate",n.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgUndelegate",n.MsgUndelegate],["/ibc.applications.transfer.v1.MsgTransfer",f.MsgTransfer],["/ibc.applications.fee.v1.MsgPayPacketFee",i.MsgPayPacketFee],["/ibc.applications.fee.v1.MsgPayPacketFeeAsync",i.MsgPayPacketFeeAsync],["/ibc.applications.fee.v1.MsgRegisterPayee",i.MsgRegisterPayee],["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",i.MsgRegisterCounterpartyPayee],["/ibc.core.channel.v1.MsgChannelOpenInit",c.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",c.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgChannelOpenAck",c.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",c.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",c.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelCloseConfirm",c.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgRecvPacket",c.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",c.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",c.MsgTimeoutOnClose],["/ibc.core.channel.v1.MsgAcknowledgement",c.MsgAcknowledgement],["/ibc.core.client.v1.MsgCreateClient",h.MsgCreateClient],["/ibc.core.client.v1.MsgUpdateClient",h.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",h.MsgUpgradeClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",h.MsgSubmitMisbehaviour],["/ibc.core.connection.v1.MsgConnectionOpenInit",p.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",p.MsgConnectionOpenTry],["/ibc.core.connection.v1.MsgConnectionOpenAck",p.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",p.MsgConnectionOpenConfirm],["/secret.compute.v1beta1.MsgStoreCode",m.MsgStoreCode],["/secret.compute.v1beta1.MsgInstantiateContract",m.MsgInstantiateContract],["/secret.compute.v1beta1.MsgExecuteContract",m.MsgExecuteContract],["/secret.compute.v1beta1.MsgMigrateContract",m.MsgMigrateContract],["/secret.compute.v1beta1.MsgUpdateAdmin",m.MsgUpdateAdmin],["/secret.compute.v1beta1.MsgClearAdmin",m.MsgClearAdmin],["/secret.registration.v1beta1.RaAuthenticate",l.RaAuthenticate],["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",o.MsgCreateVestingAccount],["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",M.MsgToggleIbcSwitch]])},8772:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(u,d,s,r){r===void 0&&(r=s),Object.defineProperty(u,r,{enumerable:!0,get:function(){return d[s]}})}:function(u,d,s,r){r===void 0&&(r=s),u[r]=d[s]}),A=this&&this.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var s in u)s!=="default"&&Object.prototype.hasOwnProperty.call(u,s)&&O(d,u,s);return A(d,u),d},b=this&&this.__awaiter||function(u,d,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{c(r.next(h))}catch(p){o(p)}}function f(h){try{c(r.throw(h))}catch(p){o(p)}}function c(h){var p;h.done?n(h.value):(p=h.value,p instanceof s?p:new s(function(m){m(p)})).then(i,f)}c((r=r.apply(u,d||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.RaAuthenticate=void 0;const a=_(8972),t=_(3607);e.RaAuthenticate=class{constructor(u){this.params=u}toProto(){return b(this,void 0,void 0,function*(){const u={sender:(0,t.addressToBytes)(this.params.sender),certificate:this.params.certificate};return{type_url:"/secret.registration.v1beta1.RaAuthenticate",value:u,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(1901)))).RaAuthenticate.encode(u).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"reg/authenticate",value:{sender:this.params.sender,ra_cert:(0,a.toBase64)(this.params.certificate)}}})}}},5656:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUnjail=void 0,e.MsgUnjail=class{constructor(a){this.params=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.slashing.v1beta1.MsgUnjail",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(5925)))).MsgUnjail.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUnjail",value:{address:this.params.validator_addr}}})}}},2731:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),A=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&O(o,n,i);return A(o,n),o},b=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(c,h){function p(l){try{M(f.next(l))}catch(N){h(N)}}function m(l){try{M(f.throw(l))}catch(N){h(N)}}function M(l){var N;l.done?c(l.value):(N=l.value,N instanceof i?N:new i(function(j){j(N)})).then(p,m)}M((f=f.apply(n,o||[])).next())})},a=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUndelegate=e.MsgBeginRedelegate=e.MsgDelegate=e.MsgEditValidator=e.MsgCreateValidator=void 0;const t=_(8972),u=_(7715),d=a(_(4431)),s=_(7776),r=_(4191);e.MsgCreateValidator=class{constructor(n){this.params=n}toProto(){return b(this,void 0,void 0,function*(){const n={description:this.params.description,commission:{rate:new d.default(this.params.commission.rate).toFixed(18).replace(/0\.0*/,""),max_rate:new d.default(this.params.commission.max_rate).toFixed(18).replace(/0\.0*/,""),max_change_rate:new d.default(this.params.commission.max_change_rate).toFixed(18).replace(/0\.0*/,"")},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:u.bech32.encode("secretvaloper",u.bech32.decode(this.params.delegator_address).words),pubkey:r.Any.fromPartial({type_url:"/cosmos.crypto.ed25519.PubKey",value:s.PubKey.encode(s.PubKey.fromPartial({key:(0,t.fromBase64)(this.params.pubkey)})).finish()}),value:this.params.initial_delegation};return{type_url:"/cosmos.staking.v1beta1.MsgCreateValidator",value:n,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7704)))).MsgCreateValidator.encode(n).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgCreateValidator",value:{description:{moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details},commission:{rate:new d.default(this.params.commission.rate).toFixed(18),max_rate:new d.default(this.params.commission.max_rate).toFixed(18),max_change_rate:new d.default(this.params.commission.max_change_rate).toFixed(18)},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:u.bech32.encode("secretvaloper",u.bech32.decode(this.params.delegator_address).words),pubkey:{type:"tendermint/PubKeyEd25519",value:this.params.pubkey},value:this.params.initial_delegation}}})}},e.MsgEditValidator=class{constructor(n){this.params=n}toProto(){return b(this,void 0,void 0,function*(){const{Description:n}=yield Promise.resolve().then(()=>k(_(2572))),o={validator_address:this.params.validator_address,description:n.fromPartial(this.params.description||{}),commission_rate:this.params.commission_rate?new d.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/,""):"",min_self_delegation:this.params.min_self_delegation||""};return{type_url:"/cosmos.staking.v1beta1.MsgEditValidator",value:o,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7704)))).MsgEditValidator.encode(o).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){let n,o;return this.params.description&&(n={moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details}),this.params.commission_rate&&(o=new d.default(this.params.commission_rate).toFixed(18)),{type:"cosmos-sdk/MsgEditValidator",value:{validator_address:this.params.validator_address,description:n,commission_rate:o,min_self_delegation:this.params.min_self_delegation}}})}},e.MsgDelegate=class{constructor(n){this.params=n}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgDelegate",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7704)))).MsgDelegate.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDelegate",value:this.params}})}},e.MsgBeginRedelegate=class{constructor(n){this.params=n}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7704)))).MsgBeginRedelegate.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgBeginRedelegate",value:this.params}})}},e.MsgUndelegate=class{constructor(n){this.params=n}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgUndelegate",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(7704)))).MsgUndelegate.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUndelegate",value:this.params}})}}},8382:(J,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5498:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(a,t,u,d){d===void 0&&(d=u),Object.defineProperty(a,d,{enumerable:!0,get:function(){return t[u]}})}:function(a,t,u,d){d===void 0&&(d=u),a[d]=t[u]}),A=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var u in a)u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)&&O(t,a,u);return A(t,a),t},b=this&&this.__awaiter||function(a,t,u,d){return new(u||(u=Promise))(function(s,r){function n(f){try{i(d.next(f))}catch(c){r(c)}}function o(f){try{i(d.throw(f))}catch(c){r(c)}}function i(f){var c;f.done?s(f.value):(c=f.value,c instanceof u?c:new u(function(h){h(c)})).then(n,o)}i((d=d.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateVestingAccount=void 0,e.MsgCreateVestingAccount=class{constructor(a){this.params=a}toProto(){return b(this,void 0,void 0,function*(){return{type_url:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:this.params,encode:()=>b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8644)))).MsgCreateVestingAccount.encode(this.params).finish()})}})}toAmino(){return b(this,void 0,void 0,function*(){throw new Error("MsgCreateVestingAccount not implemented.")})}}},8593:(J,e,_)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bytesToAddress=e.addressToBytes=e.validateAddress=e.coinsFromString=e.stringToCoins=e.coinFromString=e.stringToCoin=e.ibcDenom=e.base64TendermintPubkeyToValconsAddress=e.tendermintPubkeyToValconsAddress=e.validatorAddressToSelfDelegatorAddress=e.selfDelegatorAddressToValidatorAddress=e.base64PubkeyToAddress=e.pubkeyToAddress=e.is_gzip=void 0;const O=_(8972),A=_(830),k=_(3061),b=_(7715);function a(u,d="secret"){return b.bech32.encode(d,b.bech32.toWords((0,A.ripemd160)((0,k.sha256)(u))))}function t(u,d="secret"){return b.bech32.encode(`${d}valcons`,b.bech32.toWords((0,k.sha256)(u).slice(0,20)))}e.is_gzip=u=>!(!u||u.length<3)&&u[0]===31&&u[1]===139&&u[2]===8,e.pubkeyToAddress=a,e.base64PubkeyToAddress=function(u,d="secret"){return a((0,O.fromBase64)(u),d)},e.selfDelegatorAddressToValidatorAddress=function(u,d="secret"){return b.bech32.encode(`${d}valoper`,b.bech32.decode(u).words)},e.validatorAddressToSelfDelegatorAddress=function(u,d="secret"){return b.bech32.encode(d,b.bech32.decode(u).words)},e.tendermintPubkeyToValconsAddress=t,e.base64TendermintPubkeyToValconsAddress=function(u,d="secret"){return t((0,O.fromBase64)(u),d)},e.ibcDenom=(u,d)=>{const s=[];for(const n of u)s.push(`${n.incomingPortId}/${n.incomingChannelId}`);const r=`${s.join("/")}/${d}`;return"ibc/"+(0,O.toHex)((0,k.sha256)((0,O.toUtf8)(r))).toUpperCase()},e.stringToCoin=u=>{const d=u.match(/^(\d+)([a-z]+)$/);if(d===null)throw new Error(`cannot extract denom & amount from '${u}'`);return{amount:d[1],denom:d[2]}},e.coinFromString=e.stringToCoin,e.stringToCoins=u=>u.split(",").map(e.stringToCoin),e.coinsFromString=e.stringToCoins,e.validateAddress=(u,d="secret")=>{let s;try{s=b.bech32.decode(u)}catch(n){let o="failed to decode address as a bech32";return n instanceof Error&&(o+=`: ${n.message}`),{isValid:!1,reason:o}}if(s.prefix!==d)return{isValid:!1,reason:`wrong bech32 prefix, expected '${d}', got '${s.prefix}'`};const r=b.bech32.fromWords(s.words);return r.length!==20&&r.length!==32?{isValid:!1,reason:`wrong address length, expected 20 or 32 bytes, got ${r.length}`}:{isValid:!0}},e.addressToBytes=function(u){return u===""?new Uint8Array(0):Uint8Array.from(b.bech32.fromWords(b.bech32.decode(u).words))},e.bytesToAddress=function(u,d="secret"){return u.length===0?"":b.bech32.encode(d,b.bech32.toWords(u))}},5360:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(c,h,p,m){m===void 0&&(m=p),Object.defineProperty(c,m,{enumerable:!0,get:function(){return h[p]}})}:function(c,h,p,m){m===void 0&&(m=p),c[m]=h[p]}),A=this&&this.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var p in c)p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)&&O(h,c,p);return A(h,c),h},b=this&&this.__awaiter||function(c,h,p,m){return new(p||(p=Promise))(function(M,l){function N(I){try{R(m.next(I))}catch(x){l(x)}}function j(I){try{R(m.throw(I))}catch(x){l(x)}}function R(I){var x;I.done?M(I.value):(x=I.value,x instanceof p?x:new p(function(P){P(x)})).then(N,j)}R((m=m.apply(c,h||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.isDirectSigner=e.isSignDocCamelCase=e.isSignDoc=e.serializeStdSignDoc=e.sortObject=e.encodeSecp256k1Pubkey=e.encodeSecp256k1Signature=e.AminoWallet=e.SECRET_BECH32_PREFIX=e.SECRET_COIN_TYPE=void 0;const a=_(8972),t=_(3061),u=k(_(9656)),d=k(_(7786)),s=k(_(2153)),r=_(3607);function n(c,h){if(h.length!==64)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:o(c),signature:(0,a.toBase64)(h)}}function o(c){if(c.length!==33||c[0]!==2&&c[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(c)}}function i(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return c.map(i);const h=Object.keys(c).sort(),p={};return h.forEach(m=>{p[m]=i(c[m])}),p}function f(c){return(0,a.toUtf8)((h=c,JSON.stringify(i(h))));var h}e.SECRET_COIN_TYPE=529,e.SECRET_BECH32_PREFIX="secret",e.AminoWallet=class{constructor(c="",h={}){var p,m,M;c===""&&(c=s.generateMnemonic(256)),this.mnemonic=c,this.hdAccountIndex=(p=h.hdAccountIndex)!==null&&p!==void 0?p:0,this.coinType=(m=h.coinType)!==null&&m!==void 0?m:e.SECRET_COIN_TYPE,this.bech32Prefix=(M=h.bech32Prefix)!==null&&M!==void 0?M:e.SECRET_BECH32_PREFIX;const l=s.mnemonicToSeedSync(this.mnemonic),N=d.fromSeed(l).derivePath(`m/44'/${this.coinType}'/0'/0/${this.hdAccountIndex}`).privateKey;if(!N)throw new Error("Failed to derive key pair");this.privateKey=new Uint8Array(N),this.publicKey=u.getPublicKey(this.privateKey,!0),this.address=(0,r.pubkeyToAddress)(this.publicKey,this.bech32Prefix)}getAccounts(){return b(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}signAmino(c,h){return b(this,void 0,void 0,function*(){if(c!==this.address)throw new Error(`Address ${c} not found in wallet`);const p=(0,t.sha256)(f(h)),m=yield u.sign(p,this.privateKey,{extraEntropy:!0,der:!1});return{signed:h,signature:n(this.publicKey,m)}})}},e.encodeSecp256k1Signature=n,e.encodeSecp256k1Pubkey=o,e.sortObject=i,e.serializeStdSignDoc=f,e.isSignDoc=function(c){return"body_bytes"in c&&"auth_info_bytes"in c&&"chain_id"in c&&"account_number"in c},e.isSignDocCamelCase=function(c){return"bodyBytes"in c&&"authInfoBytes"in c&&"chainId"in c&&"accountNumber"in c},e.isDirectSigner=function(c){return c.signDirect!==void 0}},1444:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),A=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&O(o,n,i);return A(o,n),o},b=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(c,h){function p(l){try{M(f.next(l))}catch(N){h(N)}}function m(l){try{M(f.throw(l))}catch(N){h(N)}}function M(l){var N;l.done?c(l.value):(N=l.value,N instanceof i?N:new i(function(j){j(N)})).then(p,m)}M((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskWallet=void 0;const a=_(5426),t=k(_(9656)),u=_(3061),d=_(3607),s=_(5360);class r{constructor(o,i,f){this.ethProvider=o,this.ethAddress=i,this.publicKey=f,this.address=(0,d.pubkeyToAddress)(this.publicKey)}static create(o,i){return b(this,void 0,void 0,function*(){const f=`secretjs_${i}_pubkey`,c=localStorage.getItem(f);if(c){const I=i.slice(2).toLocaleLowerCase();if((0,d.toHex)((0,a.keccak_256)(function(P){return t.Point.fromHex(P).toRawBytes(!1)}(c).slice(1)).slice(-20)).toLocaleLowerCase()===I)return new r(o,i,(0,d.fromHex)(c));localStorage.removeItem(f)}const h=(0,d.toUtf8)("Get secret address"),p=`0x${(0,d.toHex)(h)}`,m=(yield o.request({method:"personal_sign",params:[p,i]})).toString(),M=(0,d.fromHex)(m.slice(2,-2));let l=parseInt(m.slice(-2),16)-27;l<0&&(l+=27);const N=(0,d.toUtf8)(`Ethereum Signed Message: +`),j=(0,d.toUtf8)(String(h.length)),R=t.recoverPublicKey((0,a.keccak_256)(new Uint8Array([...N,...j,...h])),M,l,!0);return localStorage.setItem(f,(0,d.toHex)(R)),new r(o,i,R)})}getAccounts(){return b(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}getSignMode(){return b(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(_(8502)))).SignMode.SIGN_MODE_EIP_191})}signAmino(o,i){return b(this,void 0,void 0,function*(){if(o!==(0,d.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=`0x${(0,d.toHex)(function(p){return(0,d.toUtf8)((m=p,JSON.stringify((0,s.sortObject)(m),null,4)));var m}(i))}`,c=yield this.ethProvider.request({method:"personal_sign",params:[f,this.ethAddress]}),h=(0,d.fromHex)(c.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,h)}})}signPermit(o,i){return b(this,void 0,void 0,function*(){if(o!==(0,d.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=(0,u.sha256)((0,s.serializeStdSignDoc)(i)),c=yield this.ethProvider.request({method:"eth_sign",params:[this.ethAddress,"0x"+(0,d.toHex)(f)]}),h=(0,d.fromHex)(c.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,h)}})}}e.MetaMaskWallet=r},1049:function(J,e,_){var O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),A=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return A(r,s),r},b=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function c(m){try{p(o.next(m))}catch(M){f(M)}}function h(m){try{p(o.throw(m))}catch(M){f(M)}}function p(m){var M;m.done?i(m.value):(M=m.value,M instanceof n?M:new n(function(l){l(M)})).then(c,h)}p((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=void 0;const a=_(3061),t=k(_(9656)),u=_(5360);class d extends u.AminoWallet{signDirect(r,n){return b(this,void 0,void 0,function*(){if(r!==this.address)throw new Error(`Address ${r} not found in wallet`);const o=(0,a.sha256)(yield function({account_number:f,auth_info_bytes:c,body_bytes:h,chain_id:p}){return b(this,void 0,void 0,function*(){const{SignDoc:m}=yield Promise.resolve().then(()=>k(_(6994)));return m.encode(m.fromPartial({account_number:f,auth_info_bytes:c,body_bytes:h,chain_id:p})).finish()})}(n)),i=yield t.sign(o,this.privateKey,{extraEntropy:!0,der:!1});return{signed:n,signature:(0,u.encodeSecp256k1Signature)(this.publicKey,i)}})}}e.Wallet=d},6647:(J,e,_)=>{var O=_(247);function A(s){return s.name||s.toString().match(/function (.*?)\s*\(/)[1]}function k(s){return O.Nil(s)?"":A(s.constructor)}function b(s,r){Error.captureStackTrace&&Error.captureStackTrace(s,r)}function a(s){return O.Function(s)?s.toJSON?s.toJSON():A(s):O.Array(s)?"Array":s&&O.Object(s)?"Object":s!==void 0?s:""}function t(s,r,n){var o=function(i){return O.Function(i)?"":O.String(i)?JSON.stringify(i):i&&O.Object(i)?"":i}(r);return"Expected "+a(s)+", got"+(n!==""?" "+n:"")+(o!==""?" "+o:"")}function u(s,r,n){n=n||k(r),this.message=t(s,r,n),b(this,u),this.__type=s,this.__value=r,this.__valueTypeName=n}function d(s,r,n,o,i){s?(i=i||k(o),this.message=function(f,c,h,p,m){var M='" of type ';return c==="key"&&(M='" with key type '),t('property "'+a(h)+M+a(f),p,m)}(s,n,r,o,i)):this.message='Unexpected property "'+r+'"',b(this,u),this.__label=n,this.__property=r,this.__type=s,this.__value=o,this.__valueTypeName=i}u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,d.prototype=Object.create(Error.prototype),d.prototype.constructor=u,J.exports={TfTypeError:u,TfPropertyTypeError:d,tfCustomError:function(s,r){return new u(s,{},r)},tfSubError:function(s,r,n){return s instanceof d?(r=r+"."+s.__property,s=new d(s.__type,r,s.__label,s.__value,s.__valueTypeName)):s instanceof u&&(s=new d(s.__type,r,n,s.__value,s.__valueTypeName)),b(s),s},tfJSON:a,getValueTypeName:k}},4307:(J,e,_)=>{var O=_(8764).Buffer,A=_(247),k=_(6647);function b(f){return O.isBuffer(f)}function a(f){return typeof f=="string"&&/^([0-9a-f]{2})+$/i.test(f)}function t(f,c){var h=f.toJSON();function p(m){if(!f(m))return!1;if(m.length===c)return!0;throw k.tfCustomError(h+"(Length: "+c+")",h+"(Length: "+m.length+")")}return p.toJSON=function(){return h},p}var u=t.bind(null,A.Array),d=t.bind(null,b),s=t.bind(null,a),r=t.bind(null,A.String),n=Math.pow(2,53)-1,o={ArrayN:u,Buffer:b,BufferN:d,Finite:function(f){return typeof f=="number"&&isFinite(f)},Hex:a,HexN:s,Int8:function(f){return f<<24>>24===f},Int16:function(f){return f<<16>>16===f},Int32:function(f){return(0|f)===f},Int53:function(f){return typeof f=="number"&&f>=-n&&f<=n&&Math.floor(f)===f},Range:function(f,c,h){function p(m,M){return h(m,M)&&m>f&&m>>0===f},UInt53:function(f){return typeof f=="number"&&f>=0&&f<=n&&Math.floor(f)===f}};for(var i in o)o[i].toJSON=(function(f){return f}).bind(null,i);J.exports=o},2401:(J,e,_)=>{var O=_(6647),A=_(247),k=O.tfJSON,b=O.TfTypeError,a=O.TfPropertyTypeError,t=O.tfSubError,u=O.getValueTypeName,d={arrayOf:function(i,f){function c(h,p){return!!A.Array(h)&&!A.Nil(h)&&!(f.minLength!==void 0&&h.lengthf.maxLength)&&(f.length===void 0||h.length===f.length)&&h.every(function(m,M){try{return r(i,m,p)}catch(l){throw t(l,M)}})}return i=s(i),f=f||{},c.toJSON=function(){var h="["+k(i)+"]";return f.length!==void 0?h+="{"+f.length+"}":f.minLength===void 0&&f.maxLength===void 0||(h+="{"+(f.minLength===void 0?0:f.minLength)+","+(f.maxLength===void 0?1/0:f.maxLength)+"}"),h},c},maybe:function i(f){function c(h,p){return A.Nil(h)||f(h,p,i)}return f=s(f),c.toJSON=function(){return"?"+k(f)},c},map:function(i,f){function c(h,p){if(!A.Object(h)||A.Nil(h))return!1;for(var m in h){try{f&&r(f,m,p)}catch(l){throw t(l,m,"key")}try{var M=h[m];r(i,M,p)}catch(l){throw t(l,m)}}return!0}return i=s(i),f&&(f=s(f)),c.toJSON=f?function(){return"{"+k(f)+": "+k(i)+"}"}:function(){return"{"+k(i)+"}"},c},object:function(i){var f={};for(var c in i)f[c]=s(i[c]);function h(p,m){if(!A.Object(p)||A.Nil(p))return!1;var M;try{for(M in f)r(f[M],p[M],m)}catch(l){throw t(l,M)}if(m){for(M in p)if(!f[M])throw new a(void 0,M)}return!0}return h.toJSON=function(){return k(f)},h},anyOf:function(){var i=[].slice.call(arguments).map(s);function f(c,h){return i.some(function(p){try{return r(p,c,h)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join("|")},f},allOf:function(){var i=[].slice.call(arguments).map(s);function f(c,h){return i.every(function(p){try{return r(p,c,h)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join(" & ")},f},quacksLike:function(i){function f(c){return i===u(c)}return f.toJSON=function(){return i},f},tuple:function(){var i=[].slice.call(arguments).map(s);function f(c,h){return!A.Nil(c)&&!A.Nil(c.length)&&(!h||c.length===i.length)&&i.every(function(p,m){try{return r(p,c[m],h)}catch(M){throw t(M,m)}})}return f.toJSON=function(){return"("+i.map(k).join(", ")+")"},f},value:function(i){function f(c){return c===i}return f.toJSON=function(){return i},f}};function s(i){if(A.String(i))return i[0]==="?"?d.maybe(i.slice(1)):A[i]||d.quacksLike(i);if(i&&A.Object(i)){if(A.Array(i)){if(i.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return d.arrayOf(i[0])}return d.object(i)}return A.Function(i)?i:d.value(i)}function r(i,f,c,h){if(A.Function(i)){if(i(f,c))return!0;throw new b(h||i,f)}return r(s(i),f,c)}for(var n in d.oneOf=d.anyOf,A)r[n]=A[n];for(n in d)r[n]=d[n];var o=_(4307);for(n in o)r[n]=o[n];r.compile=s,r.TfTypeError=b,r.TfPropertyTypeError=a,J.exports=r},247:J=>{var e={Array:function(O){return O!=null&&O.constructor===Array},Boolean:function(O){return typeof O=="boolean"},Function:function(O){return typeof O=="function"},Nil:function(O){return O==null},Number:function(O){return typeof O=="number"},Object:function(O){return typeof O=="object"},String:function(O){return typeof O=="string"},"":function(){return!0}};for(var _ in e.Null=e.Nil,e)e[_].toJSON=(function(O){return O}).bind(null,_);J.exports=e},4927:(J,e,_)=>{var O=_(5108);function A(k){try{if(!_.g.localStorage)return!1}catch{return!1}var b=_.g.localStorage[k];return b!=null&&String(b).toLowerCase()==="true"}J.exports=function(k,b){if(A("noDeprecation"))return k;var a=!1;return function(){if(!a){if(A("throwDeprecation"))throw new Error(b);A("traceDeprecation")?O.trace(b):O.warn(b),a=!0}return k.apply(this,arguments)}}},384:J=>{J.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},5955:(J,e,_)=>{var O=_(2584),A=_(8662),k=_(6430),b=_(5692);function a(C){return C.call.bind(C)}var t=typeof BigInt<"u",u=typeof Symbol<"u",d=a(Object.prototype.toString),s=a(Number.prototype.valueOf),r=a(String.prototype.valueOf),n=a(Boolean.prototype.valueOf);if(t)var o=a(BigInt.prototype.valueOf);if(u)var i=a(Symbol.prototype.valueOf);function f(C,F){if(typeof C!="object")return!1;try{return F(C),!0}catch{return!1}}function c(C){return d(C)==="[object Map]"}function h(C){return d(C)==="[object Set]"}function p(C){return d(C)==="[object WeakMap]"}function m(C){return d(C)==="[object WeakSet]"}function M(C){return d(C)==="[object ArrayBuffer]"}function l(C){return typeof ArrayBuffer<"u"&&(M.working?M(C):C instanceof ArrayBuffer)}function N(C){return d(C)==="[object DataView]"}function j(C){return typeof DataView<"u"&&(N.working?N(C):C instanceof DataView)}e.isArgumentsObject=O,e.isGeneratorFunction=A,e.isTypedArray=b,e.isPromise=function(C){return typeof Promise<"u"&&C instanceof Promise||C!==null&&typeof C=="object"&&typeof C.then=="function"&&typeof C.catch=="function"},e.isArrayBufferView=function(C){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(C):b(C)||j(C)},e.isUint8Array=function(C){return k(C)==="Uint8Array"},e.isUint8ClampedArray=function(C){return k(C)==="Uint8ClampedArray"},e.isUint16Array=function(C){return k(C)==="Uint16Array"},e.isUint32Array=function(C){return k(C)==="Uint32Array"},e.isInt8Array=function(C){return k(C)==="Int8Array"},e.isInt16Array=function(C){return k(C)==="Int16Array"},e.isInt32Array=function(C){return k(C)==="Int32Array"},e.isFloat32Array=function(C){return k(C)==="Float32Array"},e.isFloat64Array=function(C){return k(C)==="Float64Array"},e.isBigInt64Array=function(C){return k(C)==="BigInt64Array"},e.isBigUint64Array=function(C){return k(C)==="BigUint64Array"},c.working=typeof Map<"u"&&c(new Map),e.isMap=function(C){return typeof Map<"u"&&(c.working?c(C):C instanceof Map)},h.working=typeof Set<"u"&&h(new Set),e.isSet=function(C){return typeof Set<"u"&&(h.working?h(C):C instanceof Set)},p.working=typeof WeakMap<"u"&&p(new WeakMap),e.isWeakMap=function(C){return typeof WeakMap<"u"&&(p.working?p(C):C instanceof WeakMap)},m.working=typeof WeakSet<"u"&&m(new WeakSet),e.isWeakSet=function(C){return m(C)},M.working=typeof ArrayBuffer<"u"&&M(new ArrayBuffer),e.isArrayBuffer=l,N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=j;var R=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function I(C){return d(C)==="[object SharedArrayBuffer]"}function x(C){return R!==void 0&&(I.working===void 0&&(I.working=I(new R)),I.working?I(C):C instanceof R)}function P(C){return f(C,s)}function w(C){return f(C,r)}function g(C){return f(C,n)}function E(C){return t&&f(C,o)}function U(C){return u&&f(C,i)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(C){return d(C)==="[object AsyncFunction]"},e.isMapIterator=function(C){return d(C)==="[object Map Iterator]"},e.isSetIterator=function(C){return d(C)==="[object Set Iterator]"},e.isGeneratorObject=function(C){return d(C)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(C){return d(C)==="[object WebAssembly.Module]"},e.isNumberObject=P,e.isStringObject=w,e.isBooleanObject=g,e.isBigIntObject=E,e.isSymbolObject=U,e.isBoxedPrimitive=function(C){return P(C)||w(C)||g(C)||E(C)||U(C)},e.isAnyArrayBuffer=function(C){return typeof Uint8Array<"u"&&(l(C)||x(C))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(C){Object.defineProperty(e,C,{enumerable:!1,value:function(){throw new Error(C+" is not supported in userland")}})})},9539:(J,e,_)=>{var O=_(4155),A=_(5108),k=Object.getOwnPropertyDescriptors||function(C){for(var F=Object.keys(C),re={},ee=0;ee=ne)return $;switch($){case"%s":return String(ee[re++]);case"%d":return Number(ee[re++]);case"%j":try{return JSON.stringify(ee[re++])}catch{return"[Circular]"}default:return $}}),Z=ee[re];re=3&&(re.depth=arguments[2]),arguments.length>=4&&(re.colors=arguments[3]),c(F)?re.showHidden=F:F&&e._extend(re,F),M(re.showHidden)&&(re.showHidden=!1),M(re.depth)&&(re.depth=2),M(re.colors)&&(re.colors=!1),M(re.customInspect)&&(re.customInspect=!0),re.colors&&(re.stylize=s),n(re,C,re.depth)}function s(C,F){var re=d.styles[F];return re?"\x1B["+d.colors[re][0]+"m"+C+"\x1B["+d.colors[re][1]+"m":C}function r(C,F){return C}function n(C,F,re){if(C.customInspect&&F&&I(F.inspect)&&F.inspect!==e.inspect&&(!F.constructor||F.constructor.prototype!==F)){var ee=F.inspect(re,C);return m(ee)||(ee=n(C,ee,re)),ee}var ne=function(ae,ce){if(M(ce))return ae.stylize("undefined","undefined");if(m(ce)){var ue="'"+JSON.stringify(ce).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ae.stylize(ue,"string")}return p(ce)?ae.stylize(""+ce,"number"):c(ce)?ae.stylize(""+ce,"boolean"):h(ce)?ae.stylize("null","null"):void 0}(C,F);if(ne)return ne;var D=Object.keys(F),Z=function(ae){var ce={};return ae.forEach(function(ue,le){ce[ue]=!0}),ce}(D);if(C.showHidden&&(D=Object.getOwnPropertyNames(F)),R(F)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return o(F);if(D.length===0){if(I(F)){var $=F.name?": "+F.name:"";return C.stylize("[Function"+$+"]","special")}if(l(F))return C.stylize(RegExp.prototype.toString.call(F),"regexp");if(j(F))return C.stylize(Date.prototype.toString.call(F),"date");if(R(F))return o(F)}var X,K="",Y=!1,L=["{","}"];return f(F)&&(Y=!0,L=["[","]"]),I(F)&&(K=" [Function"+(F.name?": "+F.name:"")+"]"),l(F)&&(K=" "+RegExp.prototype.toString.call(F)),j(F)&&(K=" "+Date.prototype.toUTCString.call(F)),R(F)&&(K=" "+o(F)),D.length!==0||Y&&F.length!=0?re<0?l(F)?C.stylize(RegExp.prototype.toString.call(F),"regexp"):C.stylize("[Object]","special"):(C.seen.push(F),X=Y?function(ae,ce,ue,le,be){for(var de=[],pe=0,_e=ce.length;pe<_e;++pe)g(ce,String(pe))?de.push(i(ae,ce,ue,le,String(pe),!0)):de.push("");return be.forEach(function(W){W.match(/^\d+$/)||de.push(i(ae,ce,ue,le,W,!0))}),de}(C,F,re,Z,D):D.map(function(ae){return i(C,F,re,Z,ae,Y)}),C.seen.pop(),function(ae,ce,ue){return ae.reduce(function(le,be){return be.indexOf(` +`),le+be.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ue[0]+(ce===""?"":ce+` + `)+" "+ae.join(`, + `)+" "+ue[1]:ue[0]+ce+" "+ae.join(", ")+" "+ue[1]}(X,K,L)):L[0]+K+L[1]}function o(C){return"["+Error.prototype.toString.call(C)+"]"}function i(C,F,re,ee,ne,D){var Z,$,X;if((X=Object.getOwnPropertyDescriptor(F,ne)||{value:F[ne]}).get?$=X.set?C.stylize("[Getter/Setter]","special"):C.stylize("[Getter]","special"):X.set&&($=C.stylize("[Setter]","special")),g(ee,ne)||(Z="["+ne+"]"),$||(C.seen.indexOf(X.value)<0?($=h(re)?n(C,X.value,null):n(C,X.value,re-1)).indexOf(` +`)>-1&&($=D?$.split(` +`).map(function(K){return" "+K}).join(` +`).slice(2):` +`+$.split(` +`).map(function(K){return" "+K}).join(` +`)):$=C.stylize("[Circular]","special")),M(Z)){if(D&&ne.match(/^\d+$/))return $;(Z=JSON.stringify(""+ne)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Z=Z.slice(1,-1),Z=C.stylize(Z,"name")):(Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=C.stylize(Z,"string"))}return Z+": "+$}function f(C){return Array.isArray(C)}function c(C){return typeof C=="boolean"}function h(C){return C===null}function p(C){return typeof C=="number"}function m(C){return typeof C=="string"}function M(C){return C===void 0}function l(C){return N(C)&&x(C)==="[object RegExp]"}function N(C){return typeof C=="object"&&C!==null}function j(C){return N(C)&&x(C)==="[object Date]"}function R(C){return N(C)&&(x(C)==="[object Error]"||C instanceof Error)}function I(C){return typeof C=="function"}function x(C){return Object.prototype.toString.call(C)}function P(C){return C<10?"0"+C.toString(10):C.toString(10)}e.debuglog=function(C){if(C=C.toUpperCase(),!a[C])if(t.test(C)){var F=O.pid;a[C]=function(){var re=e.format.apply(e,arguments);A.error("%s %d: %s",C,F,re)}}else a[C]=function(){};return a[C]},e.inspect=d,d.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]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=_(5955),e.isArray=f,e.isBoolean=c,e.isNull=h,e.isNullOrUndefined=function(C){return C==null},e.isNumber=p,e.isString=m,e.isSymbol=function(C){return typeof C=="symbol"},e.isUndefined=M,e.isRegExp=l,e.types.isRegExp=l,e.isObject=N,e.isDate=j,e.types.isDate=j,e.isError=R,e.types.isNativeError=R,e.isFunction=I,e.isPrimitive=function(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||typeof C=="symbol"||C===void 0},e.isBuffer=_(384);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g(C,F){return Object.prototype.hasOwnProperty.call(C,F)}e.log=function(){var C,F;A.log("%s - %s",(F=[P((C=new Date).getHours()),P(C.getMinutes()),P(C.getSeconds())].join(":"),[C.getDate(),w[C.getMonth()],F].join(" ")),e.format.apply(e,arguments))},e.inherits=_(5717),e._extend=function(C,F){if(!F||!N(F))return C;for(var re=Object.keys(F),ee=re.length;ee--;)C[re[ee]]=F[re[ee]];return C};var E=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function U(C,F){if(!C){var re=new Error("Promise was rejected with a falsy value");re.reason=C,C=re}return F(C)}e.promisify=function(C){if(typeof C!="function")throw new TypeError('The "original" argument must be of type Function');if(E&&C[E]){var F;if(typeof(F=C[E])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(F,E,{value:F,enumerable:!1,writable:!1,configurable:!0}),F}function F(){for(var re,ee,ne=new Promise(function($,X){re=$,ee=X}),D=[],Z=0;Z{var O=_(4029),A=_(3083),k=_(1924),b=_(7296),a=k("Object.prototype.toString"),t=_(6410)(),u=typeof globalThis>"u"?_.g:globalThis,d=A(),s=k("String.prototype.slice"),r={},n=Object.getPrototypeOf;t&&b&&n&&O(d,function(i){if(typeof u[i]=="function"){var f=new u[i];if(Symbol.toStringTag in f){var c=n(f),h=b(c,Symbol.toStringTag);if(!h){var p=n(c);h=b(p,Symbol.toStringTag)}r[i]=h.get}}});var o=_(5692);J.exports=function(i){return!!o(i)&&(t&&Symbol.toStringTag in i?function(f){var c=!1;return O(r,function(h,p){if(!c)try{var m=h.call(f);m===p&&(c=m)}catch{}}),c}(i):s(a(i),8,-1))}},9898:(J,e,_)=>{var O=_(8764).Buffer,A=_(8334);function k(a,t){if(t!==void 0&&a[0]!==t)throw new Error("Invalid network version");if(a.length===33)return{version:a[0],privateKey:a.slice(1,33),compressed:!1};if(a.length!==34)throw new Error("Invalid WIF length");if(a[33]!==1)throw new Error("Invalid compression flag");return{version:a[0],privateKey:a.slice(1,33),compressed:!0}}function b(a,t,u){var d=new O(u?34:33);return d.writeUInt8(a,0),t.copy(d,1),u&&(d[33]=1),d}J.exports={decode:function(a,t){return k(A.decode(a),t)},decodeRaw:k,encode:function(a,t,u){return typeof a=="number"?A.encode(b(a,t,u)):A.encode(b(a.version,a.privateKey,a.compressed))},encodeRaw:b}},9159:()=>{},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},3954:()=>{},3083:(J,e,_)=>{var O=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],A=typeof globalThis>"u"?_.g:globalThis;J.exports=function(){for(var k=[],b=0;b{J.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},4262:J=>{J.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},32:J=>{J.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},4573:J=>{J.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},1848:J=>{J.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},2841:J=>{J.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4472:J=>{J.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},8013:J=>{J.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},1945:J=>{J.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},659:J=>{J.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},8597:J=>{J.exports={i8:"6.5.4"}}},__webpack_module_cache__={};function __webpack_require__(J){var e=__webpack_module_cache__[J];if(e!==void 0)return e.exports;var _=__webpack_module_cache__[J]={id:J,loaded:!1,exports:{}};return __webpack_modules__[J].call(_.exports,_,_.exports,__webpack_require__),_.loaded=!0,_.exports}__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.nmd=J=>(J.paths=[],J.children||(J.children=[]),J);var __webpack_exports__=__webpack_require__(3607);return __webpack_exports__})())})(browser);var browserExports=browser.exports;globalThis&&globalThis.__awaiter;function createFetchClient(J){return J.pipe(switchMap(e=>of(e)),first(),catchError(e=>{throw e}))}const DEFAULT_SECRET_LCD_ENDPOINT="https://lcd.secret.express/",SECRET_MAINNET_CHAIN_ID="secret-4",getSecretNetworkClient$=({walletAccount:J,lcdEndpoint:e,chainId:_})=>createFetchClient(defer(()=>of(J?{client:new browserExports.SecretNetworkClient({url:e,wallet:J.signer,walletAddress:J.walletAddress,chainId:_,encryptionUtils:J.encryptionUtils,encryptionSeed:J.encryptionSeed}),endpoint:e,chainId:_}:{client:new browserExports.SecretNetworkClient({url:e,chainId:_}),endpoint:e,chainId:_})));let activeClient;function getActiveQueryClient$(J,e){return activeClient&&J&&J===activeClient.endpoint&&e&&e===activeClient.chainId?of(activeClient):getSecretNetworkClient$({lcdEndpoint:J??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}).pipe(tap(({client:_})=>{activeClient={client:_,endpoint:J??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}}),first())}exports.getActiveQueryClient$=getActiveQueryClient$,exports.getSecretNetworkClient$=getSecretNetworkClient$,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}); diff --git a/dist/src/client/index.d.ts b/dist/src/client/index.d.ts new file mode 100644 index 0000000..e49f53a --- /dev/null +++ b/dist/src/client/index.d.ts @@ -0,0 +1,20 @@ +import { Observable } from 'rxjs'; +import { WalletAccount } from '../types/wallet'; +import { ClientData } from '../types/client'; +/** + * Create and returns Secret Network client + * @param walletAccount not required for making public queries + */ +declare const getSecretNetworkClient$: ({ walletAccount, lcdEndpoint, chainId, }: { + walletAccount?: WalletAccount | undefined; + lcdEndpoint: string; + chainId: string; +}) => Observable; +/** + * Gets the active query client. If one does not exist, initialize it and stores it for + * future use. + * @param lcdEndpoint uses a default mainnet endpoint if one is not provided + * @param chainId uses a default mainnet chainID if one is not provided + */ +declare function getActiveQueryClient$(lcdEndpoint?: string, chainId?: string): Observable; +export { getSecretNetworkClient$, getActiveQueryClient$, }; diff --git a/dist/src/client/services/clientServices.d.ts b/dist/src/client/services/clientServices.d.ts new file mode 100644 index 0000000..83a60d9 --- /dev/null +++ b/dist/src/client/services/clientServices.d.ts @@ -0,0 +1,11 @@ +import { SecretNetworkClient } from 'secretjs'; +/** + * sets up the service observable for calling the querying with the secret client + */ +declare const sendSecretClientContractQuery$: ({ queryMsg, client, contractAddress, codeHash, }: { + queryMsg: any; + client: SecretNetworkClient; + contractAddress: string; + codeHash?: string | undefined; +}) => import("rxjs").Observable; +export { sendSecretClientContractQuery$, }; diff --git a/dist/src/client/services/createFetch.d.ts b/dist/src/client/services/createFetch.d.ts new file mode 100644 index 0000000..f242306 --- /dev/null +++ b/dist/src/client/services/createFetch.d.ts @@ -0,0 +1,4 @@ +import { Observable } from 'rxjs'; +declare function createFetchClient(data$: Observable): Observable; +declare function createFetch(data$: Observable): Observable; +export { createFetchClient, createFetch, }; diff --git a/dist/src/config.d.ts b/dist/src/config.d.ts new file mode 100644 index 0000000..09884c2 --- /dev/null +++ b/dist/src/config.d.ts @@ -0,0 +1,3 @@ +declare const DEFAULT_SECRET_LCD_ENDPOINT = "https://lcd.secret.express/"; +declare const SECRET_MAINNET_CHAIN_ID = "secret-4"; +export { DEFAULT_SECRET_LCD_ENDPOINT, SECRET_MAINNET_CHAIN_ID, }; diff --git a/dist/src/contracts/definitions/oracle.d.ts b/dist/src/contracts/definitions/oracle.d.ts new file mode 100644 index 0000000..865d779 --- /dev/null +++ b/dist/src/contracts/definitions/oracle.d.ts @@ -0,0 +1,17 @@ +/** + * Query single price from the oracle contract + */ +declare const msgQueryOraclePrice: (oracleKey: string) => { + get_price: { + key: string; + }; +}; +/** + * Query muliple prices from the oracle contract + */ +declare const msgQueryOraclePrices: (oracleKeys: string[]) => { + get_prices: { + keys: string[]; + }; +}; +export { msgQueryOraclePrice, msgQueryOraclePrices, }; diff --git a/dist/src/contracts/definitions/oracle.test.d.ts b/dist/src/contracts/definitions/oracle.test.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/dist/src/contracts/definitions/oracle.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/dist/src/contracts/services/oracle.d.ts b/dist/src/contracts/services/oracle.d.ts new file mode 100644 index 0000000..7d716e3 --- /dev/null +++ b/dist/src/contracts/services/oracle.d.ts @@ -0,0 +1,30 @@ +import { OraclePriceResponse, OraclePricesResponse, ParsedOraclePriceResponse, ParsedOraclePricesResponse } from '../../types/contracts/oracle'; +/** +* Parses the contract price query into the app data model +*/ +declare const parsePriceFromContract: (response: OraclePriceResponse) => ParsedOraclePriceResponse; +/** +* Parses the contract prices query into the app data model +*/ +declare function parsePricesFromContract(pricesResponse: OraclePricesResponse): ParsedOraclePricesResponse; +/** + * query the price of an asset using the oracle key + */ +declare const queryPrice$: ({ contractAddress, codeHash, oracleKey, lcdEndpoint, chainId, }: { + contractAddress: string; + codeHash?: string | undefined; + oracleKey: string; + lcdEndpoint?: string | undefined; + chainId?: string | undefined; +}) => import("rxjs").Observable; +/** + * query multiple asset prices using oracle keys + */ +declare const queryPrices$: ({ contractAddress, codeHash, oracleKeys, lcdEndpoint, chainId, }: { + contractAddress: string; + codeHash?: string | undefined; + oracleKeys: string[]; + lcdEndpoint?: string | undefined; + chainId?: string | undefined; +}) => import("rxjs").Observable; +export { parsePriceFromContract, parsePricesFromContract, queryPrice$, queryPrices$, }; diff --git a/dist/src/contracts/services/oracle.test.d.ts b/dist/src/contracts/services/oracle.test.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/dist/src/contracts/services/oracle.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/dist/src/errors/index.d.ts b/dist/src/errors/index.d.ts new file mode 100644 index 0000000..84916a8 --- /dev/null +++ b/dist/src/errors/index.d.ts @@ -0,0 +1,5 @@ +/** + * Parse contract query responses to determine if an error has occured + */ +declare function identifyQueryResponseErrors(response: any): void; +export { identifyQueryResponseErrors, }; diff --git a/dist/src/index.d.ts b/dist/src/index.d.ts new file mode 100644 index 0000000..e180bb1 --- /dev/null +++ b/dist/src/index.d.ts @@ -0,0 +1,2 @@ +import { getSecretNetworkClient$, getActiveQueryClient$ } from './client'; +export { getSecretNetworkClient$, getActiveQueryClient$, }; diff --git a/dist/src/lib/utils.d.ts b/dist/src/lib/utils.d.ts new file mode 100644 index 0000000..09d21eb --- /dev/null +++ b/dist/src/lib/utils.d.ts @@ -0,0 +1,10 @@ +import BigNumber from 'bignumber.js'; +/** + * Convert from uDenom to the human readable equivalent as BigNumber type + */ +declare const convertCoinFromUDenom: (amount: number | string, decimals: number) => BigNumber; +/** + * Convert BigNumber to the uDenom string type + */ +declare const convertCoinToUDenom: (amount: BigNumber | number | string, decimals: number) => string; +export { convertCoinToUDenom, convertCoinFromUDenom, }; diff --git a/dist/src/lib/utils.test.d.ts b/dist/src/lib/utils.test.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/dist/src/lib/utils.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/dist/src/types/client.d.ts b/dist/src/types/client.d.ts new file mode 100644 index 0000000..2a9df88 --- /dev/null +++ b/dist/src/types/client.d.ts @@ -0,0 +1,7 @@ +import { SecretNetworkClient } from 'secretjs'; +type ClientData = { + client: SecretNetworkClient; + endpoint: string; + chainId: string; +}; +export { ClientData, }; diff --git a/dist/src/types/contracts/oracle.d.ts b/dist/src/types/contracts/oracle.d.ts new file mode 100644 index 0000000..68524aa --- /dev/null +++ b/dist/src/types/contracts/oracle.d.ts @@ -0,0 +1,20 @@ +import BigNumber from 'bignumber.js'; +type OraclePriceResponse = { + key: string; + data: { + rate: string; + last_updated_base: number; + last_updated_quote: number; + }; +}; +type OraclePricesResponse = OraclePriceResponse[]; +type ParsedOraclePriceResponse = { + oracleKey: string; + rate: BigNumber; + lastUpdatedBase: number; + lastUpdatedQuote: number; +}; +type ParsedOraclePricesResponse = { + [oracleKey: string]: ParsedOraclePriceResponse; +}; +export { OraclePriceResponse, OraclePricesResponse, ParsedOraclePriceResponse, ParsedOraclePricesResponse, }; diff --git a/dist/src/types/wallet.d.ts b/dist/src/types/wallet.d.ts new file mode 100644 index 0000000..df1fd76 --- /dev/null +++ b/dist/src/types/wallet.d.ts @@ -0,0 +1,10 @@ +type WalletSigner = { + signer: any; + encryptionSeed?: Uint8Array; + encryptionUtils?: any; +}; +type WalletAddress = { + walletAddress: string; +}; +type WalletAccount = WalletSigner & WalletAddress; +export { WalletAccount, }; diff --git a/dist/vite.config.d.ts b/dist/vite.config.d.ts new file mode 100644 index 0000000..340562a --- /dev/null +++ b/dist/vite.config.d.ts @@ -0,0 +1,2 @@ +declare const _default: import("vite").UserConfig; +export default _default; diff --git a/package.json b/package.json index 4823488..01dadb5 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,23 @@ { "name": "shadejs", - "version": "0.0.1", + "version": "0.0.2", "author": "Secure Secrets", "license": "MIT", + "type": "module", + "main": "./dist/my-lib.umd.cjs", + "module": "./dist/my-lib.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/my-lib.js", + "require": "./dist/my-lib.umd.cjs" + } + }, + "files": [ + "dist" + ], "scripts": { + "build": "tsc && vite build", "commitizen": "cz", "lint": "eslint \"**/*.{ts,js}\"", "lint:fix": "eslint \"**/*.{vue,ts,js}\" --fix", @@ -12,7 +26,6 @@ "test:watch": "vitest watch", "typecheck": "tsc --noEmit" }, - "type": "module", "dependencies": { "@arkweid/lefthook": "^0.7.7", "@commitlint/cli": "^17.7.2", @@ -31,7 +44,8 @@ }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.7.4", - "@typescript-eslint/parser": "^6.7.4" + "@typescript-eslint/parser": "^6.7.4", + "vite-plugin-dts": "^3.6.0" }, "config": { "commitizen": { diff --git a/shadejs-v0.0.2.tgz b/shadejs-v0.0.2.tgz new file mode 100644 index 0000000..53ea85e Binary files /dev/null and b/shadejs-v0.0.2.tgz differ diff --git a/src/client/index.js b/src/client/index.js new file mode 100644 index 0000000..741007a --- /dev/null +++ b/src/client/index.js @@ -0,0 +1,62 @@ +import { of, defer, tap, first, } from 'rxjs'; +import { SecretNetworkClient, } from 'secretjs'; +import { createFetchClient } from '~/client/services/createFetch'; +import { DEFAULT_SECRET_LCD_ENDPOINT, SECRET_MAINNET_CHAIN_ID, } from '~/config'; +/** + * Create and returns Secret Network client + * @param walletAccount not required for making public queries + */ +const getSecretNetworkClient$ = ({ walletAccount, lcdEndpoint, chainId, }) => createFetchClient(defer(() => { + if (walletAccount) { + return of({ + client: new SecretNetworkClient({ + url: lcdEndpoint, + wallet: walletAccount.signer, + walletAddress: walletAccount.walletAddress, + chainId, + encryptionUtils: walletAccount.encryptionUtils, + encryptionSeed: walletAccount.encryptionSeed, + }), + endpoint: lcdEndpoint, + chainId, + }); + } + return of({ + client: new SecretNetworkClient({ + url: lcdEndpoint, + chainId, + }), + endpoint: lcdEndpoint, + chainId, + }); +})); +let activeClient; +/** + * Gets the active query client. If one does not exist, initialize it and stores it for + * future use. + * @param lcdEndpoint uses a default mainnet endpoint if one is not provided + * @param chainId uses a default mainnet chainID if one is not provided + */ +function getActiveQueryClient$(lcdEndpoint, chainId) { + // check if a client exists and return it if it does + // as long as the endpoint and chain Id haven't changed from previous. + if (activeClient + && lcdEndpoint + && lcdEndpoint === activeClient.endpoint + && chainId + && chainId === activeClient.chainId) { + return of(activeClient); + } + // if no endpoint/chainId is provided, assume mainnet and use defaults + return getSecretNetworkClient$({ + lcdEndpoint: lcdEndpoint !== null && lcdEndpoint !== void 0 ? lcdEndpoint : DEFAULT_SECRET_LCD_ENDPOINT, + chainId: chainId !== null && chainId !== void 0 ? chainId : SECRET_MAINNET_CHAIN_ID, + }).pipe(tap(({ client }) => { + activeClient = { + client, + endpoint: lcdEndpoint !== null && lcdEndpoint !== void 0 ? lcdEndpoint : DEFAULT_SECRET_LCD_ENDPOINT, + chainId: chainId !== null && chainId !== void 0 ? chainId : SECRET_MAINNET_CHAIN_ID, + }; + }), first()); +} +export { getSecretNetworkClient$, getActiveQueryClient$, }; diff --git a/src/client/services/clientServices.js b/src/client/services/clientServices.js new file mode 100644 index 0000000..93317d0 --- /dev/null +++ b/src/client/services/clientServices.js @@ -0,0 +1,22 @@ +import { first, defer, from, tap, } from 'rxjs'; +import { createFetchClient } from '~/client/services/createFetch'; +import { identifyQueryResponseErrors } from '~/errors'; +/** + * query the contract using a secret client + */ +const secretClientContractQuery$ = ({ queryMsg, client, contractAddress, codeHash, }) => createFetchClient(defer(() => from(client.query.compute.queryContract({ + contract_address: contractAddress, + code_hash: codeHash, + query: queryMsg, +})))); +/** + * sets up the service observable for calling the querying with the secret client + */ +const sendSecretClientContractQuery$ = ({ queryMsg, client, contractAddress, codeHash, }) => secretClientContractQuery$({ + queryMsg, + client, + contractAddress, + codeHash, +}) + .pipe(tap((response) => identifyQueryResponseErrors(response)), first()); +export { sendSecretClientContractQuery$, }; diff --git a/src/client/services/createFetch.js b/src/client/services/createFetch.js new file mode 100644 index 0000000..cbf8ea0 --- /dev/null +++ b/src/client/services/createFetch.js @@ -0,0 +1,24 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { catchError, of, switchMap, first, } from 'rxjs'; +function createFetchClient(data$) { + return data$.pipe(switchMap((response) => of(response)), first(), catchError((err) => { + throw err; + })); +} +function createFetch(data$) { + return data$.pipe(switchMap((response) => __awaiter(this, void 0, void 0, function* () { + if (response.ok) { + return response.json(); + } + throw new Error('Fetch Error'); + }))); +} +export { createFetchClient, createFetch, }; diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..4d4781c --- /dev/null +++ b/src/config.js @@ -0,0 +1,5 @@ +// default endpoint to be used when alternative endpoint is not provided +// this is a public endpoint and not guarantees can be provided about the performance +const DEFAULT_SECRET_LCD_ENDPOINT = 'https://lcd.secret.express/'; +const SECRET_MAINNET_CHAIN_ID = 'secret-4'; +export { DEFAULT_SECRET_LCD_ENDPOINT, SECRET_MAINNET_CHAIN_ID, }; diff --git a/src/contracts/definitions/oracle.js b/src/contracts/definitions/oracle.js new file mode 100644 index 0000000..656d394 --- /dev/null +++ b/src/contracts/definitions/oracle.js @@ -0,0 +1,17 @@ +/** + * Query single price from the oracle contract + */ +const msgQueryOraclePrice = (oracleKey) => ({ + get_price: { + key: oracleKey, + }, +}); +/** + * Query muliple prices from the oracle contract + */ +const msgQueryOraclePrices = (oracleKeys) => ({ + get_prices: { + keys: oracleKeys, + }, +}); +export { msgQueryOraclePrice, msgQueryOraclePrices, }; diff --git a/src/contracts/definitions/oracle.test.js b/src/contracts/definitions/oracle.test.js new file mode 100644 index 0000000..116d3b9 --- /dev/null +++ b/src/contracts/definitions/oracle.test.js @@ -0,0 +1,18 @@ +import { test, expect, } from 'vitest'; +import { msgQueryOraclePrice, msgQueryOraclePrices, } from '~/contracts/definitions/oracle'; +test('it test the form of the query oracle msg', () => { + const output = { + get_price: { + key: 'MOCK_KEY', + }, + }; + expect(msgQueryOraclePrice('MOCK_KEY')).toStrictEqual(output); +}); +test('it test the form of the query oracle msg', () => { + const output = { + get_prices: { + keys: ['MOCK_KEY_1', 'MOCK_KEY_2'], + }, + }; + expect(msgQueryOraclePrices(['MOCK_KEY_1', 'MOCK_KEY_2'])).toStrictEqual(output); +}); diff --git a/src/contracts/services/oracle.js b/src/contracts/services/oracle.js new file mode 100644 index 0000000..fc6f48e --- /dev/null +++ b/src/contracts/services/oracle.js @@ -0,0 +1,44 @@ +import { switchMap, first, map, } from 'rxjs'; +import { sendSecretClientContractQuery$ } from '~/client/services/clientServices'; +import { getActiveQueryClient$ } from '~/client'; +import { convertCoinFromUDenom } from '~/lib/utils'; +import { msgQueryOraclePrice, msgQueryOraclePrices } from '~/contracts/definitions/oracle'; +/** +* Parses the contract price query into the app data model +*/ +const parsePriceFromContract = (response) => ({ + oracleKey: response.key, + rate: convertCoinFromUDenom(response.data.rate, 18), + lastUpdatedBase: response.data.last_updated_base, + lastUpdatedQuote: response.data.last_updated_quote, +}); +/** +* Parses the contract prices query into the app data model +*/ +function parsePricesFromContract(pricesResponse) { + return pricesResponse.reduce((prev, curr) => (Object.assign(Object.assign({}, prev), { [curr.key]: { + oracleKey: curr.key, + rate: convertCoinFromUDenom(curr.data.rate, 18), + lastUpdatedBase: curr.data.last_updated_base, + lastUpdatedQuote: curr.data.last_updated_quote, + } })), {}); +} +/** + * query the price of an asset using the oracle key + */ +const queryPrice$ = ({ contractAddress, codeHash, oracleKey, lcdEndpoint, chainId, }) => getActiveQueryClient$(lcdEndpoint, chainId).pipe(switchMap(({ client }) => sendSecretClientContractQuery$({ + queryMsg: msgQueryOraclePrice(oracleKey), + client, + contractAddress, + codeHash, +})), map((response) => parsePriceFromContract(response)), first()); +/** + * query multiple asset prices using oracle keys + */ +const queryPrices$ = ({ contractAddress, codeHash, oracleKeys, lcdEndpoint, chainId, }) => getActiveQueryClient$(lcdEndpoint, chainId).pipe(switchMap(({ client }) => sendSecretClientContractQuery$({ + queryMsg: msgQueryOraclePrices(oracleKeys), + client, + contractAddress, + codeHash, +})), map((response) => parsePricesFromContract(response)), first()); +export { parsePriceFromContract, parsePricesFromContract, queryPrice$, queryPrices$, }; diff --git a/src/contracts/services/oracle.test.js b/src/contracts/services/oracle.test.js new file mode 100644 index 0000000..398ac95 --- /dev/null +++ b/src/contracts/services/oracle.test.js @@ -0,0 +1,49 @@ +import { test, expect, vi, beforeAll, afterAll, } from 'vitest'; +import { parsePriceFromContract, parsePricesFromContract, } from '~/contracts/services/oracle'; +import priceResponse from '~/test/mocks/oracle/priceResponse.json'; +import pricesResponse from '~/test/mocks/oracle/pricesResponse.json'; +import BigNumber from 'bignumber.js'; +import { of } from 'rxjs'; +beforeAll(() => { + vi.mock('~/contracts/definitions/oracle', () => ({ + msgQueryOraclePrice: vi.fn(() => 'MSG_QUERY_ORACLE_PRICE'), + msgQueryOraclePrices: vi.fn(() => 'MSG_QUERY_ORACLE_PRICES'), + })); + vi.mock('~/client/index', () => ({ + getActiveQueryClient$: vi.fn(() => of('CLIENT')), + })); + vi.mock('~/client/services/clientServices', () => ({ + sendSecretClientContractQuery$: vi.fn(() => of()), + })); + vi.mock('~/client/services/clientServices', () => ({ + sendSecretClientContractQuery$: vi.fn(() => of()), + })); +}); +afterAll(() => { + vi.clearAllMocks(); +}); +test('it can parse the price response', () => { + expect(parsePriceFromContract(priceResponse)).toStrictEqual({ + oracleKey: 'BTC', + rate: BigNumber('27917.2071556'), + lastUpdatedBase: 1696644063, + lastUpdatedQuote: 18446744073709552000, + }); +}); +test('it can parse the prices response', () => { + const parsedOutput = { + BTC: { + oracleKey: 'BTC', + rate: BigNumber('27917.2071556'), + lastUpdatedBase: 1696644063, + lastUpdatedQuote: 18446744073709552000, + }, + ETH: { + oracleKey: 'ETH', + rate: BigNumber('1644.0836829'), + lastUpdatedBase: 1696644063, + lastUpdatedQuote: 18446744073709552000, + }, + }; + expect(parsePricesFromContract(pricesResponse)).toStrictEqual(parsedOutput); +}); diff --git a/src/errors/index.js b/src/errors/index.js new file mode 100644 index 0000000..0354885 --- /dev/null +++ b/src/errors/index.js @@ -0,0 +1,15 @@ +/** + * Parse contract query responses to determine if an error has occured + */ +function identifyQueryResponseErrors(response) { + if (typeof response === 'string' + && (response.includes('error') || response.includes('Error'))) { + throw new Error(response); + } + if (typeof response === 'object' + && 'includes' in response + && response.includes('parse_err')) { + throw new Error(response); + } +} +export { identifyQueryResponseErrors, }; diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..d4f6ac7 --- /dev/null +++ b/src/index.js @@ -0,0 +1,2 @@ +import { getSecretNetworkClient$, getActiveQueryClient$ } from '~/client'; +export { getSecretNetworkClient$, getActiveQueryClient$, }; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..22fb723 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,6 @@ +import { getSecretNetworkClient$, getActiveQueryClient$ } from '~/client'; + +export { + getSecretNetworkClient$, + getActiveQueryClient$, +}; diff --git a/src/lib/utils.js b/src/lib/utils.js new file mode 100644 index 0000000..5ccc155 --- /dev/null +++ b/src/lib/utils.js @@ -0,0 +1,19 @@ +import BigNumber from 'bignumber.js'; +/** + * Convert from uDenom to the human readable equivalent as BigNumber type + */ +const convertCoinFromUDenom = (amount, decimals) => { + BigNumber.config({ DECIMAL_PLACES: 18 }); + return BigNumber(amount).dividedBy(BigNumber(10).pow(decimals)); +}; +/** + * Convert BigNumber to the uDenom string type + */ +const convertCoinToUDenom = (amount, decimals) => { + BigNumber.config({ DECIMAL_PLACES: 18 }); + if (typeof amount === 'string' || typeof amount === 'number') { + return BigNumber(amount).multipliedBy(BigNumber(10).pow(decimals)).toFixed(0); + } + return amount.multipliedBy(BigNumber(10).pow(decimals)).toFixed(0); +}; +export { convertCoinToUDenom, convertCoinFromUDenom, }; diff --git a/src/lib/utils.test.js b/src/lib/utils.test.js new file mode 100644 index 0000000..abbb0f5 --- /dev/null +++ b/src/lib/utils.test.js @@ -0,0 +1,21 @@ +import { test, expect, } from 'vitest'; +import { BigNumber } from 'bignumber.js'; +import { convertCoinFromUDenom, convertCoinToUDenom, } from './utils'; +test('It converts token from U denom V2', () => { + expect(convertCoinFromUDenom(1000, 2)).toStrictEqual(BigNumber(10)); + expect(convertCoinFromUDenom('1000', 2)).toStrictEqual(BigNumber(10)); + expect(convertCoinFromUDenom('1000000000000000000000000000', 2)).toStrictEqual(BigNumber('10000000000000000000000000')); + expect(convertCoinFromUDenom(1e100, 2)).toStrictEqual(BigNumber(1e98)); + expect(convertCoinFromUDenom('1e100', 2)).toStrictEqual(BigNumber(1e98)); + expect(convertCoinFromUDenom('100000000000000000000005555.123456789123456789', 2)).toStrictEqual(BigNumber('1000000000000000000000055.551234567891234568')); + expect(convertCoinFromUDenom('987654321987654321987654321', 18)).toStrictEqual(BigNumber('987654321.987654321987654321')); +}); +test('It converts token to U denom V2', () => { + const testBigNumber1 = BigNumber(1000); + expect(convertCoinToUDenom(testBigNumber1, 2)).toBe('100000'); + const testBigNumber2 = BigNumber('0.123456789123456789'); + expect(convertCoinToUDenom(testBigNumber2, 18)).toBe('123456789123456789'); + const testBigNumber3 = BigNumber('123456789123456789.123456789123456789'); + expect(convertCoinToUDenom(testBigNumber3, 18)).toBe('123456789123456789123456789123456789'); + expect(convertCoinToUDenom('1111.123456789101213141', 18)).toBe('1111123456789101213141'); +}); diff --git a/src/types/client.js b/src/types/client.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/types/client.js @@ -0,0 +1 @@ +export {}; diff --git a/src/types/contracts/oracle.js b/src/types/contracts/oracle.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/types/contracts/oracle.js @@ -0,0 +1 @@ +export {}; diff --git a/src/types/wallet.js b/src/types/wallet.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/types/wallet.js @@ -0,0 +1 @@ +export {}; diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..f89893a --- /dev/null +++ b/vite.config.js @@ -0,0 +1,27 @@ +import { defineConfig } from 'vite'; +import path from 'path'; +import dts from 'vite-plugin-dts'; +// https://vitejs.dev/config/ +export default defineConfig({ + // @ts-ignore + // vitest configs + test: { + globals: true, + }, + resolve: { + alias: { + '~': `${path.resolve(__dirname, 'src')}`, + }, + }, + build: { + manifest: true, + minify: true, + reportCompressedSize: true, + lib: { + entry: path.resolve(__dirname, 'src/index.ts'), + name: 'my-lib', + fileName: 'my-lib', + }, + }, + plugins: [dts()], +}); diff --git a/vite.config.ts b/vite.config.ts index c01bac2..9b068d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,7 @@ import { defineConfig } from 'vite'; import path from 'path'; +// eslint-disable-next-line import/no-extraneous-dependencies +import dts from 'vite-plugin-dts'; // https://vitejs.dev/config/ export default defineConfig({ @@ -15,4 +17,16 @@ export default defineConfig({ '~': `${path.resolve(__dirname, 'src')}`, }, }, + + build: { + manifest: true, + minify: true, + reportCompressedSize: true, + lib: { + entry: path.resolve(__dirname, 'src/index.ts'), + name: 'my-lib', + fileName: 'my-lib', + }, + }, + plugins: [dts()], }); diff --git a/yarn.lock b/yarn.lock index b8a5b36..5e4f346 100644 --- a/yarn.lock +++ b/yarn.lock @@ -34,6 +34,11 @@ chalk "^2.4.2" js-tokens "^4.0.0" +"@babel/parser@^7.21.3": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.0.tgz#da950e622420bf96ca0d0f2909cdddac3acd8719" + integrity sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw== + "@babel/runtime@^7.18.3": version "7.23.1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.1.tgz#72741dc4d413338a91dcb044a86f3c0bc402646d" @@ -411,6 +416,48 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@microsoft/api-extractor-model@7.28.2": + version "7.28.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.28.2.tgz#91c66dd820ccc70e0c163e06b392d8363f1b9269" + integrity sha512-vkojrM2fo3q4n4oPh4uUZdjJ2DxQ2+RnDQL/xhTWSRUNPF6P4QyrvY357HBxbnltKcYu+nNNolVqc6TIGQ73Ig== + dependencies: + "@microsoft/tsdoc" "0.14.2" + "@microsoft/tsdoc-config" "~0.16.1" + "@rushstack/node-core-library" "3.61.0" + +"@microsoft/api-extractor@^7.36.4": + version "7.38.0" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.38.0.tgz#e72546d6766b3866578a462b040f71b17779e1c5" + integrity sha512-e1LhZYnfw+JEebuY2bzhw0imDCl1nwjSThTrQqBXl40hrVo6xm3j/1EpUr89QyzgjqmAwek2ZkIVZbrhaR+cqg== + dependencies: + "@microsoft/api-extractor-model" "7.28.2" + "@microsoft/tsdoc" "0.14.2" + "@microsoft/tsdoc-config" "~0.16.1" + "@rushstack/node-core-library" "3.61.0" + "@rushstack/rig-package" "0.5.1" + "@rushstack/ts-command-line" "4.16.1" + colors "~1.2.1" + lodash "~4.17.15" + resolve "~1.22.1" + semver "~7.5.4" + source-map "~0.6.1" + typescript "~5.0.4" + +"@microsoft/tsdoc-config@~0.16.1": + version "0.16.2" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz#b786bb4ead00d54f53839a458ce626c8548d3adf" + integrity sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw== + dependencies: + "@microsoft/tsdoc" "0.14.2" + ajv "~6.12.6" + jju "~1.4.0" + resolve "~1.19.0" + +"@microsoft/tsdoc@0.14.2": + version "0.14.2" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz#c3ec604a0b54b9a9b87e9735dfc59e1a5da6a5fb" + integrity sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug== + "@noble/hashes@1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.0.0.tgz#d5e38bfbdaba174805a4e649f13be9a9ed3351ae" @@ -504,6 +551,46 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== +"@rollup/pluginutils@^5.0.2": + version "5.0.5" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz#bbb4c175e19ebfeeb8c132c2eea0ecb89941a66c" + integrity sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q== + dependencies: + "@types/estree" "^1.0.0" + estree-walker "^2.0.2" + picomatch "^2.3.1" + +"@rushstack/node-core-library@3.61.0": + version "3.61.0" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.61.0.tgz#7441a0d2ae5268b758a7a49588a78cd55af57e66" + integrity sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ== + dependencies: + colors "~1.2.1" + fs-extra "~7.0.1" + import-lazy "~4.0.0" + jju "~1.4.0" + resolve "~1.22.1" + semver "~7.5.4" + z-schema "~5.0.2" + +"@rushstack/rig-package@0.5.1": + version "0.5.1" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.5.1.tgz#6c9c283cc96b5bb1eae9875946d974ac5429bb21" + integrity sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA== + dependencies: + resolve "~1.22.1" + strip-json-comments "~3.1.1" + +"@rushstack/ts-command-line@4.16.1": + version "4.16.1" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.16.1.tgz#3537bbc323f77c8646646465c579b992d39feb16" + integrity sha512-+OCsD553GYVLEmz12yiFjMOzuPeCiZ3f8wTiFHL30ZVXexTyPmgjwXEhg2K2P0a2lVf+8YBy7WtPoflB2Fp8/A== + dependencies: + "@types/argparse" "1.0.38" + argparse "~1.0.9" + colors "~1.2.1" + string-argv "~0.3.1" + "@sinclair/typebox@^0.27.8": version "0.27.8" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" @@ -529,6 +616,11 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== +"@types/argparse@1.0.38": + version "1.0.38" + resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.38.tgz#a81fd8606d481f873a3800c6ebae4f1d768a56a9" + integrity sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA== + "@types/chai-subset@^1.3.3": version "1.3.3" resolved "https://registry.yarnpkg.com/@types/chai-subset/-/chai-subset-1.3.3.tgz#97893814e92abd2c534de422cb377e0e0bdaac94" @@ -541,6 +633,11 @@ resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.6.tgz#7b489e8baf393d5dd1266fb203ddd4ea941259e6" integrity sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw== +"@types/estree@^1.0.0": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.2.tgz#ff02bc3dc8317cd668dfec247b750ba1f1d62453" + integrity sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA== + "@types/json-schema@^7.0.12": version "7.0.13" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.13.tgz#02c24f4363176d2d18fc8b70b9f3c54aba178a85" @@ -719,6 +816,79 @@ loupe "^2.3.6" pretty-format "^29.5.0" +"@volar/language-core@1.10.3", "@volar/language-core@~1.10.3": + version "1.10.3" + resolved "https://registry.yarnpkg.com/@volar/language-core/-/language-core-1.10.3.tgz#a345b43c112279e5b2f0a37d96735b848c653a55" + integrity sha512-7Qgwu9bWUHN+cLrOkCbIVBkL+RVPREhvY07wY89dGxi4mY9mQCsUVRRp64F61lX7Nc27meMnvy0sWlzY0x6oQQ== + dependencies: + "@volar/source-map" "1.10.3" + +"@volar/source-map@1.10.3", "@volar/source-map@~1.10.3": + version "1.10.3" + resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-1.10.3.tgz#3730ca1f238b8c80d0f6da48117ac537cda4f316" + integrity sha512-QE9nwK3xsdBQGongHnC9SCR0itx7xUKQFsUDn5HbZY3pHpyXxdY1hSBG0eh9mE+aTKoM4KlqMvrb+19Tv9vS1Q== + dependencies: + muggle-string "^0.3.1" + +"@volar/typescript@~1.10.3": + version "1.10.3" + resolved "https://registry.yarnpkg.com/@volar/typescript/-/typescript-1.10.3.tgz#5e95d277e83bef3fc5f7df429c20a959391d2ce4" + integrity sha512-n0ar6xGYpRoSvgGMetm/JXP0QAXx+NOUvxCaWCfCjiFivQRSLJeydYDijhoGBUl5KSKosqq9In5L3e/m2TqTcQ== + dependencies: + "@volar/language-core" "1.10.3" + +"@vue/compiler-core@3.3.4": + version "3.3.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz#7fbf591c1c19e1acd28ffd284526e98b4f581128" + integrity sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g== + dependencies: + "@babel/parser" "^7.21.3" + "@vue/shared" "3.3.4" + estree-walker "^2.0.2" + source-map-js "^1.0.2" + +"@vue/compiler-dom@^3.3.0": + version "3.3.4" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz#f56e09b5f4d7dc350f981784de9713d823341151" + integrity sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w== + dependencies: + "@vue/compiler-core" "3.3.4" + "@vue/shared" "3.3.4" + +"@vue/language-core@1.8.18", "@vue/language-core@^1.8.8": + version "1.8.18" + resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-1.8.18.tgz#c111da12524bac3b12981786294b1ed5db2bd59f" + integrity sha512-byTi+mwSL7XnVRtfWE3MJy3HQryoVSQ3lymauXviegn3G1wwwlSOUljzQe3w5PyesOnBEIxYoavfKzMJnExrBA== + dependencies: + "@volar/language-core" "~1.10.3" + "@volar/source-map" "~1.10.3" + "@vue/compiler-dom" "^3.3.0" + "@vue/reactivity" "^3.3.0" + "@vue/shared" "^3.3.0" + minimatch "^9.0.3" + muggle-string "^0.3.1" + vue-template-compiler "^2.7.14" + +"@vue/reactivity@^3.3.0": + version "3.3.4" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.3.4.tgz#a27a29c6cd17faba5a0e99fbb86ee951653e2253" + integrity sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ== + dependencies: + "@vue/shared" "3.3.4" + +"@vue/shared@3.3.4", "@vue/shared@^3.3.0": + version "3.3.4" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.4.tgz#06e83c5027f464eef861c329be81454bc8b70780" + integrity sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ== + +"@vue/typescript@1.8.18": + version "1.8.18" + resolved "https://registry.yarnpkg.com/@vue/typescript/-/typescript-1.8.18.tgz#27cf06fc42fefae4254d9fd25297156c54a27e0f" + integrity sha512-3M+lu+DUwJW0fNwd/rLE0FenmELxcC6zxgm/YZ25jSTi+uNGj9L5XvXvf20guC69gQvZ+cg49tTxbepfFVuNNQ== + dependencies: + "@volar/typescript" "~1.10.3" + "@vue/language-core" "1.8.18" + JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -742,7 +912,7 @@ acorn@^8.10.0, acorn@^8.4.1, acorn@^8.9.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== -ajv@^6.12.4: +ajv@^6.12.4, ajv@~6.12.6: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -803,6 +973,13 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +argparse@~1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + array-buffer-byte-length@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" @@ -995,6 +1172,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + braces@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" @@ -1173,6 +1357,16 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +colors@~1.2.1: + version "1.2.5" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.2.5.tgz#89c7ad9a374bc030df8013241f68136ed8835afc" + integrity sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg== + +commander@^10.0.0: + version "10.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== + commitizen@^4.0.3: version "4.3.0" resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.3.0.tgz#0d056c542a2d2b1f9b9aba981aa32575b2849924" @@ -1323,6 +1517,11 @@ dargs@^7.0.0: resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== +de-indent@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" + integrity sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg== + debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" @@ -1732,6 +1931,11 @@ estraverse@^5.1.0, estraverse@^5.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -1906,6 +2110,15 @@ fs-extra@^11.0.0: jsonfile "^6.0.1" universalify "^2.0.0" +fs-extra@~7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" + integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -2078,7 +2291,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -2154,6 +2367,11 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +he@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + hmac-drbg@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -2212,6 +2430,11 @@ import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: parent-module "^1.0.0" resolve-from "^4.0.0" +import-lazy@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" + integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== + imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -2304,7 +2527,7 @@ is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-core-module@^2.11.0, is-core-module@^2.13.0, is-core-module@^2.5.0: +is-core-module@^2.1.0, is-core-module@^2.11.0, is-core-module@^2.13.0, is-core-module@^2.5.0: version "2.13.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" integrity sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ== @@ -2452,6 +2675,11 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +jju@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" + integrity sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA== + js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -2501,6 +2729,13 @@ jsonc-parser@^3.2.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" @@ -2527,6 +2762,11 @@ kind-of@^6.0.3: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +kolorist@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/kolorist/-/kolorist-1.8.0.tgz#edddbbbc7894bc13302cdf740af6374d4a04743c" + integrity sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ== + levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -2564,6 +2804,16 @@ lodash.camelcase@^4.3.0: resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== +lodash.get@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" + integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== + +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== + lodash.isfunction@^3.0.9: version "3.0.9" resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" @@ -2614,7 +2864,7 @@ lodash.upperfirst@^4.3.1: resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg== -lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.21: +lodash@4.17.21, lodash@^4.17.15, lodash@^4.17.21, lodash@~4.17.15: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -2754,6 +3004,13 @@ minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" +minimatch@^9.0.3: + version "9.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" + integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== + dependencies: + brace-expansion "^2.0.1" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" @@ -2798,6 +3055,11 @@ ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== +muggle-string@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/muggle-string/-/muggle-string-0.3.1.tgz#e524312eb1728c63dd0b2ac49e3282e6ed85963a" + integrity sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg== + mute-stream@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" @@ -3037,7 +3299,7 @@ path-key@^3.0.0, path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -path-parse@^1.0.7: +path-parse@^1.0.6, path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -3260,6 +3522,23 @@ resolve@^1.10.0, resolve@^1.22.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +resolve@~1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" + integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== + dependencies: + is-core-module "^2.1.0" + path-parse "^1.0.6" + +resolve@~1.22.1: + version "1.22.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.7.tgz#dcbb776d65d7771f2ee4666e4b89c564b15f20dd" + integrity sha512-YiXAr29s3pviTexp8YEMKtdQDeFxk74jt/w5Viiw7SAVC9McgYD/GVaVyJ18pNCF/VIvzMtsk+zHwJp+YQWCKA== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" @@ -3376,7 +3655,7 @@ secure-random@1.1.2: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== -semver@7.5.4, semver@^7.3.4, semver@^7.5.4: +semver@7.5.4, semver@^7.3.4, semver@^7.5.4, semver@~7.5.4: version "7.5.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== @@ -3446,6 +3725,11 @@ source-map-js@^1.0.2: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== +source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + spdx-correct@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" @@ -3479,6 +3763,11 @@ split2@^3.0.0, split2@^3.2.2: dependencies: readable-stream "^3.0.0" +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + stackback@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/stackback/-/stackback-0.0.2.tgz#1ac8a0d9483848d1695e418b6d031a3c3ce68e3b" @@ -3489,6 +3778,11 @@ std-env@^3.3.3: resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.4.3.tgz#326f11db518db751c83fd58574f449b7c3060910" integrity sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q== +string-argv@~0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== + string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -3561,7 +3855,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@3.1.1, strip-json-comments@^3.1.1: +strip-json-comments@3.1.1, strip-json-comments@^3.1.1, strip-json-comments@~3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -3794,6 +4088,11 @@ typeforce@^1.11.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +typescript@~5.0.4: + version "5.0.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" + integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== + ufo@^1.3.0: version "1.3.1" resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.3.1.tgz#e085842f4627c41d4c1b60ebea1f75cdab4ce86b" @@ -3809,6 +4108,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" @@ -3839,6 +4143,11 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +validator@^13.7.0: + version "13.11.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-13.11.0.tgz#23ab3fd59290c61248364eabf4067f04955fbb1b" + integrity sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ== + vite-node@0.34.6: version "0.34.6" resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-0.34.6.tgz#34d19795de1498562bf21541a58edcd106328a17" @@ -3851,6 +4160,18 @@ vite-node@0.34.6: picocolors "^1.0.0" vite "^3.0.0 || ^4.0.0 || ^5.0.0-0" +vite-plugin-dts@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/vite-plugin-dts/-/vite-plugin-dts-3.6.0.tgz#8d1052e93ae4efef1b0860e44411570a58c77517" + integrity sha512-doxhDRFJCZD2sGjIp4V800nm8Y19GvmwckjG5vYPuiqJ7OBjc9NlW1Vp9Gkyh2aXlUs1jTDRH/lxWfcsPLOQHg== + dependencies: + "@microsoft/api-extractor" "^7.36.4" + "@rollup/pluginutils" "^5.0.2" + "@vue/language-core" "^1.8.8" + debug "^4.3.4" + kolorist "^1.8.0" + vue-tsc "^1.8.8" + "vite@^3.0.0 || ^4.0.0 || ^5.0.0-0", "vite@^3.1.0 || ^4.0.0 || ^5.0.0-0", vite@^4.4.11: version "4.4.11" resolved "https://registry.yarnpkg.com/vite/-/vite-4.4.11.tgz#babdb055b08c69cfc4c468072a2e6c9ca62102b0" @@ -3892,6 +4213,23 @@ vitest@^0.34.6: vite-node "0.34.6" why-is-node-running "^2.2.2" +vue-template-compiler@^2.7.14: + version "2.7.14" + resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz#4545b7dfb88090744c1577ae5ac3f964e61634b1" + integrity sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ== + dependencies: + de-indent "^1.0.2" + he "^1.2.0" + +vue-tsc@^1.8.8: + version "1.8.18" + resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-1.8.18.tgz#9f92df899932c6bcee55284e4e781d35163f0816" + integrity sha512-AwQxBB9SZX308TLL1932P1JByuMsXC2jLfRBGt8SBdm1e3cXkDlFaXUAqibfKnoQ1ZC2zO2NSbeBNdSjOcdvJw== + dependencies: + "@vue/language-core" "1.8.18" + "@vue/typescript" "1.8.18" + semver "^7.5.4" + wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" @@ -4029,3 +4367,14 @@ yocto-queue@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251" integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g== + +z-schema@~5.0.2: + version "5.0.6" + resolved "https://registry.yarnpkg.com/z-schema/-/z-schema-5.0.6.tgz#46d6a687b15e4a4369e18d6cb1c7b8618fc256c5" + integrity sha512-+XR1GhnWklYdfr8YaZv/iu+vY+ux7V5DS5zH1DQf6bO5ufrt/5cgNhVO5qyhsjFXvsqQb/f08DWE9b6uPscyAg== + dependencies: + lodash.get "^4.4.2" + lodash.isequal "^4.5.0" + validator "^13.7.0" + optionalDependencies: + commander "^10.0.0"