1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[271],{76063:function(t,_,r){r.a(t,async function(t,e){try{r.d(_,{$Li:function(){return tq},$bh:function(){return rz},$iM:function(){return rr},Auk:function(){return _M},BF4:function(){return tF},BGu:function(){return _D},BOd:function(){return tJ},BPY:function(){return H},CHg:function(){return _N},CK6:function(){return tp},CQk:function(){return _K},CdS:function(){return _$},Cht:function(){return rj},DTE:function(){return L},De1:function(){return rf},EZy:function(){return tN},FKp:function(){return V},FWS:function(){return r_},FhJ:function(){return rR},FmR:function(){return _4},FvJ:function(){return _B},FwH:function(){return U},G3t:function(){return A},G6U:function(){return t_},HU:function(){return rA},IAw:function(){return _1},IGn:function(){return tG},IIB:function(){return _9},Isi:function(){return ri},J3G:function(){return ra},JCg:function(){return tS},JPj:function(){return t8},K9_:function(){return rm},KMw:function(){return K},L4J:function(){return rg},LWO:function(){return _f},Ll8:function(){return tu},M19:function(){return q},M25:function(){return tn},MGG:function(){return _q},Mki:function(){return tE},MzA:function(){return ta},Niw:function(){return tK},NxA:function(){return t6},OPA:function(){return tO},ObC:function(){return Q},Or8:function(){return _u},Oyx:function(){return _T},PYp:function(){return _F},Pje:function(){return _H},Q8F:function(){return _3},QDl:function(){return _L},QFj:function(){return t3},QTt:function(){return _G},RpJ:function(){return rS},Sne:function(){return tW},TDG:function(){return tb},TYV:function(){return _t},T_0:function(){return tz},U4x:function(){return tH},UAp:function(){return t7},VDL:function(){return t1},Vi_:function(){return _7},WUB:function(){return rh},WfA:function(){return _6},WlW:function(){return tv},X$V:function(){return tI},X0x:function(){return z},XGH:function(){return t5},XP4:function(){return J},XV3:function(){return ty},Y1u:function(){return _c},YW8:function(){return rx},Yqf:function(){return _V},Z7p:function(){return R},ZP$:function(){return _l},ZVz:function(){return tf},_Fl:function(){return t2},_hC:function(){return tY},a2t:function(){return Z},a_l:function(){return _0},b3b:function(){return tX},bOJ:function(){return _d},bjU:function(){return _i},bk9:function(){return _5},bu0:function(){return td},bwy:function(){return te},d38:function(){return tV},dIs:function(){return tk},dhe:function(){return _8},dp:function(){return tA},dtM:function(){return rk},du1:function(){return tc},eDy:function(){return _g},eRX:function(){return re},eYF:function(){return B},ejS:function(){return tx},esn:function(){return th},ewN:function(){return tZ},fIt:function(){return ru},fP1:function(){return _o},fWE:function(){return D},fYP:function(){return _p},gJr:function(){return rs},gUU:function(){return tU},gWb:function(){return tP},ghC:function(){return tg},gpB:function(){return tQ},gpH:function(){return _I},h4u:function(){return C},hHq:function(){return ts},hdV:function(){return X},iWn:function(){return to},iX:function(){return tt},ibT:function(){return _e},itY:function(){return tm},jpb:function(){return t9},jrp:function(){return W},kHX:function(){return _n},kLt:function(){return _P},kq2:function(){return rt},lBI:function(){return __},lcn:function(){return rO},ljA:function(){return _b},mTr:function(){return _Z},mUX:function(){return _Y},mYd:function(){return ro},m_1:function(){return $},nZy:function(){return rw},nex:function(){return O},nk0:function(){return rv},ntD:function(){return _2},o$X:function(){return tC},oGs:function(){return ti},oHO:function(){return _w},oM5:function(){return _r},oOB:function(){return E},og3:function(){return rp},ohy:function(){return t0},p77:function(){return Y},pRG:function(){return rl},pT7:function(){return G},phz:function(){return _U},qXR:function(){return tB},qtq:function(){return M},s8W:function(){return ry},sT0:function(){return S},sr$:function(){return _J},sxY:function(){return _a},tSb:function(){return rn},tU0:function(){return F},tid:function(){return _C},uAF:function(){return tr},uB_:function(){return tM},u_o:function(){return rb},ug$:function(){return I},vTn:function(){return t4},vrg:function(){return N},w5x:function(){return rE},wJ_:function(){return tD},wUR:function(){return T},wjD:function(){return tl},wkz:function(){return _s},wmi:function(){return tR},x5i:function(){return _X},xn3:function(){return tj},y6s:function(){return _W},yBo:function(){return t$},yPO:function(){return tT},yTB:function(){return rc},yhq:function(){return _Q},zFw:function(){return rd},zRk:function(){return tw},zew:function(){return j},zmq:function(){return tL}});var n=r(32268),i=t([n]);n=(i.then?(await i)():i)[0];let _y=Array(32).fill(void 0);_y.push(void 0,null,!0,!1);let _h=_y.length;function o(t){let _=_y[t];return t<36||(_y[t]=_h,_h=t),_}let _k="undefined"==typeof TextDecoder?(0,module.require)("util").TextDecoder:TextDecoder,_m=new _k("utf-8",{ignoreBOM:!0,fatal:!0});_m.decode();let _v=new Uint8Array;function a(){return 0===_v.byteLength&&(_v=new Uint8Array(n.memory.buffer)),_v}function s(t,_){return _m.decode(a().subarray(t,t+_))}function d(t){_h===_y.length&&_y.push(_y.length+1);let _=_h;return _h=_y[_],_y[_]=t,_}let _x=0,_j="undefined"==typeof TextEncoder?(0,module.require)("util").TextEncoder:TextEncoder,_O=new _j("utf-8"),_R="function"==typeof _O.encodeInto?function(t,_){return _O.encodeInto(t,_)}:function(t,_){let r=_O.encode(t);return _.set(r),{read:t.length,written:r.length}};function l(t,_,r){if(void 0===r){let r=_O.encode(t),e=_(r.length);return a().subarray(e,e+r.length).set(r),_x=r.length,e}let e=t.length,n=_(e),i=a(),o=0;for(;o<e;o++){let _=t.charCodeAt(o);if(_>127)break;i[n+o]=_}if(o!==e){0!==o&&(t=t.slice(o)),n=r(n,e,e=o+3*t.length);let _=a().subarray(n+o,n+e),i=_R(t,_);o+=i.written}return _x=o,n}let _S=new Int32Array;function c(){return 0===_S.byteLength&&(_S=new Int32Array(n.memory.buffer)),_S}let _z=new Float64Array;function p(t,_){n._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7d3cc7fc64b21bcd(t,_)}function u(t,_,r,e){let i={a:t,b:_,cnt:1,dtor:r},o=(...t)=>{i.cnt++;let _=i.a;i.a=0;try{return e(_,i.b,...t)}finally{0==--i.cnt?n.__wbindgen_export_2.get(i.dtor)(_,i.b):i.a=_}};return o.original=i,o}function w(t,_){n._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5df2ffca667fde12(t,_)}function f(t,_,r){n._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hef01a3ad99e8a99e(t,_,d(r))}function b(t,_){if(!(t instanceof _))throw Error(`expected instance of ${_.name}`);return t.ptr}function g(t,_){let r=_(1*t.length);return a().set(t,r/1),_x=t.length,r}function y(t,_){return a().subarray(t/1,t/1+_)}let _A=new Uint32Array;
1function h(){return 0===_A.byteLength&&(_A=new Uint32Array(n.memory.buffer)),_A}function k(t,_){let r=_(4*t.length);return h().set(t,r/4),_x=t.length,r}function m(t,_){let r=_(4*t.length),e=h();for(let _=0;_<t.length;_++)e[r/4+_]=d(t[_]);return _x=t.length,r}function v(t,_){let r=h(),e=r.subarray(t/4,t/4+_),n=[];for(let t=0;t<e.length;t++)n.push(o(e[t]));return n}let _E=32;function x(t){if(1==_E)throw Error("out of js stack");return _y[--_E]=t,_E}function j(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16);b(t,_P);let s=g(_,n.__wbindgen_malloc),d=_x,l=g(r,n.__wbindgen_malloc),p=_x;n.verify_signature(a,t.ptr,s,d,l,p);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return 0!==e}finally{n.__wbindgen_add_to_stack_pointer(16)}}function O(t){let _=m(t,n.__wbindgen_malloc),r=_x,e=n.array_as_tuple(_,r);return o(e)}function R(t,_,r,e,i,a){try{let w=n.__wbindgen_add_to_stack_pointer(-16);b(t,rx);var s=t.ptr;t.ptr=0,b(_,_0),b(r,_6),b(e,_6),b(i,ru);var d=i.ptr;i.ptr=0,b(a,ru);var l=a.ptr;a.ptr=0,n.extract_hints(w,s,_.ptr,r.ptr,e.ptr,d,l);var p=c()[w/4+0],u=c()[w/4+1];if(c()[w/4+2])throw o(u);return rj.__wrap(p)}finally{n.__wbindgen_add_to_stack_pointer(16)}}function S(t){try{let a=n.__wbindgen_add_to_stack_pointer(-16),s=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),d=_x;n.base16_decode(a,s,d);var _=c()[a/4+0],r=c()[a/4+1],e=c()[a/4+2];if(c()[a/4+3])throw o(e);var i=y(_,r).slice();return n.__wbindgen_free(_,1*r),i}finally{n.__wbindgen_add_to_stack_pointer(16)}}function z(t){b(t,rs);let _=n.get_info(t.ptr);return o(_)}function A(t,_){b(t,rs),b(_,_B);let r=n.get_header(t.ptr,_.ptr);return o(r)}function E(t,_,r,e){b(t,rs),b(e,_B);let i=n.get_nipopow_proof_by_header_id(t.ptr,_,r,e.ptr);return o(i)}function T(t,_,r){b(t,rs),b(_,_B),b(r,rR);let e=n.get_blocks_header_id_proof_for_tx_id(t.ptr,_.ptr,r.ptr);return o(e)}function F(t,_,r,e){let i=m(t,n.__wbindgen_malloc),a=_x,s=n.peer_discovery(i,a,_,r,e);return o(s)}function U(t,_,r){b(t,_q);let e=n.incremental_peer_discovery_chrome(t.ptr,_,r);return o(e)}function P(t,_){try{return t.apply(this,_)}catch(t){n.__wbindgen_exn_store(d(t))}}let _T=Object.freeze({R4:4,4:"R4",R5:5,5:"R5",R6:6,6:"R6",R7:7,7:"R7",R8:8,8:"R8",R9:9,9:"R9"}),_F=Object.freeze({Mainnet:0,0:"Mainnet",Testnet:16,16:"Testnet"}),_U=Object.freeze({P2Pk:1,1:"P2Pk",Pay2Sh:2,2:"Pay2Sh",Pay2S:3,3:"Pay2S"});class _P{static __wrap(t){let _=Object.create(_P.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_address_free(t)}static recreate_from_ergo_tree(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,_2),n.address_recreate_from_ergo_tree(e,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static p2pk_from_pk_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.address_p2pk_from_pk_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_testnet_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.address_from_testnet_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_mainnet_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.address_from_mainnet_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.address_from_base58(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_base58(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.address_to_base58(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];return s(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(_,r)}}static from_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.address_from_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_bytes(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.address_to_bytes(i,this.ptr,t);var _=c()[i/4+0],r=c()[i/4+1],e=y(_,r).slice();return n.__wbindgen_free(_,1*r),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}content_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.address_content_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}
1address_type_prefix(){let t=n.address_address_type_prefix(this.ptr);return t>>>0}static from_public_key(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.address_from_public_key(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _P.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_ergo_tree(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.address_to_ergo_tree(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _2.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _I{static __wrap(t){let _=Object.create(_I.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_batchmerkleproof_free(t)}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.batchmerkleproof_from_json(e,x(t));var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _I.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16),_y[_E++]=void 0}}to_json(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.batchmerkleproof_to_json(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}valid(t){let _=g(t,n.__wbindgen_malloc),r=_x,e=n.batchmerkleproof_valid(this.ptr,_,r);return 0!==e}}class _C{static __wrap(t){let _=Object.create(_C.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_blockheader_free(t)}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.blockheader_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _C.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}id(){let t=n.blockheader_id(this.ptr);return _B.__wrap(t)}transactions_root(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.blockheader_transactions_root(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _G{static __wrap(t){let _=Object.create(_G.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_blockheaders_free(t)}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=m(t,n.__wbindgen_malloc),a=_x;n.blockheaders_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _G.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}constructor(t){b(t,_C);let _=n.blockheaders_new(t.ptr);return _G.__wrap(_)}len(){let t=n.blockheaders_len(this.ptr);return t>>>0}add(t){b(t,_C),n.blockheaders_add(this.ptr,t.ptr)}get(t){let _=n.blockheaders_get(this.ptr,t);return _C.__wrap(_)}}class _B{static __wrap(t){let _=Object.create(_B.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_blockid_free(t)}static from_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.blockid_from_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _B.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}equals(t){b(t,_B);let _=n.blockid_equals(this.ptr,t.ptr);return 0!==_}}class _M{static __wrap(t){let _=Object.create(_M.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_boxid_free(t)}static from_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.boxid_from_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _M.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.boxid_to_str(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}as_bytes(){let t=n.boxid_as_bytes(this.ptr);return o(t)}}class _${static __wrap(t){let _=Object.create(_$.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_boxselection_free(t)}constructor(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_6),b(_,_Z),n.boxselection_new(i,t.ptr,_.ptr);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _$.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}boxes(){let t=n.boxselection_boxes(this.ptr);return _6.__wrap(t)}change(){let t=n.boxselection_change(this.ptr);return _Z.__wrap(t)}}class _W{static __wrap(t){let _=Object.create(_W.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_boxvalue_free(t)}static SAFE_USER_MIN(){let t=n.boxvalue_SAFE_USER_MIN();return _W.__wrap(t)}static UNITS_PER_ERGO(){let t=n.boxvalue_UNITS_PER_ERGO();return _7.__wrap(t)}static from_i64(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,_7),n.boxvalue_from_i64(e,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _W.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}as_i64(){let t=n.boxvalue_as_i64(this.ptr);return _7.__wrap(t)}to_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.boxvalue_to_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _q{static __wrap(t){let _=Object.create(_q.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_chromepeerdiscoveryscan_free(t)}constructor(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=m(t,n.__wbindgen_malloc),a=_x;n.chromepeerdiscoveryscan_new(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _q.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}active_peers(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.chromepeerdiscoveryscan_active_peers(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return rl.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _D{static __wrap(t){let _=Object.create(_D.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_commitmenthint_free(t)}}class _J{static __wrap(t){let _=Object.create(_J.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_constant_free(t)}dbg_tpe(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_dbg_tpe(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}dbg_inner(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_dbg_inner(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}static decode_from_base16(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.constant_decode_from_base16(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}encode_to_base16(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.constant_encode_to_base16(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_i32(t){let _=n.constant_from_i32(t);return _J.__wrap(_)}to_i32(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_i32(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return t}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_i64(t){b(t,_7);let _=n.constant_from_i64(t.ptr);return _J.__wrap(_)}to_i64(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_i64(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _7.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_bigint_signed_bytes_be(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.constant_from_bigint_signed_bytes_be(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_byte_array(t){let _=g(t,n.__wbindgen_malloc),r=_x,e=n.constant_from_byte_array(_,r);return _J.__wrap(e)}to_byte_array(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_byte_array(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_i32_array(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=k(t,n.__wbindgen_malloc),a=_x;n.constant_from_i32_array(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_i32_array(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_i32_array(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=c().subarray(t/4,t/4+_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_i64_str_array(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=m(t,n.__wbindgen_malloc),a=_x;n.constant_from_i64_str_array(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_i64_str_array(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_i64_str_array(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=v(t,_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_coll_coll_byte(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_coll_coll_byte(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=v(t,_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_coll_coll_byte(t){let _=m(t,n.__wbindgen_malloc),r=_x,e=n.constant_from_coll_coll_byte(_,r);return _J.__wrap(e)}static from_ecpoint_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.constant_from_ecpoint_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_ecpoint_bytes_group_element(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.constant_from_ecpoint_bytes_group_element(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_tuple_coll_bytes(t,_){let r=g(t,n.__wbindgen_malloc),e=_x,i=g(_,n.__wbindgen_malloc),o=_x,a=n.constant_from_tuple_coll_bytes(r,e,i,o);return _J.__wrap(a)}to_tuple_coll_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_tuple_coll_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=v(t,_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_tuple_i32(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_tuple_i32(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=v(t,_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_tuple_i64(t,_){b(t,_7),b(_,_7);let r=n.constant_from_tuple_i64(t.ptr,_.ptr);return _J.__wrap(r)}to_tuple_i64(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_tuple_i64(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=v(t,_).slice();return n.__wbindgen_free(t,4*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_ergo_box(t){b(t,_V);let _=n.constant_from_ergo_box(t.ptr);return _J.__wrap(_)}to_ergo_box(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_ergo_box(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _V.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static unit(){let t=n.constant_unit();return _J.__wrap(t)}is_unit(){let t=n.constant_is_unit(this.ptr);return 0!==t}static from_js(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.constant_from_js(e,x(t));var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16),_y[_E++]=void 0}}to_js(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.constant_to_js(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _X{static __wrap(t){let _=Object.create(_X.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_contextextension_free(t)}constructor(){let t=n.contextextension_new();return _X.__wrap(t)}
1set_pair(t,_){b(_,_J),n.contextextension_set_pair(this.ptr,t,_.ptr)}len(){let t=n.contextextension_len(this.ptr);return t>>>0}get(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.contextextension_get(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}keys(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.contextextension_keys(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.contextextension_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _N{static __wrap(t){let _=Object.create(_N.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_contract_free(t)}static new(t){b(t,_2);var _=t.ptr;t.ptr=0;let r=n.contract_new(_);return _N.__wrap(r)}static pay_to_address(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,_P),n.contract_pay_to_address(e,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _N.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}ergo_tree(){let t=n.contract_ergo_tree(this.ptr);return _2.__wrap(t)}}class _L{static __wrap(t){let _=Object.create(_L.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_datainput_free(t)}constructor(t){b(t,_M);var _=t.ptr;t.ptr=0;let r=n.datainput_new(_);return _L.__wrap(r)}box_id(){let t=n.datainput_box_id(this.ptr);return _M.__wrap(t)}}class _Y{static __wrap(t){let _=Object.create(_Y.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_datainputs_free(t)}constructor(){let t=n.datainputs_new();return _Y.__wrap(t)}len(){let t=n.datainputs_len(this.ptr);return t>>>0}get(t){let _=n.datainputs_get(this.ptr,t);return _L.__wrap(_)}add(t){b(t,_L),n.datainputs_add(this.ptr,t.ptr)}}class _H{static __wrap(t){let _=Object.create(_H.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_derivationpath_free(t)}static new(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=k(_,n.__wbindgen_malloc),s=_x;n.derivationpath_new(i,t,a,s);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _H.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static master_path(){let t=n.derivationpath_master_path();return _H.__wrap(t)}depth(){let t=n.derivationpath_depth(this.ptr);return t>>>0}next(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.derivationpath_next(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _H.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}toString(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.derivationpath_toString(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}static from_string(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.derivationpath_from_string(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _H.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}ledger_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.derivationpath_ledger_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _V{static __wrap(t){let _=Object.create(_V.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergobox_free(t)}constructor(t,_,r,e,i,a){try{let l=n.__wbindgen_add_to_stack_pointer(-16);b(t,_W),b(r,_N),b(e,rR),b(a,rv),n.ergobox_new(l,t.ptr,_,r.ptr,e.ptr,i,a.ptr);var s=c()[l/4+0],d=c()[l/4+1];if(c()[l/4+2])throw o(d);return _V.__wrap(s)}finally{n.__wbindgen_add_to_stack_pointer(16)}}box_id(){let t=n.ergobox_box_id(this.ptr);return _M.__wrap(t)}tx_id(){let t=n.ergobox_tx_id(this.ptr);return rR.__wrap(t)}index(){let t=n.ergobox_index(this.ptr);return t}creation_height(){let t=n.ergobox_creation_height(this.ptr);return t>>>0}tokens(){let t=n.ergobox_tokens(this.ptr);return rv.__wrap(t)}ergo_tree(){let t=n.ergobox_ergo_tree(this.ptr);return _2.__wrap(t)}value(){let t=n.ergobox_value(this.ptr);return _W.__wrap(t)}register_value(t){let _=n.ergobox_register_value(this.ptr,t);return 0===_?void 0:_J.__wrap(_)}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.ergobox_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}to_js_eip12(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.ergobox_to_js_eip12(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.ergobox_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _V.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}serialized_additional_registers(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.ergobox_serialized_additional_registers(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.ergobox_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static sigma_parse_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.ergobox_sigma_parse_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _V.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_box_candidate(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16);b(t,_K),b(_,rR),n.ergobox_from_box_candidate(a,t.ptr,_.ptr,r);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return _V.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _Q{static __wrap(t){let _=Object.create(_Q.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxassetsdata_free(t)}constructor(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_W),b(_,rv),n.ergoboxassetsdata_new(i,t.ptr,_.ptr);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _Q.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}value(){let t=n.ergoboxassetsdata_value(this.ptr);return _W.__wrap(t)}tokens(){let t=n.ergoboxassetsdata_tokens(this.ptr);return rv.__wrap(t)}}class _Z{static __wrap(t){let _=Object.create(_Z.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxassetsdatalist_free(t)}constructor(){let t=n.ergoboxassetsdatalist_new();return _Z.__wrap(t)}len(){let t=n.ergoboxassetsdatalist_len(this.ptr);return t>>>0}get(t){let _=n.ergoboxassetsdatalist_get(this.ptr,t);return _Q.__wrap(_)}add(t){b(t,_Q),n.ergoboxassetsdatalist_add(this.ptr,t.ptr)}}class _K{static __wrap(t){let _=Object.create(_K.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxcandidate_free(t)}static new_miner_fee_box(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_W),n.ergoboxcandidate_new_miner_fee_box(i,t.ptr,_);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _K.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}register_value(t){let _=n.ergoboxcandidate_register_value(this.ptr,t);return 0===_?void 0:_J.__wrap(_)}creation_height(){let t=n.ergoboxcandidate_creation_height(this.ptr);return t>>>0}tokens(){let t=n.ergoboxcandidate_tokens(this.ptr);return rv.__wrap(t)}ergo_tree(){let t=n.ergoboxcandidate_ergo_tree(this.ptr);return _2.__wrap(t)}value(){let t=n.ergoboxcandidate_value(this.ptr);return _W.__wrap(t)}serialized_additional_registers(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.ergoboxcandidate_serialized_additional_registers(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _1{static __wrap(t){let _=Object.create(_1.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxcandidatebuilder_free(t)}constructor(t,_,r){b(t,_W),b(_,_N);let e=n.ergoboxcandidatebuilder_new(t.ptr,_.ptr,r);return _1.__wrap(e)}set_min_box_value_per_byte(t){n.ergoboxcandidatebuilder_set_min_box_value_per_byte(this.ptr,t)}min_box_value_per_byte(){let t=n.ergoboxcandidatebuilder_min_box_value_per_byte(this.ptr);return t>>>0}set_value(t){b(t,_W);var _=t.ptr;t.ptr=0,n.ergoboxcandidatebuilder_set_value(this.ptr,_)}value(){let t=n.ergoboxcandidatebuilder_value(this.ptr);return _W.__wrap(t)}calc_box_size_bytes(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.ergoboxcandidatebuilder_calc_box_size_bytes(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return t>>>0}finally{n.__wbindgen_add_to_stack_pointer(16)}}calc_min_box_value(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.ergoboxcandidatebuilder_calc_min_box_value(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _W.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}set_register_value(t,_){b(_,_J),n.ergoboxcandidatebuilder_set_register_value(this.ptr,t,_.ptr)}register_value(t){let _=n.ergoboxcandidatebuilder_register_value(this.ptr,t);return 0===_?void 0:_J.__wrap(_)}delete_register_value(t){n.ergoboxcandidatebuilder_delete_register_value(this.ptr,t)}mint_token(t,_,r,e){b(t,rh);let i=l(_,n.__wbindgen_malloc,n.__wbindgen_realloc),o=_x,a=l(r,n.__wbindgen_malloc,n.__wbindgen_realloc),s=_x;n.ergoboxcandidatebuilder_mint_token(this.ptr,t.ptr,i,o,a,s,e)}add_token(t,_){b(t,rm),b(_,rk),n.ergoboxcandidatebuilder_add_token(this.ptr,t.ptr,_.ptr)}build(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.ergoboxcandidatebuilder_build(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _K.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _4{static __wrap(t){let _=Object.create(_4.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxcandidates_free(t)}constructor(t){b(t,_K);let _=n.ergoboxcandidates_new(t.ptr);return _4.__wrap(_)}static empty(){let t=n.ergoboxcandidates_empty();return _4.__wrap(t)}len(){let t=n.ergoboxcandidates_len(this.ptr);return t>>>0}get(t){let _=n.ergoboxcandidates_get(this.ptr,t);return _K.__wrap(_)}add(t){b(t,_K),n.ergoboxcandidates_add(this.ptr,t.ptr)}}class _6{static __wrap(t){let _=Object.create(_6.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergoboxes_free(t)}static from_boxes_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=m(t,n.__wbindgen_malloc),a=_x;n.ergoboxes_from_boxes_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _6.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}constructor(t){b(t,_V);let _=n.ergoboxes_new(t.ptr);return _6.__wrap(_)}len(){let t=n.ergoboxes_len(this.ptr);return t>>>0}add(t){b(t,_V),n.ergoboxes_add(this.ptr,t.ptr)}get(t){let _=n.ergoboxes_get(this.ptr,t);return _V.__wrap(_)}static empty(){let t=n.ergoboxcandidates_empty();return _6.__wrap(t)}}
1class _0{static __wrap(t){let _=Object.create(_0.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergostatecontext_free(t)}constructor(t,_){try{let s=n.__wbindgen_add_to_stack_pointer(-16);b(t,rp);var r=t.ptr;t.ptr=0,b(_,_G);var e=_.ptr;_.ptr=0,n.ergostatecontext_new(s,r,e);var i=c()[s/4+0],a=c()[s/4+1];if(c()[s/4+2])throw o(a);return _0.__wrap(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _2{static __wrap(t){let _=Object.create(_2.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_ergotree_free(t)}static from_base16_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.ergotree_from_base16_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _2.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.ergotree_from_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _2.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.ergotree_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_base16_bytes(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.ergotree_to_base16_bytes(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}constants_len(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.ergotree_constants_len(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return t>>>0}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_constant(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.ergotree_get_constant(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return 0===_?void 0:_J.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}with_constant(t,_){try{let i=this.__destroy_into_raw(),a=n.__wbindgen_add_to_stack_pointer(-16);b(_,_J),n.ergotree_with_constant(a,i,t,_.ptr);var r=c()[a/4+0],e=c()[a/4+1];if(c()[a/4+2])throw o(e);return _2.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}template_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.ergotree_template_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _3{static __wrap(t){let _=Object.create(_3.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_extpubkey_free(t)}static new(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16),s=g(t,n.__wbindgen_malloc),d=_x,l=g(_,n.__wbindgen_malloc),p=_x;b(r,_H),n.extpubkey_new(a,s,d,l,p,r.ptr);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return _3.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}child(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.extpubkey_child(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _3.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}derive(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_H);var _=t.ptr;t.ptr=0,n.extpubkey_derive(i,this.ptr,_);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _3.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_address(){let t=n.extpubkey_to_address(this.ptr);return _P.__wrap(t)}chain_code(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.extpubkey_chain_code(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}pub_key_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.extpubkey_pub_key_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _8{static __wrap(t){let _=Object.create(_8.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_extsecretkey_free(t)}static new(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16),s=g(t,n.__wbindgen_malloc),d=_x,l=g(_,n.__wbindgen_malloc),p=_x;b(r,_H),n.extsecretkey_new(a,s,d,l,p,r.ptr);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return _8.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static derive_master(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.extsecretkey_derive_master(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _8.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}child(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.extsecretkey_child(e,this.ptr,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _8.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}derive(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_H);var _=t.ptr;t.ptr=0,n.extsecretkey_derive(i,this.ptr,_);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return _8.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}secret_key_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.extsecretkey_secret_key_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}public_key(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.extsecretkey_public_key(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return _3.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}path(){let t=n.extsecretkey_path(this.ptr);return _H.__wrap(t)}}class _5{static __wrap(t){let _=Object.create(_5.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_hintsbag_free(t)}static empty(){let t=n.hintsbag_empty();return _5.__wrap(t)}add_commitment(t){b(t,_D);var _=t.ptr;t.ptr=0,n.hintsbag_add_commitment(this.ptr,_)}len(){let t=n.hintsbag_len(this.ptr);return t>>>0}get(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.hintsbag_get(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _D.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _7{static __wrap(t){let _=Object.create(_7.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_i64_free(t)}static from_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.i64_from_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _7.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.i64_to_str(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}as_num(){let t=n.i64_as_num(this.ptr);return o(t)}checked_add(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,_7),n.i64_checked_add(e,this.ptr,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return _7.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class _9{static __wrap(t){let _=Object.create(_9.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_input_free(t)}box_id(){let t=n.input_box_id(this.ptr);return _M.__wrap(t)}spending_proof(){let t=n.input_spending_proof(this.ptr);return rw.__wrap(t)}}class rt{static __wrap(t){let _=Object.create(rt.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_inputs_free(t)}constructor(){let t=n.inputs_new();return rt.__wrap(t)}len(){let t=n.inputs_len(this.ptr);return t>>>0}get(t){let _=n.inputs_get(this.ptr,t);return _9.__wrap(_)}}class r_{static __wrap(t){let _=Object.create(r_.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_levelnode_free(t)}static new(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=g(t,n.__wbindgen_malloc),s=_x;n.levelnode_new(i,a,s,_);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return r_.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get digest(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.levelnode_digest(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}get side(){let t=n.levelnode_side(this.ptr);return t}}class rr{static __wrap(t){let _=Object.create(rr.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_merkleproof_free(t)}static new(t){let _=g(t,n.__wbindgen_malloc),r=_x,e=n.merkleproof_new(_,r);return rr.__wrap(e)}add_node(t){b(t,r_),n.merkleproof_add_node(this.ptr,t.ptr)}valid(t){let _=g(t,n.__wbindgen_malloc),r=_x,e=n.merkleproof_valid(this.ptr,_,r);return 0!==e}}class re{__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_mineraddress_free(t)}static mainnet_fee_address(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mineraddress_mainnet_fee_address(r);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}static testnet_fee_address(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mineraddress_testnet_fee_address(r);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}}class rn{__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_mnemonic_free(t)}static to_seed(t,_){try{let o=n.__wbindgen_add_to_stack_pointer(-16),a=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=_x,d=l(_,n.__wbindgen_malloc,n.__wbindgen_realloc),p=_x;n.mnemonic_to_seed(o,a,s,d,p);var r=c()[o/4+0],e=c()[o/4+1],i=y(r,e).slice();return n.__wbindgen_free(r,1*e),i}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class ri{static __wrap(t){let _=Object.create(ri.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();
1n.__wbg_networkaddress_free(t)}static new(t,_){b(_,_P);let r=n.networkaddress_new(t,_.ptr);return ri.__wrap(r)}static from_base58(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.networkaddress_from_base58(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return ri.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_base58(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.networkaddress_to_base58(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}static from_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.networkaddress_from_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return ri.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.networkaddress_to_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}network(){let t=n.networkaddress_network(this.ptr);return t>>>0}address(){let t=n.networkaddress_address(this.ptr);return _P.__wrap(t)}}class ro{static __wrap(t){let _=Object.create(ro.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_nipopowproof_free(t)}is_better_than(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,ro),n.nipopowproof_is_better_than(e,this.ptr,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return 0!==_}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.nipopowproof_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}suffix_head(){let t=n.nipopowproof_suffix_head(this.ptr);return rc.__wrap(t)}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.nipopowproof_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return ro.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class ra{static __wrap(t){let _=Object.create(ra.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_nipopowverifier_free(t)}constructor(t){b(t,_B);var _=t.ptr;t.ptr=0;let r=n.nipopowverifier_new(_);return ra.__wrap(r)}best_proof(){let t=n.nipopowverifier_best_proof(this.ptr);return 0===t?void 0:ro.__wrap(t)}best_chain(){let t=n.nipopowverifier_best_chain(this.ptr);return _G.__wrap(t)}process(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,ro);var _=t.ptr;t.ptr=0,n.nipopowverifier_process(e,this.ptr,_);var r=c()[e/4+0];if(c()[e/4+1])throw o(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rs{static __wrap(t){let _=Object.create(rs.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_nodeconf_free(t)}constructor(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.nodeconf_new(e,x(t));var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rs.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16),_y[_E++]=void 0}}}class rd{static __wrap(t){let _=Object.create(rd.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_nodeinfo_free(t)}name(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.nodeinfo_name(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}is_at_least_version_4_0_100(){let t=n.nodeinfo_is_at_least_version_4_0_100(this.ptr);return 0!==t}}class rl{static __wrap(t){let _=Object.create(rl.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_peerurls_free(t)}len(){let t=n.peerurls_len(this.ptr);return t>>>0}get(t){let _=n.peerurls_get(this.ptr,t);return o(_)}}class rc{static __wrap(t){let _=Object.create(rc.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_popowheader_free(t)}header(){let t=n.popowheader_header(this.ptr);return _C.__wrap(t)}interlinks(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.popowheader_interlinks(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}interlinks_proof(){let t=n.popowheader_interlinks_proof(this.ptr);return _I.__wrap(t)}check_interlinks_proof(){let t=n.popowheader_check_interlinks_proof(this.ptr);return 0!==t}height(){let t=n.popowheader_height(this.ptr);return t>>>0}id(){let t=n.popowheader_id(this.ptr);return _B.__wrap(t)}}class rp{static __wrap(t){let _=Object.create(rp.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_preheader_free(t)}static from_block_header(t){b(t,_C);var _=t.ptr;t.ptr=0;let r=n.preheader_from_block_header(_);return rp.__wrap(r)}}class ru{static __wrap(t){let _=Object.create(ru.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_propositions_free(t)}constructor(){let t=n.propositions_new();return ru.__wrap(t)}add_proposition_from_byte(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),e=g(t,n.__wbindgen_malloc),i=_x;n.propositions_add_proposition_from_byte(r,this.ptr,e,i);var _=c()[r/4+0];if(c()[r/4+1])throw o(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rw{static __wrap(t){let _=Object.create(rw.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_proverresult_free(t)}proof(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.proverresult_proof(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}extension(){let t=n.proverresult_extension(this.ptr);return _X.__wrap(t)}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.proverresult_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}}class rf{static __wrap(t){let _=Object.create(rf.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_reducedtransaction_free(t)}static from_unsigned_tx(t,_,r,e){try{let s=n.__wbindgen_add_to_stack_pointer(-16);b(t,rA),b(_,_6),b(r,_6),b(e,_0),n.reducedtransaction_from_unsigned_tx(s,t.ptr,_.ptr,r.ptr,e.ptr);var i=c()[s/4+0],a=c()[s/4+1];if(c()[s/4+2])throw o(a);return rf.__wrap(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.reducedtransaction_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static sigma_parse_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.reducedtransaction_sigma_parse_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rf.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}unsigned_tx(){let t=n.reducedtransaction_unsigned_tx(this.ptr);return rA.__wrap(t)}}class rb{static __wrap(t){let _=Object.create(rb.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_secretkey_free(t)}static random_dlog(){let t=n.secretkey_random_dlog();return rb.__wrap(t)}static dlog_from_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.secretkey_dlog_from_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rb.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static dht_from_bytes(t,_,r,e,i){try{let d=n.__wbindgen_add_to_stack_pointer(-16),l=g(t,n.__wbindgen_malloc),p=_x,u=g(_,n.__wbindgen_malloc),w=_x,f=g(r,n.__wbindgen_malloc),b=_x,y=g(e,n.__wbindgen_malloc),h=_x,k=g(i,n.__wbindgen_malloc),m=_x;n.secretkey_dht_from_bytes(d,l,p,u,w,f,b,y,h,k,m);var a=c()[d/4+0],s=c()[d/4+1];if(c()[d/4+2])throw o(s);return rb.__wrap(a)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_address(){let t=n.secretkey_get_address(this.ptr);return _P.__wrap(t)}static from_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.secretkey_from_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rb.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.secretkey_to_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.secretkey_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rb.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.secretkey_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}}class rg{static __wrap(t){let _=Object.create(rg.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_secretkeys_free(t)}constructor(){let t=n.secretkeys_new();return rg.__wrap(t)}len(){let t=n.secretkeys_len(this.ptr);return t>>>0}get(t){let _=n.secretkeys_get(this.ptr,t);return rb.__wrap(_)}add(t){b(t,rb),n.secretkeys_add(this.ptr,t.ptr)}}class ry{static __wrap(t){let _=Object.create(ry.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_simpleboxselector_free(t)}constructor(){let t=n.simpleboxselector_new();return ry.__wrap(t)}select(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16);b(t,_6),b(_,_W),b(r,rv),n.simpleboxselector_select(a,this.ptr,t.ptr,_.ptr,r.ptr);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return _$.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rh{static __wrap(t){let _=Object.create(rh.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_token_free(t)}constructor(t,_){b(t,rm),b(_,rk);let r=n.token_new(t.ptr,_.ptr);return rh.__wrap(r)}id(){let t=n.token_id(this.ptr);return rm.__wrap(t)}amount(){let t=n.token_amount(this.ptr);return rk.__wrap(t)}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.token_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}to_js_eip12(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.token_to_js_eip12(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rk{static __wrap(t){let _=Object.create(rk.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_tokenamount_free(t)}static from_i64(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,_7),n.tokenamount_from_i64(e,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rk.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}as_i64(){let t=n.tokenamount_as_i64(this.ptr);return _7.__wrap(t)}to_bytes(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.tokenamount_to_bytes(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=y(t,_).slice();return n.__wbindgen_free(t,1*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rm{static __wrap(t){let _=Object.create(rm.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_tokenid_free(t)}static from_box_id(t){b(t,_M);let _=n.tokenid_from_box_id(t.ptr);return rm.__wrap(_)}static from_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.tokenid_from_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rm.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.tokenid_to_str(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}as_bytes(){let t=n.tokenid_as_bytes(this.ptr);return o(t)}}class rv{static __wrap(t){let _=Object.create(rv.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_tokens_free(t)}constructor(){let t=n.tokens_new();return rv.__wrap(t)}len(){let t=n.tokens_len(this.ptr);return t>>>0}get(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.tokens_get(e,this.ptr,t);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rh.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}
1add(t){b(t,rh),n.tokens_add(this.ptr,t.ptr)}}class rx{static __wrap(t){let _=Object.create(rx.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_transaction_free(t)}static from_unsigned_tx(t,_){try{let a=n.__wbindgen_add_to_stack_pointer(-16);b(t,rA);var r=t.ptr;t.ptr=0;let s=m(_,n.__wbindgen_malloc),d=_x;n.transaction_from_unsigned_tx(a,r,s,d);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return rx.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}id(){let t=n.transaction_id(this.ptr);return rR.__wrap(t)}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.transaction_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}to_js_eip12(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.transaction_to_js_eip12(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.transaction_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rx.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}inputs(){let t=n.transaction_inputs(this.ptr);return rt.__wrap(t)}data_inputs(){let t=n.transaction_data_inputs(this.ptr);return _Y.__wrap(t)}output_candidates(){let t=n.transaction_output_candidates(this.ptr);return _4.__wrap(t)}outputs(){let t=n.transaction_outputs(this.ptr);return _6.__wrap(t)}sigma_serialize_bytes(){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.transaction_sigma_serialize_bytes(i,this.ptr);var t=c()[i/4+0],_=c()[i/4+1],r=c()[i/4+2];if(c()[i/4+3])throw o(r);var e=y(t,_).slice();return n.__wbindgen_free(t,1*_),e}finally{n.__wbindgen_add_to_stack_pointer(16)}}static sigma_parse_bytes(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=g(t,n.__wbindgen_malloc),a=_x;n.transaction_sigma_parse_bytes(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rx.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}verify_p2pk_input(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_V);var _=t.ptr;t.ptr=0,n.transaction_verify_p2pk_input(i,this.ptr,_);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return 0!==r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rj{static __wrap(t){let _=Object.create(rj.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_transactionhintsbag_free(t)}static empty(){let t=n.transactionhintsbag_empty();return rj.__wrap(t)}add_hints_for_input(t,_){b(_,_5),n.transactionhintsbag_add_hints_for_input(this.ptr,t,_.ptr)}all_hints_for_input(t){let _=n.transactionhintsbag_all_hints_for_input(this.ptr,t);return _5.__wrap(_)}to_json(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.transactionhintsbag_to_json(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.transactionhintsbag_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rj.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rO{static __wrap(t){let _=Object.create(rO.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_txbuilder_free(t)}static SUGGESTED_TX_FEE(){let t=n.txbuilder_SUGGESTED_TX_FEE();return _W.__wrap(t)}static new(t,_,r,e,i){b(t,_$),b(_,_4),b(e,_W),b(i,_P);let o=n.txbuilder_new(t.ptr,_.ptr,r,e.ptr,i.ptr);return rO.__wrap(o)}set_data_inputs(t){b(t,_Y),n.txbuilder_set_data_inputs(this.ptr,t.ptr)}set_context_extension(t,_){b(t,_M),b(_,_X),n.txbuilder_set_context_extension(this.ptr,t.ptr,_.ptr)}set_token_burn_permit(t){b(t,rv),n.txbuilder_set_token_burn_permit(this.ptr,t.ptr)}build(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.txbuilder_build(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return rA.__wrap(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}box_selection(){let t=n.txbuilder_box_selection(this.ptr);return _$.__wrap(t)}data_inputs(){let t=n.txbuilder_data_inputs(this.ptr);return _Y.__wrap(t)}output_candidates(){let t=n.txbuilder_output_candidates(this.ptr);return _4.__wrap(t)}current_height(){let t=n.txbuilder_current_height(this.ptr);return t>>>0}fee_amount(){let t=n.txbuilder_fee_amount(this.ptr);return _W.__wrap(t)}change_address(){let t=n.txbuilder_change_address(this.ptr);return _P.__wrap(t)}}class rR{static __wrap(t){let _=Object.create(rR.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_txid_free(t)}static zero(){let t=n.txid_zero();return rR.__wrap(t)}to_str(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.txid_to_str(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];return s(t,_)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,_)}}static from_str(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.txid_from_str(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rR.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rS{static __wrap(t){let _=Object.create(rS.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();
1n.__wbg_unsignedinput_free(t)}constructor(t,_){b(t,_M),b(_,_X);let r=n.unsignedinput_new(t.ptr,_.ptr);return rS.__wrap(r)}static from_box_id(t){b(t,_M);let _=n.unsignedinput_from_box_id(t.ptr);return rS.__wrap(_)}box_id(){let t=n.unsignedinput_box_id(this.ptr);return _M.__wrap(t)}extension(){let t=n.unsignedinput_extension(this.ptr);return _X.__wrap(t)}}class rz{static __wrap(t){let _=Object.create(rz.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_unsignedinputs_free(t)}constructor(){let t=n.inputs_new();return rz.__wrap(t)}len(){let t=n.unsignedinputs_len(this.ptr);return t>>>0}get(t){let _=n.unsignedinputs_get(this.ptr,t);return rS.__wrap(_)}add(t){b(t,rS),n.unsignedinputs_add(this.ptr,t.ptr)}}class rA{static __wrap(t){let _=Object.create(rA.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_unsignedtransaction_free(t)}constructor(t,_,r){try{let a=n.__wbindgen_add_to_stack_pointer(-16);b(t,rz),b(_,_Y),b(r,_4),n.unsignedtransaction_new(a,t.ptr,_.ptr,r.ptr);var e=c()[a/4+0],i=c()[a/4+1];if(c()[a/4+2])throw o(i);return rA.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}with_input_context_ext(t,_){try{let i=this.__destroy_into_raw(),a=n.__wbindgen_add_to_stack_pointer(-16);b(t,_M),b(_,_X),n.unsignedtransaction_with_input_context_ext(a,i,t.ptr,_.ptr);var r=c()[a/4+0],e=c()[a/4+1];if(c()[a/4+2])throw o(e);return rA.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}id(){let t=n.unsignedtransaction_id(this.ptr);return rR.__wrap(t)}inputs(){let t=n.unsignedtransaction_inputs(this.ptr);return rz.__wrap(t)}data_inputs(){let t=n.unsignedtransaction_data_inputs(this.ptr);return _Y.__wrap(t)}output_candidates(){let t=n.unsignedtransaction_output_candidates(this.ptr);return _4.__wrap(t)}to_json(){try{let d=n.__wbindgen_add_to_stack_pointer(-16);n.unsignedtransaction_to_json(d,this.ptr);var t=c()[d/4+0],_=c()[d/4+1],r=c()[d/4+2],e=c()[d/4+3],i=t,a=_;if(e)throw i=0,a=0,o(r);return s(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a)}}to_js_eip12(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.unsignedtransaction_to_js_eip12(r,this.ptr);var t=c()[r/4+0],_=c()[r/4+1];if(c()[r/4+2])throw o(_);return o(t)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16),i=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=_x;n.unsignedtransaction_from_json(e,i,a);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rA.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}distinct_token_ids(){try{let e=n.__wbindgen_add_to_stack_pointer(-16);n.unsignedtransaction_distinct_token_ids(e,this.ptr);var t=c()[e/4+0],_=c()[e/4+1],r=v(t,_).slice();return n.__wbindgen_free(t,4*_),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}}class rE{static __wrap(t){let _=Object.create(rE.prototype);return _.ptr=t,_}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();n.__wbg_wallet_free(t)}static from_mnemonic(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=l(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=_x,d=l(_,n.__wbindgen_malloc,n.__wbindgen_realloc),p=_x;n.wallet_from_mnemonic(i,a,s,d,p);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return rE.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}static from_secrets(t){b(t,rg);let _=n.wallet_from_secrets(t.ptr);return rE.__wrap(_)}add_secret(t){b(t,rb),n.wallet_add_secret(this.ptr,t.ptr)}sign_transaction(t,_,r,e){try{let s=n.__wbindgen_add_to_stack_pointer(-16);b(t,_0),b(_,rA),b(r,_6),b(e,_6),n.wallet_sign_transaction(s,this.ptr,t.ptr,_.ptr,r.ptr,e.ptr);var i=c()[s/4+0],a=c()[s/4+1];if(c()[s/4+2])throw o(a);return rx.__wrap(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sign_transaction_multi(t,_,r,e,i){try{let d=n.__wbindgen_add_to_stack_pointer(-16);b(t,_0),b(_,rA),b(r,_6),b(e,_6),b(i,rj),n.wallet_sign_transaction_multi(d,this.ptr,t.ptr,_.ptr,r.ptr,e.ptr,i.ptr);var a=c()[d/4+0],s=c()[d/4+1];if(c()[d/4+2])throw o(s);return rx.__wrap(a)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sign_reduced_transaction(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,rf),n.wallet_sign_reduced_transaction(e,this.ptr,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rx.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sign_reduced_transaction_multi(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,rf),b(_,rj),n.wallet_sign_reduced_transaction_multi(i,this.ptr,t.ptr,_.ptr);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return rx.__wrap(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}generate_commitments(t,_,r,e){try{let s=n.__wbindgen_add_to_stack_pointer(-16);b(t,_0),b(_,rA),b(r,_6),b(e,_6),n.wallet_generate_commitments(s,this.ptr,t.ptr,_.ptr,r.ptr,e.ptr);var i=c()[s/4+0],a=c()[s/4+1];if(c()[s/4+2])throw o(a);return rj.__wrap(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}generate_commitments_for_reduced_transaction(t){try{let e=n.__wbindgen_add_to_stack_pointer(-16);b(t,rf),n.wallet_generate_commitments_for_reduced_transaction(e,this.ptr,t.ptr);var _=c()[e/4+0],r=c()[e/4+1];if(c()[e/4+2])throw o(r);return rj.__wrap(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}sign_message_using_p2pk(t,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);b(t,_P);let a=g(_,n.__wbindgen_malloc),s=_x;n.wallet_sign_message_using_p2pk(i,this.ptr,t.ptr,a,s);var r=c()[i/4+0],e=c()[i/4+1];if(c()[i/4+2])throw o(e);return o(r)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}function I(t){o(t)}function C(t,_){let r=s(t,_);return d(r)}function G(t){return d(t)}function B(t){let _="string"==typeof _y[t];return _}function M(t,_){let r=_y[_],e="string"==typeof r?r:void 0;var i=null==e?0:l(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=_x;c()[t/4+1]=o,c()[t/4+0]=i}function $(t){let _=_y[t];return d(_)}function W(t,_){let r=_y[t]>=_y[_];return r}function q(t,_){let r=_y[_],e="number"==typeof r?r:void 0;(0===_z.byteLength&&(_z=new Float64Array(n.memory.buffer)),_z)[t/8+1]=null==e?0:e,c()[t/4+0]=null!=e}function D(t){let _="bigint"==typeof _y[t];return _}function J(t){let _=void 0===_y[t];return _}function X(t,_){let r=Error(s(t,_));return d(r)}function N(t){let _=_C.__wrap(t);return d(_)}function L(t){let _=rr.__wrap(t);return d(_)}function Y(t){let _=ro.__wrap(t);return d(_)}function H(t){let _=rl.__wrap(t);return d(_)}function V(t){let _=_q.__wrap(t);return d(_)}function Q(t){let _=rd.__wrap(t);return d(_)}function Z(){let t=Error();return d(t)}function K(t,_){let r=_y[_].stack,e=l(r,n.__wbindgen_malloc,n.__wbindgen_realloc),i=_x;c()[t/4+1]=i,c()[t/4+0]=e}function tt(t,_){try{console.error(s(t,_))}finally{n.__wbindgen_free(t,_)}}function t_(t){let _=o(t).original;return 1==_.cnt--&&(_.a=0,!0)}function tr(t){let _=fetch(_y[t]);return d(_)}function te(t){let _;try{_=_y[t]instanceof Window}catch{_=!1}let r=_;return r}function tn(t){let _=_y[t].performance;return null==_?0:d(_)}function ti(t,_){_y[t].clearTimeout(_)}function to(){return P(function(t,_,r){let e=_y[t].setTimeout(_y[_],r);return e},arguments)}function ta(t){let _=_y[t].signal;return d(_)}function ts(){return P(function(){let t=new AbortController;return d(t)},arguments)}function td(t){_y[t].abort()}function tl(t){let _;try{_=_y[t]instanceof Response}catch{_=!1}let r=_;return r}function tc(t,_){let r=_y[_].url,e=l(r,n.__wbindgen_malloc,n.__wbindgen_realloc),i=_x;c()[t/4+1]=i,c()[t/4+0]=e}function tp(t){let _=_y[t].status;return _}function tu(t){let _=_y[t].headers;return d(_)}function tw(){return P(function(t){let _=_y[t].arrayBuffer();return d(_)},arguments)}function tf(t,_){let r=_y[_].host,e=l(r,n.__wbindgen_malloc,n.__wbindgen_realloc),i=_x;c()[t/4+1]=i,c()[t/4+0]=e}function tb(){return P(function(t,_){let r=new URL(s(t,_));return d(r)},arguments)}function tg(t,_){let r=_y[t].fetch(_y[_]);return d(r)}function ty(){return P(function(){let t=new Headers;return d(t)},arguments)}function th(){return P(function(t,_,r,e,n){_y[t].append(s(_,r),s(e,n))},arguments)}
1function tk(){return P(function(t,_,r){let e=new Request(s(t,_),_y[r]);return d(e)},arguments)}function tm(t){let _=_y[t].now();return _}function tv(t){let _=_y[t];return"object"==typeof _&&null!==_}function tx(t){let _=_y[t].process;return d(_)}function tj(t){let _=_y[t].versions;return d(_)}function tO(t){let _=_y[t].node;return d(_)}function tR(){return P(function(t,_,r){let e=_y[t].require(s(_,r));return d(e)},arguments)}function tS(t){let _=_y[t].crypto;return d(_)}function tz(t){let _=_y[t].msCrypto;return d(_)}function tA(){return P(function(t,_){_y[t].getRandomValues(_y[_])},arguments)}function tE(){let t=module;return d(t)}function tT(){return P(function(t,_,r){_y[t].randomFillSync(y(_,r))},arguments)}function tF(){return d([])}function tU(t){let _=BigInt(_y[t]);return d(_)}function tP(t,_){let r=Function(s(t,_));return d(r)}function tI(t){let _=_y[t].next;return d(_)}function tC(t){let _="function"==typeof _y[t];return _}function tG(t){let _=_y[t].value;return d(_)}function tB(){let t=Symbol.iterator;return d(t)}function tM(){return d({})}function t$(){return P(function(){let t=self.self;return d(t)},arguments)}function tW(){return P(function(){let t=window.window;return d(t)},arguments)}function tq(){return P(function(){let t=globalThis.globalThis;return d(t)},arguments)}function tD(){return P(function(){let t=global.global;return d(t)},arguments)}function tJ(t,_){let r=_y[t][_>>>0];return d(r)}function tX(t){let _=Array.isArray(_y[t]);return _}function tN(t){let _=_y[t].length;return _}function tL(t,_){let r=_y[t].push(_y[_]);return r}function tY(){return P(function(t){let _=BigInt(_y[t]);return d(_)},arguments)}function tH(){return P(function(t,_){let r=_y[t].toString(_);return d(r)},arguments)}function tV(t,_,r){let e=_y[_].toString(r),i=l(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=_x;c()[t/4+1]=o,c()[t/4+0]=i}function tQ(t,_){let r=Error(s(t,_));return d(r)}function tZ(t,_,r){_y[t].name=s(_,r)}function tK(){return P(function(t,_){let r=_y[t].call(_y[_]);return d(r)},arguments)}function t1(){return P(function(t,_,r){let e=_y[t].call(_y[_],_y[r]);return d(e)},arguments)}function t4(){return P(function(t){let _=_y[t].next();return d(_)},arguments)}function t6(t){let _=_y[t].done;return _}function t0(t){let _=_y[t].valueOf();return _}function t2(t){let _=_y[t].toString();return d(_)}function t3(t,_){try{var r={a:t,b:_},e=(t,_)=>{let e=r.a;r.a=0;try{var i;return i=r.b,void n.wasm_bindgen__convert__closures__invoke2_mut__h76dafa734c0d7bab(e,i,d(t),d(_))}finally{r.a=e}};let i=new Promise(e);return d(i)}finally{r.a=r.b=0}}function t8(t){let _=Promise.resolve(_y[t]);return d(_)}function t5(t,_){let r=_y[t].then(_y[_]);return d(r)}function t7(t,_,r){let e=_y[t].then(_y[_],_y[r]);return d(e)}function t9(t){let _=_y[t].buffer;return d(_)}function _t(t,_,r){let e=new Uint8Array(_y[t],_>>>0,r>>>0);return d(e)}function __(t){let _=new Uint8Array(_y[t]);return d(_)}function _r(t){let _;try{_=_y[t]instanceof Uint8Array}catch{_=!1}let r=_;return r}function _e(t){let _=new Uint8Array(t>>>0);return d(_)}function _n(t,_,r){let e=_y[t].subarray(_>>>0,r>>>0);return d(e)}function _i(t){let _=_y[t].length;return _}function _o(t,_,r){_y[t].set(_y[_],r>>>0)}function _a(){return P(function(t,_){let r=JSON.parse(s(t,_));return d(r)},arguments)}function _s(){return P(function(t){let _=JSON.stringify(_y[t]);return d(_)},arguments)}function _d(){return P(function(t,_){let r=Reflect.get(_y[t],_y[_]);return d(r)},arguments)}function _l(){return P(function(t,_){let r=Reflect.has(_y[t],_y[_]);return r},arguments)}function _c(){return P(function(t,_,r){let e=Reflect.set(_y[t],_y[_],_y[r]);return e},arguments)}function _p(t,_){let r=function t(_){let r;let e=typeof _;if("number"==e||"boolean"==e||null==_)return`${_}`;if("string"==e)return`"${_}"`;if("symbol"==e){let t=_.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==e){let t=_.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(_)){let r=_.length,e="[";r>0&&(e+=t(_[0]));for(let n=1;n<r;n++)e+=", "+t(_[n]);return e+="]"}let n=/\[object ([^\]]+)\]/.exec(toString.call(_));if(!(n.length>1))return toString.call(_);
1if(r=n[1],"Object"==r)try{return"Object("+JSON.stringify(_)+")"}catch(t){return"Object"}return _ instanceof Error?`${_.name}: ${_.message} 2${_.stack}`:r}(_y[_]),e=l(r,n.__wbindgen_malloc,n.__wbindgen_realloc),i=_x;c()[t/4+1]=i,c()[t/4+0]=e}function _u(t,_){throw Error(s(t,_))}function _w(){let t=n.memory;return d(t)}function _f(t,_,r){let e=function(t,_,r,e){let i={a:t,b:_,cnt:1,dtor:286},o=(...t)=>{i.cnt++;try{return e(i.a,i.b,...t)}finally{0==--i.cnt&&(n.__wbindgen_export_2.get(i.dtor)(i.a,i.b),i.a=0)}};return o.original=i,o}(t,_,0,p);return d(e)}function _b(t,_,r){let e=u(t,_,688,w);return d(e)}function _g(t,_,r){let e=u(t,_,802,f);return d(e)}e()}catch(t){e(t)}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.