@meshsdk/core 1.6.0-alpha.18 → 1.6.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -30
- package/package.json +28 -70
- package/src/core.ts +3 -0
- package/src/index.ts +6 -0
- package/src/utils/deserializer.ts +23 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/resolver.ts +126 -0
- package/src/utils/serializer.ts +70 -0
- package/tsconfig.json +5 -0
- package/dist/common/constants.d.ts +0 -58
- package/dist/common/data/plutus.spec.d.ts +0 -1
- package/dist/common/decorators.d.ts +0 -19
- package/dist/common/index.d.ts +0 -1
- package/dist/common/utils/builder.d.ts +0 -18
- package/dist/common/utils/converter.d.ts +0 -27
- package/dist/common/utils/deserializer.d.ts +0 -19
- package/dist/common/utils/index.d.ts +0 -5
- package/dist/core/CIP14.d.ts +0 -2
- package/dist/core/CIP1852.d.ts +0 -5
- package/dist/core/CIP1853.d.ts +0 -2
- package/dist/core/CIP1855.d.ts +0 -2
- package/dist/core/CIP25.d.ts +0 -19
- package/dist/core/CIP27.d.ts +0 -4
- package/dist/core/CPS0009.d.ts +0 -2
- package/dist/core/CSL.d.ts +0 -147
- package/dist/core/index.d.ts +0 -10
- package/dist/core.cjs +0 -19
- package/dist/core.js +0 -38196
- package/dist/providers/tango.provider.d.ts +0 -25
- package/dist/transaction/meshTxBuilder/meshTxBuilder.spec.d.ts +0 -1
- package/dist/transaction/transaction.service.spec.d.ts +0 -1
- package/dist/wallet/app.service.spec.d.ts +0 -1
- package/dist/wallet/browser.service.spec.d.ts +0 -1
- package/dist/wallet/embedded.service.spec.d.ts +0 -1
- package/dist/wallet/mina.service.d.ts +0 -11
- package/dist/wallet/mina.service.spec.d.ts +0 -1
package/dist/core.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const sa=require("nanoid"),Ua=require("axios"),wn=require("bip39"),t_=require("@emurgo/cardano-message-signing-nodejs"),Fa=p=>p&&typeof p=="object"&&"default"in p?p:{default:p},fe=Fa(Ua),Ma=p=>{const w=[];return p.forEach(_=>{const f=w.find(y=>y.unit===_.unit);f?f.quantity=(parseInt(f.quantity)+parseInt(_.quantity)).toString():w.push(_)}),w},Pa=["testnet","preview","preprod","mainnet"],ia=p=>Pa.includes(p),Ka=(p,w)=>({alternative:p,fields:w}),Ae=p=>({alternative:0,fields:p}),da=p=>({alternative:1,fields:p}),qa=p=>({alternative:2,fields:p}),mn=p=>p===""?da([]):Ae([Ae([Ae([p])])]),za=(p,w)=>Ae([{alternative:0,fields:[p]},mn(w||"")]),Ha=(p,w)=>Ae([{alternative:1,fields:[p]},mn(w||"")]),Je=(p,w)=>({constructor:p,fields:w}),Pr=p=>Je(0,p),We=p=>Je(1,p),Ra=p=>Je(2,p),La=p=>p?We([]):Pr([]),pe=p=>({bytes:p}),kn=p=>({int:p}),Va=p=>({list:p}),xn=p=>pe(p),An=p=>pe(p),In=p=>p===""?We([]):Pr([Pr([Pr([pe(p)])])]),Ya=(p,w)=>Pr([Pr([pe(p)]),In(w||"")]),$a=(p,w)=>Pr([We([pe(p)]),In(w||"")]),Ga=(p,w)=>Pr([xn(p),An(w)]),Ja=(p,w)=>Pr([Pr([pe(p)]),kn(w)]),Wa=p=>pe(p),Xa=p=>pe(p),Za=p=>({int:p}),ln=p=>({map:p.map(([w,_])=>({k:w,v:_}))}),to=p=>({map:p.map(([w,_])=>({k:w,v:_}))}),_o=(p,w)=>Pr([p,w]),ro=p=>{const w=[],_={};return p.forEach(f=>{const y=f.unit.replace("lovelace",""),m=y.slice(0,56)||"",A=y.slice(56)||"";_[m]||(_[m]={}),_[m][A]?_[m][A]+=Number(f.quantity):_[m][A]=Number(f.quantity)}),Object.keys(_).forEach(f=>{const y=xn(f),m=Object.keys(_[f]).map(O=>[An(O),kn(_[f][O])]),A=ln(m);w.push([y,A])}),ln(w)},eo=p=>{const w=[];return p.map.forEach(_=>{const f=_.k.bytes;_.v.map.forEach(y=>{const m=y.k.bytes,A=y.v.int.toString(),O=f+m,K=O===""?"lovelace":O;w.push({unit:K,quantity:A})})}),w};var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function no(p){var w=p.default;if(typeof w=="function"){var _=function(){return w.apply(this,arguments)};_.prototype=w.prototype}else _={};return Object.defineProperty(_,"__esModule",{value:!0}),Object.keys(p).forEach(function(f){var y=Object.getOwnPropertyDescriptor(p,f);Object.defineProperty(_,f,y.get?y:{enumerable:!0,get:function(){return p[f]}})}),_}function De(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var x={exports:{}},jn={},ao=function(w){return w&&typeof w=="object"&&typeof w.copy=="function"&&typeof w.fill=="function"&&typeof w.readUInt8=="function"},bn={exports:{}};typeof Object.create=="function"?bn.exports=function(w,_){w.super_=_,w.prototype=Object.create(_.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}})}:bn.exports=function(w,_){w.super_=_;var f=function(){};f.prototype=_.prototype,w.prototype=new f,w.prototype.constructor=w};(function(p){var w=Object.getOwnPropertyDescriptors||function(z){for(var H=Object.keys(z),k={},ft=0;ft<H.length;ft++)k[H[ft]]=Object.getOwnPropertyDescriptor(z,H[ft]);return k},_=/%[sdj%]/g;p.format=function(q){if(!jt(q)){for(var z=[],H=0;H<arguments.length;H++)z.push(m(arguments[H]));return z.join(" ")}for(var H=1,k=arguments,ft=k.length,vt=String(q).replace(_,function(st){if(st==="%%")return"%";if(H>=ft)return st;switch(st){case"%s":return String(k[H++]);case"%d":return Number(k[H++]);case"%j":try{return JSON.stringify(k[H++])}catch{return"[Circular]"}default:return st}}),ut=k[H];H<ft;ut=k[++H])tt(ut)||!C(ut)?vt+=" "+ut:vt+=" "+m(ut);return vt},p.deprecate=function(q,z){if(typeof process<"u"&&process.noDeprecation===!0)return q;if(typeof process>"u")return function(){return p.deprecate(q,z).apply(this,arguments)};var H=!1;function k(){if(!H){if(process.throwDeprecation)throw new Error(z);process.traceDeprecation?console.trace(z):console.error(z),H=!0}return q.apply(this,arguments)}return k};var f={},y;p.debuglog=function(q){if(et(y)&&(y=process.env.NODE_DEBUG||""),q=q.toUpperCase(),!f[q])if(new RegExp("\\b"+q+"\\b","i").test(y)){var z=process.pid;f[q]=function(){var H=p.format.apply(p,arguments);console.error("%s %d: %s",q,z,H)}}else f[q]=function(){};return f[q]};function m(q,z){var H={seen:[],stylize:O};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),ot(z)?H.showHidden=z:z&&p._extend(H,z),et(H.showHidden)&&(H.showHidden=!1),et(H.depth)&&(H.depth=2),et(H.colors)&&(H.colors=!1),et(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=A),d(H,q,H.depth)}p.inspect=m,m.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]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function A(q,z){var H=m.styles[z];return H?"\x1B["+m.colors[H][0]+"m"+q+"\x1B["+m.colors[H][1]+"m":q}function O(q,z){return q}function K(q){var z={};return q.forEach(function(H,k){z[H]=!0}),z}function d(q,z,H){if(q.customInspect&&z&&mt(z.inspect)&&z.inspect!==p.inspect&&!(z.constructor&&z.constructor.prototype===z)){var k=z.inspect(H,q);return jt(k)||(k=d(q,k,H)),k}var ft=$(q,z);if(ft)return ft;var vt=Object.keys(z),ut=K(vt);if(q.showHidden&&(vt=Object.getOwnPropertyNames(z)),Z(z)&&(vt.indexOf("message")>=0||vt.indexOf("description")>=0))return J(z);if(vt.length===0){if(mt(z)){var st=z.name?": "+z.name:"";return q.stylize("[Function"+st+"]","special")}if(l(z))return q.stylize(RegExp.prototype.toString.call(z),"regexp");if(I(z))return q.stylize(Date.prototype.toString.call(z),"date");if(Z(z))return J(z)}var lt="",j=!1,E=["{","}"];if(g(z)&&(j=!0,E=["[","]"]),mt(z)){var B=z.name?": "+z.name:"";lt=" [Function"+B+"]"}if(l(z)&&(lt=" "+RegExp.prototype.toString.call(z)),I(z)&&(lt=" "+Date.prototype.toUTCString.call(z)),Z(z)&&(lt=" "+J(z)),vt.length===0&&(!j||z.length==0))return E[0]+lt+E[1];if(H<0)return l(z)?q.stylize(RegExp.prototype.toString.call(z),"regexp"):q.stylize("[Object]","special");q.seen.push(z);var F;return j?F=R(q,z,H,ut,vt):F=vt.map(function(D){return h(q,z,H,ut,D,j)}),q.seen.pop(),L(F,lt,E)}function $(q,z){if(et(z))return q.stylize("undefined","undefined");if(jt(z)){var H="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(H,"string")}if(it(z))return q.stylize(""+z,"number");if(ot(z))return q.stylize(""+z,"boolean");if(tt(z))return q.stylize("null","null")}function J(q){return"["+Error.prototype.toString.call(q)+"]"}function R(q,z,H,k,ft){for(var vt=[],ut=0,st=z.length;ut<st;++ut)Kt(z,String(ut))?vt.push(h(q,z,H,k,String(ut),!0)):vt.push("");return ft.forEach(function(lt){lt.match(/^\d+$/)||vt.push(h(q,z,H,k,lt,!0))}),vt}function h(q,z,H,k,ft,vt){var ut,st,lt;if(lt=Object.getOwnPropertyDescriptor(z,ft)||{value:z[ft]},lt.get?lt.set?st=q.stylize("[Getter/Setter]","special"):st=q.stylize("[Getter]","special"):lt.set&&(st=q.stylize("[Setter]","special")),Kt(k,ft)||(ut="["+ft+"]"),st||(q.seen.indexOf(lt.value)<0?(tt(H)?st=d(q,lt.value,null):st=d(q,lt.value,H-1),st.indexOf(`
|
|
2
|
-
`)>-1&&(vt?st=st.split(`
|
|
3
|
-
`).map(function(j){return" "+j}).join(`
|
|
4
|
-
`).substr(2):st=`
|
|
5
|
-
`+st.split(`
|
|
6
|
-
`).map(function(j){return" "+j}).join(`
|
|
7
|
-
`))):st=q.stylize("[Circular]","special")),et(ut)){if(vt&&ft.match(/^\d+$/))return st;ut=JSON.stringify(""+ft),ut.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ut=ut.substr(1,ut.length-2),ut=q.stylize(ut,"name")):(ut=ut.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ut=q.stylize(ut,"string"))}return ut+": "+st}function L(q,z,H){var k=q.reduce(function(ft,vt){return vt.indexOf(`
|
|
8
|
-
`)>=0,ft+vt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return k>60?H[0]+(z===""?"":z+`
|
|
9
|
-
`)+" "+q.join(`,
|
|
10
|
-
`)+" "+H[1]:H[0]+z+" "+q.join(", ")+" "+H[1]}function g(q){return Array.isArray(q)}p.isArray=g;function ot(q){return typeof q=="boolean"}p.isBoolean=ot;function tt(q){return q===null}p.isNull=tt;function u(q){return q==null}p.isNullOrUndefined=u;function it(q){return typeof q=="number"}p.isNumber=it;function jt(q){return typeof q=="string"}p.isString=jt;function a(q){return typeof q=="symbol"}p.isSymbol=a;function et(q){return q===void 0}p.isUndefined=et;function l(q){return C(q)&&Rt(q)==="[object RegExp]"}p.isRegExp=l;function C(q){return typeof q=="object"&&q!==null}p.isObject=C;function I(q){return C(q)&&Rt(q)==="[object Date]"}p.isDate=I;function Z(q){return C(q)&&(Rt(q)==="[object Error]"||q instanceof Error)}p.isError=Z;function mt(q){return typeof q=="function"}p.isFunction=mt;function At(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}p.isPrimitive=At,p.isBuffer=ao;function Rt(q){return Object.prototype.toString.call(q)}function St(q){return q<10?"0"+q.toString(10):q.toString(10)}var nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ht(){var q=new Date,z=[St(q.getHours()),St(q.getMinutes()),St(q.getSeconds())].join(":");return[q.getDate(),nt[q.getMonth()],z].join(" ")}p.log=function(){console.log("%s - %s",ht(),p.format.apply(p,arguments))},p.inherits=bn.exports,p._extend=function(q,z){if(!z||!C(z))return q;for(var H=Object.keys(z),k=H.length;k--;)q[H[k]]=z[H[k]];return q};function Kt(q,z){return Object.prototype.hasOwnProperty.call(q,z)}var Ut=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;p.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(Ut&&z[Ut]){var H=z[Ut];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,Ut,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var k,ft,vt=new Promise(function(lt,j){k=lt,ft=j}),ut=[],st=0;st<arguments.length;st++)ut.push(arguments[st]);ut.push(function(lt,j){lt?ft(lt):k(j)});try{z.apply(this,ut)}catch(lt){ft(lt)}return vt}return Object.setPrototypeOf(H,Object.getPrototypeOf(z)),Ut&&Object.defineProperty(H,Ut,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,w(z))},p.promisify.custom=Ut;function Bt(q,z){if(!q){var H=new Error("Promise was rejected with a falsy value");H.reason=q,q=H}return z(q)}function Gt(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function z(){for(var H=[],k=0;k<arguments.length;k++)H.push(arguments[k]);var ft=H.pop();if(typeof ft!="function")throw new TypeError("The last argument must be of type Function");var vt=this,ut=function(){return ft.apply(vt,arguments)};q.apply(this,H).then(function(st){process.nextTick(ut,null,st)},function(st){process.nextTick(Bt,st,ut)})}return Object.setPrototypeOf(z,Object.getPrototypeOf(q)),Object.defineProperties(z,w(q)),z}p.callbackify=Gt})(jn);const oo={},so=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),Ve=no(so);(function(p){let w={};w.__wbindgen_placeholder__=p.exports;let _;const{TextDecoder:f,TextEncoder:y}=jn,m=new Array(128).fill(void 0);m.push(void 0,null,!0,!1);function A(v){return m[v]}let O=m.length;function K(v){v<132||(m[v]=O,O=v)}function d(v){const t=A(v);return K(v),t}let $=new f("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();let J=null;function R(){return(J===null||J.byteLength===0)&&(J=new Uint8Array(_.memory.buffer)),J}function h(v,t){return v=v>>>0,$.decode(R().subarray(v,v+t))}function L(v){O===m.length&&m.push(m.length+1);const t=O;return O=m[t],m[t]=v,t}let g=0,ot=new y("utf-8");const tt=typeof ot.encodeInto=="function"?function(v,t){return ot.encodeInto(v,t)}:function(v,t){const r=ot.encode(v);return t.set(r),{read:v.length,written:r.length}};function u(v,t,r){if(r===void 0){const s=ot.encode(v),b=t(s.length,1)>>>0;return R().subarray(b,b+s.length).set(s),g=s.length,b}let o=v.length,n=t(o,1)>>>0;const e=R();let i=0;for(;i<o;i++){const s=v.charCodeAt(i);if(s>127)break;e[n+i]=s}if(i!==o){i!==0&&(v=v.slice(i)),n=r(n,o,o=i+v.length*3,1)>>>0;const s=R().subarray(n+i,n+o),b=tt(v,s);i+=b.written}return g=i,n}function it(v){return v==null}let jt=null;function a(){return(jt===null||jt.byteLength===0)&&(jt=new Int32Array(_.memory.buffer)),jt}function et(v){const t=typeof v;if(t=="number"||t=="boolean"||v==null)return`${v}`;if(t=="string")return`"${v}"`;if(t=="symbol"){const n=v.description;return n==null?"Symbol":`Symbol(${n})`}if(t=="function"){const n=v.name;return typeof n=="string"&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(v)){const n=v.length;let e="[";n>0&&(e+=et(v[0]));for(let i=1;i<n;i++)e+=", "+et(v[i]);return e+="]",e}const r=/\[object ([^\]]+)\]/.exec(toString.call(v));let o;if(r.length>1)o=r[1];else return toString.call(v);if(o=="Object")try{return"Object("+JSON.stringify(v)+")"}catch{return"Object"}return v instanceof Error?`${v.name}: ${v.message}
|
|
11
|
-
${v.stack}`:o}p.exports.script_to_address=function(v,t,r){let o,n;try{const c=_.__wbindgen_add_to_stack_pointer(-16),S=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),Y=g;var e=it(r)?0:u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=g;_.script_to_address(c,v,S,Y,e,i);var s=a()[c/4+0],b=a()[c/4+1];return o=s,n=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(o,n,1)}},p.exports.serialize_bech32_address=function(v){const t=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),r=g,o=_.serialize_bech32_address(t,r);return Hr.__wrap(o)};function l(v,t){if(!(v instanceof t))throw new Error(`expected instance of ${t.name}`);return v.ptr}p.exports.apply_params_to_script=function(v,t){let r,o;try{const Y=_.__wbindgen_add_to_stack_pointer(-16);l(v,Sr);var n=v.__destroy_into_raw();const W=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),jr=g;_.apply_params_to_script(Y,n,W,jr);var e=a()[Y/4+0],i=a()[Y/4+1],s=a()[Y/4+2],b=a()[Y/4+3],c=e,S=i;if(b)throw c=0,S=0,d(s);return r=c,o=S,h(c,S)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.get_v2_script_hash=function(v){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.get_v2_script_hash(e,i,s);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}},p.exports.calculate_tx_hash=function(v){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.calculate_tx_hash(e,i,s);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}},p.exports.sign_transaction=function(v,t){let r,o;try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),c=g;l(t,Sr);var n=t.__destroy_into_raw();_.sign_transaction(s,b,c,n);var e=a()[s/4+0],i=a()[s/4+1];return r=e,o=i,h(e,i)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}};function C(v,t){return v=v>>>0,R().subarray(v/1,v/1+t)}function I(v,t){const r=t(v.length*1,1)>>>0;return R().set(v,r/1),g=v.length,r}p.exports.encrypt_with_password=function(v,t,r,o){let n,e;try{const W=_.__wbindgen_add_to_stack_pointer(-16),jr=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),Rr=g,en=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),nn=g,an=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),on=g,sn=u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),dn=g;_.encrypt_with_password(W,jr,Rr,en,nn,an,on,sn,dn);var i=a()[W/4+0],s=a()[W/4+1],b=a()[W/4+2],c=a()[W/4+3],S=i,Y=s;if(c)throw S=0,Y=0,d(b);return n=S,e=Y,h(S,Y)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(n,e,1)}},p.exports.decrypt_with_password=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g,jr=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),Rr=g;_.decrypt_with_password(S,Y,W,jr,Rr);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.min_fee=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,i_),l(t,Or),_.min_fee(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.calculate_ex_units_ceil_cost=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,dt),l(t,xt),_.calculate_ex_units_ceil_cost(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_script_fee=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,i_),l(t,xt),_.min_script_fee(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_arbitrary_bytes_as_metadatum=function(v){const t=I(v,_.__wbindgen_malloc),r=g,o=_.encode_arbitrary_bytes_as_metadatum(t,r);return ct.__wrap(o)},p.exports.decode_arbitrary_bytes_from_metadatum=function(v){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,ct),_.decode_arbitrary_bytes_from_metadatum(i,v.__wbg_ptr);var t=a()[i/4+0],r=a()[i/4+1],o=a()[i/4+2],n=a()[i/4+3];if(n)throw d(o);var e=C(t,r).slice();return _.__wbindgen_free(t,r*1),e}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_json_str_to_metadatum=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.encode_json_str_to_metadatum(e,i,s,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.decode_metadatum_to_json_str=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);l(v,ct),_.decode_metadatum_to_json_str(S,v.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.encode_json_str_to_plutus_datum=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.encode_json_str_to_plutus_datum(e,i,s,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.decode_plutus_datum_to_json_str=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);l(v,at),_.decode_plutus_datum_to_json_str(S,v.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.create_send_all=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,nt),l(t,Ir),l(r,Tr),_.create_send_all(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return re.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}};let Z=null;function mt(){return(Z===null||Z.byteLength===0)&&(Z=new Uint32Array(_.memory.buffer)),Z}function At(v,t){return v=v>>>0,mt().subarray(v/4,v/4+t)}p.exports.make_daedalus_bootstrap_witness=function(v,t,r){l(v,d_),l(t,E),l(r,qr);const o=_.make_daedalus_bootstrap_witness(v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return lt.__wrap(o)},p.exports.make_icarus_bootstrap_witness=function(v,t,r){l(v,d_),l(t,E),l(r,ft);const o=_.make_icarus_bootstrap_witness(v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return lt.__wrap(o)},p.exports.make_vkey_witness=function(v,t){l(v,d_),l(t,l_);const r=_.make_vkey_witness(v.__wbg_ptr,t.__wbg_ptr);return O_.__wrap(r)},p.exports.hash_auxiliary_data=function(v){l(v,Bt);const t=_.hash_auxiliary_data(v.__wbg_ptr);return Gt.__wrap(t)},p.exports.hash_transaction=function(v){l(v,Pt);const t=_.hash_transaction(v.__wbg_ptr);return d_.__wrap(t)},p.exports.hash_plutus_data=function(v){l(v,at);const t=_.hash_plutus_data(v.__wbg_ptr);return U.__wrap(t)},p.exports.hash_script_data=function(v,t,r){l(v,b_),l(t,M);let o=0;it(r)||(l(r,Zt),o=r.__destroy_into_raw());const n=_.hash_script_data(v.__wbg_ptr,t.__wbg_ptr,o);return j_.__wrap(n)},p.exports.get_implicit_input=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,Pt),l(t,k),l(r,k),_.get_implicit_input(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return rt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.get_deposit=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,Pt),l(t,k),l(r,k),_.get_deposit(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return k.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_ada_for_output=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,Tt),l(t,P),_.min_ada_for_output(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_ada_required=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,rt),l(r,k),_.min_ada_required(i,v.__wbg_ptr,t,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return k.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_json_str_to_native_script=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g,c=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),S=g;_.encode_json_str_to_native_script(i,s,b,c,S,r);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return yt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}};function Rt(v,t){const r=t(v.length*4,4)>>>0;return mt().set(v,r/4),g=v.length,r}function St(v,t){try{return v.apply(this,t)}catch(r){_.__wbindgen_exn_store(L(r))}}p.exports.StakeCredKind=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),p.exports.TransactionMetadatumKind=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),p.exports.MetadataJsonSchema=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),p.exports.LanguageKind=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2"}),p.exports.PlutusDataKind=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),p.exports.RedeemerTagKind=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward"}),p.exports.PlutusDatumSchema=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),p.exports.CoinSelectionStrategyCIP2=Object.freeze({LargestFirst:0,0:"LargestFirst",RandomImprove:1,1:"RandomImprove",LargestFirstMultiAsset:2,2:"LargestFirstMultiAsset",RandomImproveMultiAsset:3,3:"RandomImproveMultiAsset"}),p.exports.CborContainerType=Object.freeze({Array:0,0:"Array",Map:1,1:"Map"}),p.exports.ScriptSchema=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),p.exports.CertificateKind=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert"}),p.exports.MIRPot=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),p.exports.MIRKind=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),p.exports.RelayKind=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),p.exports.NativeScriptKind=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),p.exports.ScriptHashNamespace=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScript:1,1:"PlutusScript",PlutusScriptV2:2,2:"PlutusScriptV2"}),p.exports.NetworkIdKind=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"});class nt{static __wrap(t){t=t>>>0;const r=Object.create(nt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_address_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.address_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const W=_.__wbindgen_add_to_stack_pointer(-16);var n=it(t)?0:u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g;_.address_to_bech32(W,this.__wbg_ptr,n,e);var i=a()[W/4+0],s=a()[W/4+1],b=a()[W/4+2],c=a()[W/4+3],S=i,Y=s;if(c)throw S=0,Y=0,d(b);return r=S,o=Y,h(S,Y)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_network_id(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Address=nt;class ht{static __wrap(t){t=t>>>0;const r=Object.create(ht.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assetname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetname_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}name(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AssetName=ht;class Kt{static __wrap(t){t=t>>>0;const r=Object.create(Kt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assetnames_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetnames_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetnames_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetnames_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Kt.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.assetnames_get(this.__wbg_ptr,t);return ht.__wrap(r)}add(t){l(t,ht),_.assetnames_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.AssetNames=Kt;class Ut{static __wrap(t){t=t>>>0;const r=Object.create(Ut.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assets_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assets_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assets_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assets_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return Ut.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ht),l(r,k);const o=_.assets_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:k.__wrap(o)}get(t){l(t,ht);const r=_.assets_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:k.__wrap(r)}keys(){const t=_.assets_keys(this.__wbg_ptr);return Kt.__wrap(t)}}p.exports.Assets=Ut;class Bt{static __wrap(t){t=t>>>0;const r=Object.create(Bt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.auxiliarydata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydata_new();return Bt.__wrap(t)}metadata(){const t=_.auxiliarydata_metadata(this.__wbg_ptr);return t===0?void 0:Nt.__wrap(t)}set_metadata(t){l(t,Nt),_.auxiliarydata_set_metadata(this.__wbg_ptr,t.__wbg_ptr)}native_scripts(){const t=_.auxiliarydata_native_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_native_scripts(t){l(t,Ct),_.auxiliarydata_set_native_scripts(this.__wbg_ptr,t.__wbg_ptr)}plutus_scripts(){const t=_.auxiliarydata_plutus_scripts(this.__wbg_ptr);return t===0?void 0:w_.__wrap(t)}set_plutus_scripts(t){l(t,w_),_.auxiliarydata_set_plutus_scripts(this.__wbg_ptr,t.__wbg_ptr)}prefer_alonzo_format(){return _.auxiliarydata_prefer_alonzo_format(this.__wbg_ptr)!==0}set_prefer_alonzo_format(t){_.auxiliarydata_set_prefer_alonzo_format(this.__wbg_ptr,t)}}p.exports.AuxiliaryData=Bt;class Gt{static __wrap(t){t=t>>>0;const r=Object.create(Gt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.auxiliarydatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AuxiliaryDataHash=Gt;class q{static __wrap(t){t=t>>>0;const r=Object.create(q.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydataset_free(t)}static new(){const t=_.auxiliarydataset_new();return q.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(r,Bt);const o=_.auxiliarydataset_insert(this.__wbg_ptr,t,r.__wbg_ptr);return o===0?void 0:Bt.__wrap(o)}get(t){const r=_.auxiliarydataset_get(this.__wbg_ptr,t);return r===0?void 0:Bt.__wrap(r)}indices(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydataset_indices(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AuxiliaryDataSet=q;class z{static __wrap(t){t=t>>>0;const r=Object.create(z.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_baseaddress_free(t)}static new(t,r,o){l(r,gt),l(o,gt);const n=_.baseaddress_new(t,r.__wbg_ptr,o.__wbg_ptr);return z.__wrap(n)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}stake_cred(){const t=_.baseaddress_stake_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.baseaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.baseaddress_from_address(t.__wbg_ptr);return r===0?void 0:z.__wrap(r)}}p.exports.BaseAddress=z;class H{static __wrap(t){t=t>>>0;const r=Object.create(H.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bigint_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bigint_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}is_zero(){return _.bigint_is_zero(this.__wbg_ptr)!==0}as_u64(){const t=_.bigint_as_u64(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_int(){const t=_.bigint_as_int(this.__wbg_ptr);return t===0?void 0:bt.__wrap(t)}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}add(t){l(t,H);const r=_.bigint_add(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}mul(t){l(t,H);const r=_.bigint_mul(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}static one(){const t=_.bigint_one();return H.__wrap(t)}increment(){const t=_.bigint_increment(this.__wbg_ptr);return H.__wrap(t)}div_ceil(t){l(t,H);const r=_.bigint_div_ceil(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}}p.exports.BigInt=H;class k{static __wrap(t){t=t>>>0;const r=Object.create(k.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bignum_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bignum_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static zero(){const t=_.bignum_zero();return k.__wrap(t)}static one(){const t=_.bignum_one();return k.__wrap(t)}is_zero(){return _.bignum_is_zero(this.__wbg_ptr)!==0}div_floor(t){l(t,k);const r=_.bignum_div_floor(this.__wbg_ptr,t.__wbg_ptr);return k.__wrap(r)}checked_mul(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_mul(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_add(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_sub(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){l(t,k);const r=_.bignum_clamped_sub(this.__wbg_ptr,t.__wbg_ptr);return k.__wrap(r)}compare(t){return l(t,k),_.bignum_compare(this.__wbg_ptr,t.__wbg_ptr)}less_than(t){return l(t,k),_.bignum_less_than(this.__wbg_ptr,t.__wbg_ptr)!==0}static max_value(){const t=_.bignum_max_value();return k.__wrap(t)}static max(t,r){l(t,k),l(r,k);const o=_.bignum_max(t.__wbg_ptr,r.__wbg_ptr);return k.__wrap(o)}}p.exports.BigNum=k;class ft{static __wrap(t){t=t>>>0;const r=Object.create(ft.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bip32privatekey_free(t)}derive(t){const r=_.bip32privatekey_derive(this.__wbg_ptr,t);return ft.__wrap(r)}static from_128_xprv(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32privatekey_from_128_xprv(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_128_xprv(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_generate_ed25519_bip32(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return ft.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=_.bip32privatekey_to_raw_key(this.__wbg_ptr);return l_.__wrap(t)}to_public(){const t=_.bip32privatekey_to_public(this.__wbg_ptr);return vt.__wrap(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32privatekey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32privatekey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_bip39_entropy(t,r){const o=I(t,_.__wbindgen_malloc),n=g,e=I(r,_.__wbindgen_malloc),i=g,s=_.bip32privatekey_from_bip39_entropy(o,n,e,i);return ft.__wrap(s)}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32privatekey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Bip32PrivateKey=ft;class vt{static __wrap(t){t=t>>>0;const r=Object.create(vt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bip32publickey_free(t)}derive(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_derive(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=_.bip32publickey_to_raw_key(this.__wbg_ptr);return o_.__wrap(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32publickey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32publickey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32publickey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Bip32PublicKey=vt;class ut{static __wrap(t){t=t>>>0;const r=Object.create(ut.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_block_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.block_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.block_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.block_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}header(){const t=_.block_header(this.__wbg_ptr);return e_.__wrap(t)}transaction_bodies(){const t=_.block_transaction_bodies(this.__wbg_ptr);return ar.__wrap(t)}transaction_witness_sets(){const t=_.block_transaction_witness_sets(this.__wbg_ptr);return sr.__wrap(t)}auxiliary_data_set(){const t=_.block_auxiliary_data_set(this.__wbg_ptr);return q.__wrap(t)}invalid_transactions(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_invalid_transactions(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o,n,e){l(t,e_),l(r,ar),l(o,sr),l(n,q);const i=Rt(e,_.__wbindgen_malloc),s=g,b=_.block_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr,i,s);return ut.__wrap(b)}}p.exports.Block=ut;class st{static __wrap(t){t=t>>>0;const r=Object.create(st.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_blockhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.blockhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.blockhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.blockhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.BlockHash=st;class lt{static __wrap(t){t=t>>>0;const r=Object.create(lt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bootstrapwitness_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bootstrapwitness_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bootstrapwitness_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=_.bootstrapwitness_vkey(this.__wbg_ptr);return Lt.__wrap(t)}signature(){const t=_.bootstrapwitness_signature(this.__wbg_ptr);return wt.__wrap(t)}chain_code(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o,n){l(t,Lt),l(r,wt);const e=I(o,_.__wbindgen_malloc),i=g,s=I(n,_.__wbindgen_malloc),b=g,c=_.bootstrapwitness_new(t.__wbg_ptr,r.__wbg_ptr,e,i,s,b);return lt.__wrap(c)}}p.exports.BootstrapWitness=lt;class j{static __wrap(t){t=t>>>0;const r=Object.create(j.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bootstrapwitnesses_free(t)}static new(){const t=_.assetnames_new();return j.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.bootstrapwitnesses_get(this.__wbg_ptr,t);return lt.__wrap(r)}add(t){l(t,lt),_.bootstrapwitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.BootstrapWitnesses=j;class E{static __wrap(t){t=t>>>0;const r=Object.create(E.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_byronaddress_free(t)}to_base58(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_to_base58(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.byronaddress_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return _.byronaddress_byron_protocol_magic(this.__wbg_ptr)>>>0}attributes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_network_id(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.byronaddress_from_base58(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,r){l(t,vt);const o=_.byronaddress_icarus_from_key(t.__wbg_ptr,r);return E.__wrap(o)}static is_valid(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;return _.byronaddress_is_valid(r,o)!==0}to_address(){const t=_.byronaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.byronaddress_from_address(t.__wbg_ptr);return r===0?void 0:E.__wrap(r)}}p.exports.ByronAddress=E;class B{static __wrap(t){t=t>>>0;const r=Object.create(B.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_certificate_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.certificate_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificate_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificate_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){l(t,nr);const r=_.certificate_new_stake_registration(t.__wbg_ptr);return B.__wrap(r)}static new_stake_deregistration(t){l(t,er);const r=_.certificate_new_stake_deregistration(t.__wbg_ptr);return B.__wrap(r)}static new_stake_delegation(t){l(t,rr);const r=_.certificate_new_stake_delegation(t.__wbg_ptr);return B.__wrap(r)}static new_pool_registration(t){l(t,L_);const r=_.certificate_new_pool_registration(t.__wbg_ptr);return B.__wrap(r)}static new_pool_retirement(t){l(t,V_);const r=_.certificate_new_pool_retirement(t.__wbg_ptr);return B.__wrap(r)}static new_genesis_key_delegation(t){l(t,Jt);const r=_.certificate_new_genesis_key_delegation(t.__wbg_ptr);return B.__wrap(r)}static new_move_instantaneous_rewards_cert(t){l(t,M_);const r=_.certificate_new_move_instantaneous_rewards_cert(t.__wbg_ptr);return B.__wrap(r)}kind(){return _.certificate_kind(this.__wbg_ptr)>>>0}as_stake_registration(){const t=_.certificate_as_stake_registration(this.__wbg_ptr);return t===0?void 0:nr.__wrap(t)}as_stake_deregistration(){const t=_.certificate_as_stake_deregistration(this.__wbg_ptr);return t===0?void 0:er.__wrap(t)}as_stake_delegation(){const t=_.certificate_as_stake_delegation(this.__wbg_ptr);return t===0?void 0:rr.__wrap(t)}as_pool_registration(){const t=_.certificate_as_pool_registration(this.__wbg_ptr);return t===0?void 0:L_.__wrap(t)}as_pool_retirement(){const t=_.certificate_as_pool_retirement(this.__wbg_ptr);return t===0?void 0:V_.__wrap(t)}as_genesis_key_delegation(){const t=_.certificate_as_genesis_key_delegation(this.__wbg_ptr);return t===0?void 0:Jt.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=_.certificate_as_move_instantaneous_rewards_cert(this.__wbg_ptr);return t===0?void 0:M_.__wrap(t)}}p.exports.Certificate=B;class F{static __wrap(t){t=t>>>0;const r=Object.create(F.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_certificates_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.certificates_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificates_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificates_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return F.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.certificates_get(this.__wbg_ptr,t);return B.__wrap(r)}add(t){l(t,B),_.certificates_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Certificates=F;class D{static __wrap(t){t=t>>>0;const r=Object.create(D.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_constrplutusdata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.constrplutusdata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.constrplutusdata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return D.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.constrplutusdata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.constrplutusdata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return D.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}data(){const t=_.constrplutusdata_data(this.__wbg_ptr);return Zt.__wrap(t)}static new(t,r){l(t,k),l(r,Zt);const o=_.constrplutusdata_new(t.__wbg_ptr,r.__wbg_ptr);return D.__wrap(o)}}p.exports.ConstrPlutusData=D;class N{static __wrap(t){t=t>>>0;const r=Object.create(N.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_costmodel_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.costmodel_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmodel_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmodel_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return N.__wrap(t)}set(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(r,bt),_.costmodel_set(i,this.__wbg_ptr,t,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return bt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_get(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}}p.exports.CostModel=N;class M{static __wrap(t){t=t>>>0;const r=Object.create(M.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_costmdls_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.costmdls_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmdls_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmdls_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return M.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,Mt),l(r,N);const o=_.costmdls_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:N.__wrap(o)}get(t){l(t,Mt);const r=_.costmdls_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:N.__wrap(r)}keys(){const t=_.costmdls_keys(this.__wbg_ptr);return mr.__wrap(t)}retain_language_versions(t){l(t,mr);const r=_.costmdls_retain_language_versions(this.__wbg_ptr,t.__wbg_ptr);return M.__wrap(r)}}p.exports.Costmdls=M;class Q{static __wrap(t){t=t>>>0;const r=Object.create(Q.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.dnsrecordaoraaaa_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}record(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.DNSRecordAorAAAA=Q;class T{static __wrap(t){t=t>>>0;const r=Object.create(T.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordsrv_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.dnsrecordsrv_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordsrv_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordsrv_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordsrv_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}record(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.DNSRecordSRV=T;class P{static __wrap(t){t=t>>>0;const r=Object.create(P.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datacost_free(t)}static new_coins_per_word(t){l(t,k);const r=_.datacost_new_coins_per_word(t.__wbg_ptr);return P.__wrap(r)}static new_coins_per_byte(t){l(t,k);const r=_.datacost_new_coins_per_byte(t.__wbg_ptr);return P.__wrap(r)}coins_per_byte(){const t=_.datacost_coins_per_byte(this.__wbg_ptr);return k.__wrap(t)}}p.exports.DataCost=P;class U{static __wrap(t){t=t>>>0;const r=Object.create(U.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.datahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.datahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.datahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.DataHash=U;class V{static __wrap(t){t=t>>>0;const r=Object.create(V.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datumsource_free(t)}static new(t){l(t,at);const r=_.datumsource_new(t.__wbg_ptr);return V.__wrap(r)}static new_ref_input(t){l(t,pt);const r=_.datumsource_new_ref_input(t.__wbg_ptr);return V.__wrap(r)}}p.exports.DatumSource=V;class G{static __wrap(t){t=t>>>0;const r=Object.create(G.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519keyhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ed25519KeyHash=G;class _t{static __wrap(t){t=t>>>0;const r=Object.create(_t.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519keyhashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return _t.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.ed25519keyhashes_get(this.__wbg_ptr,t);return G.__wrap(r)}add(t){l(t,G),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}to_option(){const t=_.ed25519keyhashes_to_option(this.__wbg_ptr);return t===0?void 0:_t.__wrap(t)}}p.exports.Ed25519KeyHashes=_t;class wt{static __wrap(t){t=t>>>0;const r=Object.create(wt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519signature_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519signature_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519signature_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519signature_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519signature_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519signature_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519signature_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ed25519Signature=wt;class qt{static __wrap(t){t=t>>>0;const r=Object.create(qt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_enterpriseaddress_free(t)}static new(t,r){l(r,gt);const o=_.enterpriseaddress_new(t,r.__wbg_ptr);return qt.__wrap(o)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.enterpriseaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.enterpriseaddress_from_address(t.__wbg_ptr);return r===0?void 0:qt.__wrap(r)}}p.exports.EnterpriseAddress=qt;class xt{static __wrap(t){t=t>>>0;const r=Object.create(xt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_exunitprices_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.exunitprices_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunitprices_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunitprices_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=_.exunitprices_mem_price(this.__wbg_ptr);return Qt.__wrap(t)}step_price(){const t=_.exunitprices_step_price(this.__wbg_ptr);return Qt.__wrap(t)}static new(t,r){l(t,Qt),l(r,Qt);const o=_.exunitprices_new(t.__wbg_ptr,r.__wbg_ptr);return xt.__wrap(o)}}p.exports.ExUnitPrices=xt;class dt{static __wrap(t){t=t>>>0;const r=Object.create(dt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_exunits_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.exunits_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunits_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunits_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}steps(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.exunits_new(t.__wbg_ptr,r.__wbg_ptr);return dt.__wrap(o)}}p.exports.ExUnits=dt;class It{static __wrap(t){t=t>>>0;const r=Object.create(It.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_fixedtransaction_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.fixedtransaction_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return It.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.fixedtransaction_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return It.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=I(t,_.__wbindgen_malloc),c=g,S=I(r,_.__wbindgen_malloc),Y=g;_.fixedtransaction_new(s,b,c,S,Y,o);var n=a()[s/4+0],e=a()[s/4+1],i=a()[s/4+2];if(i)throw d(e);return It.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_with_auxiliary(t,r,o,n){try{const b=_.__wbindgen_add_to_stack_pointer(-16),c=I(t,_.__wbindgen_malloc),S=g,Y=I(r,_.__wbindgen_malloc),W=g,jr=I(o,_.__wbindgen_malloc),Rr=g;_.fixedtransaction_new_with_auxiliary(b,c,S,Y,W,jr,Rr,n);var e=a()[b/4+0],i=a()[b/4+1],s=a()[b/4+2];if(s)throw d(i);return It.__wrap(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}body(){const t=_.fixedtransaction_body(this.__wbg_ptr);return Pt.__wrap(t)}raw_body(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_body(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_body(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_body(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_witness_set(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_witness_set(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}witness_set(){const t=_.fixedtransaction_witness_set(this.__wbg_ptr);return c_.__wrap(t)}raw_witness_set(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_witness_set(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_is_valid(t){_.fixedtransaction_set_is_valid(this.__wbg_ptr,t)}is_valid(){return _.fixedtransaction_is_valid(this.__wbg_ptr)!==0}set_auxiliary_data(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_auxiliary_data(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}auxiliary_data(){const t=_.fixedtransaction_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}raw_auxiliary_data(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_auxiliary_data(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.FixedTransaction=It;class Nt{static __wrap(t){t=t>>>0;const r=Object.create(Nt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.generaltransactionmetadata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.generaltransactionmetadata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.generaltransactionmetadata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Nt.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,k),l(r,ct);const o=_.generaltransactionmetadata_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}get(t){l(t,k);const r=_.generaltransactionmetadata_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:ct.__wrap(r)}keys(){const t=_.generaltransactionmetadata_keys(this.__wbg_ptr);return Ar.__wrap(t)}}p.exports.GeneralTransactionMetadata=Nt;class y_{static __wrap(t){t=t>>>0;const r=Object.create(y_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesisdelegatehash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesisdelegatehash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesisdelegatehash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.GenesisDelegateHash=y_;class Wt{static __wrap(t){t=t>>>0;const r=Object.create(Wt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesishash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesishash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.GenesisHash=Wt;class v_{static __wrap(t){t=t>>>0;const r=Object.create(v_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesishashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesishashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesishashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.genesishashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return v_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.genesishashes_get(this.__wbg_ptr,t);return Wt.__wrap(r)}add(t){l(t,Wt),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.GenesisHashes=v_;class Jt{static __wrap(t){t=t>>>0;const r=Object.create(Jt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesiskeydelegation_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesiskeydelegation_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesiskeydelegation_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=_.genesiskeydelegation_genesishash(this.__wbg_ptr);return Wt.__wrap(t)}genesis_delegate_hash(){const t=_.genesiskeydelegation_genesis_delegate_hash(this.__wbg_ptr);return y_.__wrap(t)}vrf_keyhash(){const t=_.genesiskeydelegation_vrf_keyhash(this.__wbg_ptr);return B_.__wrap(t)}static new(t,r,o){l(t,Wt),l(r,y_),l(o,B_);const n=_.genesiskeydelegation_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return Jt.__wrap(n)}}p.exports.GenesisKeyDelegation=Jt;class e_{static __wrap(t){t=t>>>0;const r=Object.create(e_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_header_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.header_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.header_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.header_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=_.header_header_body(this.__wbg_ptr);return zt.__wrap(t)}body_signature(){const t=_.header_body_signature(this.__wbg_ptr);return Br.__wrap(t)}static new(t,r){l(t,zt),l(r,Br);const o=_.header_new(t.__wbg_ptr,r.__wbg_ptr);return e_.__wrap(o)}}p.exports.Header=e_;class zt{static __wrap(t){t=t>>>0;const r=Object.create(zt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_headerbody_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.headerbody_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.headerbody_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.headerbody_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}block_number(){return _.headerbody_block_number(this.__wbg_ptr)>>>0}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}prev_hash(){const t=_.headerbody_prev_hash(this.__wbg_ptr);return t===0?void 0:st.__wrap(t)}issuer_vkey(){const t=_.headerbody_issuer_vkey(this.__wbg_ptr);return Lt.__wrap(t)}vrf_vkey(){const t=_.headerbody_vrf_vkey(this.__wbg_ptr);return cr.__wrap(t)}has_nonce_and_leader_vrf(){return _.headerbody_has_nonce_and_leader_vrf(this.__wbg_ptr)!==0}nonce_vrf_or_nothing(){const t=_.headerbody_nonce_vrf_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}leader_vrf_or_nothing(){const t=_.headerbody_leader_vrf_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}has_vrf_result(){return _.headerbody_has_vrf_result(this.__wbg_ptr)!==0}vrf_result_or_nothing(){const t=_.headerbody_vrf_result_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}block_body_size(){return _.headerbody_block_body_size(this.__wbg_ptr)>>>0}block_body_hash(){const t=_.headerbody_block_body_hash(this.__wbg_ptr);return st.__wrap(t)}operational_cert(){const t=_.headerbody_operational_cert(this.__wbg_ptr);return A_.__wrap(t)}protocol_version(){const t=_.headerbody_protocol_version(this.__wbg_ptr);return a_.__wrap(t)}static new(t,r,o,n,e,i,s,b,c,S){let Y=0;it(o)||(l(o,st),Y=o.__destroy_into_raw()),l(n,Lt),l(e,cr),l(i,p_),l(b,st),l(c,A_),l(S,a_);const W=_.headerbody_new(t,r,Y,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s,b.__wbg_ptr,c.__wbg_ptr,S.__wbg_ptr);return zt.__wrap(W)}static new_headerbody(t,r,o,n,e,i,s,b,c,S){l(r,k);let Y=0;it(o)||(l(o,st),Y=o.__destroy_into_raw()),l(n,Lt),l(e,cr),l(i,p_),l(b,st),l(c,A_),l(S,a_);const W=_.headerbody_new_headerbody(t,r.__wbg_ptr,Y,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s,b.__wbg_ptr,c.__wbg_ptr,S.__wbg_ptr);return zt.__wrap(W)}}p.exports.HeaderBody=zt;class Yt{static __wrap(t){t=t>>>0;const r=Object.create(Yt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_inputwithscriptwitness_free(t)}static new_with_native_script_witness(t,r){l(t,pt),l(r,yt);const o=_.inputwithscriptwitness_new_with_native_script_witness(t.__wbg_ptr,r.__wbg_ptr);return Yt.__wrap(o)}static new_with_plutus_witness(t,r){l(t,pt),l(r,n_);const o=_.inputwithscriptwitness_new_with_plutus_witness(t.__wbg_ptr,r.__wbg_ptr);return Yt.__wrap(o)}input(){const t=_.inputwithscriptwitness_input(this.__wbg_ptr);return pt.__wrap(t)}}p.exports.InputWithScriptWitness=Yt;class Ht{static __wrap(t){t=t>>>0;const r=Object.create(Ht.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_inputswithscriptwitness_free(t)}static new(){const t=_.certificates_new();return Ht.__wrap(t)}add(t){l(t,Yt),_.inputswithscriptwitness_add(this.__wbg_ptr,t.__wbg_ptr)}get(t){const r=_.inputswithscriptwitness_get(this.__wbg_ptr,t);return Yt.__wrap(r)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}}p.exports.InputsWithScriptWitness=Ht;class bt{static __wrap(t){t=t>>>0;const r=Object.create(bt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_int_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.int_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,k);const r=_.int_new(t.__wbg_ptr);return bt.__wrap(r)}static new_negative(t){l(t,k);const r=_.int_new_negative(t.__wbg_ptr);return bt.__wrap(r)}static new_i32(t){const r=_.int_new_i32(t);return bt.__wrap(r)}is_positive(){return _.int_is_positive(this.__wbg_ptr)!==0}as_positive(){const t=_.int_as_positive(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_negative(){const t=_.int_as_negative(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_i32(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32_or_nothing(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32_or_fail(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Int=bt;class T_{static __wrap(t){t=t>>>0;const r=Object.create(T_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ipv4_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv4_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv4_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv4_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv4_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_ip(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ipv4=T_;class N_{static __wrap(t){t=t>>>0;const r=Object.create(N_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ipv6_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv6_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv6_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv6_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv6_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_ip(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ipv6=N_;class Sr{static __wrap(t){t=t>>>0;const r=Object.create(Sr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_jsvecstring_free(t)}static new(){const t=_.jsvecstring_new();return Sr.__wrap(t)}len(){return _.jsvecstring_len(this.__wbg_ptr)>>>0}is_empty(){return _.jsvecstring_is_empty(this.__wbg_ptr)!==0}get(t){let r,o;try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.jsvecstring_get(i,this.__wbg_ptr,t);var n=a()[i/4+0],e=a()[i/4+1];return r=n,o=e,h(n,e)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}add(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;_.jsvecstring_add(this.__wbg_ptr,r,o)}}p.exports.JsVecString=Sr;class Br{static __wrap(t){t=t>>>0;const r=Object.create(Br.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_kessignature_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.kessignature_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Br.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.KESSignature=Br;class wr{static __wrap(t){t=t>>>0;const r=Object.create(wr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_kesvkey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.kesvkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.kesvkey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.kesvkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.KESVKey=wr;class Mt{static __wrap(t){t=t>>>0;const r=Object.create(Mt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_language_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.language_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.language_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.language_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=_.language_new_plutus_v1();return Mt.__wrap(t)}static new_plutus_v2(){const t=_.language_new_plutus_v2();return Mt.__wrap(t)}kind(){return _.language_kind(this.__wbg_ptr)>>>0}}p.exports.Language=Mt;class mr{static __wrap(t){t=t>>>0;const r=Object.create(mr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_languages_free(t)}static new(){const t=_.ed25519keyhashes_new();return mr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.languages_get(this.__wbg_ptr,t);return Mt.__wrap(r)}add(t){l(t,Mt);var r=t.__destroy_into_raw();_.languages_add(this.__wbg_ptr,r)}static list(){const t=_.languages_list();return mr.__wrap(t)}}p.exports.Languages=mr;class qr{static __wrap(t){t=t>>>0;const r=Object.create(qr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.legacydaedalusprivatekey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return qr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.legacydaedalusprivatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.legacydaedalusprivatekey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.LegacyDaedalusPrivateKey=qr;class Or{static __wrap(t){t=t>>>0;const r=Object.create(Or.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_linearfee_free(t)}constant(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}coefficient(){const t=_.linearfee_coefficient(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.linearfee_new(t.__wbg_ptr,r.__wbg_ptr);return Or.__wrap(o)}}p.exports.LinearFee=Or;class U_{static __wrap(t){t=t>>>0;const r=Object.create(U_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.mirtostakecredentials_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mirtostakecredentials_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mirtostakecredentials_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return U_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,gt),l(r,bt);const o=_.mirtostakecredentials_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:bt.__wrap(o)}get(t){l(t,gt);const r=_.mirtostakecredentials_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:bt.__wrap(r)}keys(){const t=_.mirtostakecredentials_keys(this.__wbg_ptr);return hr.__wrap(t)}}p.exports.MIRToStakeCredentials=U_;class F_{static __wrap(t){t=t>>>0;const r=Object.create(F_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_metadatalist_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.metadatalist_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.metadatalist_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatalist_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatalist_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return F_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.metadatalist_get(this.__wbg_ptr,t);return ct.__wrap(r)}add(t){l(t,ct),_.metadatalist_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.MetadataList=F_;class lr{static __wrap(t){t=t>>>0;const r=Object.create(lr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_metadatamap_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.metadatamap_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatamap_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return lr.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ct),l(r,ct);const o=_.metadatamap_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}insert_str(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;l(r,ct),_.metadatamap_insert_str(i,this.__wbg_ptr,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return o===0?void 0:ct.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,r){l(r,ct);const o=_.metadatamap_insert_i32(this.__wbg_ptr,t,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}get(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,ct),_.metadatamap_get(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatamap_get_str(e,this.__wbg_ptr,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_get_i32(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}has(t){return l(t,ct),_.metadatamap_has(this.__wbg_ptr,t.__wbg_ptr)!==0}keys(){const t=_.metadatamap_keys(this.__wbg_ptr);return F_.__wrap(t)}}p.exports.MetadataMap=lr;class Xt{static __wrap(t){t=t>>>0;const r=Object.create(Xt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mint_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.mint_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mint_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mint_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Xt.__wrap(t)}static new_from_entry(t,r){l(t,kt),l(r,m_);const o=_.mint_new_from_entry(t.__wbg_ptr,r.__wbg_ptr);return Xt.__wrap(o)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,kt),l(r,m_);const o=_.mint_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:m_.__wrap(o)}get(t){l(t,kt);const r=_.mint_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:m_.__wrap(r)}get_all(t){l(t,kt);const r=_.mint_get_all(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:Xr.__wrap(r)}keys(){const t=_.mint_keys(this.__wbg_ptr);return W_.__wrap(t)}as_positive_multiasset(){const t=_.mint_as_positive_multiasset(this.__wbg_ptr);return Ft.__wrap(t)}as_negative_multiasset(){const t=_.mint_as_negative_multiasset(this.__wbg_ptr);return Ft.__wrap(t)}}p.exports.Mint=Xt;class m_{static __wrap(t){t=t>>>0;const r=Object.create(m_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintassets_free(t)}static new(){const t=_.assets_new();return m_.__wrap(t)}static new_from_entry(t,r){l(t,ht),l(r,bt);var o=r.__destroy_into_raw();const n=_.mintassets_new_from_entry(t.__wbg_ptr,o);return m_.__wrap(n)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ht),l(r,bt);var o=r.__destroy_into_raw();const n=_.mintassets_insert(this.__wbg_ptr,t.__wbg_ptr,o);return n===0?void 0:bt.__wrap(n)}get(t){l(t,ht);const r=_.mintassets_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:bt.__wrap(r)}keys(){const t=_.mintassets_keys(this.__wbg_ptr);return Kt.__wrap(t)}}p.exports.MintAssets=m_;class Qr{static __wrap(t){t=t>>>0;const r=Object.create(Qr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintbuilder_free(t)}static new(){const t=_.assets_new();return Qr.__wrap(t)}add_asset(t,r,o){l(t,kr),l(r,ht),l(o,bt),_.mintbuilder_add_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}set_asset(t,r,o){l(t,kr),l(r,ht),l(o,bt),_.mintbuilder_set_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}build(){const t=_.mintbuilder_build(this.__wbg_ptr);return Xt.__wrap(t)}get_native_scripts(){const t=_.mintbuilder_get_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}get_plutus_witnesses(){const t=_.mintbuilder_get_plutus_witnesses(this.__wbg_ptr);return z_.__wrap(t)}get_ref_inputs(){const t=_.mintbuilder_get_ref_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_redeeemers(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mintbuilder_get_redeeemers(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return b_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}has_plutus_scripts(){return _.mintbuilder_has_plutus_scripts(this.__wbg_ptr)!==0}has_native_scripts(){return _.mintbuilder_has_native_scripts(this.__wbg_ptr)!==0}}p.exports.MintBuilder=Qr;class kr{static __wrap(t){t=t>>>0;const r=Object.create(kr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintwitness_free(t)}static new_native_script(t){l(t,yt);const r=_.mintwitness_new_native_script(t.__wbg_ptr);return kr.__wrap(r)}static new_plutus_script(t,r){l(t,q_),l(r,$t);const o=_.mintwitness_new_plutus_script(t.__wbg_ptr,r.__wbg_ptr);return kr.__wrap(o)}}p.exports.MintWitness=kr;class Xr{static __wrap(t){t=t>>>0;const r=Object.create(Xr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintsassets_free(t)}}p.exports.MintsAssets=Xr;class k_{static __wrap(t){t=t>>>0;const r=Object.create(k_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.moveinstantaneousreward_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousreward_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousreward_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,r){l(r,k);const o=_.moveinstantaneousreward_new_to_other_pot(t,r.__wbg_ptr);return k_.__wrap(o)}static new_to_stake_creds(t,r){l(r,U_);const o=_.moveinstantaneousreward_new_to_stake_creds(t,r.__wbg_ptr);return k_.__wrap(o)}pot(){return _.moveinstantaneousreward_pot(this.__wbg_ptr)>>>0}kind(){return _.moveinstantaneousreward_kind(this.__wbg_ptr)>>>0}as_to_other_pot(){const t=_.moveinstantaneousreward_as_to_other_pot(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_to_stake_creds(){const t=_.moveinstantaneousreward_as_to_stake_creds(this.__wbg_ptr);return t===0?void 0:U_.__wrap(t)}}p.exports.MoveInstantaneousReward=k_;class M_{static __wrap(t){t=t>>>0;const r=Object.create(M_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.moveinstantaneousrewardscert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousrewardscert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousrewardscert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=_.moveinstantaneousrewardscert_move_instantaneous_reward(this.__wbg_ptr);return k_.__wrap(t)}static new(t){l(t,k_);const r=_.moveinstantaneousrewardscert_new(t.__wbg_ptr);return M_.__wrap(r)}}p.exports.MoveInstantaneousRewardsCert=M_;class Ft{static __wrap(t){t=t>>>0;const r=Object.create(Ft.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_multiasset_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.multiasset_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multiasset_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multiasset_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return Ft.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,kt),l(r,Ut);const o=_.multiasset_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:Ut.__wrap(o)}get(t){l(t,kt);const r=_.multiasset_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:Ut.__wrap(r)}set_asset(t,r,o){l(t,kt),l(r,ht),l(o,k);var n=o.__destroy_into_raw();const e=_.multiasset_set_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n);return e===0?void 0:k.__wrap(e)}get_asset(t,r){l(t,kt),l(r,ht);const o=_.multiasset_get_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return k.__wrap(o)}keys(){const t=_.multiasset_keys(this.__wbg_ptr);return W_.__wrap(t)}sub(t){l(t,Ft);const r=_.multiasset_sub(this.__wbg_ptr,t.__wbg_ptr);return Ft.__wrap(r)}}p.exports.MultiAsset=Ft;class P_{static __wrap(t){t=t>>>0;const r=Object.create(P_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_multihostname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.multihostname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multihostname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multihostname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=_.multihostname_dns_name(this.__wbg_ptr);return T.__wrap(t)}static new(t){l(t,T);const r=_.multihostname_new(t.__wbg_ptr);return P_.__wrap(r)}}p.exports.MultiHostName=P_;class yt{static __wrap(t){t=t>>>0;const r=Object.create(yt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nativescript_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nativescript_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nativescript_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nativescript_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=_.nativescript_hash(this.__wbg_ptr);return kt.__wrap(t)}static new_script_pubkey(t){l(t,Z_);const r=_.nativescript_new_script_pubkey(t.__wbg_ptr);return yt.__wrap(r)}static new_script_all(t){l(t,G_);const r=_.nativescript_new_script_all(t.__wbg_ptr);return yt.__wrap(r)}static new_script_any(t){l(t,J_);const r=_.nativescript_new_script_any(t.__wbg_ptr);return yt.__wrap(r)}static new_script_n_of_k(t){l(t,X_);const r=_.nativescript_new_script_n_of_k(t.__wbg_ptr);return yt.__wrap(r)}static new_timelock_start(t){l(t,E_);const r=_.nativescript_new_timelock_start(t.__wbg_ptr);return yt.__wrap(r)}static new_timelock_expiry(t){l(t,C_);const r=_.nativescript_new_timelock_expiry(t.__wbg_ptr);return yt.__wrap(r)}kind(){return _.nativescript_kind(this.__wbg_ptr)>>>0}as_script_pubkey(){const t=_.nativescript_as_script_pubkey(this.__wbg_ptr);return t===0?void 0:Z_.__wrap(t)}as_script_all(){const t=_.nativescript_as_script_all(this.__wbg_ptr);return t===0?void 0:G_.__wrap(t)}as_script_any(){const t=_.nativescript_as_script_any(this.__wbg_ptr);return t===0?void 0:J_.__wrap(t)}as_script_n_of_k(){const t=_.nativescript_as_script_n_of_k(this.__wbg_ptr);return t===0?void 0:X_.__wrap(t)}as_timelock_start(){const t=_.nativescript_as_timelock_start(this.__wbg_ptr);return t===0?void 0:E_.__wrap(t)}as_timelock_expiry(){const t=_.nativescript_as_timelock_expiry(this.__wbg_ptr);return t===0?void 0:C_.__wrap(t)}get_required_signers(){const t=_.nativescript_get_required_signers(this.__wbg_ptr);return _t.__wrap(t)}}p.exports.NativeScript=yt;class Ct{static __wrap(t){t=t>>>0;const r=Object.create(Ct.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nativescripts_free(t)}static new(){const t=_.certificates_new();return Ct.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.nativescripts_get(this.__wbg_ptr,t);return yt.__wrap(r)}add(t){l(t,yt),_.nativescripts_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.NativeScripts=Ct;class x_{static __wrap(t){t=t>>>0;const r=Object.create(x_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_networkid_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.networkid_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.networkid_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.networkid_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=_.language_new_plutus_v1();return x_.__wrap(t)}static mainnet(){const t=_.language_new_plutus_v2();return x_.__wrap(t)}kind(){return _.networkid_kind(this.__wbg_ptr)>>>0}}p.exports.NetworkId=x_;class br{static __wrap(t){t=t>>>0;const r=Object.create(br.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_networkinfo_free(t)}static new(t,r){const o=_.networkinfo_new(t,r);return br.__wrap(o)}network_id(){return _.networkinfo_network_id(this.__wbg_ptr)}protocol_magic(){return _.networkinfo_protocol_magic(this.__wbg_ptr)>>>0}static testnet_preview(){const t=_.networkinfo_testnet_preview();return br.__wrap(t)}static testnet_preprod(){const t=_.networkinfo_testnet_preprod();return br.__wrap(t)}static testnet(){const t=_.networkinfo_testnet();return br.__wrap(t)}static mainnet(){const t=_.networkinfo_mainnet();return br.__wrap(t)}}p.exports.NetworkInfo=br;class K_{static __wrap(t){t=t>>>0;const r=Object.create(K_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nonce_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nonce_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nonce_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nonce_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=_.nonce_new_identity();return K_.__wrap(t)}static new_from_hash(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nonce_new_from_hash(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_get_hash(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Nonce=K_;class A_{static __wrap(t){t=t>>>0;const r=Object.create(A_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_operationalcert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.operationalcert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.operationalcert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.operationalcert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=_.operationalcert_hot_vkey(this.__wbg_ptr);return wr.__wrap(t)}sequence_number(){return _.operationalcert_sequence_number(this.__wbg_ptr)>>>0}kes_period(){return _.operationalcert_kes_period(this.__wbg_ptr)>>>0}sigma(){const t=_.operationalcert_sigma(this.__wbg_ptr);return wt.__wrap(t)}static new(t,r,o,n){l(t,wr),l(n,wt);const e=_.operationalcert_new(t.__wbg_ptr,r,o,n.__wbg_ptr);return A_.__wrap(e)}}p.exports.OperationalCert=A_;class Dr{static __wrap(t){t=t>>>0;const r=Object.create(Dr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_outputdatum_free(t)}static new_data_hash(t){l(t,U);const r=_.outputdatum_new_data_hash(t.__wbg_ptr);return Dr.__wrap(r)}static new_data(t){l(t,at);const r=_.datumsource_new(t.__wbg_ptr);return Dr.__wrap(r)}data_hash(){const t=_.outputdatum_data_hash(this.__wbg_ptr);return t===0?void 0:U.__wrap(t)}data(){const t=_.outputdatum_data(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}}p.exports.OutputDatum=Dr;class at{static __wrap(t){t=t>>>0;const r=Object.create(at.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusdata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusdata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusdata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){l(t,D);const r=_.plutusdata_new_constr_plutus_data(t.__wbg_ptr);return at.__wrap(r)}static new_empty_constr_plutus_data(t){l(t,k);const r=_.plutusdata_new_empty_constr_plutus_data(t.__wbg_ptr);return at.__wrap(r)}static new_single_value_constr_plutus_data(t,r){l(t,k),l(r,at);const o=_.plutusdata_new_single_value_constr_plutus_data(t.__wbg_ptr,r.__wbg_ptr);return at.__wrap(o)}static new_map(t){l(t,gr);const r=_.plutusdata_new_map(t.__wbg_ptr);return at.__wrap(r)}static new_list(t){l(t,Zt);const r=_.plutusdata_new_list(t.__wbg_ptr);return at.__wrap(r)}static new_integer(t){l(t,H);const r=_.plutusdata_new_integer(t.__wbg_ptr);return at.__wrap(r)}static new_bytes(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusdata_new_bytes(r,o);return at.__wrap(n)}kind(){return _.plutusdata_kind(this.__wbg_ptr)>>>0}as_constr_plutus_data(){const t=_.plutusdata_as_constr_plutus_data(this.__wbg_ptr);return t===0?void 0:D.__wrap(t)}as_map(){const t=_.plutusdata_as_map(this.__wbg_ptr);return t===0?void 0:gr.__wrap(t)}as_list(){const t=_.plutusdata_as_list(this.__wbg_ptr);return t===0?void 0:Zt.__wrap(t)}as_integer(){const t=_.plutusdata_as_integer(this.__wbg_ptr);return t===0?void 0:H.__wrap(t)}as_bytes(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_as_bytes(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);_.decode_plutus_datum_to_json_str(S,this.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_json(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;_.encode_json_str_to_plutus_datum(i,s,b,r);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return at.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_address(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),_.plutusdata_from_address(e,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PlutusData=at;class Zt{static __wrap(t){t=t>>>0;const r=Object.create(Zt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuslist_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutuslist_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutuslist_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutuslist_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutuslist_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.plutuslist_new();return Zt.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutuslist_get(this.__wbg_ptr,t);return at.__wrap(r)}add(t){l(t,at),_.plutuslist_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusList=Zt;class gr{static __wrap(t){t=t>>>0;const r=Object.create(gr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusmap_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusmap_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusmap_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusmap_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusmap_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return gr.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,at),l(r,at);const o=_.plutusmap_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:at.__wrap(o)}get(t){l(t,at);const r=_.plutusmap_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:at.__wrap(r)}keys(){const t=_.plutusmap_keys(this.__wbg_ptr);return Zt.__wrap(t)}}p.exports.PlutusMap=gr;class Dt{static __wrap(t){t=t>>>0;const r=Object.create(Dt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscript_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscript_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscript_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscript_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscript_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusscript_new(r,o);return Dt.__wrap(n)}static new_v2(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusscript_new_v2(r,o);return Dt.__wrap(n)}static new_with_version(t,r){const o=I(t,_.__wbindgen_malloc),n=g;l(r,Mt);const e=_.plutusscript_new_with_version(o,n,r.__wbg_ptr);return Dt.__wrap(e)}bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes_v2(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscript_from_bytes_v2(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes_with_version(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=I(t,_.__wbindgen_malloc),b=g;l(r,Mt),_.plutusscript_from_bytes_with_version(i,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return Dt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_hex_with_version(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;l(r,Mt),_.plutusscript_from_hex_with_version(i,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return Dt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=_.plutusscript_hash(this.__wbg_ptr);return kt.__wrap(t)}language_version(){const t=_.plutusscript_language_version(this.__wbg_ptr);return Mt.__wrap(t)}}p.exports.PlutusScript=Dt;class q_{static __wrap(t){t=t>>>0;const r=Object.create(q_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscriptsource_free(t)}static new(t){l(t,Dt);const r=_.plutusscriptsource_new(t.__wbg_ptr);return q_.__wrap(r)}static new_ref_input(t,r){l(t,kt),l(r,pt);const o=_.plutusscriptsource_new_ref_input(t.__wbg_ptr,r.__wbg_ptr);return q_.__wrap(o)}static new_ref_input_with_lang_ver(t,r,o){l(t,kt),l(r,pt),l(o,Mt);const n=_.plutusscriptsource_new_ref_input_with_lang_ver(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return q_.__wrap(n)}}p.exports.PlutusScriptSource=q_;class w_{static __wrap(t){t=t>>>0;const r=Object.create(w_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscripts_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscripts_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscripts_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscripts_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return w_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutusscripts_get(this.__wbg_ptr,t);return Dt.__wrap(r)}add(t){l(t,Dt),_.plutusscripts_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusScripts=w_;class n_{static __wrap(t){t=t>>>0;const r=Object.create(n_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuswitness_free(t)}static new(t,r,o){l(t,Dt),l(r,at),l(o,$t);const n=_.plutuswitness_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return n_.__wrap(n)}static new_with_ref(t,r,o){l(t,q_),l(r,V),l(o,$t);const n=_.plutuswitness_new_with_ref(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return n_.__wrap(n)}static new_without_datum(t,r){l(t,Dt),l(r,$t);const o=_.plutuswitness_new_without_datum(t.__wbg_ptr,r.__wbg_ptr);return n_.__wrap(o)}static new_with_ref_without_datum(t,r){l(t,q_),l(r,$t);const o=_.plutuswitness_new_with_ref_without_datum(t.__wbg_ptr,r.__wbg_ptr);return n_.__wrap(o)}script(){const t=_.plutuswitness_script(this.__wbg_ptr);return t===0?void 0:Dt.__wrap(t)}datum(){const t=_.plutuswitness_datum(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}redeemer(){const t=_.plutuswitness_redeemer(this.__wbg_ptr);return $t.__wrap(t)}}p.exports.PlutusWitness=n_;class z_{static __wrap(t){t=t>>>0;const r=Object.create(z_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuswitnesses_free(t)}static new(){const t=_.certificates_new();return z_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutuswitnesses_get(this.__wbg_ptr,t);return n_.__wrap(r)}add(t){l(t,n_),_.plutuswitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusWitnesses=z_;class xr{static __wrap(t){t=t>>>0;const r=Object.create(xr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_pointer_free(t)}static new(t,r,o){const n=_.pointer_new(t,r,o);return xr.__wrap(n)}static new_pointer(t,r,o){l(t,k),l(r,k),l(o,k);const n=_.pointer_new_pointer(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return xr.__wrap(n)}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}tx_index(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.pointer_tx_index(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}cert_index(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.pointer_cert_index(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}tx_index_bignum(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}cert_index_bignum(){const t=_.pointer_cert_index_bignum(this.__wbg_ptr);return k.__wrap(t)}}p.exports.Pointer=xr;class zr{static __wrap(t){t=t>>>0;const r=Object.create(zr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_pointeraddress_free(t)}static new(t,r,o){l(r,gt),l(o,xr);const n=_.pointeraddress_new(t,r.__wbg_ptr,o.__wbg_ptr);return zr.__wrap(n)}payment_cred(){const t=_.pointeraddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}stake_pointer(){const t=_.pointeraddress_stake_pointer(this.__wbg_ptr);return xr.__wrap(t)}to_address(){const t=_.pointeraddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.pointeraddress_from_address(t.__wbg_ptr);return r===0?void 0:zr.__wrap(r)}}p.exports.PointerAddress=zr;class H_{static __wrap(t){t=t>>>0;const r=Object.create(H_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolmetadata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolmetadata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}url(){const t=_.multihostname_dns_name(this.__wbg_ptr);return ir.__wrap(t)}pool_metadata_hash(){const t=_.poolmetadata_pool_metadata_hash(this.__wbg_ptr);return fr.__wrap(t)}static new(t,r){l(t,ir),l(r,fr);const o=_.poolmetadata_new(t.__wbg_ptr,r.__wbg_ptr);return H_.__wrap(o)}}p.exports.PoolMetadata=H_;class fr{static __wrap(t){t=t>>>0;const r=Object.create(fr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolmetadatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PoolMetadataHash=fr;class R_{static __wrap(t){t=t>>>0;const r=Object.create(R_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolparams_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolparams_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolparams_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolparams_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=_.poolparams_operator(this.__wbg_ptr);return G.__wrap(t)}vrf_keyhash(){const t=_.poolparams_vrf_keyhash(this.__wbg_ptr);return B_.__wrap(t)}pledge(){const t=_.poolparams_pledge(this.__wbg_ptr);return k.__wrap(t)}cost(){const t=_.poolparams_cost(this.__wbg_ptr);return k.__wrap(t)}margin(){const t=_.poolparams_margin(this.__wbg_ptr);return Qt.__wrap(t)}reward_account(){const t=_.poolparams_reward_account(this.__wbg_ptr);return f_.__wrap(t)}pool_owners(){const t=_.poolparams_pool_owners(this.__wbg_ptr);return _t.__wrap(t)}relays(){const t=_.poolparams_relays(this.__wbg_ptr);return $_.__wrap(t)}pool_metadata(){const t=_.poolparams_pool_metadata(this.__wbg_ptr);return t===0?void 0:H_.__wrap(t)}static new(t,r,o,n,e,i,s,b,c){l(t,G),l(r,B_),l(o,k),l(n,k),l(e,Qt),l(i,f_),l(s,_t),l(b,$_);let S=0;it(c)||(l(c,H_),S=c.__destroy_into_raw());const Y=_.poolparams_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s.__wbg_ptr,b.__wbg_ptr,S);return R_.__wrap(Y)}}p.exports.PoolParams=R_;class L_{static __wrap(t){t=t>>>0;const r=Object.create(L_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolregistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolregistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolregistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolregistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=_.poolregistration_pool_params(this.__wbg_ptr);return R_.__wrap(t)}static new(t){l(t,R_);const r=_.poolregistration_new(t.__wbg_ptr);return L_.__wrap(r)}}p.exports.PoolRegistration=L_;class V_{static __wrap(t){t=t>>>0;const r=Object.create(V_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolretirement_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolretirement_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolretirement_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolretirement_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=_.poolretirement_pool_keyhash(this.__wbg_ptr);return G.__wrap(t)}epoch(){return _.poolretirement_epoch(this.__wbg_ptr)>>>0}static new(t,r){l(t,G);const o=_.poolretirement_new(t.__wbg_ptr,r);return V_.__wrap(o)}}p.exports.PoolRetirement=V_;class l_{static __wrap(t){t=t>>>0;const r=Object.create(l_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_privatekey_free(t)}to_public(){const t=_.privatekey_to_public(this.__wbg_ptr);return o_.__wrap(t)}static generate_ed25519(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_generate_ed25519(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return l_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_generate_ed25519extended(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return l_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.privatekey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.privatekey_from_extended_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.privatekey_from_normal_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}sign(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.privatekey_sign(this.__wbg_ptr,r,o);return wt.__wrap(n)}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.privatekey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PrivateKey=l_;class Y_{static __wrap(t){t=t>>>0;const r=Object.create(Y_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.proposedprotocolparameterupdates_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.proposedprotocolparameterupdates_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.proposedprotocolparameterupdates_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Y_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,Wt),l(r,I_);const o=_.proposedprotocolparameterupdates_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:I_.__wrap(o)}get(t){l(t,Wt);const r=_.proposedprotocolparameterupdates_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:I_.__wrap(r)}keys(){const t=_.proposedprotocolparameterupdates_keys(this.__wbg_ptr);return v_.__wrap(t)}}p.exports.ProposedProtocolParameterUpdates=Y_;class I_{static __wrap(t){t=t>>>0;const r=Object.create(I_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.protocolparamupdate_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolparamupdate_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolparamupdate_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){l(t,k),_.protocolparamupdate_set_minfee_a(this.__wbg_ptr,t.__wbg_ptr)}minfee_a(){const t=_.protocolparamupdate_minfee_a(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_minfee_b(t){l(t,k),_.protocolparamupdate_set_minfee_b(this.__wbg_ptr,t.__wbg_ptr)}minfee_b(){const t=_.protocolparamupdate_minfee_b(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_max_block_body_size(t){_.protocolparamupdate_set_max_block_body_size(this.__wbg_ptr,t)}max_block_body_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_block_body_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){_.protocolparamupdate_set_max_tx_size(this.__wbg_ptr,t)}max_tx_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_tx_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){_.protocolparamupdate_set_max_block_header_size(this.__wbg_ptr,t)}max_block_header_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_block_header_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){l(t,k),_.protocolparamupdate_set_key_deposit(this.__wbg_ptr,t.__wbg_ptr)}key_deposit(){const t=_.protocolparamupdate_key_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_pool_deposit(t){l(t,k),_.protocolparamupdate_set_pool_deposit(this.__wbg_ptr,t.__wbg_ptr)}pool_deposit(){const t=_.protocolparamupdate_pool_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_max_epoch(t){_.protocolparamupdate_set_max_epoch(this.__wbg_ptr,t)}max_epoch(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_epoch(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){_.protocolparamupdate_set_n_opt(this.__wbg_ptr,t)}n_opt(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_n_opt(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){l(t,Qt),_.protocolparamupdate_set_pool_pledge_influence(this.__wbg_ptr,t.__wbg_ptr)}pool_pledge_influence(){const t=_.protocolparamupdate_pool_pledge_influence(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}set_expansion_rate(t){l(t,Qt),_.protocolparamupdate_set_expansion_rate(this.__wbg_ptr,t.__wbg_ptr)}expansion_rate(){const t=_.protocolparamupdate_expansion_rate(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}set_treasury_growth_rate(t){l(t,Qt),_.protocolparamupdate_set_treasury_growth_rate(this.__wbg_ptr,t.__wbg_ptr)}treasury_growth_rate(){const t=_.protocolparamupdate_treasury_growth_rate(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}d(){const t=_.protocolparamupdate_d(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}extra_entropy(){const t=_.protocolparamupdate_extra_entropy(this.__wbg_ptr);return t===0?void 0:K_.__wrap(t)}set_protocol_version(t){l(t,a_),_.protocolparamupdate_set_protocol_version(this.__wbg_ptr,t.__wbg_ptr)}protocol_version(){const t=_.protocolparamupdate_protocol_version(this.__wbg_ptr);return t===0?void 0:a_.__wrap(t)}set_min_pool_cost(t){l(t,k),_.protocolparamupdate_set_min_pool_cost(this.__wbg_ptr,t.__wbg_ptr)}min_pool_cost(){const t=_.protocolparamupdate_min_pool_cost(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_ada_per_utxo_byte(t){l(t,k),_.protocolparamupdate_set_ada_per_utxo_byte(this.__wbg_ptr,t.__wbg_ptr)}ada_per_utxo_byte(){const t=_.protocolparamupdate_ada_per_utxo_byte(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_cost_models(t){l(t,M),_.protocolparamupdate_set_cost_models(this.__wbg_ptr,t.__wbg_ptr)}cost_models(){const t=_.protocolparamupdate_cost_models(this.__wbg_ptr);return t===0?void 0:M.__wrap(t)}set_execution_costs(t){l(t,xt),_.protocolparamupdate_set_execution_costs(this.__wbg_ptr,t.__wbg_ptr)}execution_costs(){const t=_.protocolparamupdate_execution_costs(this.__wbg_ptr);return t===0?void 0:xt.__wrap(t)}set_max_tx_ex_units(t){l(t,dt),_.protocolparamupdate_set_max_tx_ex_units(this.__wbg_ptr,t.__wbg_ptr)}max_tx_ex_units(){const t=_.protocolparamupdate_max_tx_ex_units(this.__wbg_ptr);return t===0?void 0:dt.__wrap(t)}set_max_block_ex_units(t){l(t,dt),_.protocolparamupdate_set_max_block_ex_units(this.__wbg_ptr,t.__wbg_ptr)}max_block_ex_units(){const t=_.protocolparamupdate_max_block_ex_units(this.__wbg_ptr);return t===0?void 0:dt.__wrap(t)}set_max_value_size(t){_.protocolparamupdate_set_max_value_size(this.__wbg_ptr,t)}max_value_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_value_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){_.protocolparamupdate_set_collateral_percentage(this.__wbg_ptr,t)}collateral_percentage(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_collateral_percentage(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){_.protocolparamupdate_set_max_collateral_inputs(this.__wbg_ptr,t)}max_collateral_inputs(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_collateral_inputs(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.protocolparamupdate_new();return I_.__wrap(t)}}p.exports.ProtocolParamUpdate=I_;class a_{static __wrap(t){t=t>>>0;const r=Object.create(a_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_protocolversion_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.protocolversion_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolversion_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolversion_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}major(){return _.networkinfo_protocol_magic(this.__wbg_ptr)>>>0}minor(){return _.protocolversion_minor(this.__wbg_ptr)>>>0}static new(t,r){const o=_.protocolversion_new(t,r);return a_.__wrap(o)}}p.exports.ProtocolVersion=a_;class o_{static __wrap(t){t=t>>>0;const r=Object.create(o_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_publickey_free(t)}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.publickey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.publickey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.publickey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}verify(t,r){const o=I(t,_.__wbindgen_malloc),n=g;return l(r,wt),_.publickey_verify(this.__wbg_ptr,o,n,r.__wbg_ptr)!==0}hash(){const t=_.publickey_hash(this.__wbg_ptr);return G.__wrap(t)}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.publickey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.publickey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PublicKey=o_;class Zr{static __wrap(t){t=t>>>0;const r=Object.create(Zr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_publickeys_free(t)}constructor(){const t=_.ed25519keyhashes_new();return Zr.__wrap(t)}size(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.publickeys_get(this.__wbg_ptr,t);return o_.__wrap(r)}add(t){l(t,o_),_.publickeys_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PublicKeys=Zr;class $t{static __wrap(t){t=t>>>0;const r=Object.create($t.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemer_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemer_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemer_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemer_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=_.redeemer_tag(this.__wbg_ptr);return s_.__wrap(t)}index(){const t=_.redeemer_index(this.__wbg_ptr);return k.__wrap(t)}data(){const t=_.redeemer_data(this.__wbg_ptr);return at.__wrap(t)}ex_units(){const t=_.redeemer_ex_units(this.__wbg_ptr);return dt.__wrap(t)}static new(t,r,o,n){l(t,s_),l(r,k),l(o,at),l(n,dt);const e=_.redeemer_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr);return $t.__wrap(e)}}p.exports.Redeemer=$t;class s_{static __wrap(t){t=t>>>0;const r=Object.create(s_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemertag_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemertag_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemertag_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemertag_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=_.redeemertag_new_spend();return s_.__wrap(t)}static new_mint(){const t=_.redeemertag_new_mint();return s_.__wrap(t)}static new_cert(){const t=_.redeemertag_new_cert();return s_.__wrap(t)}static new_reward(){const t=_.redeemertag_new_reward();return s_.__wrap(t)}kind(){return _.redeemertag_kind(this.__wbg_ptr)>>>0}}p.exports.RedeemerTag=s_;class b_{static __wrap(t){t=t>>>0;const r=Object.create(b_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemers_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemers_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemers_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemers_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return b_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.redeemers_get(this.__wbg_ptr,t);return $t.__wrap(r)}add(t){l(t,$t),_.redeemers_add(this.__wbg_ptr,t.__wbg_ptr)}total_ex_units(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_total_ex_units(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return dt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Redeemers=b_;class g_{static __wrap(t){t=t>>>0;const r=Object.create(g_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_relay_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.relay_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relay_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relay_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){l(t,tr);const r=_.relay_new_single_host_addr(t.__wbg_ptr);return g_.__wrap(r)}static new_single_host_name(t){l(t,_r);const r=_.relay_new_single_host_name(t.__wbg_ptr);return g_.__wrap(r)}static new_multi_host_name(t){l(t,P_);const r=_.relay_new_multi_host_name(t.__wbg_ptr);return g_.__wrap(r)}kind(){return _.relay_kind(this.__wbg_ptr)>>>0}as_single_host_addr(){const t=_.relay_as_single_host_addr(this.__wbg_ptr);return t===0?void 0:tr.__wrap(t)}as_single_host_name(){const t=_.relay_as_single_host_name(this.__wbg_ptr);return t===0?void 0:_r.__wrap(t)}as_multi_host_name(){const t=_.relay_as_multi_host_name(this.__wbg_ptr);return t===0?void 0:P_.__wrap(t)}}p.exports.Relay=g_;class $_{static __wrap(t){t=t>>>0;const r=Object.create($_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_relays_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.relays_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relays_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relays_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return $_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.relays_get(this.__wbg_ptr,t);return g_.__wrap(r)}add(t){l(t,g_),_.relays_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Relays=$_;class f_{static __wrap(t){t=t>>>0;const r=Object.create(f_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_rewardaddress_free(t)}static new(t,r){l(r,gt);const o=_.enterpriseaddress_new(t,r.__wbg_ptr);return f_.__wrap(o)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.rewardaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.rewardaddress_from_address(t.__wbg_ptr);return r===0?void 0:f_.__wrap(r)}}p.exports.RewardAddress=f_;class ur{static __wrap(t){t=t>>>0;const r=Object.create(ur.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_rewardaddresses_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.rewardaddresses_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.rewardaddresses_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.rewardaddresses_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return ur.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.rewardaddresses_get(this.__wbg_ptr,t);return f_.__wrap(r)}add(t){l(t,f_),_.rewardaddresses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.RewardAddresses=ur;class G_{static __wrap(t){t=t>>>0;const r=Object.create(G_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptall_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptall_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptall_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptall_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t){l(t,Ct);const r=_.scriptall_new(t.__wbg_ptr);return G_.__wrap(r)}}p.exports.ScriptAll=G_;class J_{static __wrap(t){t=t>>>0;const r=Object.create(J_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptany_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptany_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptany_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptany_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t){l(t,Ct);const r=_.scriptall_new(t.__wbg_ptr);return J_.__wrap(r)}}p.exports.ScriptAny=J_;class j_{static __wrap(t){t=t>>>0;const r=Object.create(j_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptdatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptdatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptdatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.ScriptDataHash=j_;class kt{static __wrap(t){t=t>>>0;const r=Object.create(kt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scripthash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scripthash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.ScriptHash=kt;class W_{static __wrap(t){t=t>>>0;const r=Object.create(W_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scripthashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scripthashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scripthashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scripthashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return W_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.scripthashes_get(this.__wbg_ptr,t);return kt.__wrap(r)}add(t){l(t,kt),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.ScriptHashes=W_;class X_{static __wrap(t){t=t>>>0;const r=Object.create(X_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptnofk_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptnofk_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptnofk_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptnofk_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}n(){return _.scriptnofk_n(this.__wbg_ptr)>>>0}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t,r){l(r,Ct);const o=_.scriptnofk_new(t,r.__wbg_ptr);return X_.__wrap(o)}}p.exports.ScriptNOfK=X_;class Z_{static __wrap(t){t=t>>>0;const r=Object.create(Z_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptpubkey_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptpubkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptpubkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptpubkey_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=_.scriptpubkey_addr_keyhash(this.__wbg_ptr);return G.__wrap(t)}static new(t){l(t,G);const r=_.scriptpubkey_new(t.__wbg_ptr);return Z_.__wrap(r)}}p.exports.ScriptPubkey=Z_;class u_{static __wrap(t){t=t>>>0;const r=Object.create(u_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptref_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptref_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptref_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptref_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_native_script(t){l(t,yt);const r=_.scriptref_new_native_script(t.__wbg_ptr);return u_.__wrap(r)}static new_plutus_script(t){l(t,Dt);const r=_.scriptref_new_plutus_script(t.__wbg_ptr);return u_.__wrap(r)}is_native_script(){return _.scriptref_is_native_script(this.__wbg_ptr)!==0}is_plutus_script(){return _.scriptref_is_plutus_script(this.__wbg_ptr)!==0}native_script(){const t=_.scriptref_native_script(this.__wbg_ptr);return t===0?void 0:yt.__wrap(t)}plutus_script(){const t=_.scriptref_plutus_script(this.__wbg_ptr);return t===0?void 0:Dt.__wrap(t)}}p.exports.ScriptRef=u_;class Hr{static __wrap(t){t=t>>>0;const r=Object.create(Hr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_serializedaddress_free(t)}static new(t,r,o){const n=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g,i=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g,b=u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),c=g,S=_.serializedaddress_new(n,e,i,s,b,c);return Hr.__wrap(S)}get_pub_key_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_pub_key_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}get_script_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_script_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}get_stake_key_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_stake_key_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.SerializedAddress=Hr;class tr{static __wrap(t){t=t>>>0;const r=Object.create(tr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_singlehostaddr_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.singlehostaddr_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostaddr_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostaddr_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}port(){const t=_.singlehostaddr_port(this.__wbg_ptr);return t===16777215?void 0:t}ipv4(){const t=_.singlehostaddr_ipv4(this.__wbg_ptr);return t===0?void 0:T_.__wrap(t)}ipv6(){const t=_.singlehostaddr_ipv6(this.__wbg_ptr);return t===0?void 0:N_.__wrap(t)}static new(t,r,o){let n=0;it(r)||(l(r,T_),n=r.__destroy_into_raw());let e=0;it(o)||(l(o,N_),e=o.__destroy_into_raw());const i=_.singlehostaddr_new(it(t)?16777215:t,n,e);return tr.__wrap(i)}}p.exports.SingleHostAddr=tr;class _r{static __wrap(t){t=t>>>0;const r=Object.create(_r.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_singlehostname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.singlehostname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}port(){const t=_.singlehostname_port(this.__wbg_ptr);return t===16777215?void 0:t}dns_name(){const t=_.singlehostname_dns_name(this.__wbg_ptr);return Q.__wrap(t)}static new(t,r){l(r,Q);const o=_.singlehostname_new(it(t)?16777215:t,r.__wbg_ptr);return _r.__wrap(o)}}p.exports.SingleHostName=_r;class gt{static __wrap(t){t=t>>>0;const r=Object.create(gt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakecredential_free(t)}static from_keyhash(t){l(t,G);const r=_.stakecredential_from_keyhash(t.__wbg_ptr);return gt.__wrap(r)}static from_scripthash(t){l(t,kt);const r=_.stakecredential_from_scripthash(t.__wbg_ptr);return gt.__wrap(r)}to_keyhash(){const t=_.stakecredential_to_keyhash(this.__wbg_ptr);return t===0?void 0:G.__wrap(t)}to_scripthash(){const t=_.stakecredential_to_scripthash(this.__wbg_ptr);return t===0?void 0:kt.__wrap(t)}kind(){return _.networkid_kind(this.__wbg_ptr)>>>0}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakecredential_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredential_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredential_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.StakeCredential=gt;class hr{static __wrap(t){t=t>>>0;const r=Object.create(hr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakecredentials_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakecredentials_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredentials_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredentials_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return hr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.stakecredentials_get(this.__wbg_ptr,t);return gt.__wrap(r)}add(t){l(t,gt),_.stakecredentials_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.StakeCredentials=hr;class rr{static __wrap(t){t=t>>>0;const r=Object.create(rr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakedelegation_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakedelegation_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakedelegation_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakedelegation_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}pool_keyhash(){const t=_.stakedelegation_pool_keyhash(this.__wbg_ptr);return G.__wrap(t)}static new(t,r){l(t,gt),l(r,G);const o=_.stakedelegation_new(t.__wbg_ptr,r.__wbg_ptr);return rr.__wrap(o)}}p.exports.StakeDelegation=rr;class er{static __wrap(t){t=t>>>0;const r=Object.create(er.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakederegistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakederegistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakederegistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakederegistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}static new(t){l(t,gt);const r=_.stakederegistration_new(t.__wbg_ptr);return er.__wrap(r)}}p.exports.StakeDeregistration=er;class nr{static __wrap(t){t=t>>>0;const r=Object.create(nr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakeregistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakeregistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakeregistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakeregistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}static new(t){l(t,gt);const r=_.stakederegistration_new(t.__wbg_ptr);return nr.__wrap(r)}}p.exports.StakeRegistration=nr;class te{static __wrap(t){t=t>>>0;const r=Object.create(te.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_strings_free(t)}static new(){const t=_.assetnames_new();return te.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){let r,o;try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.strings_get(i,this.__wbg_ptr,t);var n=a()[i/4+0],e=a()[i/4+1];return r=n,o=e,h(n,e)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}add(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;_.strings_add(this.__wbg_ptr,r,o)}}p.exports.Strings=te;class C_{static __wrap(t){t=t>>>0;const r=Object.create(C_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_timelockexpiry_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.timelockexpiry_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockexpiry_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockexpiry_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}static new(t){const r=_.timelockexpiry_new(t);return C_.__wrap(r)}static new_timelockexpiry(t){l(t,k);const r=_.constrplutusdata_alternative(t.__wbg_ptr);return C_.__wrap(r)}}p.exports.TimelockExpiry=C_;class E_{static __wrap(t){t=t>>>0;const r=Object.create(E_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_timelockstart_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.timelockstart_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockstart_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockstart_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}static new(t){const r=_.timelockexpiry_new(t);return E_.__wrap(r)}static new_timelockstart(t){l(t,k);const r=_.constrplutusdata_alternative(t.__wbg_ptr);return E_.__wrap(r)}}p.exports.TimelockStart=E_;class i_{static __wrap(t){t=t>>>0;const r=Object.create(i_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transaction_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transaction_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transaction_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transaction_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}body(){const t=_.fixedtransaction_body(this.__wbg_ptr);return Pt.__wrap(t)}witness_set(){const t=_.fixedtransaction_witness_set(this.__wbg_ptr);return c_.__wrap(t)}is_valid(){return _.transaction_is_valid(this.__wbg_ptr)!==0}auxiliary_data(){const t=_.transaction_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}set_is_valid(t){_.transaction_set_is_valid(this.__wbg_ptr,t)}static new(t,r,o){l(t,Pt),l(r,c_);let n=0;it(o)||(l(o,Bt),n=o.__destroy_into_raw());const e=_.transaction_new(t.__wbg_ptr,r.__wbg_ptr,n);return i_.__wrap(e)}}p.exports.Transaction=i_;class _e{static __wrap(t){t=t>>>0;const r=Object.create(_e.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbatch_free(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbatch_get(this.__wbg_ptr,t);return i_.__wrap(r)}}p.exports.TransactionBatch=_e;class re{static __wrap(t){t=t>>>0;const r=Object.create(re.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbatchlist_free(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbatchlist_get(this.__wbg_ptr,t);return _e.__wrap(r)}}p.exports.TransactionBatchList=re;class ar{static __wrap(t){t=t>>>0;const r=Object.create(ar.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbodies_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionbodies_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbodies_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbodies_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return ar.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbodies_get(this.__wbg_ptr,t);return Pt.__wrap(r)}add(t){l(t,Pt),_.transactionbodies_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionBodies=ar;class Pt{static __wrap(t){t=t>>>0;const r=Object.create(Pt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbody_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionbody_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbody_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbody_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=_.transactionbody_inputs(this.__wbg_ptr);return Ot.__wrap(t)}outputs(){const t=_.transactionbody_outputs(this.__wbg_ptr);return S_.__wrap(t)}fee(){const t=_.transactionbody_fee(this.__wbg_ptr);return k.__wrap(t)}ttl(){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_ttl(e,this.__wbg_ptr);var t=a()[e/4+0],r=a()[e/4+1],o=a()[e/4+2],n=a()[e/4+3];if(n)throw d(o);return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}ttl_bignum(){const t=_.transactionbody_ttl_bignum(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_ttl(t){l(t,k),_.protocolparamupdate_set_minfee_a(this.__wbg_ptr,t.__wbg_ptr)}remove_ttl(){_.transactionbody_remove_ttl(this.__wbg_ptr)}set_certs(t){l(t,F),_.transactionbody_set_certs(this.__wbg_ptr,t.__wbg_ptr)}certs(){const t=_.transactionbody_certs(this.__wbg_ptr);return t===0?void 0:F.__wrap(t)}set_withdrawals(t){l(t,Q_),_.transactionbody_set_withdrawals(this.__wbg_ptr,t.__wbg_ptr)}withdrawals(){const t=_.transactionbody_withdrawals(this.__wbg_ptr);return t===0?void 0:Q_.__wrap(t)}set_update(t){l(t,dr),_.transactionbody_set_update(this.__wbg_ptr,t.__wbg_ptr)}update(){const t=_.transactionbody_update(this.__wbg_ptr);return t===0?void 0:dr.__wrap(t)}set_auxiliary_data_hash(t){l(t,Gt),_.transactionbody_set_auxiliary_data_hash(this.__wbg_ptr,t.__wbg_ptr)}auxiliary_data_hash(){const t=_.transactionbody_auxiliary_data_hash(this.__wbg_ptr);return t===0?void 0:Gt.__wrap(t)}set_validity_start_interval(t){_.transactionbody_set_validity_start_interval(this.__wbg_ptr,t)}set_validity_start_interval_bignum(t){l(t,k);var r=t.__destroy_into_raw();_.transactionbody_set_validity_start_interval_bignum(this.__wbg_ptr,r)}validity_start_interval_bignum(){const t=_.protocolparamupdate_minfee_b(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}validity_start_interval(){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_validity_start_interval(e,this.__wbg_ptr);var t=a()[e/4+0],r=a()[e/4+1],o=a()[e/4+2],n=a()[e/4+3];if(n)throw d(o);return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_mint(t){l(t,Xt),_.transactionbody_set_mint(this.__wbg_ptr,t.__wbg_ptr)}mint(){const t=_.transactionbody_mint(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}multiassets(){const t=_.transactionbody_multiassets(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}set_reference_inputs(t){l(t,Ot),_.transactionbody_set_reference_inputs(this.__wbg_ptr,t.__wbg_ptr)}reference_inputs(){const t=_.transactionbody_reference_inputs(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}set_script_data_hash(t){l(t,j_),_.transactionbody_set_script_data_hash(this.__wbg_ptr,t.__wbg_ptr)}script_data_hash(){const t=_.transactionbody_script_data_hash(this.__wbg_ptr);return t===0?void 0:j_.__wrap(t)}set_collateral(t){l(t,Ot),_.transactionbody_set_collateral(this.__wbg_ptr,t.__wbg_ptr)}collateral(){const t=_.transactionbody_collateral(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}set_required_signers(t){l(t,_t),_.transactionbody_set_required_signers(this.__wbg_ptr,t.__wbg_ptr)}required_signers(){const t=_.transactionbody_required_signers(this.__wbg_ptr);return t===0?void 0:_t.__wrap(t)}set_network_id(t){l(t,x_),_.transactionbody_set_network_id(this.__wbg_ptr,t.__wbg_ptr)}network_id(){const t=_.transactionbody_network_id(this.__wbg_ptr);return t===0?void 0:x_.__wrap(t)}set_collateral_return(t){l(t,Tt),_.transactionbody_set_collateral_return(this.__wbg_ptr,t.__wbg_ptr)}collateral_return(){const t=_.transactionbody_collateral_return(this.__wbg_ptr);return t===0?void 0:Tt.__wrap(t)}set_total_collateral(t){l(t,k),_.protocolparamupdate_set_key_deposit(this.__wbg_ptr,t.__wbg_ptr)}total_collateral(){const t=_.protocolparamupdate_key_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}static new(t,r,o,n){l(t,Ot),l(r,S_),l(o,k);const e=_.transactionbody_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,!it(n),it(n)?0:n);return Pt.__wrap(e)}static new_tx_body(t,r,o){l(t,Ot),l(r,S_),l(o,k);const n=_.transactionbody_new_tx_body(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return Pt.__wrap(n)}}p.exports.TransactionBody=Pt;class ee{static __wrap(t){t=t>>>0;const r=Object.create(ee.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilder_free(t)}add_inputs_from(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ir),_.transactionbuilder_add_inputs_from(e,this.__wbg_ptr,t.__wbg_ptr,r);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_inputs(t){l(t,Nr),_.transactionbuilder_set_inputs(this.__wbg_ptr,t.__wbg_ptr)}set_collateral(t){l(t,Nr),_.transactionbuilder_set_collateral(this.__wbg_ptr,t.__wbg_ptr)}set_collateral_return(t){l(t,Tt),_.transactionbuilder_set_collateral_return(this.__wbg_ptr,t.__wbg_ptr)}set_collateral_return_and_total(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_set_collateral_return_and_total(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_total_collateral(t){l(t,k),_.transactionbuilder_set_total_collateral(this.__wbg_ptr,t.__wbg_ptr)}set_total_collateral_and_return(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),l(r,nt),_.transactionbuilder_set_total_collateral_and_return(e,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_reference_input(t){l(t,pt),_.transactionbuilder_add_reference_input(this.__wbg_ptr,t.__wbg_ptr)}add_key_input(t,r,o){l(t,G),l(r,pt),l(o,rt),_.transactionbuilder_add_key_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_script_input(t,r,o){l(t,kt),l(r,pt),l(o,rt),_.transactionbuilder_add_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_native_script_input(t,r,o){l(t,yt),l(r,pt),l(o,rt),_.transactionbuilder_add_native_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_plutus_script_input(t,r,o){l(t,n_),l(r,pt),l(o,rt),_.transactionbuilder_add_plutus_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_bootstrap_input(t,r,o){l(t,E),l(r,pt),l(o,rt),_.transactionbuilder_add_bootstrap_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_input(t,r,o){l(t,nt),l(r,pt),l(o,rt),_.transactionbuilder_add_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}count_missing_input_scripts(){return _.transactionbuilder_count_missing_input_scripts(this.__wbg_ptr)>>>0}add_required_native_input_scripts(t){return l(t,Ct),_.transactionbuilder_add_required_native_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_plutus_input_scripts(t){return l(t,z_),_.transactionbuilder_add_required_plutus_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}get_native_input_scripts(){const t=_.transactionbuilder_get_native_input_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}get_plutus_input_scripts(){const t=_.transactionbuilder_get_plutus_input_scripts(this.__wbg_ptr);return t===0?void 0:z_.__wrap(t)}fee_for_input(t,r,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),l(r,pt),l(o,rt),_.transactionbuilder_fee_for_input(s,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);var n=a()[s/4+0],e=a()[s/4+1],i=a()[s/4+2];if(i)throw d(e);return k.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_add_output(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}fee_for_output(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_fee_for_output(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_fee(t){l(t,k),_.transactionbuilder_set_fee(this.__wbg_ptr,t.__wbg_ptr)}set_ttl(t){_.transactionbuilder_set_ttl(this.__wbg_ptr,t)}set_ttl_bignum(t){l(t,k),_.transactionbuilder_set_ttl_bignum(this.__wbg_ptr,t.__wbg_ptr)}set_validity_start_interval(t){_.transactionbuilder_set_validity_start_interval(this.__wbg_ptr,t)}set_validity_start_interval_bignum(t){l(t,k);var r=t.__destroy_into_raw();_.transactionbuilder_set_validity_start_interval_bignum(this.__wbg_ptr,r)}set_certs(t){l(t,F),_.transactionbuilder_set_certs(this.__wbg_ptr,t.__wbg_ptr)}set_withdrawals(t){l(t,Q_),_.transactionbuilder_set_withdrawals(this.__wbg_ptr,t.__wbg_ptr)}get_auxiliary_data(){const t=_.transactionbuilder_get_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}set_auxiliary_data(t){l(t,Bt),_.transactionbuilder_set_auxiliary_data(this.__wbg_ptr,t.__wbg_ptr)}set_metadata(t){l(t,Nt),_.transactionbuilder_set_metadata(this.__wbg_ptr,t.__wbg_ptr)}add_metadatum(t,r){l(t,k),l(r,ct),_.transactionbuilder_add_metadatum(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr)}add_json_metadatum(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k);const i=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbuilder_add_json_metadatum(e,this.__wbg_ptr,t.__wbg_ptr,i,s);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,r,o){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,k);const s=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;_.transactionbuilder_add_json_metadatum_with_schema(i,this.__wbg_ptr,t.__wbg_ptr,s,b,o);var n=a()[i/4+0],e=a()[i/4+1];if(e)throw d(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_mint_builder(t){l(t,Qr),_.transactionbuilder_set_mint_builder(this.__wbg_ptr,t.__wbg_ptr)}get_mint_builder(){const t=_.transactionbuilder_get_mint_builder(this.__wbg_ptr);return t===0?void 0:Qr.__wrap(t)}set_mint(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Xt),l(r,Ct),_.transactionbuilder_set_mint(e,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_mint(){const t=_.transactionbuilder_get_mint(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}get_mint_scripts(){const t=_.transactionbuilder_get_mint_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_mint_asset(t,r){l(t,yt),l(r,m_),_.transactionbuilder_set_mint_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr)}add_mint_asset(t,r,o){l(t,yt),l(r,ht),l(o,bt);var n=o.__destroy_into_raw();_.transactionbuilder_add_mint_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n)}add_mint_asset_and_output(t,r,o,n,e){try{const c=_.__wbindgen_add_to_stack_pointer(-16);l(t,yt),l(r,ht),l(o,bt);var i=o.__destroy_into_raw();l(n,h_),l(e,k),_.transactionbuilder_add_mint_asset_and_output(c,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,i,n.__wbg_ptr,e.__wbg_ptr);var s=a()[c/4+0],b=a()[c/4+1];if(b)throw d(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_mint_asset_and_output_min_required_coin(t,r,o,n){try{const b=_.__wbindgen_add_to_stack_pointer(-16);l(t,yt),l(r,ht),l(o,bt);var e=o.__destroy_into_raw();l(n,h_),_.transactionbuilder_add_mint_asset_and_output_min_required_coin(b,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,e,n.__wbg_ptr);var i=a()[b/4+0],s=a()[b/4+1];if(s)throw d(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,Tr);const r=_.transactionbuilder_new(t.__wbg_ptr);return ee.__wrap(r)}get_reference_inputs(){const t=_.transactionbuilder_get_reference_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_explicit_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_explicit_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_implicit_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_total_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_total_output(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_explicit_output(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_deposit(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return k.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=_.transactionbuilder_get_fee_if_set(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}add_change_if_needed(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),_.transactionbuilder_add_change_if_needed(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return r!==0}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_change_if_needed_with_datum(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),l(r,Dr),_.transactionbuilder_add_change_if_needed_with_datum(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return o!==0}finally{_.__wbindgen_add_to_stack_pointer(16)}}calc_script_data_hash(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,M),_.transactionbuilder_calc_script_data_hash(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_script_data_hash(t){l(t,j_),_.transactionbuilder_set_script_data_hash(this.__wbg_ptr,t.__wbg_ptr)}remove_script_data_hash(){_.transactionbuilder_remove_script_data_hash(this.__wbg_ptr)}add_required_signer(t){l(t,G),_.transactionbuilder_add_required_signer(this.__wbg_ptr,t.__wbg_ptr)}full_size(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_full_size(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_output_sizes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Pt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build_tx(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build_tx(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return i_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build_tx_unsafe(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build_tx_unsafe(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return i_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_min_fee(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return k.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionBuilder=ee;class Tr{static __wrap(t){t=t>>>0;const r=Object.create(Tr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilderconfig_free(t)}}p.exports.TransactionBuilderConfig=Tr;class __{static __wrap(t){t=t>>>0;const r=Object.create(__.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=_.transactionbuilderconfigbuilder_new();return __.__wrap(t)}fee_algo(t){l(t,Or);const r=_.transactionbuilderconfigbuilder_fee_algo(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}coins_per_utxo_word(t){l(t,k);const r=_.transactionbuilderconfigbuilder_coins_per_utxo_word(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}coins_per_utxo_byte(t){l(t,k);const r=_.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}ex_unit_prices(t){l(t,xt);const r=_.transactionbuilderconfigbuilder_ex_unit_prices(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}pool_deposit(t){l(t,k);const r=_.transactionbuilderconfigbuilder_pool_deposit(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}key_deposit(t){l(t,k);const r=_.transactionbuilderconfigbuilder_key_deposit(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}max_value_size(t){const r=_.transactionbuilderconfigbuilder_max_value_size(this.__wbg_ptr,t);return __.__wrap(r)}max_tx_size(t){const r=_.transactionbuilderconfigbuilder_max_tx_size(this.__wbg_ptr,t);return __.__wrap(r)}prefer_pure_change(t){const r=_.transactionbuilderconfigbuilder_prefer_pure_change(this.__wbg_ptr,t);return __.__wrap(r)}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilderconfigbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Tr.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionBuilderConfigBuilder=__;class d_{static __wrap(t){t=t>>>0;const r=Object.create(d_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionHash=d_;class pt{static __wrap(t){t=t>>>0;const r=Object.create(pt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactioninput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactioninput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=_.transactioninput_transaction_id(this.__wbg_ptr);return d_.__wrap(t)}index(){return _.transactioninput_index(this.__wbg_ptr)>>>0}static new(t,r){l(t,d_);const o=_.transactioninput_new(t.__wbg_ptr,r);return pt.__wrap(o)}}p.exports.TransactionInput=pt;class Ot{static __wrap(t){t=t>>>0;const r=Object.create(Ot.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactioninputs_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactioninputs_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninputs_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Ot.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactioninputs_get(this.__wbg_ptr,t);return pt.__wrap(r)}add(t){l(t,pt),_.transactioninputs_add(this.__wbg_ptr,t.__wbg_ptr)}to_option(){const t=_.transactioninputs_to_option(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}}p.exports.TransactionInputs=Ot;class ct{static __wrap(t){t=t>>>0;const r=Object.create(ct.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatum_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatum_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){l(t,lr);const r=_.transactionmetadatum_new_map(t.__wbg_ptr);return ct.__wrap(r)}static new_list(t){l(t,F_);const r=_.transactionmetadatum_new_list(t.__wbg_ptr);return ct.__wrap(r)}static new_int(t){l(t,bt);const r=_.transactionmetadatum_new_int(t.__wbg_ptr);return ct.__wrap(r)}static new_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatum_new_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatum_new_text(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}kind(){return _.plutusdata_kind(this.__wbg_ptr)>>>0}as_map(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_map(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return lr.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_list(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return F_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_int(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return bt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_bytes(i,this.__wbg_ptr);var t=a()[i/4+0],r=a()[i/4+1],o=a()[i/4+2],n=a()[i/4+3];if(n)throw d(o);var e=C(t,r).slice();return _.__wbindgen_free(t,r*1),e}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_text(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_text(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.TransactionMetadatum=ct;class Ar{static __wrap(t){t=t>>>0;const r=Object.create(Ar.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatumlabels_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatumlabels_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatumlabels_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatumlabels_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return Ar.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionmetadatumlabels_get(this.__wbg_ptr,t);return k.__wrap(r)}add(t){l(t,k),_.transactionmetadatumlabels_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionMetadatumLabels=Ar;class Tt{static __wrap(t){t=t>>>0;const r=Object.create(Tt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionoutput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}address(){const t=_.transactionoutput_address(this.__wbg_ptr);return nt.__wrap(t)}amount(){const t=_.transactionoutput_amount(this.__wbg_ptr);return rt.__wrap(t)}data_hash(){const t=_.transactionoutput_data_hash(this.__wbg_ptr);return t===0?void 0:U.__wrap(t)}plutus_data(){const t=_.transactionoutput_plutus_data(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}script_ref(){const t=_.transactionoutput_script_ref(this.__wbg_ptr);return t===0?void 0:u_.__wrap(t)}set_script_ref(t){l(t,u_),_.transactionoutput_set_script_ref(this.__wbg_ptr,t.__wbg_ptr)}set_plutus_data(t){l(t,at),_.transactionoutput_set_plutus_data(this.__wbg_ptr,t.__wbg_ptr)}set_data_hash(t){l(t,U),_.transactionoutput_set_data_hash(this.__wbg_ptr,t.__wbg_ptr)}has_plutus_data(){return _.transactionoutput_has_plutus_data(this.__wbg_ptr)!==0}has_data_hash(){return _.transactionoutput_has_data_hash(this.__wbg_ptr)!==0}has_script_ref(){return _.transactionoutput_has_script_ref(this.__wbg_ptr)!==0}static new(t,r){l(t,nt),l(r,rt);const o=_.transactionoutput_new(t.__wbg_ptr,r.__wbg_ptr);return Tt.__wrap(o)}serialization_format(){const t=_.transactionoutput_serialization_format(this.__wbg_ptr);return t===2?void 0:t}}p.exports.TransactionOutput=Tt;class h_{static __wrap(t){t=t>>>0;const r=Object.create(h_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){l(t,rt);const r=_.transactionoutputamountbuilder_with_value(this.__wbg_ptr,t.__wbg_ptr);return h_.__wrap(r)}with_coin(t){l(t,k);const r=_.transactionoutputamountbuilder_with_coin(this.__wbg_ptr,t.__wbg_ptr);return h_.__wrap(r)}with_coin_and_asset(t,r){l(t,k),l(r,Ft);const o=_.transactionoutputamountbuilder_with_coin_and_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return h_.__wrap(o)}with_asset_and_min_required_coin(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ft),l(r,k),_.transactionoutputamountbuilder_with_asset_and_min_required_coin(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return h_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}with_asset_and_min_required_coin_by_utxo_cost(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ft),l(r,P),_.transactionoutputamountbuilder_with_asset_and_min_required_coin_by_utxo_cost(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return h_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputamountbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Tt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionOutputAmountBuilder=h_;class yr{static __wrap(t){t=t>>>0;const r=Object.create(yr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputbuilder_free(t)}static new(){const t=_.transactionoutputbuilder_new();return yr.__wrap(t)}with_address(t){l(t,nt);const r=_.transactionoutputbuilder_with_address(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_data_hash(t){l(t,U);const r=_.transactionoutputbuilder_with_data_hash(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_plutus_data(t){l(t,at);const r=_.transactionoutputbuilder_with_plutus_data(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_script_ref(t){l(t,u_);const r=_.transactionoutputbuilder_with_script_ref(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}next(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputbuilder_next(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return h_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionOutputBuilder=yr;class S_{static __wrap(t){t=t>>>0;const r=Object.create(S_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputs_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionoutputs_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutputs_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return S_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionoutputs_get(this.__wbg_ptr,t);return Tt.__wrap(r)}add(t){l(t,Tt),_.transactionoutputs_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionOutputs=S_;class or{static __wrap(t){t=t>>>0;const r=Object.create(or.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionunspentoutput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){l(t,pt),l(r,Tt);const o=_.transactionunspentoutput_new(t.__wbg_ptr,r.__wbg_ptr);return or.__wrap(o)}input(){const t=_.transactionunspentoutput_input(this.__wbg_ptr);return pt.__wrap(t)}output(){const t=_.transactionunspentoutput_output(this.__wbg_ptr);return Tt.__wrap(t)}}p.exports.TransactionUnspentOutput=or;class Ir{static __wrap(t){t=t>>>0;const r=Object.create(Ir.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionunspentoutputs_free(t)}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return Ir.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionunspentoutputs_get(this.__wbg_ptr,t);return or.__wrap(r)}add(t){l(t,or),_.transactionunspentoutputs_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionUnspentOutputs=Ir;class c_{static __wrap(t){t=t>>>0;const r=Object.create(c_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionwitnessset_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnessset_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnessset_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){l(t,pr),_.transactionwitnessset_set_vkeys(this.__wbg_ptr,t.__wbg_ptr)}vkeys(){const t=_.transactionwitnessset_vkeys(this.__wbg_ptr);return t===0?void 0:pr.__wrap(t)}set_native_scripts(t){l(t,Ct),_.transactionwitnessset_set_native_scripts(this.__wbg_ptr,t.__wbg_ptr)}native_scripts(){const t=_.transactionwitnessset_native_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_bootstraps(t){l(t,j),_.transactionwitnessset_set_bootstraps(this.__wbg_ptr,t.__wbg_ptr)}bootstraps(){const t=_.transactionwitnessset_bootstraps(this.__wbg_ptr);return t===0?void 0:j.__wrap(t)}set_plutus_scripts(t){l(t,w_),_.transactionwitnessset_set_plutus_scripts(this.__wbg_ptr,t.__wbg_ptr)}plutus_scripts(){const t=_.transactionwitnessset_plutus_scripts(this.__wbg_ptr);return t===0?void 0:w_.__wrap(t)}set_plutus_data(t){l(t,Zt),_.transactionwitnessset_set_plutus_data(this.__wbg_ptr,t.__wbg_ptr)}plutus_data(){const t=_.transactionwitnessset_plutus_data(this.__wbg_ptr);return t===0?void 0:Zt.__wrap(t)}set_redeemers(t){l(t,b_),_.transactionwitnessset_set_redeemers(this.__wbg_ptr,t.__wbg_ptr)}redeemers(){const t=_.transactionwitnessset_redeemers(this.__wbg_ptr);return t===0?void 0:b_.__wrap(t)}static new(){const t=_.transactionwitnessset_new();return c_.__wrap(t)}}p.exports.TransactionWitnessSet=c_;class sr{static __wrap(t){t=t>>>0;const r=Object.create(sr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionwitnesssets_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnesssets_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnesssets_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return sr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionwitnesssets_get(this.__wbg_ptr,t);return c_.__wrap(r)}add(t){l(t,c_),_.transactionwitnesssets_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionWitnessSets=sr;class Ze{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_txbuilderconstants_free(t)}static plutus_default_cost_models(){const t=_.txbuilderconstants_plutus_default_cost_models();return M.__wrap(t)}static plutus_alonzo_cost_models(){const t=_.txbuilderconstants_plutus_alonzo_cost_models();return M.__wrap(t)}static plutus_vasil_cost_models(){const t=_.txbuilderconstants_plutus_default_cost_models();return M.__wrap(t)}}p.exports.TxBuilderConstants=Ze;class Nr{static __wrap(t){t=t>>>0;const r=Object.create(Nr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_txinputsbuilder_free(t)}static new(){const t=_.txinputsbuilder_new();return Nr.__wrap(t)}add_key_input(t,r,o){l(t,G),l(r,pt),l(o,rt),_.txinputsbuilder_add_key_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_script_input(t,r,o){l(t,kt),l(r,pt),l(o,rt),_.txinputsbuilder_add_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_native_script_input(t,r,o){l(t,yt),l(r,pt),l(o,rt),_.txinputsbuilder_add_native_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_plutus_script_input(t,r,o){l(t,n_),l(r,pt),l(o,rt),_.txinputsbuilder_add_plutus_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_bootstrap_input(t,r,o){l(t,E),l(r,pt),l(o,rt),_.txinputsbuilder_add_bootstrap_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_input(t,r,o){l(t,nt),l(r,pt),l(o,rt),_.txinputsbuilder_add_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}count_missing_input_scripts(){return _.txinputsbuilder_count_missing_input_scripts(this.__wbg_ptr)>>>0}add_required_native_input_scripts(t){return l(t,Ct),_.txinputsbuilder_add_required_native_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_plutus_input_scripts(t){return l(t,z_),_.txinputsbuilder_add_required_plutus_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_script_input_witnesses(t){return l(t,Ht),_.txinputsbuilder_add_required_script_input_witnesses(this.__wbg_ptr,t.__wbg_ptr)>>>0}get_ref_inputs(){const t=_.txinputsbuilder_get_ref_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_native_input_scripts(){const t=_.txinputsbuilder_get_native_input_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}get_plutus_input_scripts(){const t=_.txinputsbuilder_get_plutus_input_scripts(this.__wbg_ptr);return t===0?void 0:z_.__wrap(t)}len(){return _.txinputsbuilder_len(this.__wbg_ptr)>>>0}add_required_signer(t){l(t,G),_.txinputsbuilder_add_required_signer(this.__wbg_ptr,t.__wbg_ptr)}add_required_signers(t){l(t,_t),_.txinputsbuilder_add_required_signers(this.__wbg_ptr,t.__wbg_ptr)}total_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.txinputsbuilder_total_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=_.txinputsbuilder_inputs(this.__wbg_ptr);return Ot.__wrap(t)}inputs_option(){const t=_.txinputsbuilder_inputs_option(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}}p.exports.TxInputsBuilder=Nr;class ir{static __wrap(t){t=t>>>0;const r=Object.create(ir.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_url_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.url_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.url_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.url_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.url_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.url_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}url(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.URL=ir;class Qt{static __wrap(t){t=t>>>0;const r=Object.create(Qt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_unitinterval_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.unitinterval_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.unitinterval_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.unitinterval_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}denominator(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.exunits_new(t.__wbg_ptr,r.__wbg_ptr);return Qt.__wrap(o)}}p.exports.UnitInterval=Qt;class dr{static __wrap(t){t=t>>>0;const r=Object.create(dr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_update_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.update_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.update_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.update_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=_.update_proposed_protocol_parameter_updates(this.__wbg_ptr);return Y_.__wrap(t)}epoch(){return _.update_epoch(this.__wbg_ptr)>>>0}static new(t,r){l(t,Y_);const o=_.update_new(t.__wbg_ptr,r);return dr.__wrap(o)}}p.exports.Update=dr;class p_{static __wrap(t){t=t>>>0;const r=Object.create(p_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfcert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfcert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfcert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfcert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=I(t,_.__wbindgen_malloc),b=g,c=I(r,_.__wbindgen_malloc),S=g;_.vrfcert_new(i,s,b,c,S);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return p_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFCert=p_;class B_{static __wrap(t){t=t>>>0;const r=Object.create(B_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfkeyhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfkeyhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfkeyhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFKeyHash=B_;class cr{static __wrap(t){t=t>>>0;const r=Object.create(cr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfvkey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfvkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfvkey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfvkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFVKey=cr;class rt{static __wrap(t){t=t>>>0;const r=Object.create(rt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_value_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.value_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.value_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.value_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,k);const r=_.value_new(t.__wbg_ptr);return rt.__wrap(r)}static new_from_assets(t){l(t,Ft);const r=_.value_new_from_assets(t.__wbg_ptr);return rt.__wrap(r)}static new_with_assets(t,r){l(t,k),l(r,Ft);const o=_.value_new_with_assets(t.__wbg_ptr,r.__wbg_ptr);return rt.__wrap(o)}static zero(){const t=_.value_zero();return rt.__wrap(t)}is_zero(){return _.value_is_zero(this.__wbg_ptr)!==0}coin(){const t=_.value_coin(this.__wbg_ptr);return k.__wrap(t)}set_coin(t){l(t,k),_.value_set_coin(this.__wbg_ptr,t.__wbg_ptr)}multiasset(){const t=_.value_multiasset(this.__wbg_ptr);return t===0?void 0:Ft.__wrap(t)}set_multiasset(t){l(t,Ft),_.value_set_multiasset(this.__wbg_ptr,t.__wbg_ptr)}checked_add(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,rt),_.value_checked_add(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,rt),_.value_checked_sub(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){l(t,rt);const r=_.value_clamped_sub(this.__wbg_ptr,t.__wbg_ptr);return rt.__wrap(r)}compare(t){l(t,rt);const r=_.value_compare(this.__wbg_ptr,t.__wbg_ptr);return r===16777215?void 0:r}}p.exports.Value=rt;class Lt{static __wrap(t){t=t>>>0;const r=Object.create(Lt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkey_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkey_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,o_);const r=_.vkey_new(t.__wbg_ptr);return Lt.__wrap(r)}public_key(){const t=_.vkey_public_key(this.__wbg_ptr);return o_.__wrap(t)}}p.exports.Vkey=Lt;class ne{static __wrap(t){t=t>>>0;const r=Object.create(ne.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeys_free(t)}static new(){const t=_.ed25519keyhashes_new();return ne.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.vkeys_get(this.__wbg_ptr,t);return Lt.__wrap(r)}add(t){l(t,Lt),_.vkeys_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Vkeys=ne;class O_{static __wrap(t){t=t>>>0;const r=Object.create(O_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeywitness_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkeywitness_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitness_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitness_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){l(t,Lt),l(r,wt);const o=_.vkeywitness_new(t.__wbg_ptr,r.__wbg_ptr);return O_.__wrap(o)}vkey(){const t=_.vkeywitness_vkey(this.__wbg_ptr);return Lt.__wrap(t)}signature(){const t=_.vkeywitness_signature(this.__wbg_ptr);return wt.__wrap(t)}}p.exports.Vkeywitness=O_;class pr{static __wrap(t){t=t>>>0;const r=Object.create(pr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeywitnesses_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkeywitnesses_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitnesses_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitnesses_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return pr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.vkeywitnesses_get(this.__wbg_ptr,t);return O_.__wrap(r)}add(t){l(t,O_),_.vkeywitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Vkeywitnesses=pr;class Q_{static __wrap(t){t=t>>>0;const r=Object.create(Q_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_withdrawals_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.withdrawals_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.withdrawals_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.withdrawals_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Q_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,f_),l(r,k);const o=_.withdrawals_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:k.__wrap(o)}get(t){l(t,f_);const r=_.withdrawals_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:k.__wrap(r)}keys(){const t=_.withdrawals_keys(this.__wbg_ptr);return ur.__wrap(t)}}p.exports.Withdrawals=Q_,p.exports.__wbindgen_object_drop_ref=function(v){d(v)},p.exports.__wbindgen_string_new=function(v,t){const r=h(v,t);return L(r)},p.exports.__wbindgen_error_new=function(v,t){const r=new Error(h(v,t));return L(r)},p.exports.__wbindgen_string_get=function(v,t){const r=A(t),o=typeof r=="string"?r:void 0;var n=it(o)?0:u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g;a()[v/4+1]=e,a()[v/4+0]=n},p.exports.__wbindgen_object_clone_ref=function(v){const t=A(v);return L(t)},p.exports.__wbindgen_is_object=function(v){const t=A(v);return typeof t=="object"&&t!==null},p.exports.__wbg_String_91fba7ded13ba54c=function(v,t){const r=String(A(t)),o=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),n=g;a()[v/4+1]=n,a()[v/4+0]=o},p.exports.__wbindgen_number_new=function(v){return L(v)},p.exports.__wbg_set_20cbc34131e76824=function(v,t,r){A(v)[d(t)]=d(r)},p.exports.__wbg_crypto_58f13aa23ffcb166=function(v){const t=A(v).crypto;return L(t)},p.exports.__wbg_process_5b786e71d465a513=function(v){const t=A(v).process;return L(t)},p.exports.__wbg_versions_c2ab80650590b6a2=function(v){const t=A(v).versions;return L(t)},p.exports.__wbg_node_523d7bd03ef69fba=function(v){const t=A(v).node;return L(t)},p.exports.__wbindgen_is_string=function(v){return typeof A(v)=="string"},p.exports.__wbg_require_2784e593a4674877=function(){return St(function(){return L(De)},arguments)},p.exports.__wbg_msCrypto_abcb1295e768d1f2=function(v){const t=A(v).msCrypto;return L(t)},p.exports.__wbg_randomFillSync_a0d98aa11c81fe89=function(){return St(function(v,t){A(v).randomFillSync(d(t))},arguments)},p.exports.__wbg_getRandomValues_504510b5564925af=function(){return St(function(v,t){A(v).getRandomValues(A(t))},arguments)},p.exports.__wbindgen_is_function=function(v){return typeof A(v)=="function"},p.exports.__wbg_self_e7c1f827057f6584=function(){return St(function(){const v=self.self;return L(v)},arguments)},p.exports.__wbg_window_a09ec664e14b1b81=function(){return St(function(){const v=window.window;return L(v)},arguments)},p.exports.__wbg_globalThis_87cbb8506fecf3a9=function(){return St(function(){const v=globalThis.globalThis;return L(v)},arguments)},p.exports.__wbg_global_c85a9259e621f3db=function(){return St(function(){const v=Qe.global;return L(v)},arguments)},p.exports.__wbindgen_is_undefined=function(v){return A(v)===void 0},p.exports.__wbg_newnoargs_2b8b6bd7753c76ba=function(v,t){const r=new Function(h(v,t));return L(r)},p.exports.__wbg_call_95d1ea488d03e4e8=function(){return St(function(v,t){const r=A(v).call(A(t));return L(r)},arguments)},p.exports.__wbg_new_b525de17f44a8943=function(){const v=new Array;return L(v)},p.exports.__wbg_new_f841cc6f2098f4b5=function(){return L(new Map)},p.exports.__wbg_new_f9876326328f45ed=function(){const v=new Object;return L(v)},p.exports.__wbg_set_17224bc548dd1d7b=function(v,t,r){A(v)[t>>>0]=d(r)},p.exports.__wbg_call_9495de66fdbe016b=function(){return St(function(v,t,r){const o=A(v).call(A(t),A(r));return L(o)},arguments)},p.exports.__wbg_set_388c4c6422704173=function(v,t,r){const o=A(v).set(A(t),A(r));return L(o)},p.exports.__wbg_buffer_cf65c07de34b9a08=function(v){const t=A(v).buffer;return L(t)},p.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5=function(v,t,r){const o=new Uint8Array(A(v),t>>>0,r>>>0);return L(o)},p.exports.__wbg_new_537b7341ce90bb31=function(v){const t=new Uint8Array(A(v));return L(t)},p.exports.__wbg_set_17499e8aa4003ebd=function(v,t,r){A(v).set(A(t),r>>>0)},p.exports.__wbg_newwithlength_b56c882b57805732=function(v){const t=new Uint8Array(v>>>0);return L(t)},p.exports.__wbg_subarray_7526649b91a252a6=function(v,t,r){const o=A(v).subarray(t>>>0,r>>>0);return L(o)},p.exports.__wbg_new_d87f272aec784ec0=function(v,t){const r=new Function(h(v,t));return L(r)},p.exports.__wbg_call_eae29933372a39be=function(v,t){const r=A(v).call(A(t));return L(r)},p.exports.__wbindgen_jsval_eq=function(v,t){return A(v)===A(t)},p.exports.__wbg_self_e0b3266d2d9eba1a=function(v){const t=A(v).self;return L(t)},p.exports.__wbg_require_0993fe224bf8e202=function(v,t){const r=De(h(v,t));return L(r)},p.exports.__wbg_crypto_e95a6e54c5c2e37f=function(v){const t=A(v).crypto;return L(t)},p.exports.__wbg_getRandomValues_dc67302a7bd1aec5=function(v){const t=A(v).getRandomValues;return L(t)},p.exports.__wbg_randomFillSync_dd2297de5917c74e=function(v,t,r){A(v).randomFillSync(C(t,r))},p.exports.__wbg_getRandomValues_02639197c8166a96=function(v,t,r){A(v).getRandomValues(C(t,r))},p.exports.__wbindgen_debug_string=function(v,t){const r=et(A(t)),o=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),n=g;a()[v/4+1]=n,a()[v/4+0]=o},p.exports.__wbindgen_throw=function(v,t){throw new Error(h(v,t))},p.exports.__wbindgen_memory=function(){const v=_.memory;return L(v)};const tn=Ve.join(__dirname,"sidan_csl_rs_bg.wasm"),_n=Ve.readFileSync(tn),rn=new WebAssembly.Module(_n);_=new WebAssembly.Instance(rn,w).exports,p.exports.__wasm=_})(x);const ke={mem:7e6,steps:3e9},Cr={epoch:0,coinsPerUTxOSize:"4310",priceMem:.0577,priceStep:721e-7,minFeeA:44,minFeeB:155381,keyDeposit:"2000000",maxTxSize:16384,maxValSize:"5000",poolDeposit:"500000000",maxCollateralInputs:3,decentralisation:0,maxBlockSize:98304,collateralPercent:150,maxBlockHeaderSize:1100,minPoolCost:"340000000",maxTxExMem:"16000000",maxTxExSteps:"10000000000",maxBlockExMem:"80000000",maxBlockExSteps:"40000000000"},cn=2147483648,ae={V1:x.exports.Language.new_plutus_v1(),V2:x.exports.Language.new_plutus_v2()},Fr=56,io={CERT:x.exports.RedeemerTag.new_cert(),MINT:x.exports.RedeemerTag.new_mint(),REWARD:x.exports.RedeemerTag.new_reward(),SPEND:x.exports.RedeemerTag.new_spend()},Ye={testnet:["74","1598400","1595967616","432000"],preview:["183","15811222","1682467200","86400"],preprod:["65","26438400","1682121600","432000"],mainnet:["208","4492800","1596059091","432000"]},Mn={ALONZO:x.exports.TxBuilderConstants.plutus_alonzo_cost_models(),BABBAGE:(()=>{const p=x.exports.Costmdls.new(),w=x.exports.CostModel.new();Object.values({"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10}).forEach((f,y)=>w.set(y,x.exports.Int.new_i32(f)));const _=x.exports.CostModel.new();return Object.values({"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"serialiseData-cpu-arguments-intercept":1159724,"serialiseData-cpu-arguments-slope":392670,"serialiseData-memory-arguments-intercept":0,"serialiseData-memory-arguments-slope":2,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEcdsaSecp256k1Signature-cpu-arguments":35892428,"verifyEcdsaSecp256k1Signature-memory-arguments":10,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10,"verifySchnorrSecp256k1Signature-cpu-arguments-intercept":38887044,"verifySchnorrSecp256k1Signature-cpu-arguments-slope":32947,"verifySchnorrSecp256k1Signature-memory-arguments":10}).forEach((f,y)=>_.set(y,x.exports.Int.new_i32(f))),p.insert(x.exports.Language.new_plutus_v1(),w),p.insert(x.exports.Language.new_plutus_v2(),_),p})()},co={ALONZO:{V1:"a141005901d59f1a000302590001011a00060bc719026d00011a000249f01903e800011a000249f018201a0025cea81971f70419744d186419744d186419744d186419744d186419744d186419744d18641864186419744d18641a000249f018201a000249f018201a000249f018201a000249f01903e800011a000249f018201a000249f01903e800081a000242201a00067e2318760001011a000249f01903e800081a000249f01a0001b79818f7011a000249f0192710011a0002155e19052e011903e81a000249f01903e8011a000249f018201a000249f018201a000249f0182001011a000249f0011a000249f0041a000194af18f8011a000194af18f8011a0002377c190556011a0002bdea1901f1011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000242201a00067e23187600010119f04c192bd200011a000249f018201a000242201a00067e2318760001011a000242201a00067e2318760001011a0025cea81971f704001a000141bb041a000249f019138800011a000249f018201a000302590001011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a00330da70101ff"},BABBAGE:{V1:"a141005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff",V2:"a20198af1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a0011b22c1a0005fdde00021a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201b00000004a817c8001b00000004a817c8001a009063b91903fd0a1b00000004a817c800001b00000004a817c80041005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff"}},Cn={[x.exports.NetworkInfo.testnet().network_id()]:"8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3",[x.exports.NetworkInfo.mainnet().network_id()]:"f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a"},po={mainnet:"wss://ogmios-api.mainnet.dandelion.link",preprod:"wss://ogmios-api.iohk-preprod.dandelion.link",preview:"__TBD_SOON_TM__",testnet:"wss://ogmios-api.testnet.dandelion.link"},wo={LQ:"da8c30857834c6ae7203935b89278c532b3995245295456f993e1d244c51",MIN:"29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e",NTX:"edfd7a1d77bcb8b884c474bdc92a16002d1fb720e454fa6e993444794e5458",iBTC:"f66d78b4a3cb3d37afa0ec36461e51ecbde00f26c8f0a68f94b6988069425443",iETH:"f66d78b4a3cb3d37afa0ec36461e51ecbde00f26c8f0a68f94b6988069455448",iUSD:"f66d78b4a3cb3d37afa0ec36461e51ecbde00f26c8f0a68f94b6988069555344",MILK:"8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa4d494c4b",AGIX:"f43a62fdc3965df486de8a0d32fe800963589c41b38946602a0dc53541474958",MELD:"6ac8ef33b510ec004fe11585f7c5a9f0c07f0c23428ab4f29c1d7d104d454c44",INDY:"533bb94a8850ee3ccbe483106489399112b74c905342cb1792a797a0494e4459",CLAY:"38ad9dc3aec6a2f38e220142b9aa6ade63ebe71f65e7cc2b7d8a8535434c4159",MCOS:"6f46e1304b16d884c85c62fb0eef35028facdc41aaa0fd319a152ed64d434f53",DING:"ce5b9e0f8a88255b65f2e4d065c6e716e9fa9a8a86dfb86423dd1ac044494e47",GERO:"10a49b996e2402269af553a8a96fb8eb90d79e9eca79e2b4223057b64745524f",NMKR:"5dac8536653edc12f6f5e1045d8164b9f59998d3bdc300fc928434894e4d4b52",PAVIA:"884892bcdc360bcef87d6b3f806e7f9cd5ac30d999d49970e7a903ae5041564941",HOSKY:"a0028f350aaabe0545fdcb56b039bfb08e4bb4d8c4d7c3c7d481c235484f534b59",YUMMI:"078eafce5cd7edafdf63900edef2c1ea759e77f30ca81d6bbdeec92479756d6d69",C3:"8e51398904a5d3fc129fbf4f1589701de23c7824d5c90fdb9490e15a434841524c4933",GIMBAL:"2b0a04a7b60132b1805b296c7fcb3b217ff14413991bf76f72663c3067696d62616c",SUNDAE:"9a9693a9a37912a5097918f97918d15240c92ab729a0b7c4aa144d7753554e444145",GREENS:"4623ab311b7d982d8d26fcbe1a9439ca56661aafcdcd8d8a0ef31fd6475245454e53",GENS:"dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb0014df1047454e53",SOCIETY:"25f0fc240e91bd95dcdaebd2ba7713fc5168ac77234a3d79449fc20c534f4349455459",DJED:"8db269c3ec630e06ae29f74bc39edd1f87c819f1056206e879a1cd61446a65644d6963726f555344",SHEN:"8db269c3ec630e06ae29f74bc39edd1f87c819f1056206e879a1cd615368656e4d6963726f555344",WMT:"1d7f33bd23d85e1a25d87d86fac4f199c3197a2f7afeb662a0f34e1e776f726c646d6f62696c65746f6b656e",COPI:"b6a7467ea1deb012808ef4e87b5ff371e85f7142d7b356a40d9b42a0436f726e75636f70696173205b76696120436861696e506f72742e696f5d"},Pn=["begin","eternl","flint","lace","nami","nufi","gerowallet","typhoncip30","vespr","yoroi"],ca=(p,w,_="5000000")=>{const f=x.exports.BigNum.from_str(p.get("lovelace")??"0").checked_add(x.exports.BigNum.from_str(_)),y=w.filter(O=>O.output.amount.filter(K=>K.unit!=="lovelace").some(K=>p.has(K.unit))),m=fo(y);return[...m.less_than(f)?uo(f.clamped_sub(m).to_str(),w.filter(O=>!y.some(K=>K.input.txHash===O.input.txHash&&K.input.outputIndex===O.input.outputIndex))):[],...y]},lo=(p,w,_=!1,{maxTxSize:f,minFeeA:y,minFeeB:m}=Cr)=>{const A=w.filter(J=>wa(J)===!1).sort(En),O=x.exports.BigNum.from_str(Un(f,y,m)),K=_?x.exports.BigNum.from_str(p).checked_add(O).to_str():p;return Te(A,new Map([["lovelace",K]]))},pa=(p,w,_=!1,f=Cr)=>{const y=w.filter(wa).sort(En),m=go(f),A=p.get("lovelace")??"0",O=_?x.exports.BigNum.from_str(A).checked_add(m).to_str():A;return p.set("lovelace",O),Te(y,p)},bo=(p,w)=>Array.from(w,_=>({unit:_[0],quantity:x.exports.BigNum.from_str(_[1])})).every(_=>p.filter(f=>f.output.amount.find(y=>y.unit===_.unit)!==void 0).reduce((f,y)=>{const m=y.output.amount.reduce((A,O)=>A.checked_add(x.exports.BigNum.from_str(_.unit===O.unit?O.quantity:"0")),x.exports.BigNum.from_str("0"));return f.checked_add(m)},x.exports.BigNum.from_str("0")).less_than(_.quantity)===!1),En=(p,w)=>{var y,m;const _=x.exports.BigNum.from_str(((y=p.output.amount.find(A=>A.unit==="lovelace"))==null?void 0:y.quantity)??"0");return x.exports.BigNum.from_str(((m=w.output.amount.find(A=>A.unit==="lovelace"))==null?void 0:m.quantity)??"0").compare(_)},go=p=>{const{maxTxSize:w,minFeeA:_,minFeeB:f}=p;return x.exports.BigNum.from_str(Un(w,_,f))},wa=p=>p.output.amount.length>1,fo=p=>p.reduce((w,_)=>{var y;const f=((y=_.output.amount.find(m=>m.unit==="lovelace"))==null?void 0:y.quantity)??"0";return w.checked_add(x.exports.BigNum.from_str(f))},x.exports.BigNum.from_str("0")),uo=(p,w)=>{const _=w.sort(En);return Te(_,new Map([["lovelace",p]]))},Te=(p,w,_=[])=>p.length===0||bo(_,w)?_:ho(p[0],w)?Te(p.slice(1),w,[..._,p[0]]):Te(p.slice(1),w,_),ho=(p,w)=>Array.from(w.keys()).some(_=>p.output.amount.find(f=>f.unit===_)!==void 0),yo=(p,w)=>{const _=ko(w),f=xo(p,w);return{coseKey:Ur(_.to_bytes()),coseSign1:Ur(f.to_bytes())}},vo=(p,w,{key:_,signature:f})=>{var A,O;const y=t_.COSEKey.from_bytes(Vt(_)),m=t_.COSESign1.from_bytes(Vt(f));if((p==null?void 0:p.length)>0){const K=Ur(m.payload()??new Uint8Array);if(Mr(p)!==K)return!1}if((w==null?void 0:w.length)>0){const d=(A=m.headers().protected().deserialized_headers().header(t_.Label.new_text("address")))==null?void 0:A.as_bytes();if(d===void 0)throw new Error("Couldn't find a signer address in signature");const $=(O=y.header(t_.Label.new_int(t_.Int.new_negative(t_.BigNum.from_str("2")))))==null?void 0:O.as_bytes();if($===void 0)throw new Error("Couldn't find a signer key in signature");const J=me(Ur(d)),R=Jo(Ur($));if(mo(w,J,R)===!1)throw new Error("Couldn't check signature because of address mismatch");const h=Go(Ur(m.signature())),L=m.signed_data().to_bytes();return R.verify(L,h)}return!1},mo=(p,w,_)=>{if(p!==w.to_bech32())return!1;try{return xe(p)===_.hash().to_hex()}catch{return!1}},ko=p=>{const w=t_.COSEKey.new(t_.Label.from_key_type(t_.KeyType.OKP));return w.set_algorithm_id(t_.Label.from_algorithm_id(t_.AlgorithmId.EdDSA)),w.set_header(t_.Label.new_int(t_.Int.new_negative(t_.BigNum.from_str("1"))),t_.CBORValue.new_int(t_.Int.new_i32(6))),w.set_header(t_.Label.new_int(t_.Int.new_negative(t_.BigNum.from_str("2"))),t_.CBORValue.new_bytes(p.key.to_public().as_bytes())),w},xo=(p,w)=>{const _=t_.HeaderMap.new(),f=t_.HeaderMap.new();_.set_algorithm_id(t_.Label.from_algorithm_id(t_.AlgorithmId.EdDSA)),_.set_header(t_.Label.new_text("address"),t_.CBORValue.new_bytes(w.address.to_bytes()));const y=t_.Headers.new(t_.ProtectedHeaderMap.new(_),f),m=t_.COSESign1Builder.new(y,Vt(p.payload),!1);p.externalAAD!==void 0&&m.set_external_aad(Vt(p.externalAAD));const A=m.make_data_to_sign(),O=w.key.sign(A.to_bytes());return m.build(O.to_bytes())};var la={},Er={exports:{}};de.notEqual=Io;de.notOk=jo;de.equal=Ao;de.ok=de;var ba=de;function Ao(p,w,_){de(p==w,_)}function Io(p,w,_){de(p!=w,_)}function jo(p,w){de(!p,w)}function de(p,w){if(!p)throw new Error(w||"AssertionError")}var Wr={exports:{}},Co=Sn;Sn.supported=typeof WebAssembly<"u";function Sn(p){if(!Sn.supported)return null;var w=p&&p.imports,_=Eo("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBaiEiIABBkAFqISMgAEGYAWohJCAAQaABaiElIABBqAFqISYgAEGwAWohJyAAQbgBaiEoICEpAwAhASAiKQMAIQIgIykDACEDICQpAwAhBCAlKQMAIQUgJikDACEGICcpAwAhByAoKQMAIQhCiJLznf/M+YTqACEJQrvOqqbY0Ouzu38hCkKr8NP0r+68tzwhC0Lx7fT4paf9p6V/IQxC0YWa7/rPlIfRACENQp/Y+dnCkdqCm38hDkLr+obav7X2wR8hD0L5wvibkaOz8NsAIRAgACkDACERIABBCGopAwAhEiAAQRBqKQMAIRMgAEEYaikDACEUIABBIGopAwAhFSAAQShqKQMAIRYgAEEwaikDACEXIABBOGopAwAhGCAAQcAAaikDACEZIABByABqKQMAIRogAEHQAGopAwAhGyAAQdgAaikDACEcIABB4ABqKQMAIR0gAEHoAGopAwAhHiAAQfAAaikDACEfIABB+ABqKQMAISAgDSAAQcABaikDAIUhDSAPIABB0AFqKQMAhSEPIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgG3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBx8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAdfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHnx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB98fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAgfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBx8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAZfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgHXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBF8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAWfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgE3x8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIICB8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAefHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgG3x8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB98fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAUfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgF3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBh8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCASfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgGnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBV8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAYfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgGnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBR8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiASfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgHnx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIB18fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAcfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggH3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBN8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAXfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgFnx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBt8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAVfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggEXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFICB8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAZfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgGnx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBF8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAWfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGHx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBN8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAVfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggG3x8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIICB8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAffHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgEnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBx8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAdfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggF3x8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBl8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAUfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgHnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBN8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAdfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgF3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBt8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByARfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBl8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAUfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgFXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB58fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAYfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgFnx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIICB8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAffHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgEnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBp8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAdfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgFnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBJ8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAgfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgH3x8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIB58fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAVfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggG3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBF8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAYfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgF3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBR8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAafHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggE3x8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBl8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAcfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgHnx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBx8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAYfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgH3x8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIB18fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByASfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggFHx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBp8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAWfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgEXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHICB8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAVfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggGXx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBd8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSATfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgG3x8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBd8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAgfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgH3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBp8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAcfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgFHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBF8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAZfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgHXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBN8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAefHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgGHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBJ8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAVfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgG3x8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBZ8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAbfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgE3x8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBl8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAVfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgGHx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBd8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCASfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggFnx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGICB8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAcfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgGnx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIB98fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAUfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB58fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSARfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgEXx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBJ8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiATfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgFHx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBV8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAWfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggF3x8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBh8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAZfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgGnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBt8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAcfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHXx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIB58fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAffHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgIHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIB98fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAbfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgFXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBl8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAafHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgIHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIB58fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAXfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEnx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB18fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByARfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgE3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBx8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAYfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgFnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBR8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFICEgISkDACABIAmFhTcDACAiICIpAwAgAiAKhYU3AwAgIyAjKQMAIAMgC4WFNwMAICQgJCkDACAEIAyFhTcDACAlICUpAwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL"),f=null,y={buffer:_,memory:null,exports:null,realloc:m,onload:A};return A(function(){}),y;function m(K){y.exports.memory.grow(Math.ceil(Math.abs(K-y.memory.length)/65536)),y.memory=new Uint8Array(y.exports.memory.buffer)}function A(K){if(y.exports)return K();if(f){f.then(K.bind(null,null)).catch(K);return}try{if(p&&p.async)throw new Error("async");O({instance:new WebAssembly.Instance(new WebAssembly.Module(_),w)})}catch{f=WebAssembly.instantiate(_,w).then(O)}A(K)}function O(K){y.exports=K.instance.exports,y.memory=y.exports.memory&&y.exports.memory.buffer&&new Uint8Array(y.exports.memory.buffer)}}function Eo(p){return typeof atob=="function"?new Uint8Array(atob(p).split("").map(So)):new(De("buffer")).Buffer(p,"base64")}function So(p){return p.charCodeAt(0)}var $r=ba,r_=Co(),oe=64,He=[];Wr.exports=Kr;var Kn=Wr.exports.BYTES_MIN=16,qn=Wr.exports.BYTES_MAX=64;Wr.exports.BYTES=32;var zn=Wr.exports.KEYBYTES_MIN=16,Hn=Wr.exports.KEYBYTES_MAX=64;Wr.exports.KEYBYTES=32;var Rn=Wr.exports.SALTBYTES=16,Ln=Wr.exports.PERSONALBYTES=16;function Kr(p,w,_,f,y){if(!(this instanceof Kr))return new Kr(p,w,_,f,y);if(!(r_&&r_.exports))throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");p||(p=32),y!==!0&&($r(p>=Kn,"digestLength must be at least "+Kn+", was given "+p),$r(p<=qn,"digestLength must be at most "+qn+", was given "+p),w!=null&&$r(w.length>=zn,"key must be at least "+zn+", was given "+w.length),w!=null&&$r(w.length<=Hn,"key must be at least "+Hn+", was given "+w.length),_!=null&&$r(_.length===Rn,"salt must be exactly "+Rn+", was given "+_.length),f!=null&&$r(f.length===Ln,"personal must be exactly "+Ln+", was given "+f.length)),He.length||(He.push(oe),oe+=216),this.digestLength=p,this.finalized=!1,this.pointer=He.pop(),r_.memory.fill(0,0,64),r_.memory[0]=this.digestLength,r_.memory[1]=w?w.length:0,r_.memory[2]=1,r_.memory[3]=1,_&&r_.memory.set(_,32),f&&r_.memory.set(f,48),this.pointer+216>r_.memory.length&&r_.realloc(this.pointer+216),r_.exports.blake2b_init(this.pointer,this.digestLength),w&&(this.update(w),r_.memory.fill(0,oe,oe+w.length),r_.memory[this.pointer+200]=128)}Kr.prototype.update=function(p){return $r(this.finalized===!1,"Hash instance finalized"),$r(p,"input must be TypedArray or Buffer"),oe+p.length>r_.memory.length&&r_.realloc(oe+p.length),r_.memory.set(p,oe),r_.exports.blake2b_update(this.pointer,oe,oe+p.length),this};Kr.prototype.digest=function(p){if($r(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,He.push(this.pointer),r_.exports.blake2b_final(this.pointer),!p||p==="binary")return r_.memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(p==="hex")return Oo(r_.memory,this.pointer+128,this.digestLength);$r(p.length>=this.digestLength,"input must be TypedArray or Buffer");for(var w=0;w<this.digestLength;w++)p[w]=r_.memory[this.pointer+128+w];return p};Kr.prototype.final=Kr.prototype.digest;Kr.WASM=r_&&r_.buffer;Kr.SUPPORTED=typeof WebAssembly<"u";Kr.ready=function(p){if(p||(p=Bo),!r_)return p(new Error("WebAssembly not supported"));var w=new Promise(function(_,f){r_.onload(function(y){y?f():_(),p(y)})});return w};Kr.prototype.ready=Kr.ready;function Bo(){}function Oo(p,w,_){for(var f="",y=0;y<_;y++)f+=Qo(p[w+y]);return f}function Qo(p){return p<16?"0"+p.toString(16):p.toString(16)}var be=ba,Ne=Wr.exports;function Me(p,w,_){var f=p[w]+p[_],y=p[w+1]+p[_+1];f>=4294967296&&y++,p[w]=f,p[w+1]=y}function Vn(p,w,_,f){var y=p[w]+_;_<0&&(y+=4294967296);var m=p[w+1]+f;y>=4294967296&&m++,p[w]=y,p[w+1]=m}function ga(p,w){return p[w]^p[w+1]<<8^p[w+2]<<16^p[w+3]<<24}function we(p,w,_,f,y,m){var A=Be[y],O=Be[y+1],K=Be[m],d=Be[m+1];Me(Et,p,w),Vn(Et,p,A,O);var $=Et[f]^Et[p],J=Et[f+1]^Et[p+1];Et[f]=J,Et[f+1]=$,Me(Et,_,f),$=Et[w]^Et[_],J=Et[w+1]^Et[_+1],Et[w]=$>>>24^J<<8,Et[w+1]=J>>>24^$<<8,Me(Et,p,w),Vn(Et,p,K,d),$=Et[f]^Et[p],J=Et[f+1]^Et[p+1],Et[f]=$>>>16^J<<16,Et[f+1]=J>>>16^$<<16,Me(Et,_,f),$=Et[w]^Et[_],J=Et[w+1]^Et[_+1],Et[w]=J>>>31^$<<1,Et[w+1]=$>>>31^J<<1}var fa=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Do=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],vr=new Uint8Array(Do.map(function(p){return p*2})),Et=new Uint32Array(32),Be=new Uint32Array(32);function ua(p,w){var _=0;for(_=0;_<16;_++)Et[_]=p.h[_],Et[_+16]=fa[_];for(Et[24]=Et[24]^p.t,Et[25]=Et[25]^p.t/4294967296,w&&(Et[28]=~Et[28],Et[29]=~Et[29]),_=0;_<32;_++)Be[_]=ga(p.b,4*_);for(_=0;_<12;_++)we(0,8,16,24,vr[_*16+0],vr[_*16+1]),we(2,10,18,26,vr[_*16+2],vr[_*16+3]),we(4,12,20,28,vr[_*16+4],vr[_*16+5]),we(6,14,22,30,vr[_*16+6],vr[_*16+7]),we(0,10,20,30,vr[_*16+8],vr[_*16+9]),we(2,12,22,24,vr[_*16+10],vr[_*16+11]),we(4,14,16,26,vr[_*16+12],vr[_*16+13]),we(6,8,18,28,vr[_*16+14],vr[_*16+15]);for(_=0;_<16;_++)p.h[_]=p.h[_]^Et[_]^Et[_+16]}var le=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function je(p,w,_,f){le.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=p,le[0]=p,w&&(le[1]=w.length),le[2]=1,le[3]=1,_&&le.set(_,32),f&&le.set(f,48);for(var y=0;y<16;y++)this.h[y]=fa[y]^ga(le,y*4);w&&(ha(this,w),this.c=128)}je.prototype.update=function(p){return be(p!=null,"input must be Uint8Array or Buffer"),ha(this,p),this};je.prototype.digest=function(p){var w=!p||p==="binary"||p==="hex"?new Uint8Array(this.outlen):p;return be(w.length>=this.outlen,"out must have at least outlen bytes of space"),To(this,w),p==="hex"?No(w):w};je.prototype.final=je.prototype.digest;je.ready=function(p){Ne.ready(function(){p()})};function ha(p,w){for(var _=0;_<w.length;_++)p.c===128&&(p.t+=p.c,ua(p,!1),p.c=0),p.b[p.c++]=w[_]}function To(p,w){for(p.t+=p.c;p.c<128;)p.b[p.c++]=0;ua(p,!0);for(var _=0;_<p.outlen;_++)w[_]=p.h[_>>2]>>8*(_&3);return w}function No(p){for(var w="",_=0;_<p.length;_++)w+=Uo(p[_]);return w}function Uo(p){return p<16?"0"+p.toString(16):p.toString(16)}var ya=je;Er.exports=function(w,_,f,y,m){return m!==!0&&(be(w>=Yn,"outlen must be at least "+Yn+", was given "+w),be(w<=$n,"outlen must be at most "+$n+", was given "+w),_!=null&&be(_.length>=Gn,"key must be at least "+Gn+", was given "+_.length),_!=null&&be(_.length<=Jn,"key must be at most "+Jn+", was given "+_.length),f!=null&&be(f.length===Wn,"salt must be exactly "+Wn+", was given "+f.length),y!=null&&be(y.length===Xn,"personal must be exactly "+Xn+", was given "+y.length)),new ya(w,_,f,y)};Er.exports.ready=function(p){Ne.ready(function(){p()})};Er.exports.WASM_SUPPORTED=Ne.SUPPORTED;Er.exports.WASM_LOADED=!1;var Yn=Er.exports.BYTES_MIN=16,$n=Er.exports.BYTES_MAX=64;Er.exports.BYTES=32;var Gn=Er.exports.KEYBYTES_MIN=16,Jn=Er.exports.KEYBYTES_MAX=64;Er.exports.KEYBYTES=32;var Wn=Er.exports.SALTBYTES=16,Xn=Er.exports.PERSONALBYTES=16;Ne.ready(function(p){p||(Er.exports.WASM_LOADED=!0,ya=Ne)});var Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.bech32m=Ce.bech32=void 0;const $e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",va={};for(let p=0;p<$e.length;p++){const w=$e.charAt(p);va[w]=p}function Ie(p){const w=p>>25;return(p&33554431)<<5^-(w>>0&1)&996825010^-(w>>1&1)&642813549^-(w>>2&1)&513874426^-(w>>3&1)&1027748829^-(w>>4&1)&705979059}function Zn(p){let w=1;for(let _=0;_<p.length;++_){const f=p.charCodeAt(_);if(f<33||f>126)return"Invalid prefix ("+p+")";w=Ie(w)^f>>5}w=Ie(w);for(let _=0;_<p.length;++_){const f=p.charCodeAt(_);w=Ie(w)^f&31}return w}function Bn(p,w,_,f){let y=0,m=0;const A=(1<<_)-1,O=[];for(let K=0;K<p.length;++K)for(y=y<<w|p[K],m+=w;m>=_;)m-=_,O.push(y>>m&A);if(f)m>0&&O.push(y<<_-m&A);else{if(m>=w)return"Excess padding";if(y<<_-m&A)return"Non-zero padding"}return O}function Fo(p){return Bn(p,8,5,!0)}function Mo(p){const w=Bn(p,5,8,!1);if(Array.isArray(w))return w}function Po(p){const w=Bn(p,5,8,!1);if(Array.isArray(w))return w;throw new Error(w)}function ma(p){let w;p==="bech32"?w=1:w=734539939;function _(A,O,K){if(K=K||90,A.length+7+O.length>K)throw new TypeError("Exceeds length limit");A=A.toLowerCase();let d=Zn(A);if(typeof d=="string")throw new Error(d);let $=A+"1";for(let J=0;J<O.length;++J){const R=O[J];if(R>>5!==0)throw new Error("Non 5-bit word");d=Ie(d)^R,$+=$e.charAt(R)}for(let J=0;J<6;++J)d=Ie(d);d^=w;for(let J=0;J<6;++J){const R=d>>(5-J)*5&31;$+=$e.charAt(R)}return $}function f(A,O){if(O=O||90,A.length<8)return A+" too short";if(A.length>O)return"Exceeds length limit";const K=A.toLowerCase(),d=A.toUpperCase();if(A!==K&&A!==d)return"Mixed-case string "+A;A=K;const $=A.lastIndexOf("1");if($===-1)return"No separator character for "+A;if($===0)return"Missing prefix for "+A;const J=A.slice(0,$),R=A.slice($+1);if(R.length<6)return"Data too short";let h=Zn(J);if(typeof h=="string")return h;const L=[];for(let g=0;g<R.length;++g){const ot=R.charAt(g),tt=va[ot];if(tt===void 0)return"Unknown character "+ot;h=Ie(h)^tt,!(g+6>=R.length)&&L.push(tt)}return h!==w?"Invalid checksum for "+A:{prefix:J,words:L}}function y(A,O){const K=f(A,O);if(typeof K=="object")return K}function m(A,O){const K=f(A,O);if(typeof K=="object")return K;throw new Error(K)}return{decodeUnsafe:y,decode:m,encode:_,toWords:Fo,fromWordsUnsafe:Mo,fromWords:Po}}Ce.bech32=ma("bech32");Ce.bech32m=ma("bech32m");var Ko=Qe&&Qe.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(la,"__esModule",{value:!0});const qo=Ko(Er.exports),Pe=Ce,pn="asset";class Oe{constructor(w){this.hashBuf=w}static fromHash(w){return new Oe(w)}static fromParts(w,_){const f=(0,qo.default)(20).update(new Uint8Array([...w,..._])).digest("binary");return Oe.fromHash(f)}static fromBech32(w){const{prefix:_,words:f}=Pe.bech32.decode(w);if(_!==pn)throw new Error("Invalid asset fingerprint");const y=Buffer.from(Pe.bech32.fromWords(f));return Oe.fromHash(y)}fingerprint(){const w=Pe.bech32.toWords(this.hashBuf);return Pe.bech32.encode(pn,w)}hash(){return Buffer.from(this.hashBuf).toString("hex")}prefix(){return pn}checksum(){return this.fingerprint().slice(-6)}}var zo=la.default=Oe;const Ho=zo,Ro=(p,w)=>{const _=Yo(p),f=_.derive(cn+1852).derive(cn+1815).derive(cn+w),y=f.derive(0).derive(0).to_raw_key(),m=f.derive(2).derive(0).to_raw_key();return f.free(),_.free(),{paymentKey:y,stakeKey:m}},Lo=(p,w,_)=>{const f=new Map(w);f.set("lovelace",String(Number(f.get("lovelace"))+Number(_)));const y=new Map;for(let R=0;R<p.length;R++)y.set(R,p[R]);const m=new Set,A=new Set,O=new Set,K=new Set,d=new Set;for(let R=0;R<p.length;R++)switch(p[R].output.amount.length){case 1:{A.add(R);break}case 2:{O.add(R);break}case 3:{K.add(R);break}default:{d.add(R);break}}const $=(R,h,L)=>{const g=y.get(R);if(!g)return;const ot=Vo(g,h);if(Number(ot)>0){m.add(R),L.delete(R);for(const tt of g.output.amount)f.set(tt.unit,String(Number(f.get(tt.unit))-Number(tt.quantity)))}};for(const R of f.keys())if(R!="lovelace"){for(const h of O){const L=f.get(R);if(!L||Number(L)<=0)break;$(h,R,O)}for(const h of K){const L=f.get(R);if(!L||Number(L)<=0)break;$(h,R,K)}for(const h of d){const L=f.get(R);if(!L||Number(L)<=0)break;$(h,R,d)}}for(const R of A){const h=f.get("lovelace");if(!h||Number(h)<=0)break;$(R,"lovelace",A)}for(const R of O){const h=f.get("lovelace");if(!h||Number(h)<=0)break;$(R,"lovelace",O)}for(const R of K){const h=f.get("lovelace");if(!h||Number(h)<=0)break;$(R,"lovelace",K)}for(const R of d){const h=f.get("lovelace");if(!h||Number(h)<=0)break;$(R,"lovelace",d)}for(const R of f.keys())if(Number(f.get(R))>0)return[];const J=[];for(const R of m){const h=y.get(R);h&&J.push(h)}return J},Vo=(p,w)=>{for(const _ of p.output.amount)if(_.unit==w)return _.quantity;return"0"},me=p=>x.exports.Address.from_bytes(Vt(p)),Yo=p=>x.exports.Bip32PrivateKey.from_bytes(Vt(p)),$o=p=>x.exports.DataHash.from_bytes(Vt(p)),Gr=p=>x.exports.Ed25519KeyHash.from_bytes(Vt(p)),Go=p=>x.exports.Ed25519Signature.from_bytes(Vt(p)),On=p=>x.exports.NativeScript.from_bytes(Vt(p)),Jo=p=>x.exports.PublicKey.from_bytes(Vt(p)),ka=p=>x.exports.PlutusData.from_bytes(Vt(p)),Ee=(p,w)=>x.exports.PlutusScript.from_bytes_with_version(Vt(p),ae[w]),Wo=p=>x.exports.ScriptRef.from_bytes(Vt(p)),Xo=p=>x.exports.ScriptHash.from_bytes(Vt(p)),Jr=p=>x.exports.Transaction.from_bytes(Vt(p)),xa=p=>x.exports.TransactionHash.from_bytes(Vt(p)),ta=p=>x.exports.TransactionUnspentOutput.from_bytes(Vt(p)),_a=p=>x.exports.TransactionWitnessSet.from_bytes(Vt(p)),Zo=p=>x.exports.Value.from_bytes(Vt(p)),Yr=p=>x.exports.Address.from_bech32(p),Qn=p=>x.exports.BaseAddress.from_address(Yr(p)),Aa=p=>x.exports.EnterpriseAddress.from_address(Yr(p)),Ia=p=>x.exports.RewardAddress.from_address(Yr(p)),Ur=p=>Buffer.from(p).toString("hex"),Vt=p=>p.length%2===0&&/^[0-9A-F]*$/i.test(p)?Buffer.from(p,"hex"):Buffer.from(p,"utf-8"),Dn=p=>{const w=_=>{const f=new Array;for(let y=0;y<_.len();y+=1)f.push(Dn(_.get(y)));return f};switch(p.kind()){case x.exports.NativeScriptKind.ScriptAll:{const _=p.as_script_all();return{type:"all",scripts:w(_.native_scripts())}}case x.exports.NativeScriptKind.ScriptAny:{const _=p.as_script_any();return{type:"any",scripts:w(_.native_scripts())}}case x.exports.NativeScriptKind.ScriptNOfK:{const _=p.as_script_n_of_k();return{type:"atLeast",required:_.n(),scripts:w(_.native_scripts())}}case x.exports.NativeScriptKind.TimelockStart:return{type:"after",slot:p.as_timelock_start().slot_bignum().to_str()};case x.exports.NativeScriptKind.TimelockExpiry:return{type:"before",slot:p.as_timelock_expiry().slot_bignum().to_str()};case x.exports.NativeScriptKind.ScriptPubkey:return{type:"sig",keyHash:p.as_script_pubkey().addr_keyhash().to_hex()};default:throw new Error(`Script Kind: ${p.kind()}, is not supported`)}},Xe=p=>{const w=_=>{const f=x.exports.NativeScripts.new();return _.forEach(y=>{f.add(Xe(y))}),f};switch(p.type){case"all":return x.exports.NativeScript.new_script_all(x.exports.ScriptAll.new(w(p.scripts)));case"any":return x.exports.NativeScript.new_script_any(x.exports.ScriptAny.new(w(p.scripts)));case"atLeast":return x.exports.NativeScript.new_script_n_of_k(x.exports.ScriptNOfK.new(p.required,w(p.scripts)));case"after":return x.exports.NativeScript.new_timelock_start(x.exports.TimelockStart.new_timelockstart(x.exports.BigNum.from_str(p.slot)));case"before":return x.exports.NativeScript.new_timelock_expiry(x.exports.TimelockExpiry.new_timelockexpiry(x.exports.BigNum.from_str(p.slot)));case"sig":return x.exports.NativeScript.new_script_pubkey(x.exports.ScriptPubkey.new(Gr(p.keyHash)))}},Re=p=>{var f,y,m;const w=A=>{const O=[];for(let K=0;K<A.len();K+=1)O.push(Re(A.get(K)));return O},_=A=>{const O=new Map;for(let K=0;K<A.len();K+=1){const d=A.keys().get(K),$=A.get(d)??x.exports.PlutusData.from_hex(Mr("NO_ITEM_FOUND_INSIDE_GOLD_ROOM"));O.set(Re(d),Re($))}return O};switch(p.kind()){case x.exports.PlutusDataKind.Bytes:return Ur(p.as_bytes()??new Uint8Array);case x.exports.PlutusDataKind.Integer:return parseInt(((f=p.as_integer())==null?void 0:f.to_str())??"0",10);case x.exports.PlutusDataKind.List:return w(p.as_list()??x.exports.PlutusList.new());case x.exports.PlutusDataKind.Map:return _(p.as_map()??x.exports.PlutusMap.new());case x.exports.PlutusDataKind.ConstrPlutusData:return{alternative:parseInt(((y=p.as_constr_plutus_data())==null?void 0:y.alternative().to_str())??"0",10),fields:w(((m=p.as_constr_plutus_data())==null?void 0:m.data())??x.exports.PlutusList.new())};default:throw new Error(`PlutusData Kind: ${p.kind()}, is not supported`)}},ge=p=>{const w=_=>{const f=x.exports.PlutusList.new();return _.forEach(y=>{f.add(ge(y))}),f};switch(typeof p){case"string":return x.exports.PlutusData.new_bytes(Vt(p));case"number":return x.exports.PlutusData.new_integer(x.exports.BigInt.from_str(p.toString()));case"bigint":return x.exports.PlutusData.new_integer(x.exports.BigInt.from_str(p.toString()));case"object":if(p instanceof Array){const _=w(p);return x.exports.PlutusData.new_list(_)}else if(p instanceof Map){const _=x.exports.PlutusMap.new();return p.forEach((f,y)=>{_.insert(ge(y),ge(f))}),x.exports.PlutusData.new_map(_)}else return x.exports.PlutusData.new_constr_plutus_data(x.exports.ConstrPlutusData.new(x.exports.BigNum.from_str(p.alternative.toString()),w(p.fields)))}},ts=p=>{const w=x.exports.Relays.new();throw p.relays.forEach(_=>{w.add(ja(_))}),new Error("toPoolParams not implemented.")},gn=p=>{const w=_=>io[_];return x.exports.Redeemer.new(w(p.tag),x.exports.BigNum.from_str(p.index.toString()),ge(p.data),x.exports.ExUnits.new(x.exports.BigNum.from_str(p.budget.mem.toString()),x.exports.BigNum.from_str(p.budget.steps.toString())))},ja=p=>{switch(p.type){case"SingleHostAddr":{const w=p.IPV4?x.exports.Ipv4.new(new Uint8Array(p.IPV4.split(".").map(f=>parseInt(f)))):void 0,_=p.IPV6?x.exports.Ipv6.new(Vt(p.IPV6.replaceAll(":",""))):void 0;return x.exports.Relay.new_single_host_addr(x.exports.SingleHostAddr.new(p.port,w,_))}case"SingleHostName":return x.exports.Relay.new_single_host_name(x.exports.SingleHostName.new(p.port,x.exports.DNSRecordAorAAAA.new(p.domainName)));case"MultiHostName":return x.exports.Relay.new_multi_host_name(x.exports.MultiHostName.new(x.exports.DNSRecordSRV.new(p.domainName)))}},Ca=p=>{if(p.is_plutus_script()){const _=p.plutus_script();return{code:_.to_hex(),version:Object.keys(ae).find(f=>ae[f].to_hex()===_.language_version().to_hex())}}const w=p.native_script();return Dn(w)},Se=p=>{if("code"in p){const w=Ee(p.code,p.version);return x.exports.ScriptRef.new_plutus_script(w)}return x.exports.ScriptRef.new_native_script(Xe(p))},Ue=p=>{var y,m,A;const w=p.output().has_data_hash()?(y=p.output().data_hash())==null?void 0:y.to_hex():void 0,_=p.output().has_plutus_data()?(m=p.output().plutus_data())==null?void 0:m.to_hex():void 0,f=p.output().has_script_ref()?(A=p.output().script_ref())==null?void 0:A.to_hex():void 0;return{input:{outputIndex:p.input().index(),txHash:p.input().transaction_id().to_hex()},output:{address:p.output().address().to_bech32(),amount:Ea(p.output().amount()),dataHash:w,plutusData:_,scriptRef:f}}},Vr=p=>{const w=x.exports.TransactionInput.new(xa(p.input.txHash),p.input.outputIndex),_=x.exports.TransactionOutput.new(Yr(p.output.address),se(p.output.amount));return p.output.dataHash!==void 0&&_.set_data_hash($o(p.output.dataHash)),p.output.plutusData!==void 0&&_.set_plutus_data(ka(p.output.plutusData)),p.output.scriptRef!==void 0&&_.set_script_ref(Wo(p.output.scriptRef)),x.exports.TransactionUnspentOutput.new(w,_)},ra=p=>{const w=p.split(".")[1]??"0",_=`${parseInt(w,10)}`,f="1"+"0".repeat(w.length);return x.exports.UnitInterval.new(x.exports.BigNum.from_str(_),x.exports.BigNum.from_str(f))},Mr=p=>p.length%2===0&&/^[0-9A-F]*$/i.test(p)?p:Ur(Buffer.from(p,"utf-8")),Tn=p=>Buffer.from(p,"hex").toString("utf-8"),Ea=p=>{const w=[{unit:"lovelace",quantity:p.coin().to_str()}],_=p.multiasset();if(_!==void 0){const f=_.keys();for(let y=0;y<f.len();y+=1){const m=f.get(y),A=_.get(m);if(A!==void 0){const O=A.keys();for(let K=0;K<O.len();K+=1){const d=O.get(K),$=A.get(d)??x.exports.BigNum.from_str("0"),J=m.to_hex()+Ur(d.name());w.push({unit:J,quantity:$.to_str()})}}}}return w},se=p=>{const w=p.find(m=>m.unit==="lovelace"),_=Array.from(new Set(p.filter(m=>m.unit!=="lovelace").map(m=>m.unit.slice(0,Fr)))),f=x.exports.MultiAsset.new();_.forEach(m=>{const A=x.exports.Assets.new();p.filter(O=>O.unit.slice(0,Fr)===m).forEach(O=>{A.insert(x.exports.AssetName.new(Vt(O.unit.slice(Fr))),x.exports.BigNum.from_str(O.quantity))}),f.insert(Xo(m),A)});const y=x.exports.Value.new(x.exports.BigNum.from_str(w?w.quantity:"0"));return(p.length>1||!w)&&y.set_multiasset(f),y},ea=(p,w,_)=>x.exports.BaseAddress.new(p,x.exports.StakeCredential.from_keyhash(w),x.exports.StakeCredential.from_keyhash(_)),Sa=(p,w="")=>x.exports.Bip32PrivateKey.from_bip39_entropy(Vt(p),Vt(Mr(w))),fn=p=>x.exports.DataCost.new_coins_per_byte(x.exports.BigNum.from_str(p)),_s=p=>{if(typeof p!="object"||!("input"in p))return x.exports.DatumSource.new(ge(p));const w=Vr(p);if(w.output().has_plutus_data())return x.exports.DatumSource.new_ref_input(w.input());throw new Error(`No inline datum found in UTxO: ${w.input().transaction_id().to_hex()}`)},na=(p,w)=>x.exports.EnterpriseAddress.new(p,x.exports.StakeCredential.from_keyhash(w)),aa=(p,w)=>{if(typeof p=="string")return x.exports.MintWitness.new_native_script(On(p));if(w===void 0)throw new Error("Minting with plutus requires a redeemer to be defined");if(w.tag!=="MINT")throw new Error("Minting redeemer's tag must be defined as 'MINT'");return x.exports.MintWitness.new_plutus_script(hn(p),gn({tag:"MINT",index:0,budget:ke,data:{alternative:0,fields:[]},...w}))},un=(p,w)=>x.exports.RewardAddress.new(p,x.exports.StakeCredential.from_keyhash(w)),hn=p=>{if("code"in p)return x.exports.PlutusScriptSource.new(Ee(p.code,p.version));const w=Vr(p);if(w.output().has_script_ref()){const _=w.output().script_ref();if(_.is_plutus_script()){const f=Ca(_),y=Ee(f.code,f.version).hash();return x.exports.PlutusScriptSource.new_ref_input_with_lang_ver(y,w.input(),ae[f.version])}}throw new Error(`No plutus script reference found in UTxO: ${w.input().transaction_id().to_hex()}`)},Ke=p=>{const w=x.exports.ScriptPubkey.new(p);return x.exports.NativeScript.new_script_pubkey(w)},yn=(p=Cr)=>{const w=x.exports.TransactionBuilderConfigBuilder.new().coins_per_utxo_byte(x.exports.BigNum.from_str(p.coinsPerUTxOSize)).ex_unit_prices(x.exports.ExUnitPrices.new(ra(p.priceMem.toString()),ra(p.priceStep.toString()))).fee_algo(x.exports.LinearFee.new(x.exports.BigNum.from_str(p.minFeeA.toString()),x.exports.BigNum.from_str(p.minFeeB.toString()))).key_deposit(x.exports.BigNum.from_str(p.keyDeposit)).max_tx_size(p.maxTxSize).max_value_size(parseInt(p.maxValSize,10)).pool_deposit(x.exports.BigNum.from_str(p.poolDeposit)).build();return x.exports.TransactionBuilder.new(w)},oa=p=>{const w=x.exports.TxInputsBuilder.new();return p.map(_=>_ instanceof x.exports.TransactionUnspentOutput?_:Vr(_)).forEach(_=>{w.add_input(_.output().address(),_.input(),_.output().amount())}),w},qe=p=>{if(typeof p=="string")return x.exports.TransactionOutputBuilder.new().with_address(Yr(p));let w=x.exports.TransactionOutputBuilder.new().with_address(Yr(p.address));if(p.datum){const{value:_,inline:f}=p.datum,y=ge(_);w=w.with_data_hash(x.exports.hash_plutus_data(y)),f&&(w=w.with_plutus_data(y))}if(p.script){const _=Se(p.script);w=w.with_script_ref(_)}return w},ce=p=>{const w=p.slice(0,Fr),_=p.includes(".")?Mr(p.split(".")[1]):p.slice(Fr);return{policyId:w,assetName:_}},X=p=>fe.default.isAxiosError(p)?p.response?JSON.stringify({data:p.response.data,headers:p.response.headers,status:p.response.status}):p.request?JSON.stringify(p.request):p.message:JSON.stringify(p),rs=p=>{const w=ge(p);return x.exports.hash_plutus_data(w).to_hex()},es=(p,w=Date.now())=>{if(Ye[p]){const[_,f,y,m]=Ye[p];return parseInt(x.exports.BigNum.from_str(w.toString()).div_floor(x.exports.BigNum.from_str("1000")).checked_sub(x.exports.BigNum.from_str(y)).div_floor(x.exports.BigNum.from_str(m)).checked_add(x.exports.BigNum.from_str(_)).to_str(),10)}throw new Error(`Couldn't resolve EpochNo for network: ${p}`)},Nn=(p,w)=>Ho.fromParts(Vt(p),Vt(w)).fingerprint(),ns=(p,w)=>co[p][w],as=p=>Xe(p).hash().to_hex(),he=p=>{var w,_;try{const f=[(w=Qn(p))==null?void 0:w.payment_cred().to_keyhash(),(_=Aa(p))==null?void 0:_.payment_cred().to_keyhash()].find(y=>y!==void 0);if(f!==void 0)return f.to_hex();throw new Error(`Couldn't resolve payment key hash from address: ${p}`)}catch(f){throw new Error(`An error occurred during resolvePaymentKeyHash: ${f}.`)}},os=(p,w=0)=>{const _=Ee(p.code,p.version);return x.exports.EnterpriseAddress.new(w,x.exports.StakeCredential.from_scripthash(_.hash())).to_address().to_bech32()},ss=p=>{try{const w=Aa(p),_=w==null?void 0:w.payment_cred().to_scripthash();if(_!==void 0)return _.to_hex();throw new Error(`Couldn't resolve script hash from address: ${p}`)}catch(w){throw new Error(`An error occurred during resolveScriptHash: ${w}.`)}},is=p=>x.exports.Ed25519KeyHash.from_hex(p).to_bech32("pool1"),Ba=p=>{const w=wn.mnemonicToEntropy(p.join(" ")),_=Sa(w),f=_.to_bech32();return _.free(),f},ds=p=>Se(p).to_hex(),cs=(p,w=Date.now())=>{if(Ye[p]){const[_,f,y]=Ye[p];return x.exports.BigNum.from_str(w.toString()).div_floor(x.exports.BigNum.from_str("1000")).checked_sub(x.exports.BigNum.from_str(y)).checked_add(x.exports.BigNum.from_str(f)).to_str()}throw new Error(`Couldn't resolve SlotNo for network: ${p}`)},Fe=p=>{try{const w=Yr(p),_=Qn(p),f=_==null?void 0:_.stake_cred().to_keyhash();if(f!==void 0)return un(w.network_id(),f).to_address().to_bech32();throw new Error(`Couldn't resolve reward address from address: ${p}`)}catch(w){throw new Error(`An error occurred during resolveRewardAddress: ${w}.`)}},xe=p=>{var w,_;try{const f=[(w=Qn(p))==null?void 0:w.stake_cred().to_keyhash(),(_=Ia(p))==null?void 0:_.payment_cred().to_keyhash()].find(y=>y!==void 0);if(f!==void 0)return f.to_hex();throw new Error(`Couldn't resolve stake key hash from address: ${p}`)}catch(f){throw new Error(`An error occurred during resolveStakeKeyHash: ${f}.`)}},Un=(p,w=Cr.minFeeA,_=Cr.minFeeB)=>(BigInt(w)*BigInt(p)+BigInt(_)).toString(),Oa=p=>{const w=Jr(p).body();return x.exports.hash_transaction(w).to_hex()},ps=(p="",w=32)=>{if(w<=0||w>2048)throw new Error("Length must be bewteen 1 and 2048");const f=sa.customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")(w);return Mr(`${p}${f}`)},ws=p=>Re(ka(p));class ls{_axiosInstance;constructor(...w){if(typeof w[0]=="string"&&w[0].startsWith("http"))this._axiosInstance=fe.default.create({baseURL:w[0]});else{const _=w[0],f=_.slice(0,7);this._axiosInstance=fe.default.create({baseURL:`https://cardano-${f}.blockfrost.io/api/v${w[1]??0}`,headers:{project_id:_}})}}async fetchAccountInfo(w){const _=w.startsWith("addr")?Fe(w):w;try{const{data:f,status:y}=await this._axiosInstance.get(`accounts/${_}`);if(y===200)return{poolId:f.pool_id,active:f.active||f.active_epoch!==null,balance:f.controlled_amount,rewards:f.withdrawable_amount,withdrawals:f.withdrawals_sum};throw X(f)}catch(f){throw X(f)}}resolveScriptRef=async w=>{if(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}`);if(f===200){const y=_.type.startsWith("plutus")?{code:await this.fetchPlutusScriptCBOR(w),version:_.type.replace("plutus","")}:await this.fetchNativeScriptJSON(w);return Se(y).to_hex()}throw X(_)}};toUTxO=async(w,_)=>({input:{outputIndex:w.output_index,txHash:_},output:{address:w.address,amount:w.amount,dataHash:w.data_hash??void 0,plutusData:w.inline_datum??void 0,scriptRef:await this.resolveScriptRef(w.reference_script_hash),scriptHash:w.reference_script_hash}});async fetchAddressUTxOs(w,_){const f=_!==void 0?`/${_}`:"",y=`addresses/${w}/utxos`+f,m=async(A=1,O=[])=>{const{data:K,status:d}=await this._axiosInstance.get(`${y}?page=${A}`);if(d===200)return K.length>0?m(A+1,[...O,...await Promise.all(K.map($=>this.toUTxO($,$.tx_hash)))]):O;throw X(K)};try{return await m()}catch{return[]}}async fetchAssetAddresses(w){const _=async(f=1,y=[])=>{const{policyId:m,assetName:A}=ce(w),{data:O,status:K}=await this._axiosInstance.get(`assets/${m}${A}/addresses?page=${f}`);if(K===200)return O.length>0?_(f+1,[...y,...O]):y;throw X(O)};try{return await _()}catch{return[]}}async fetchAssetMetadata(w){try{const{policyId:_,assetName:f}=ce(w),{data:y,status:m}=await this._axiosInstance.get(`assets/${_}${f}`);if(m===200)return{...y.onchain_metadata};throw X(y)}catch(_){throw X(_)}}async fetchBlockInfo(w){try{const{data:_,status:f}=await this._axiosInstance.get(`blocks/${w}`);if(f===200)return{confirmations:_.confirmations,epoch:_.epoch,epochSlot:_.epoch_slot.toString(),fees:_.fees,hash:_.hash,nextBlock:_.next_block??"",operationalCertificate:_.op_cert,output:_.output??"0",previousBlock:_.previous_block,size:_.size,slot:_.slot.toString(),slotLeader:_.slot_leader??"",time:_.time,txCount:_.tx_count,VRFKey:_.block_vrf};throw X(_)}catch(_){throw X(_)}}async fetchCollectionAssets(w,_=1){try{const{data:f,status:y}=await this._axiosInstance.get(`assets/policy/${w}?page=${_}`);if(y===200)return{assets:f.map(m=>({unit:m.asset,quantity:m.quantity})),next:f.length===100?_+1:null};throw X(f)}catch{return{assets:[],next:null}}}async fetchHandleAddress(w){try{const _=Mr(w.replace("$","")),{data:f,status:y}=await this._axiosInstance.get(`assets/${Cn[1]}${_}/addresses`);if(y===200)return f[0].address;throw X(f)}catch(_){throw X(_)}}async fetchProtocolParameters(w=Number.NaN){try{const{data:_,status:f}=await this._axiosInstance.get(`epochs/${isNaN(w)?"latest":w}/parameters`);if(f===200)return{coinsPerUTxOSize:_.coins_per_utxo_word,collateralPercent:_.collateral_percent,decentralisation:_.decentralisation_param,epoch:_.epoch,keyDeposit:_.key_deposit,maxBlockExMem:_.max_block_ex_mem,maxBlockExSteps:_.max_block_ex_steps,maxBlockHeaderSize:_.max_block_header_size,maxBlockSize:_.max_block_size,maxCollateralInputs:_.max_collateral_inputs,maxTxExMem:_.max_tx_ex_mem,maxTxExSteps:_.max_tx_ex_steps,maxTxSize:_.max_tx_size,maxValSize:_.max_val_size,minFeeA:_.min_fee_a,minFeeB:_.min_fee_b,minPoolCost:_.min_pool_cost,poolDeposit:_.pool_deposit,priceMem:_.price_mem,priceStep:_.price_step};throw X(_)}catch(_){throw X(_)}}async fetchTxInfo(w){try{const{data:_,status:f}=await this._axiosInstance.get(`txs/${w}`);if(f===200)return{block:_.block,deposit:_.deposit,fees:_.fees,hash:_.hash,index:_.index,invalidAfter:_.invalid_hereafter??"",invalidBefore:_.invalid_before??"",slot:_.slot.toString(),size:_.size};throw X(_)}catch(_){throw X(_)}}async fetchUTxOs(w){try{const{data:_,status:f}=await this._axiosInstance.get(`txs/${w}/utxos`);if(f===200){const y=_.outputs,m=[];return y.forEach(O=>{m.push(this.toUTxO(O,w))}),await Promise.all(m)}throw X(_)}catch(_){throw X(_)}}onTxConfirmed(w,_,f=100){let y=0;const m=setInterval(()=>{y>=f&&clearInterval(m),this.fetchTxInfo(w).then(A=>{this.fetchBlockInfo(A.block).then(O=>{(O==null?void 0:O.confirmations)>0&&(clearInterval(m),_())}).catch(()=>{y+=1})}).catch(()=>{y+=1})},5e3)}async submitTx(w){try{const _={"Content-Type":"application/cbor"},{data:f,status:y}=await this._axiosInstance.post("tx/submit",Vt(w),{headers:_});if(y===200)return f;throw X(f)}catch(_){throw X(_)}}async fetchPlutusScriptCBOR(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}/cbor`);if(f===200)return _.cbor;throw X(_)}async fetchNativeScriptJSON(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}/json`);if(f===200)return _.json;throw X(_)}}class bs{_axiosInstance;constructor(w,_,f){const y=f.host??"ipfs.infura.io",m=f.port??5001,A=f.version??0;this._axiosInstance=fe.default.create({baseURL:`https://${y}:${m}/api/v${A}`,auth:{username:w,password:_}})}async uploadContent(w,_=!1){try{const f={"Content-Type":"multipart/form-data"},{data:y,status:m}=await this._axiosInstance.post(`add?recursive=${_}`,w,{headers:f});if(m===200)return y;throw X(y)}catch(f){throw X(f)}}}class gs{_axiosInstance;constructor(...w){if(typeof w[0]=="string"&&w[0].startsWith("http"))this._axiosInstance=fe.default.create({baseURL:w[0],headers:{Authorization:`Bearer ${w[1]}`}});else{let _=1;typeof w[2]=="number"&&(_=w[2]);const f={baseURL:`https://${w[0]}.koios.rest/api/v${_}`};typeof w[1]=="string"&&(f.headers={Authorization:`Bearer ${w[1]}`}),this._axiosInstance=fe.default.create(f)}}async fetchAccountInfo(w){try{const _=w.startsWith("addr")?Fe(w):w,{data:f,status:y}=await this._axiosInstance.post("account_info",{_stake_addresses:[_]});if(y===200)return{poolId:f[0].delegated_pool,active:f[0].status==="registered",balance:f[0].total_balance.toString(),rewards:f[0].rewards_available,withdrawals:f[0].withdrawals};throw X(f)}catch(_){throw X(_)}}async fetchAddressUTxOs(w,_){try{const{data:f,status:y}=await this._axiosInstance.post("address_info",{_addresses:[w]});if(y===200){const m=f.flatMap(A=>A.utxo_set).map(A=>this.toUTxO(A,w));return _!==void 0?m.filter(A=>A.output.amount.find(O=>O.unit===_)!==void 0):m}throw X(f)}catch{return[]}}async fetchAssetAddresses(w){try{const{policyId:_,assetName:f}=ce(w),{data:y,status:m}=await this._axiosInstance.get(`asset_address_list?_asset_policy=${_}&_asset_name=${f}`);if(m===200)return y.map(A=>({address:A.payment_address,quantity:A.quantity}));throw X(y)}catch(_){throw X(_)}}async fetchAssetMetadata(w){try{const{policyId:_,assetName:f}=ce(w),{data:y,status:m}=await this._axiosInstance.get(`asset_info?_asset_policy=${_}&_asset_name=${f}`);if(m===200)return{...y[0].minting_tx_metadata[721][_][Tn(f)]};throw X(y)}catch(_){throw X(_)}}async fetchBlockInfo(w){try{const{data:_,status:f}=await this._axiosInstance.post("block_info",{_block_hashes:[w]});if(f===200)return{confirmations:_[0].num_confirmations,epoch:_[0].epoch_no,epochSlot:_[0].epoch_slot.toString(),fees:_[0].total_fees??"",hash:_[0].hash,nextBlock:_[0].child_hash??"",operationalCertificate:_[0].op_cert,output:_[0].total_output??"0",previousBlock:_[0].parent_hash,size:_[0].block_size,slot:_[0].abs_slot.toString(),slotLeader:_[0].pool??"",time:_[0].block_time,txCount:_[0].tx_count,VRFKey:_[0].vrf_key};throw X(_)}catch(_){throw X(_)}}async fetchCollectionAssets(w,_=0){try{const{data:f,status:y}=await this._axiosInstance.get(`asset_policy_info?_asset_policy=${w}&limit=100&offset=${_}`);if(y===200)return{assets:f.map(m=>({unit:`${w}${m.asset_name}`,quantity:m.total_supply})),next:f.length===100?_+100:null};throw X(f)}catch(f){throw X(f)}}async fetchHandleAddress(w){try{const _=Mr(w.replace("$","")),{data:f,status:y}=await this._axiosInstance.get(`asset_address_list?_asset_policy=${Cn[1]}&_asset_name=${_}`);if(y===200)return f[0].payment_address;throw X(f)}catch(_){throw X(_)}}async fetchProtocolParameters(w){try{const{data:_,status:f}=await this._axiosInstance.get(`epoch_params?_epoch_no=${w}`);if(f===200)return{coinsPerUTxOSize:_[0].coins_per_utxo_size,collateralPercent:_[0].collateral_percent,decentralisation:_[0].decentralisation,epoch:_[0].epoch_no,keyDeposit:_[0].key_deposit,maxBlockExMem:_[0].max_block_ex_mem.toString(),maxBlockExSteps:_[0].max_block_ex_steps.toString(),maxBlockHeaderSize:_[0].max_bh_size,maxBlockSize:_[0].max_block_size,maxCollateralInputs:_[0].max_collateral_inputs,maxTxExMem:_[0].max_tx_ex_mem.toString(),maxTxExSteps:_[0].max_tx_ex_steps.toString(),maxTxSize:_[0].max_tx_size,maxValSize:_[0].max_val_size.toString(),minFeeA:_[0].min_fee_a,minFeeB:_[0].min_fee_b,minPoolCost:_[0].min_pool_cost,poolDeposit:_[0].pool_deposit,priceMem:_[0].price_mem,priceStep:_[0].price_step};throw X(_)}catch(_){throw X(_)}}async fetchTxInfo(w){var _,f;try{const{data:y,status:m}=await this._axiosInstance.post("tx_info",{_tx_hashes:[w]});if(m===200)return{block:y[0].block_hash,deposit:y[0].deposit,fees:y[0].fee,hash:y[0].tx_hash,index:y[0].tx_block_index,invalidAfter:((_=y[0].invalid_after)==null?void 0:_.toString())??"",invalidBefore:((f=y[0].invalid_before)==null?void 0:f.toString())??"",slot:y[0].absolute_slot.toString(),size:y[0].tx_size};throw X(y)}catch(y){throw X(y)}}async fetchUTxOs(w){try{const{data:_,status:f}=await this._axiosInstance.post("tx_info",{_tx_hashes:[w]});if(f===200)return _[0].outputs.map(m=>this.toUTxO(m,m.payment_addr.bech32));throw X(_)}catch(_){throw X(_)}}onTxConfirmed(w,_,f=100){let y=0;const m=setInterval(()=>{y>=f&&clearInterval(m),this.fetchTxInfo(w).then(A=>{this.fetchBlockInfo(A.block).then(O=>{(O==null?void 0:O.confirmations)>0&&(clearInterval(m),_())}).catch(()=>{y+=1})}).catch(()=>{y+=1})},5e3)}async submitTx(w){try{const _={"Content-Type":"application/cbor"},{data:f,status:y}=await this._axiosInstance.post("submittx",Vt(w),{headers:_});if(y===202)return f;throw X(f)}catch(_){throw X(_)}}toUTxO(w,_){var f,y;return{input:{outputIndex:w.tx_index,txHash:w.tx_hash},output:{address:_,amount:[{unit:"lovelace",quantity:w.value},...w.asset_list.map(m=>({unit:`${m.policy_id}${m.asset_name}`,quantity:`${m.quantity}`}))],dataHash:w.datum_hash??void 0,plutusData:((f=w.inline_datum)==null?void 0:f.bytes)??void 0,scriptRef:this.resolveScriptRef(w.reference_script),scriptHash:((y=w.reference_script)==null?void 0:y.hash)??void 0}}}resolveScriptRef=w=>{if(w){const _=w.type.startsWith("plutus")?{code:w.bytes,version:w.type.replace("plutus","")}:Dn(On(w.bytes));return Se(_).to_hex()}}}class fs{_baseUrl;constructor(...w){this._baseUrl=ia(w[0])?po[w[0]]:w[0]}async evaluateTx(w){const _=await this.open();return this.send(_,"EvaluateTx",{evaluate:w}),new Promise((f,y)=>{_.addEventListener("message",m=>{try{const{result:A}=JSON.parse(m.data);A.EvaluationResult?f(Object.keys(A.EvaluationResult).map(O=>({index:parseInt(O.split(":")[1],10),tag:O.split(":")[0].toUpperCase(),budget:{mem:A.EvaluationResult[O].memory,steps:A.EvaluationResult[O].steps}}))):y(A.EvaluationFailure),_.close()}catch(A){y(A)}},{once:!0})})}async onNextTx(w){const _=await this.open();return this.send(_,"AwaitAcquire",{}),_.addEventListener("message",f=>{const{result:y}=JSON.parse(f.data);if(y===null)return this.send(_,"AwaitAcquire",{});y.AwaitAcquired===void 0&&w(y),this.send(_,"NextTx",{})}),()=>_.close()}async submitTx(w){const _=await this.open();return this.send(_,"SubmitTx",{submit:w}),new Promise((f,y)=>{_.addEventListener("message",m=>{try{const{result:A}=JSON.parse(m.data);A.SubmitSuccess?f(A.SubmitSuccess.txId):y(A.SubmitFail),_.close()}catch(A){y(A)}},{once:!0})})}async open(){const w=new WebSocket(this._baseUrl);return await new Promise(_=>{w.addEventListener("open",()=>_(!0),{once:!0})}),w}send(w,_,f){w.send(JSON.stringify({version:"1.0",type:"jsonwsp/request",servicename:"ogmios",methodname:_,args:f}))}}class us{_axiosInstance;_amountsAsStrings={headers:{"amounts-as-strings":"true"}};submitUrl;constructor({network:w,apiKey:_,turboSubmit:f=!1}){this._axiosInstance=fe.default.create({baseURL:`https://${w}.gomaestro-api.org/v1`,headers:{"api-key":_}}),this.submitUrl=f?"txmanager/turbosubmit":"txmanager"}async evaluateTx(w){try{const{data:_,status:f}=await this._axiosInstance.post("transactions/evaluate",{cbor:w});if(f===200){const y={spend:"SPEND",mint:"MINT",cert:"CERT",wdrl:"REWARD"};return _.map(A=>{const O=A.ex_units,K=A.redeemer_index,d=y[A.redeemer_tag];return{budget:O,index:K,tag:d}})}throw X(_)}catch(_){throw X(_)}}async fetchAccountInfo(w){const _=w.startsWith("addr")?Fe(w):w;try{const{data:f,status:y}=await this._axiosInstance.get(`accounts/${_}`,this._amountsAsStrings);if(y===200){const m=f.data;return{poolId:m.delegated_pool,active:m.registered,balance:m.total_balance,rewards:m.rewards_available,withdrawals:m.total_withdrawn}}throw X(f)}catch(f){throw X(f)}}async fetchAddressUTxOs(w,_){const f=(()=>w.startsWith("addr_vkh")||w.startsWith("addr_shared_vkh")?`addresses/cred/${w}`:`addresses/${w}`)(),y=_?`&asset=${_}`:"",m=async(A=null,O=[])=>{const K=A===null?"":`&cursor=${A}`,{data:d,status:$}=await this._axiosInstance.get(`${f}/utxos?count=100${y}${K}`,this._amountsAsStrings);if($===200){const R=d.data.map(this.toUTxO),h=[...O,...R],L=d.next_cursor;return L==null?h:m(L,h)}throw X(d)};try{return await m()}catch{return[]}}async fetchAssetAddresses(w){const{policyId:_,assetName:f}=ce(w),y=async(m=null,A=[])=>{const O=m===null?"":`&cursor=${m}`,{data:K,status:d}=await this._axiosInstance.get(`assets/${_}${f}/addresses?count=100${O}`,this._amountsAsStrings);if(d===200){const J=K.data.map(L=>({address:L.address,quantity:L.amount})),R=K.next_cursor,h=[...A,...J];return R==null?h:y(R,h)}throw X(K)};try{return await y()}catch{return[]}}async fetchAssetMetadata(w){try{const{policyId:_,assetName:f}=ce(w),{data:y,status:m}=await this._axiosInstance.get(`assets/${_}${f}`);if(m===200){const A=y.data;return{...A.asset_standards.cip25_metadata,...A.asset_standards.cip68_metadata}}throw X(y)}catch(_){throw X(_)}}async fetchBlockInfo(w){var _;try{const{data:f,status:y}=await this._axiosInstance.get(`blocks/${w}`,this._amountsAsStrings);if(y===200){const m=f.data;return{confirmations:m.confirmations,epoch:m.epoch,epochSlot:m.epoch_slot.toString(),fees:m.total_fees,hash:m.hash,nextBlock:m.next_block??"",operationalCertificate:(_=m.operational_certificate)==null?void 0:_.hot_vkey,output:m.total_output_lovelace??"0",previousBlock:m.previous_block,size:m.size,slot:m.absolute_slot.toString(),slotLeader:m.block_producer??"",time:Date.parse(m.timestamp)/1e3,txCount:m.tx_hashes.length,VRFKey:x.exports.VRFVKey.from_hex(m.vrf_key).to_bech32("vrf_vk")}}throw X(f)}catch(f){throw X(f)}}async fetchCollectionAssets(w,_){try{const{data:f,status:y}=await this._axiosInstance.get(`policy/${w}/assets?count=100${_?`&cursor=${_}`:""}`);if(y===200)return{assets:f.data.map(A=>({unit:w+A.asset_name,quantity:A.total_supply})),next:f.next_cursor};throw X(f)}catch{return{assets:[],next:null}}}async fetchHandleAddress(w){try{const _=w.charAt(0)==="$"?w.substring(1):w,{data:f,status:y}=await this._axiosInstance.get(`ecosystem/adahandle/${_}`);if(y===200)return f.data;throw X(f)}catch(_){throw X(_)}}async fetchProtocolParameters(w=Number.NaN){if(!isNaN(w))throw new Error("Maestro only supports fetching Protocol parameters of the latest completed epoch.");const _=f=>{const y=f.indexOf("/");return parseInt(f.slice(0,y))/parseInt(f.slice(y+1))};try{const{data:f,status:y}=await this._axiosInstance.get("protocol-params");if(y===200){const m=f.data;try{const{data:A,status:O}=await this._axiosInstance.get("epochs/current");if(O===200){const K=A.data;return{coinsPerUTxOSize:m.coins_per_utxo_byte.toString(),collateralPercent:parseInt(m.collateral_percentage),decentralisation:0,epoch:parseInt(K.epoch_no),keyDeposit:m.stake_key_deposit.toString(),maxBlockExMem:m.max_execution_units_per_block.memory.toString(),maxBlockExSteps:m.max_execution_units_per_block.steps.toString(),maxBlockHeaderSize:parseInt(m.max_block_header_size),maxBlockSize:parseInt(m.max_block_body_size),maxCollateralInputs:parseInt(m.max_collateral_inputs),maxTxExMem:m.max_execution_units_per_transaction.memory.toString(),maxTxExSteps:m.max_execution_units_per_transaction.steps.toString(),maxTxSize:parseInt(m.max_tx_size),maxValSize:m.max_value_size.toString(),minFeeA:m.min_fee_coefficient,minFeeB:m.min_fee_constant,minPoolCost:m.min_pool_cost.toString(),poolDeposit:m.pool_deposit.toString(),priceMem:_(m.prices.memory),priceStep:_(m.prices.steps)}}throw X(A)}catch(A){throw X(A)}}throw X(f)}catch(f){throw X(f)}}async fetchTxInfo(w){try{const{data:_,status:f}=await this._axiosInstance.get(`transactions/${w}`);if(f===200){const y=_.data;return{block:y.block_hash,deposit:y.deposit.toString(),fees:y.fee.toString(),hash:y.tx_hash,index:y.block_tx_index,invalidAfter:y.invalid_hereafter??"",invalidBefore:y.invalid_before??"",slot:y.block_absolute_slot.toString(),size:y.size-1}}throw X(_)}catch(_){throw X(_)}}async fetchUTxOs(w){try{const{data:_,status:f}=await this._axiosInstance.get(`transactions/${w}`,this._amountsAsStrings);if(f===200)return _.data.outputs.map(this.toUTxO);throw X(_)}catch(_){throw X(_)}}onTxConfirmed(w,_,f=100){let y=0;const m=setInterval(()=>{y>=f&&clearInterval(m),this.fetchTxInfo(w).then(A=>{this.fetchBlockInfo(A.block).then(O=>{(O==null?void 0:O.confirmations)>0&&(clearInterval(m),_())}).catch(()=>{y+=1})}).catch(()=>{y+=1})},5e3)}async submitTx(w){try{const _={"Content-Type":"application/cbor"},{data:f,status:y}=await this._axiosInstance.post(this.submitUrl,Vt(w),{headers:_});if(y===202)return f;throw X(f)}catch(_){throw X(_)}}toUTxO=w=>{var _,f,y;return{input:{outputIndex:w.index,txHash:w.tx_hash},output:{address:w.address,amount:w.assets.map(m=>({unit:m.unit,quantity:m.amount})),dataHash:(_=w.datum)==null?void 0:_.hash,plutusData:(f=w.datum)==null?void 0:f.bytes,scriptRef:this.resolveScript(w),scriptHash:(y=w.reference_script)==null?void 0:y.hash}}};resolveScript=w=>{if(w.reference_script){const _=w.reference_script.type==="native"?w.reference_script.json:{code:w.reference_script.bytes,version:w.reference_script.type.replace("plutusv","V")};return Se(_).to_hex()}else return}}class hs{_axiosInstance;constructor(w="http://localhost:8080/api/v1"){this._axiosInstance=fe.default.create({baseURL:w})}async fetchAccountInfo(w){const _=w.startsWith("addr")?Fe(w):w;try{const{data:f,status:y}=await this._axiosInstance.get(`accounts/${_}`);if(y===200)return{poolId:f.pool_id,active:f.active||f.active_epoch!==null,balance:f.controlled_amount,rewards:f.withdrawable_amount,withdrawals:f.withdrawals_sum};throw X(f)}catch(f){throw X(f)}}resolveScriptRef=async w=>{if(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}`);if(f===200){const y=_.type.startsWith("plutus")?{code:await this.fetchPlutusScriptCBOR(w),version:_.type.replace("plutus","")}:await this.fetchNativeScriptJSON(w);return Se(y).to_hex()}throw X(_)}};toUTxO=async(w,_)=>({input:{outputIndex:w.output_index,txHash:_},output:{address:w.address,amount:w.amount.map(f=>({...f,quantity:f.quantity.toString()})),dataHash:w.data_hash??void 0,plutusData:w.inline_datum??void 0,scriptRef:await this.resolveScriptRef(w.reference_script_hash),scriptHash:w.reference_script_hash}});async fetchAddressUTxOs(w,_){const f=_!==void 0?`/${_}`:"",y=`addresses/${w}/utxos`+f,m=async(A=1,O=[])=>{const{data:K,status:d}=await this._axiosInstance.get(`${y}?page=${A}`);if(d===200)return K.length>0?m(A+1,[...O,...await Promise.all(K.map($=>this.toUTxO($,$.tx_hash)))]):O;throw X(K)};try{return await m()}catch{return[]}}async fetchAssetAddresses(w){const _=async(f=1,y=[])=>{const{policyId:m,assetName:A}=ce(w),{data:O,status:K}=await this._axiosInstance.get(`assets/${m}${A}/addresses?page=${f}`);if(K===200)return O.length>0?_(f+1,[...y,...O]):y;throw X(O)};try{return await _()}catch{return[]}}async fetchAssetMetadata(w){try{const{policyId:_,assetName:f}=ce(w),{data:y,status:m}=await this._axiosInstance.get(`assets/${_}${f}`);if(m===200)return{...y.onchain_metadata};throw X(y)}catch(_){throw X(_)}}async fetchBlockInfo(w){try{const{data:_,status:f}=await this._axiosInstance.get(`blocks/${w}`);if(f===200)return{confirmations:_.confirmations,epoch:_.epoch,epochSlot:_.epoch_slot.toString(),fees:_.fees,hash:_.hash,nextBlock:_.next_block??"",operationalCertificate:_.op_cert,output:_.output??"0",previousBlock:_.previous_block,size:_.size,slot:_.slot.toString(),slotLeader:_.slot_leader??"",time:_.time,txCount:_.tx_count,VRFKey:_.block_vrf};throw X(_)}catch(_){throw X(_)}}async fetchCollectionAssets(w,_=1){try{const{data:f,status:y}=await this._axiosInstance.get(`assets/policy/${w}?page=${_}`);if(y===200)return{assets:f.map(m=>({unit:m.asset,quantity:m.quantity})),next:f.length===100?_+1:null};throw X(f)}catch{return{assets:[],next:null}}}async fetchHandleAddress(w){try{const _=Mr(w.replace("$","")),{data:f,status:y}=await this._axiosInstance.get(`assets/${Cn[1]}${_}/addresses`);if(y===200)return f[0].address;throw X(f)}catch(_){throw X(_)}}async fetchProtocolParameters(w=Number.NaN){try{const{data:_,status:f}=await this._axiosInstance.get(`epochs/${isNaN(w)?"latest":w}/parameters`);if(f===200)return{coinsPerUTxOSize:_.coins_per_utxo_word,collateralPercent:_.collateral_percent,decentralisation:_.decentralisation_param,epoch:_.epoch,keyDeposit:_.key_deposit,maxBlockExMem:_.max_block_ex_mem,maxBlockExSteps:_.max_block_ex_steps,maxBlockHeaderSize:_.max_block_header_size,maxBlockSize:_.max_block_size,maxCollateralInputs:_.max_collateral_inputs,maxTxExMem:_.max_tx_ex_mem,maxTxExSteps:_.max_tx_ex_steps,maxTxSize:_.max_tx_size,maxValSize:_.max_val_size,minFeeA:_.min_fee_a,minFeeB:_.min_fee_b,minPoolCost:_.min_pool_cost,poolDeposit:_.pool_deposit,priceMem:_.price_mem,priceStep:_.price_step};throw X(_)}catch(_){throw X(_)}}async fetchTxInfo(w){try{const{data:_,status:f}=await this._axiosInstance.get(`txs/${w}`);if(f===200)return{block:_.block,deposit:_.deposit,fees:_.fees,hash:_.hash,index:_.index,invalidAfter:_.invalid_hereafter??"",invalidBefore:_.invalid_before??"",slot:_.slot.toString(),size:_.size};throw X(_)}catch(_){throw X(_)}}async fetchUTxOs(w){try{const{data:_,status:f}=await this._axiosInstance.get(`txs/${w}/utxos`);if(f===200){const y=_.outputs,m=[];return y.forEach(O=>{m.push(this.toUTxO(O,w))}),await Promise.all(m)}throw X(_)}catch(_){throw X(_)}}onTxConfirmed(w,_,f=100){let y=0;const m=setInterval(()=>{y>=f&&clearInterval(m),this.fetchTxInfo(w).then(A=>{this.fetchBlockInfo(A.block).then(O=>{(O==null?void 0:O.confirmations)>0&&(clearInterval(m),_())}).catch(()=>{y+=1})}).catch(()=>{y+=1})},5e3)}async submitTx(w){try{const _={"Content-Type":"text/plain"},{status:f,data:y}=await this._axiosInstance.post("/tx/submit",w,{headers:_});if(f===202)return y;throw X(y)}catch(_){throw console.log("error",_),X(_)}}async fetchPlutusScriptCBOR(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}/cbor`);if(f===200)return _.cbor;throw X(_)}async fetchNativeScriptJSON(w){const{data:_,status:f}=await this._axiosInstance.get(`scripts/${w}/json`);if(f===200)return _.json;throw X(_)}}class ys{static withOneSignature(w){const _=Gr(he(w));return Ke(_).to_hex()}static withAtLeastNSignatures(w,_){const f=x.exports.NativeScripts.new();w.forEach(m=>{const A=Gr(he(m));f.add(Ke(A))});const y=x.exports.ScriptNOfK.new(_,f);return x.exports.NativeScript.new_script_any(y).to_hex()}static withAnySignature(w){const _=x.exports.NativeScripts.new();w.forEach(y=>{const m=Gr(he(y));_.add(Ke(m))});const f=x.exports.ScriptAny.new(_);return x.exports.NativeScript.new_script_any(f).to_hex()}static withAllSignatures(w){const _=x.exports.NativeScripts.new();w.forEach(y=>{const m=Gr(he(y));_.add(Ke(m))});const f=x.exports.ScriptAll.new(_);return x.exports.NativeScript.new_script_any(f).to_hex()}static fromNativeScript(w){return Xe(w).to_hex()}}function ue(p,w,_,f){var y=arguments.length,m=y<3?w:f===null?f=Object.getOwnPropertyDescriptor(w,_):f,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(p,w,_,f);else for(var O=p.length-1;O>=0;O--)(A=p[O])&&(m=(y<3?A(m):y>3?A(w,_,m):A(w,_))||m);return y>3&&m&&Object.defineProperty(w,_,m),m}const vs=p=>class extends p{__visits=[]},ve=()=>function(p,w,_){const f=_.value;_.value=function(...y){const m=f.call(this,...y);return this.__visits&&this.__visits.push(w),m}};exports.Transaction=class{_changeAddress;_txOutputs=new Map;_recipients=new Map;_totalBurns=new Map;_totalMints=new Map;_era;_initiator;_mintBuilder;_protocolParameters;_txBuilder;_txCertificates;_txInputsBuilder;_txWithdrawals;constructor(w={}){this._era=w.era,this._initiator=w.initiator,this._mintBuilder=x.exports.MintBuilder.new(),this._protocolParameters=w.parameters??Cr,this._txBuilder=yn(w.parameters),this._txCertificates=x.exports.Certificates.new(),this._txInputsBuilder=x.exports.TxInputsBuilder.new(),this._txWithdrawals=x.exports.Withdrawals.new()}static attachMetadata(w,_,f="BABBAGE"){var A;const y=Jr(w),m=y.auxiliary_data()??x.exports.AuxiliaryData.new();if(m.set_metadata(x.exports.GeneralTransactionMetadata.from_hex(_)),m.set_prefer_alonzo_format(f==="ALONZO"),x.exports.hash_auxiliary_data(m).to_hex()!==((A=y.body().auxiliary_data_hash())==null?void 0:A.to_hex()))throw new Error("[Transaction] attachMetadata: The metadata hash does not match the auxiliary data hash.");return x.exports.Transaction.new(y.body(),y.witness_set(),m).to_hex()}static deattachMetadata(w){const _=Jr(w);return x.exports.Transaction.new(_.body(),_.witness_set(),void 0).to_hex()}static maskMetadata(w,_="BABBAGE"){var m;const f=Jr(w),y=(m=f.auxiliary_data())==null?void 0:m.metadata();if(y!==void 0){const A=x.exports.GeneralTransactionMetadata.new();for(let K=0;K<y.len();K+=1){const d=y.keys().get(K),$=y.get(d);A.insert(d,x.exports.TransactionMetadatum.from_hex("0".repeat((($==null?void 0:$.to_hex())??"").length)))}const O=f.auxiliary_data();return O!==void 0&&(O.set_metadata(A),O.set_prefer_alonzo_format(_==="ALONZO")),x.exports.Transaction.new(f.body(),f.witness_set(),O).to_hex()}return w}static readMetadata(w){var f,y;return((y=(f=Jr(w).auxiliary_data())==null?void 0:f.metadata())==null?void 0:y.to_hex())??""}static writeMetadata(w,_,f="BABBAGE"){const y=Jr(w),m=y.auxiliary_data()??x.exports.AuxiliaryData.new();return m.set_metadata(x.exports.GeneralTransactionMetadata.from_hex(_)),m.set_prefer_alonzo_format(f==="ALONZO"),x.exports.Transaction.new(y.body(),y.witness_set(),m).to_hex()}get size(){return this._txBuilder.full_size()}async build(){try{return(this._mintBuilder.has_plutus_scripts()||this.notVisited("redeemValue")===!1)&&(await this.addRequiredSignersIfNeeded(),await this.addCollateralIfNeeded()),await this.forgeAssetsIfNeeded(),await this.addTxInputsAsNeeded(),await this.addChangeAddress(),this._txBuilder.build_tx().to_hex()}catch(w){throw new Error(`[Transaction] An error occurred during build: ${w}.`)}}burnAsset(w,_,f){const y=this._totalBurns.has(_.unit)?x.exports.BigNum.from_str(this._totalBurns.get(_.unit)??"0").checked_add(x.exports.BigNum.from_str(_.quantity)).to_str():_.quantity;return this._mintBuilder.add_asset(aa(w,f),x.exports.AssetName.new(Vt(_.unit.slice(Fr))),x.exports.Int.new_negative(x.exports.BigNum.from_str(_.quantity))),this._totalBurns.set(_.unit,y),this}delegateStake(w,_){const f=x.exports.Certificate.new_stake_delegation(x.exports.StakeDelegation.new(x.exports.StakeCredential.from_keyhash(Gr(xe(w))),x.exports.Ed25519KeyHash.from_bech32(_)));return this._txCertificates.add(f),this}deregisterStake(w){const _=x.exports.Certificate.new_stake_deregistration(x.exports.StakeDeregistration.new(x.exports.StakeCredential.from_keyhash(Gr(xe(w)))));return this._txCertificates.add(_),this}mintAsset(w,_,f){var d,$;const y=(J,R)=>{const h=typeof J=="string"?On(J).hash().to_hex():m(J).hash().to_hex(),L=Mr(R.assetName);return{unit:`${h}${L}`,quantity:R.assetQuantity}},m=J=>{if("code"in J)return Ee(J.code,J.version);const R=Vr(J);if(R.output().has_script_ref()){const h=R.output().script_ref();if(h.is_plutus_script()){const L=Ca(h);return Ee(L.code,L.version)}}throw new Error(`[Transaction] No plutus script reference found in UTxO: ${R.input().transaction_id().to_hex()}`)},A=y(w,_),K=x.exports.BigNum.from_str(((d=this._totalMints.get(A.unit))==null?void 0:d.assetQuantity)??"0").checked_add(x.exports.BigNum.from_str(A.quantity));return this._mintBuilder.add_asset(aa(w,f),x.exports.AssetName.new(Vt(Mr(_.assetName))),x.exports.Int.new(x.exports.BigNum.from_str(A.quantity))),this._recipients.has(_.recipient)?($=this._recipients.get(_.recipient))==null||$.push(A):this._recipients.set(_.recipient,[A]),this._totalMints.set(A.unit,{..._,assetQuantity:K.to_str()}),this}redeemValue(w){const _={tag:"SPEND",budget:ke,index:this._txInputsBuilder.inputs().len(),data:{alternative:0,fields:[]},...w.redeemer},f=Vr(w.value),y=w.datum?x.exports.PlutusWitness.new_with_ref(hn(w.script),_s(w.datum),gn(_)):x.exports.PlutusWitness.new_with_ref_without_datum(hn(w.script),gn(_));return this._txInputsBuilder.add_plutus_script_input(y,f.input(),f.output().amount()),this}registerStake(w){const _=x.exports.Certificate.new_stake_registration(x.exports.StakeRegistration.new(x.exports.StakeCredential.from_keyhash(Gr(xe(w)))));return this._txCertificates.add(_),this}registerPool(w){const _=x.exports.Certificate.new_pool_registration(x.exports.PoolRegistration.new(ts(w)));return this._txCertificates.add(_),this}retirePool(w,_){const f=x.exports.Certificate.new_pool_retirement(x.exports.PoolRetirement.new(x.exports.Ed25519KeyHash.from_bech32(w),_));return this._txCertificates.add(f),this}sendAssets(w,_){const f=se(_),y=f.multiasset();if(f.is_zero()||y===void 0)return this;const m=qe(w).next(),A=f.coin().is_zero()?m.with_asset_and_min_required_coin_by_utxo_cost(y,fn(this._protocolParameters.coinsPerUTxOSize)).build():m.with_coin_and_asset(f.coin(),y).build();return _.forEach(O=>{this.setTxOutput(O)}),this._txBuilder.add_output(A),this}sendLovelace(w,_){const y=qe(w).next().with_coin(x.exports.BigNum.from_str(_)).build();return this.setTxOutput({unit:"lovelace",quantity:_}),this._txBuilder.add_output(y),this}sendToken(w,_,f){return this.sendAssets(w,[{quantity:f,unit:wo[_]}]),this}sendValue(w,_){const f=se(_.output.amount),m=qe(w).next().with_value(f).build();return _.output.amount.forEach(A=>{this.setTxOutput(A)}),this._txBuilder.add_output(m),this}setChangeAddress(w){return this._changeAddress=Yr(w),this}setCollateral(w){const _=oa(w);return this._txBuilder.set_collateral(_),this}setMetadata(w,_){return this._txBuilder.add_json_metadatum_with_schema(x.exports.BigNum.from_str(w.toString()),JSON.stringify(_),x.exports.MetadataJsonSchema.NoConversions),this}setRequiredSigners(w){return Array.from(new Set(w.map(f=>f.startsWith("addr")?he(f):xe(f)).map(f=>Gr(f)))).forEach(f=>{this._txBuilder.add_required_signer(f)}),this}setTimeToStart(w){return this._txBuilder.set_validity_start_interval_bignum(x.exports.BigNum.from_str(w)),this}setTimeToExpire(w){return this._txBuilder.set_ttl_bignum(x.exports.BigNum.from_str(w)),this}setTxInputs(w){return w.map(_=>Vr(_)).forEach(_=>{this._txInputsBuilder.add_input(_.output().address(),_.input(),_.output().amount())}),this}setTxRefInputs(w){return w.map(_=>Vr(_)).forEach(_=>{this._txBuilder.add_reference_input(_.input())}),this}withdrawRewards(w,_){const f=Ia(w);return f!==void 0&&this._txWithdrawals.insert(f,x.exports.BigNum.from_str(_)),this}async addBurnInputsIfNeeded(){if(this._initiator&&this._totalBurns.size>0&&this.notVisited("setTxInputs")){const w=await this._initiator.getUsedUTxOs();pa(this._totalBurns,w.map(f=>Ue(f))).map(f=>Vr(f)).forEach(f=>{this._txInputsBuilder.add_input(f.output().address(),f.input(),f.output().amount())})}}async addChangeAddress(){if(this._initiator&&this._changeAddress===void 0){const w=await this._initiator.getUsedAddress();this._txBuilder.add_change_if_needed(w)}else this._changeAddress!==void 0&&this._txBuilder.add_change_if_needed(this._changeAddress)}async addCollateralIfNeeded(){if(this._initiator&&this.notVisited("setCollateral")){const w=await this._initiator.getUsedCollateral();this._txBuilder.set_collateral(oa(w))}}async addRequiredSignersIfNeeded(){if(this._initiator&&this.notVisited("setRequiredSigners")){const w=await this._initiator.getUsedAddress(),_=he(w.to_bech32());this._txBuilder.add_required_signer(Gr(_))}}async addTxInputsAsNeeded(){if(this.notVisited("setTxInputs")){const w=await this.filterAvailableUTxOs();ca(this._txOutputs,w.map(f=>Ue(f))).map(f=>Vr(f)).forEach(f=>{this._txInputsBuilder.add_input(f.output().address(),f.input(),f.output().amount())})}if(this._txBuilder.set_inputs(this._txInputsBuilder),(this._mintBuilder.has_native_scripts()||this._mintBuilder.has_plutus_scripts())&&this._txBuilder.set_mint_builder(this._mintBuilder),this._txCertificates.len()>0&&this._txBuilder.set_certs(this._txCertificates),this._txWithdrawals.len()>0&&this._txBuilder.set_withdrawals(this._txWithdrawals),this._txBuilder.get_mint_builder()||this.notVisited("redeemValue")===!1){const w=this._era!==void 0?Mn[this._era]:Mn.BABBAGE;this._txBuilder.calc_script_data_hash(w)}}async forgeAssetsIfNeeded(){const w=(_,f)=>{const y=_.data.assetName,m=_.data.metadata,A=_.unit.slice(0,Fr);if(_.data.label==="777")return m;if(f&&f[A]){const{[A]:O,...K}=f,d={[y]:m,...O};return{[A]:{...d},...K}}return f!==void 0?{[A]:{[y]:m},...f}:{[A]:{[y]:m}}};await this.addBurnInputsIfNeeded(),Array.from(this._totalMints,_=>({unit:_[0],data:_[1]})).reduce((_,f)=>_.set(f.data.label,w(f,_.get(f.data.label))),new Map).forEach((_,f)=>{this._txBuilder.add_json_metadatum(x.exports.BigNum.from_str(f),JSON.stringify(_))}),this.addMintOutputs()}async filterAvailableUTxOs(w=[]){return this._initiator===void 0?[]:(await this._initiator.getUsedUTxOs()).filter(f=>w.find(y=>y.input.txHash===f.input().transaction_id().to_hex())===void 0)}addMintOutputs(){this._recipients.forEach((w,_)=>{const y=se(w).multiasset();if(y!==void 0){const A=qe(_).next().with_asset_and_min_required_coin_by_utxo_cost(y,fn(this._protocolParameters.coinsPerUTxOSize)).build();this._txBuilder.add_output(A)}})}notVisited(w){return this.__visits.includes(w)===!1}setTxOutput(w){const f=x.exports.BigNum.from_str(this._txOutputs.get(w.unit)??"0").checked_add(x.exports.BigNum.from_str(w.quantity)).to_str();this._txOutputs.set(w.unit,f)}};ue([ve()],exports.Transaction.prototype,"mintAsset",null);ue([ve()],exports.Transaction.prototype,"redeemValue",null);ue([ve()],exports.Transaction.prototype,"sendAssets",null);ue([ve()],exports.Transaction.prototype,"sendValue",null);ue([ve()],exports.Transaction.prototype,"setCollateral",null);ue([ve()],exports.Transaction.prototype,"setRequiredSigners",null);ue([ve()],exports.Transaction.prototype,"setTxInputs",null);exports.Transaction=ue([vs],exports.Transaction);var ye={exports:{}},Qa={exports:{}},Fn={exports:{}};(function(p){(function(w){var _,f=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,m=Math.floor,A="[BigNumber Error] ",O=A+"Number primitive has more than 15 significant digits: ",K=1e14,d=14,$=9007199254740991,J=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],R=1e7,h=1e9;function L(et){var l,C,I,Z=k.prototype={constructor:k,toString:null,valueOf:null},mt=new k(1),At=20,Rt=4,St=-7,nt=21,ht=-1e7,Kt=1e7,Ut=!1,Bt=1,Gt=0,q={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},z="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function k(j,E){var B,F,D,N,M,Q,T,P,U=this;if(!(U instanceof k))return new k(j,E);if(E==null){if(j&&j._isBigNumber===!0){U.s=j.s,!j.c||j.e>Kt?U.c=U.e=null:j.e<ht?U.c=[U.e=0]:(U.e=j.e,U.c=j.c.slice());return}if((Q=typeof j=="number")&&j*0==0){if(U.s=1/j<0?(j=-j,-1):1,j===~~j){for(N=0,M=j;M>=10;M/=10,N++);N>Kt?U.c=U.e=null:(U.e=N,U.c=[j]);return}P=String(j)}else{if(!f.test(P=String(j)))return I(U,P,Q);U.s=P.charCodeAt(0)==45?(P=P.slice(1),-1):1}(N=P.indexOf("."))>-1&&(P=P.replace(".","")),(M=P.search(/e/i))>0?(N<0&&(N=M),N+=+P.slice(M+1),P=P.substring(0,M)):N<0&&(N=P.length)}else{if(u(E,2,z.length,"Base"),E==10&&H)return U=new k(j),st(U,At+U.e+1,Rt);if(P=String(j),Q=typeof j=="number"){if(j*0!=0)return I(U,P,Q,E);if(U.s=1/j<0?(P=P.slice(1),-1):1,k.DEBUG&&P.replace(/^0\.0*|\./,"").length>15)throw Error(O+j)}else U.s=P.charCodeAt(0)===45?(P=P.slice(1),-1):1;for(B=z.slice(0,E),N=M=0,T=P.length;M<T;M++)if(B.indexOf(F=P.charAt(M))<0){if(F=="."){if(M>N){N=T;continue}}else if(!D&&(P==P.toUpperCase()&&(P=P.toLowerCase())||P==P.toLowerCase()&&(P=P.toUpperCase()))){D=!0,M=-1,N=0;continue}return I(U,String(j),Q,E)}Q=!1,P=C(P,E,10,U.s),(N=P.indexOf("."))>-1?P=P.replace(".",""):N=P.length}for(M=0;P.charCodeAt(M)===48;M++);for(T=P.length;P.charCodeAt(--T)===48;);if(P=P.slice(M,++T)){if(T-=M,Q&&k.DEBUG&&T>15&&(j>$||j!==m(j)))throw Error(O+U.s*j);if((N=N-M-1)>Kt)U.c=U.e=null;else if(N<ht)U.c=[U.e=0];else{if(U.e=N,U.c=[],M=(N+1)%d,N<0&&(M+=d),M<T){for(M&&U.c.push(+P.slice(0,M)),T-=d;M<T;)U.c.push(+P.slice(M,M+=d));M=d-(P=P.slice(M)).length}else M-=T;for(;M--;P+="0");U.c.push(+P)}}else U.c=[U.e=0]}k.clone=L,k.ROUND_UP=0,k.ROUND_DOWN=1,k.ROUND_CEIL=2,k.ROUND_FLOOR=3,k.ROUND_HALF_UP=4,k.ROUND_HALF_DOWN=5,k.ROUND_HALF_EVEN=6,k.ROUND_HALF_CEIL=7,k.ROUND_HALF_FLOOR=8,k.EUCLID=9,k.config=k.set=function(j){var E,B;if(j!=null)if(typeof j=="object"){if(j.hasOwnProperty(E="DECIMAL_PLACES")&&(B=j[E],u(B,0,h,E),At=B),j.hasOwnProperty(E="ROUNDING_MODE")&&(B=j[E],u(B,0,8,E),Rt=B),j.hasOwnProperty(E="EXPONENTIAL_AT")&&(B=j[E],B&&B.pop?(u(B[0],-h,0,E),u(B[1],0,h,E),St=B[0],nt=B[1]):(u(B,-h,h,E),St=-(nt=B<0?-B:B))),j.hasOwnProperty(E="RANGE"))if(B=j[E],B&&B.pop)u(B[0],-h,-1,E),u(B[1],1,h,E),ht=B[0],Kt=B[1];else if(u(B,-h,h,E),B)ht=-(Kt=B<0?-B:B);else throw Error(A+E+" cannot be zero: "+B);if(j.hasOwnProperty(E="CRYPTO"))if(B=j[E],B===!!B)if(B)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Ut=B;else throw Ut=!B,Error(A+"crypto unavailable");else Ut=B;else throw Error(A+E+" not true or false: "+B);if(j.hasOwnProperty(E="MODULO_MODE")&&(B=j[E],u(B,0,9,E),Bt=B),j.hasOwnProperty(E="POW_PRECISION")&&(B=j[E],u(B,0,h,E),Gt=B),j.hasOwnProperty(E="FORMAT"))if(B=j[E],typeof B=="object")q=B;else throw Error(A+E+" not an object: "+B);if(j.hasOwnProperty(E="ALPHABET"))if(B=j[E],typeof B=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(B))H=B.slice(0,10)=="0123456789",z=B;else throw Error(A+E+" invalid: "+B)}else throw Error(A+"Object expected: "+j);return{DECIMAL_PLACES:At,ROUNDING_MODE:Rt,EXPONENTIAL_AT:[St,nt],RANGE:[ht,Kt],CRYPTO:Ut,MODULO_MODE:Bt,POW_PRECISION:Gt,FORMAT:q,ALPHABET:z}},k.isBigNumber=function(j){if(!j||j._isBigNumber!==!0)return!1;if(!k.DEBUG)return!0;var E,B,F=j.c,D=j.e,N=j.s;t:if({}.toString.call(F)=="[object Array]"){if((N===1||N===-1)&&D>=-h&&D<=h&&D===m(D)){if(F[0]===0){if(D===0&&F.length===1)return!0;break t}if(E=(D+1)%d,E<1&&(E+=d),String(F[0]).length==E){for(E=0;E<F.length;E++)if(B=F[E],B<0||B>=K||B!==m(B))break t;if(B!==0)return!0}}}else if(F===null&&D===null&&(N===null||N===1||N===-1))return!0;throw Error(A+"Invalid BigNumber: "+j)},k.maximum=k.max=function(){return vt(arguments,-1)},k.minimum=k.min=function(){return vt(arguments,1)},k.random=function(){var j=9007199254740992,E=Math.random()*j&2097151?function(){return m(Math.random()*j)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(B){var F,D,N,M,Q,T=0,P=[],U=new k(mt);if(B==null?B=At:u(B,0,h),M=y(B/d),Ut)if(crypto.getRandomValues){for(F=crypto.getRandomValues(new Uint32Array(M*=2));T<M;)Q=F[T]*131072+(F[T+1]>>>11),Q>=9e15?(D=crypto.getRandomValues(new Uint32Array(2)),F[T]=D[0],F[T+1]=D[1]):(P.push(Q%1e14),T+=2);T=M/2}else if(crypto.randomBytes){for(F=crypto.randomBytes(M*=7);T<M;)Q=(F[T]&31)*281474976710656+F[T+1]*1099511627776+F[T+2]*4294967296+F[T+3]*16777216+(F[T+4]<<16)+(F[T+5]<<8)+F[T+6],Q>=9e15?crypto.randomBytes(7).copy(F,T):(P.push(Q%1e14),T+=7);T=M/7}else throw Ut=!1,Error(A+"crypto unavailable");if(!Ut)for(;T<M;)Q=E(),Q<9e15&&(P[T++]=Q%1e14);for(M=P[--T],B%=d,M&&B&&(Q=J[d-B],P[T]=m(M/Q)*Q);P[T]===0;P.pop(),T--);if(T<0)P=[N=0];else{for(N=-1;P[0]===0;P.splice(0,1),N-=d);for(T=1,Q=P[0];Q>=10;Q/=10,T++);T<d&&(N-=d-T)}return U.e=N,U.c=P,U}}(),k.sum=function(){for(var j=1,E=arguments,B=new k(E[0]);j<E.length;)B=B.plus(E[j++]);return B},C=function(){var j="0123456789";function E(B,F,D,N){for(var M,Q=[0],T,P=0,U=B.length;P<U;){for(T=Q.length;T--;Q[T]*=F);for(Q[0]+=N.indexOf(B.charAt(P++)),M=0;M<Q.length;M++)Q[M]>D-1&&(Q[M+1]==null&&(Q[M+1]=0),Q[M+1]+=Q[M]/D|0,Q[M]%=D)}return Q.reverse()}return function(B,F,D,N,M){var Q,T,P,U,V,G,_t,wt,qt=B.indexOf("."),xt=At,dt=Rt;for(qt>=0&&(U=Gt,Gt=0,B=B.replace(".",""),wt=new k(F),G=wt.pow(B.length-qt),Gt=U,wt.c=E(a(ot(G.c),G.e,"0"),10,D,j),wt.e=wt.c.length),_t=E(B,F,D,M?(Q=z,j):(Q=j,z)),P=U=_t.length;_t[--U]==0;_t.pop());if(!_t[0])return Q.charAt(0);if(qt<0?--P:(G.c=_t,G.e=P,G.s=N,G=l(G,wt,xt,dt,D),_t=G.c,V=G.r,P=G.e),T=P+xt+1,qt=_t[T],U=D/2,V=V||T<0||_t[T+1]!=null,V=dt<4?(qt!=null||V)&&(dt==0||dt==(G.s<0?3:2)):qt>U||qt==U&&(dt==4||V||dt==6&&_t[T-1]&1||dt==(G.s<0?8:7)),T<1||!_t[0])B=V?a(Q.charAt(1),-xt,Q.charAt(0)):Q.charAt(0);else{if(_t.length=T,V)for(--D;++_t[--T]>D;)_t[T]=0,T||(++P,_t=[1].concat(_t));for(U=_t.length;!_t[--U];);for(qt=0,B="";qt<=U;B+=Q.charAt(_t[qt++]));B=a(B,P,Q.charAt(0))}return B}}(),l=function(){function j(F,D,N){var M,Q,T,P,U=0,V=F.length,G=D%R,_t=D/R|0;for(F=F.slice();V--;)T=F[V]%R,P=F[V]/R|0,M=_t*T+P*G,Q=G*T+M%R*R+U,U=(Q/N|0)+(M/R|0)+_t*P,F[V]=Q%N;return U&&(F=[U].concat(F)),F}function E(F,D,N,M){var Q,T;if(N!=M)T=N>M?1:-1;else for(Q=T=0;Q<N;Q++)if(F[Q]!=D[Q]){T=F[Q]>D[Q]?1:-1;break}return T}function B(F,D,N,M){for(var Q=0;N--;)F[N]-=Q,Q=F[N]<D[N]?1:0,F[N]=Q*M+F[N]-D[N];for(;!F[0]&&F.length>1;F.splice(0,1));}return function(F,D,N,M,Q){var T,P,U,V,G,_t,wt,qt,xt,dt,It,Nt,y_,Wt,v_,Jt,e_,zt=F.s==D.s?1:-1,Yt=F.c,Ht=D.c;if(!Yt||!Yt[0]||!Ht||!Ht[0])return new k(!F.s||!D.s||(Yt?Ht&&Yt[0]==Ht[0]:!Ht)?NaN:Yt&&Yt[0]==0||!Ht?zt*0:zt/0);for(qt=new k(zt),xt=qt.c=[],P=F.e-D.e,zt=N+P+1,Q||(Q=K,P=g(F.e/d)-g(D.e/d),zt=zt/d|0),U=0;Ht[U]==(Yt[U]||0);U++);if(Ht[U]>(Yt[U]||0)&&P--,zt<0)xt.push(1),V=!0;else{for(Wt=Yt.length,Jt=Ht.length,U=0,zt+=2,G=m(Q/(Ht[0]+1)),G>1&&(Ht=j(Ht,G,Q),Yt=j(Yt,G,Q),Jt=Ht.length,Wt=Yt.length),y_=Jt,dt=Yt.slice(0,Jt),It=dt.length;It<Jt;dt[It++]=0);e_=Ht.slice(),e_=[0].concat(e_),v_=Ht[0],Ht[1]>=Q/2&&v_++;do{if(G=0,T=E(Ht,dt,Jt,It),T<0){if(Nt=dt[0],Jt!=It&&(Nt=Nt*Q+(dt[1]||0)),G=m(Nt/v_),G>1)for(G>=Q&&(G=Q-1),_t=j(Ht,G,Q),wt=_t.length,It=dt.length;E(_t,dt,wt,It)==1;)G--,B(_t,Jt<wt?e_:Ht,wt,Q),wt=_t.length,T=1;else G==0&&(T=G=1),_t=Ht.slice(),wt=_t.length;if(wt<It&&(_t=[0].concat(_t)),B(dt,_t,It,Q),It=dt.length,T==-1)for(;E(Ht,dt,Jt,It)<1;)G++,B(dt,Jt<It?e_:Ht,It,Q),It=dt.length}else T===0&&(G++,dt=[0]);xt[U++]=G,dt[0]?dt[It++]=Yt[y_]||0:(dt=[Yt[y_]],It=1)}while((y_++<Wt||dt[0]!=null)&&zt--);V=dt[0]!=null,xt[0]||xt.splice(0,1)}if(Q==K){for(U=1,zt=xt[0];zt>=10;zt/=10,U++);st(qt,N+(qt.e=U+P*d-1)+1,M,V)}else qt.e=P,qt.r=+V;return qt}}();function ft(j,E,B,F){var D,N,M,Q,T;if(B==null?B=Rt:u(B,0,8),!j.c)return j.toString();if(D=j.c[0],M=j.e,E==null)T=ot(j.c),T=F==1||F==2&&(M<=St||M>=nt)?jt(T,M):a(T,M,"0");else if(j=st(new k(j),E,B),N=j.e,T=ot(j.c),Q=T.length,F==1||F==2&&(E<=N||N<=St)){for(;Q<E;T+="0",Q++);T=jt(T,N)}else if(E-=M,T=a(T,N,"0"),N+1>Q){if(--E>0)for(T+=".";E--;T+="0");}else if(E+=N-Q,E>0)for(N+1==Q&&(T+=".");E--;T+="0");return j.s<0&&D?"-"+T:T}function vt(j,E){for(var B,F,D=1,N=new k(j[0]);D<j.length;D++)F=new k(j[D]),(!F.s||(B=tt(N,F))===E||B===0&&N.s===E)&&(N=F);return N}function ut(j,E,B){for(var F=1,D=E.length;!E[--D];E.pop());for(D=E[0];D>=10;D/=10,F++);return(B=F+B*d-1)>Kt?j.c=j.e=null:B<ht?j.c=[j.e=0]:(j.e=B,j.c=E),j}I=function(){var j=/^(-?)0([xbo])(?=\w[\w.]*$)/i,E=/^([^.]+)\.$/,B=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(N,M,Q,T){var P,U=Q?M:M.replace(D,"");if(F.test(U))N.s=isNaN(U)?null:U<0?-1:1;else{if(!Q&&(U=U.replace(j,function(V,G,_t){return P=(_t=_t.toLowerCase())=="x"?16:_t=="b"?2:8,!T||T==P?G:V}),T&&(P=T,U=U.replace(E,"$1").replace(B,"0.$1")),M!=U))return new k(U,P);if(k.DEBUG)throw Error(A+"Not a"+(T?" base "+T:"")+" number: "+M);N.s=null}N.c=N.e=null}}();function st(j,E,B,F){var D,N,M,Q,T,P,U,V=j.c,G=J;if(V){t:{for(D=1,Q=V[0];Q>=10;Q/=10,D++);if(N=E-D,N<0)N+=d,M=E,T=V[P=0],U=m(T/G[D-M-1]%10);else if(P=y((N+1)/d),P>=V.length)if(F){for(;V.length<=P;V.push(0));T=U=0,D=1,N%=d,M=N-d+1}else break t;else{for(T=Q=V[P],D=1;Q>=10;Q/=10,D++);N%=d,M=N-d+D,U=M<0?0:m(T/G[D-M-1]%10)}if(F=F||E<0||V[P+1]!=null||(M<0?T:T%G[D-M-1]),F=B<4?(U||F)&&(B==0||B==(j.s<0?3:2)):U>5||U==5&&(B==4||F||B==6&&(N>0?M>0?T/G[D-M]:0:V[P-1])%10&1||B==(j.s<0?8:7)),E<1||!V[0])return V.length=0,F?(E-=j.e+1,V[0]=G[(d-E%d)%d],j.e=-E||0):V[0]=j.e=0,j;if(N==0?(V.length=P,Q=1,P--):(V.length=P+1,Q=G[d-N],V[P]=M>0?m(T/G[D-M]%G[M])*Q:0),F)for(;;)if(P==0){for(N=1,M=V[0];M>=10;M/=10,N++);for(M=V[0]+=Q,Q=1;M>=10;M/=10,Q++);N!=Q&&(j.e++,V[0]==K&&(V[0]=1));break}else{if(V[P]+=Q,V[P]!=K)break;V[P--]=0,Q=1}for(N=V.length;V[--N]===0;V.pop());}j.e>Kt?j.c=j.e=null:j.e<ht&&(j.c=[j.e=0])}return j}function lt(j){var E,B=j.e;return B===null?j.toString():(E=ot(j.c),E=B<=St||B>=nt?jt(E,B):a(E,B,"0"),j.s<0?"-"+E:E)}return Z.absoluteValue=Z.abs=function(){var j=new k(this);return j.s<0&&(j.s=1),j},Z.comparedTo=function(j,E){return tt(this,new k(j,E))},Z.decimalPlaces=Z.dp=function(j,E){var B,F,D,N=this;if(j!=null)return u(j,0,h),E==null?E=Rt:u(E,0,8),st(new k(N),j+N.e+1,E);if(!(B=N.c))return null;if(F=((D=B.length-1)-g(this.e/d))*d,D=B[D])for(;D%10==0;D/=10,F--);return F<0&&(F=0),F},Z.dividedBy=Z.div=function(j,E){return l(this,new k(j,E),At,Rt)},Z.dividedToIntegerBy=Z.idiv=function(j,E){return l(this,new k(j,E),0,1)},Z.exponentiatedBy=Z.pow=function(j,E){var B,F,D,N,M,Q,T,P,U,V=this;if(j=new k(j),j.c&&!j.isInteger())throw Error(A+"Exponent not an integer: "+lt(j));if(E!=null&&(E=new k(E)),Q=j.e>14,!V.c||!V.c[0]||V.c[0]==1&&!V.e&&V.c.length==1||!j.c||!j.c[0])return U=new k(Math.pow(+lt(V),Q?j.s*(2-it(j)):+lt(j))),E?U.mod(E):U;if(T=j.s<0,E){if(E.c?!E.c[0]:!E.s)return new k(NaN);F=!T&&V.isInteger()&&E.isInteger(),F&&(V=V.mod(E))}else{if(j.e>9&&(V.e>0||V.e<-1||(V.e==0?V.c[0]>1||Q&&V.c[1]>=24e7:V.c[0]<8e13||Q&&V.c[0]<=9999975e7)))return N=V.s<0&&it(j)?-0:0,V.e>-1&&(N=1/N),new k(T?1/N:N);Gt&&(N=y(Gt/d+2))}for(Q?(B=new k(.5),T&&(j.s=1),P=it(j)):(D=Math.abs(+lt(j)),P=D%2),U=new k(mt);;){if(P){if(U=U.times(V),!U.c)break;N?U.c.length>N&&(U.c.length=N):F&&(U=U.mod(E))}if(D){if(D=m(D/2),D===0)break;P=D%2}else if(j=j.times(B),st(j,j.e+1,1),j.e>14)P=it(j);else{if(D=+lt(j),D===0)break;P=D%2}V=V.times(V),N?V.c&&V.c.length>N&&(V.c.length=N):F&&(V=V.mod(E))}return F?U:(T&&(U=mt.div(U)),E?U.mod(E):N?st(U,Gt,Rt,M):U)},Z.integerValue=function(j){var E=new k(this);return j==null?j=Rt:u(j,0,8),st(E,E.e+1,j)},Z.isEqualTo=Z.eq=function(j,E){return tt(this,new k(j,E))===0},Z.isFinite=function(){return!!this.c},Z.isGreaterThan=Z.gt=function(j,E){return tt(this,new k(j,E))>0},Z.isGreaterThanOrEqualTo=Z.gte=function(j,E){return(E=tt(this,new k(j,E)))===1||E===0},Z.isInteger=function(){return!!this.c&&g(this.e/d)>this.c.length-2},Z.isLessThan=Z.lt=function(j,E){return tt(this,new k(j,E))<0},Z.isLessThanOrEqualTo=Z.lte=function(j,E){return(E=tt(this,new k(j,E)))===-1||E===0},Z.isNaN=function(){return!this.s},Z.isNegative=function(){return this.s<0},Z.isPositive=function(){return this.s>0},Z.isZero=function(){return!!this.c&&this.c[0]==0},Z.minus=function(j,E){var B,F,D,N,M=this,Q=M.s;if(j=new k(j,E),E=j.s,!Q||!E)return new k(NaN);if(Q!=E)return j.s=-E,M.plus(j);var T=M.e/d,P=j.e/d,U=M.c,V=j.c;if(!T||!P){if(!U||!V)return U?(j.s=-E,j):new k(V?M:NaN);if(!U[0]||!V[0])return V[0]?(j.s=-E,j):new k(U[0]?M:Rt==3?-0:0)}if(T=g(T),P=g(P),U=U.slice(),Q=T-P){for((N=Q<0)?(Q=-Q,D=U):(P=T,D=V),D.reverse(),E=Q;E--;D.push(0));D.reverse()}else for(F=(N=(Q=U.length)<(E=V.length))?Q:E,Q=E=0;E<F;E++)if(U[E]!=V[E]){N=U[E]<V[E];break}if(N&&(D=U,U=V,V=D,j.s=-j.s),E=(F=V.length)-(B=U.length),E>0)for(;E--;U[B++]=0);for(E=K-1;F>Q;){if(U[--F]<V[F]){for(B=F;B&&!U[--B];U[B]=E);--U[B],U[F]+=K}U[F]-=V[F]}for(;U[0]==0;U.splice(0,1),--P);return U[0]?ut(j,U,P):(j.s=Rt==3?-1:1,j.c=[j.e=0],j)},Z.modulo=Z.mod=function(j,E){var B,F,D=this;return j=new k(j,E),!D.c||!j.s||j.c&&!j.c[0]?new k(NaN):!j.c||D.c&&!D.c[0]?new k(D):(Bt==9?(F=j.s,j.s=1,B=l(D,j,0,3),j.s=F,B.s*=F):B=l(D,j,0,Bt),j=D.minus(B.times(j)),!j.c[0]&&Bt==1&&(j.s=D.s),j)},Z.multipliedBy=Z.times=function(j,E){var B,F,D,N,M,Q,T,P,U,V,G,_t,wt,qt,xt,dt=this,It=dt.c,Nt=(j=new k(j,E)).c;if(!It||!Nt||!It[0]||!Nt[0])return!dt.s||!j.s||It&&!It[0]&&!Nt||Nt&&!Nt[0]&&!It?j.c=j.e=j.s=null:(j.s*=dt.s,!It||!Nt?j.c=j.e=null:(j.c=[0],j.e=0)),j;for(F=g(dt.e/d)+g(j.e/d),j.s*=dt.s,T=It.length,V=Nt.length,T<V&&(wt=It,It=Nt,Nt=wt,D=T,T=V,V=D),D=T+V,wt=[];D--;wt.push(0));for(qt=K,xt=R,D=V;--D>=0;){for(B=0,G=Nt[D]%xt,_t=Nt[D]/xt|0,M=T,N=D+M;N>D;)P=It[--M]%xt,U=It[M]/xt|0,Q=_t*P+U*G,P=G*P+Q%xt*xt+wt[N]+B,B=(P/qt|0)+(Q/xt|0)+_t*U,wt[N--]=P%qt;wt[N]=B}return B?++F:wt.splice(0,1),ut(j,wt,F)},Z.negated=function(){var j=new k(this);return j.s=-j.s||null,j},Z.plus=function(j,E){var B,F=this,D=F.s;if(j=new k(j,E),E=j.s,!D||!E)return new k(NaN);if(D!=E)return j.s=-E,F.minus(j);var N=F.e/d,M=j.e/d,Q=F.c,T=j.c;if(!N||!M){if(!Q||!T)return new k(D/0);if(!Q[0]||!T[0])return T[0]?j:new k(Q[0]?F:D*0)}if(N=g(N),M=g(M),Q=Q.slice(),D=N-M){for(D>0?(M=N,B=T):(D=-D,B=Q),B.reverse();D--;B.push(0));B.reverse()}for(D=Q.length,E=T.length,D-E<0&&(B=T,T=Q,Q=B,E=D),D=0;E;)D=(Q[--E]=Q[E]+T[E]+D)/K|0,Q[E]=K===Q[E]?0:Q[E]%K;return D&&(Q=[D].concat(Q),++M),ut(j,Q,M)},Z.precision=Z.sd=function(j,E){var B,F,D,N=this;if(j!=null&&j!==!!j)return u(j,1,h),E==null?E=Rt:u(E,0,8),st(new k(N),j,E);if(!(B=N.c))return null;if(D=B.length-1,F=D*d+1,D=B[D]){for(;D%10==0;D/=10,F--);for(D=B[0];D>=10;D/=10,F++);}return j&&N.e+1>F&&(F=N.e+1),F},Z.shiftedBy=function(j){return u(j,-$,$),this.times("1e"+j)},Z.squareRoot=Z.sqrt=function(){var j,E,B,F,D,N=this,M=N.c,Q=N.s,T=N.e,P=At+4,U=new k("0.5");if(Q!==1||!M||!M[0])return new k(!Q||Q<0&&(!M||M[0])?NaN:M?N:1/0);if(Q=Math.sqrt(+lt(N)),Q==0||Q==1/0?(E=ot(M),(E.length+T)%2==0&&(E+="0"),Q=Math.sqrt(+E),T=g((T+1)/2)-(T<0||T%2),Q==1/0?E="5e"+T:(E=Q.toExponential(),E=E.slice(0,E.indexOf("e")+1)+T),B=new k(E)):B=new k(Q+""),B.c[0]){for(T=B.e,Q=T+P,Q<3&&(Q=0);;)if(D=B,B=U.times(D.plus(l(N,D,P,1))),ot(D.c).slice(0,Q)===(E=ot(B.c)).slice(0,Q))if(B.e<T&&--Q,E=E.slice(Q-3,Q+1),E=="9999"||!F&&E=="4999"){if(!F&&(st(D,D.e+At+2,0),D.times(D).eq(N))){B=D;break}P+=4,Q+=4,F=1}else{(!+E||!+E.slice(1)&&E.charAt(0)=="5")&&(st(B,B.e+At+2,1),j=!B.times(B).eq(N));break}}return st(B,B.e+At+1,Rt,j)},Z.toExponential=function(j,E){return j!=null&&(u(j,0,h),j++),ft(this,j,E,1)},Z.toFixed=function(j,E){return j!=null&&(u(j,0,h),j=j+this.e+1),ft(this,j,E)},Z.toFormat=function(j,E,B){var F,D=this;if(B==null)j!=null&&E&&typeof E=="object"?(B=E,E=null):j&&typeof j=="object"?(B=j,j=E=null):B=q;else if(typeof B!="object")throw Error(A+"Argument not an object: "+B);if(F=D.toFixed(j,E),D.c){var N,M=F.split("."),Q=+B.groupSize,T=+B.secondaryGroupSize,P=B.groupSeparator||"",U=M[0],V=M[1],G=D.s<0,_t=G?U.slice(1):U,wt=_t.length;if(T&&(N=Q,Q=T,T=N,wt-=N),Q>0&&wt>0){for(N=wt%Q||Q,U=_t.substr(0,N);N<wt;N+=Q)U+=P+_t.substr(N,Q);T>0&&(U+=P+_t.slice(N)),G&&(U="-"+U)}F=V?U+(B.decimalSeparator||"")+((T=+B.fractionGroupSize)?V.replace(new RegExp("\\d{"+T+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):V):U}return(B.prefix||"")+F+(B.suffix||"")},Z.toFraction=function(j){var E,B,F,D,N,M,Q,T,P,U,V,G,_t=this,wt=_t.c;if(j!=null&&(Q=new k(j),!Q.isInteger()&&(Q.c||Q.s!==1)||Q.lt(mt)))throw Error(A+"Argument "+(Q.isInteger()?"out of range: ":"not an integer: ")+lt(Q));if(!wt)return new k(_t);for(E=new k(mt),P=B=new k(mt),F=T=new k(mt),G=ot(wt),N=E.e=G.length-_t.e-1,E.c[0]=J[(M=N%d)<0?d+M:M],j=!j||Q.comparedTo(E)>0?N>0?E:P:Q,M=Kt,Kt=1/0,Q=new k(G),T.c[0]=0;U=l(Q,E,0,1),D=B.plus(U.times(F)),D.comparedTo(j)!=1;)B=F,F=D,P=T.plus(U.times(D=P)),T=D,E=Q.minus(U.times(D=E)),Q=D;return D=l(j.minus(B),F,0,1),T=T.plus(D.times(P)),B=B.plus(D.times(F)),T.s=P.s=_t.s,N=N*2,V=l(P,F,N,Rt).minus(_t).abs().comparedTo(l(T,B,N,Rt).minus(_t).abs())<1?[P,F]:[T,B],Kt=M,V},Z.toNumber=function(){return+lt(this)},Z.toPrecision=function(j,E){return j!=null&&u(j,1,h),ft(this,j,E,2)},Z.toString=function(j){var E,B=this,F=B.s,D=B.e;return D===null?F?(E="Infinity",F<0&&(E="-"+E)):E="NaN":(j==null?E=D<=St||D>=nt?jt(ot(B.c),D):a(ot(B.c),D,"0"):j===10&&H?(B=st(new k(B),At+D+1,Rt),E=a(ot(B.c),B.e,"0")):(u(j,2,z.length,"Base"),E=C(a(ot(B.c),D,"0"),10,j,F,!0)),F<0&&B.c[0]&&(E="-"+E)),E},Z.valueOf=Z.toJSON=function(){return lt(this)},Z._isBigNumber=!0,et!=null&&k.set(et),k}function g(et){var l=et|0;return et>0||et===l?l:l-1}function ot(et){for(var l,C,I=1,Z=et.length,mt=et[0]+"";I<Z;){for(l=et[I++]+"",C=d-l.length;C--;l="0"+l);mt+=l}for(Z=mt.length;mt.charCodeAt(--Z)===48;);return mt.slice(0,Z+1||1)}function tt(et,l){var C,I,Z=et.c,mt=l.c,At=et.s,Rt=l.s,St=et.e,nt=l.e;if(!At||!Rt)return null;if(C=Z&&!Z[0],I=mt&&!mt[0],C||I)return C?I?0:-Rt:At;if(At!=Rt)return At;if(C=At<0,I=St==nt,!Z||!mt)return I?0:!Z^C?1:-1;if(!I)return St>nt^C?1:-1;for(Rt=(St=Z.length)<(nt=mt.length)?St:nt,At=0;At<Rt;At++)if(Z[At]!=mt[At])return Z[At]>mt[At]^C?1:-1;return St==nt?0:St>nt^C?1:-1}function u(et,l,C,I){if(et<l||et>C||et!==m(et))throw Error(A+(I||"Argument")+(typeof et=="number"?et<l||et>C?" out of range: ":" not an integer: ":" not a primitive number: ")+String(et))}function it(et){var l=et.c.length-1;return g(et.e/d)==l&&et.c[l]%2!=0}function jt(et,l){return(et.length>1?et.charAt(0)+"."+et.slice(1):et)+(l<0?"e":"e+")+l}function a(et,l,C){var I,Z;if(l<0){for(Z=C+".";++l;Z+=C);et=Z+et}else if(I=et.length,++l>I){for(Z=C,l-=I;--l;Z+=C);et+=Z}else l<I&&(et=et.slice(0,l)+"."+et.slice(l));return et}_=L(),_.default=_.BigNumber=_,p.exports?p.exports=_:(w||(w=typeof self<"u"&&self?self:window),w.BigNumber=_)})(Qe)})(Fn);(function(p){var w=Fn.exports,_=p.exports;(function(){var f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,y,m,A={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},O;function K($){return f.lastIndex=0,f.test($)?'"'+$.replace(f,function(J){var R=A[J];return typeof R=="string"?R:"\\u"+("0000"+J.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+$+'"'}function d($,J){var R,h,L,g,ot=y,tt,u=J[$],it=u!=null&&(u instanceof w||w.isBigNumber(u));switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON($)),typeof O=="function"&&(u=O.call(J,$,u)),typeof u){case"string":return it?u:K(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":case"bigint":return String(u);case"object":if(!u)return"null";if(y+=m,tt=[],Object.prototype.toString.apply(u)==="[object Array]"){for(g=u.length,R=0;R<g;R+=1)tt[R]=d(R,u)||"null";return L=tt.length===0?"[]":y?`[
|
|
12
|
-
`+y+tt.join(`,
|
|
13
|
-
`+y)+`
|
|
14
|
-
`+ot+"]":"["+tt.join(",")+"]",y=ot,L}if(O&&typeof O=="object")for(g=O.length,R=0;R<g;R+=1)typeof O[R]=="string"&&(h=O[R],L=d(h,u),L&&tt.push(K(h)+(y?": ":":")+L));else Object.keys(u).forEach(function(jt){var a=d(jt,u);a&&tt.push(K(jt)+(y?": ":":")+a)});return L=tt.length===0?"{}":y?`{
|
|
15
|
-
`+y+tt.join(`,
|
|
16
|
-
`+y)+`
|
|
17
|
-
`+ot+"}":"{"+tt.join(",")+"}",y=ot,L}}typeof _.stringify!="function"&&(_.stringify=function($,J,R){var h;if(y="",m="",typeof R=="number")for(h=0;h<R;h+=1)m+=" ";else typeof R=="string"&&(m=R);if(O=J,J&&typeof J!="function"&&(typeof J!="object"||typeof J.length!="number"))throw new Error("JSON.stringify");return d("",{"":$})})})()})(Qa);var ze=null;const ms=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,ks=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var xs=function(p){var w={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(p!=null){if(p.strict===!0&&(w.strict=!0),p.storeAsString===!0&&(w.storeAsString=!0),w.alwaysParseAsBig=p.alwaysParseAsBig===!0?p.alwaysParseAsBig:!1,w.useNativeBigInt=p.useNativeBigInt===!0?p.useNativeBigInt:!1,typeof p.constructorAction<"u")if(p.constructorAction==="error"||p.constructorAction==="ignore"||p.constructorAction==="preserve")w.constructorAction=p.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${p.constructorAction}`);if(typeof p.protoAction<"u")if(p.protoAction==="error"||p.protoAction==="ignore"||p.protoAction==="preserve")w.protoAction=p.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${p.protoAction}`)}var _,f,y={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
18
|
-
`,r:"\r",t:" "},m,A=function(g){throw{name:"SyntaxError",message:g,at:_,text:m}},O=function(g){return g&&g!==f&&A("Expected '"+g+"' instead of '"+f+"'"),f=m.charAt(_),_+=1,f},K=function(){var g,ot="";for(f==="-"&&(ot="-",O("-"));f>="0"&&f<="9";)ot+=f,O();if(f===".")for(ot+=".";O()&&f>="0"&&f<="9";)ot+=f;if(f==="e"||f==="E")for(ot+=f,O(),(f==="-"||f==="+")&&(ot+=f,O());f>="0"&&f<="9";)ot+=f,O();if(g=+ot,!isFinite(g))A("Bad number");else return ze==null&&(ze=Fn.exports),ot.length>15?w.storeAsString?ot:w.useNativeBigInt?BigInt(ot):new ze(ot):w.alwaysParseAsBig?w.useNativeBigInt?BigInt(g):new ze(g):g},d=function(){var g,ot,tt="",u;if(f==='"')for(var it=_;O();){if(f==='"')return _-1>it&&(tt+=m.substring(it,_-1)),O(),tt;if(f==="\\"){if(_-1>it&&(tt+=m.substring(it,_-1)),O(),f==="u"){for(u=0,ot=0;ot<4&&(g=parseInt(O(),16),!!isFinite(g));ot+=1)u=u*16+g;tt+=String.fromCharCode(u)}else if(typeof y[f]=="string")tt+=y[f];else break;it=_}}A("Bad string")},$=function(){for(;f&&f<=" ";)O()},J=function(){switch(f){case"t":return O("t"),O("r"),O("u"),O("e"),!0;case"f":return O("f"),O("a"),O("l"),O("s"),O("e"),!1;case"n":return O("n"),O("u"),O("l"),O("l"),null}A("Unexpected '"+f+"'")},R,h=function(){var g=[];if(f==="["){if(O("["),$(),f==="]")return O("]"),g;for(;f;){if(g.push(R()),$(),f==="]")return O("]"),g;O(","),$()}}A("Bad array")},L=function(){var g,ot=Object.create(null);if(f==="{"){if(O("{"),$(),f==="}")return O("}"),ot;for(;f;){if(g=d(),$(),O(":"),w.strict===!0&&Object.hasOwnProperty.call(ot,g)&&A('Duplicate key "'+g+'"'),ms.test(g)===!0?w.protoAction==="error"?A("Object contains forbidden prototype property"):w.protoAction==="ignore"?R():ot[g]=R():ks.test(g)===!0?w.constructorAction==="error"?A("Object contains forbidden constructor property"):w.constructorAction==="ignore"?R():ot[g]=R():ot[g]=R(),$(),f==="}")return O("}"),ot;O(","),$()}}A("Bad object")};return R=function(){switch($(),f){case"{":return L();case"[":return h();case'"':return d();case"-":return K();default:return f>="0"&&f<="9"?K():J()}},function(g,ot){var tt;return m=g+"",_=0,f=" ",tt=R(),$(),f&&A("Syntax error"),typeof ot=="function"?function u(it,jt){var a,et=it[jt];return et&&typeof et=="object"&&Object.keys(et).forEach(function(l){a=u(et,l),a!==void 0?et[l]=a:delete et[l]}),ot.call(it,jt,et)}({"":tt},""):tt}},As=xs,Da=Qa.exports.stringify,Ta=As;ye.exports=function(p){return{parse:Ta(p),stringify:Da}};ye.exports.parse=Ta();ye.exports.stringify=Da;var ie={exports:{}};(function(p){let w={};w.__wbindgen_placeholder__=p.exports;let _;const{TextDecoder:f,TextEncoder:y}=jn,m=new Array(128).fill(void 0);m.push(void 0,null,!0,!1);function A(v){return m[v]}let O=m.length;function K(v){v<132||(m[v]=O,O=v)}function d(v){const t=A(v);return K(v),t}let $=new f("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();let J=null;function R(){return(J===null||J.byteLength===0)&&(J=new Uint8Array(_.memory.buffer)),J}function h(v,t){return v=v>>>0,$.decode(R().subarray(v,v+t))}function L(v){O===m.length&&m.push(m.length+1);const t=O;return O=m[t],m[t]=v,t}let g=0,ot=new y("utf-8");const tt=typeof ot.encodeInto=="function"?function(v,t){return ot.encodeInto(v,t)}:function(v,t){const r=ot.encode(v);return t.set(r),{read:v.length,written:r.length}};function u(v,t,r){if(r===void 0){const s=ot.encode(v),b=t(s.length,1)>>>0;return R().subarray(b,b+s.length).set(s),g=s.length,b}let o=v.length,n=t(o,1)>>>0;const e=R();let i=0;for(;i<o;i++){const s=v.charCodeAt(i);if(s>127)break;e[n+i]=s}if(i!==o){i!==0&&(v=v.slice(i)),n=r(n,o,o=i+v.length*3,1)>>>0;const s=R().subarray(n+i,n+o),b=tt(v,s);i+=b.written}return g=i,n}function it(v){return v==null}let jt=null;function a(){return(jt===null||jt.byteLength===0)&&(jt=new Int32Array(_.memory.buffer)),jt}function et(v){const t=typeof v;if(t=="number"||t=="boolean"||v==null)return`${v}`;if(t=="string")return`"${v}"`;if(t=="symbol"){const n=v.description;return n==null?"Symbol":`Symbol(${n})`}if(t=="function"){const n=v.name;return typeof n=="string"&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(v)){const n=v.length;let e="[";n>0&&(e+=et(v[0]));for(let i=1;i<n;i++)e+=", "+et(v[i]);return e+="]",e}const r=/\[object ([^\]]+)\]/.exec(toString.call(v));let o;if(r.length>1)o=r[1];else return toString.call(v);if(o=="Object")try{return"Object("+JSON.stringify(v)+")"}catch{return"Object"}return v instanceof Error?`${v.name}: ${v.message}
|
|
19
|
-
${v.stack}`:o}p.exports.script_to_address=function(v,t,r){let o,n;try{const c=_.__wbindgen_add_to_stack_pointer(-16),S=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),Y=g;var e=it(r)?0:u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=g;_.script_to_address(c,v,S,Y,e,i);var s=a()[c/4+0],b=a()[c/4+1];return o=s,n=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(o,n,1)}},p.exports.serialize_bech32_address=function(v){const t=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),r=g,o=_.serialize_bech32_address(t,r);return Hr.__wrap(o)};function l(v,t){if(!(v instanceof t))throw new Error(`expected instance of ${t.name}`);return v.ptr}p.exports.apply_params_to_script=function(v,t){let r,o;try{const Y=_.__wbindgen_add_to_stack_pointer(-16);l(v,Sr);var n=v.__destroy_into_raw();const W=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),jr=g;_.apply_params_to_script(Y,n,W,jr);var e=a()[Y/4+0],i=a()[Y/4+1],s=a()[Y/4+2],b=a()[Y/4+3],c=e,S=i;if(b)throw c=0,S=0,d(s);return r=c,o=S,h(c,S)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.get_v2_script_hash=function(v){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.get_v2_script_hash(e,i,s);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}},p.exports.calculate_tx_hash=function(v){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.calculate_tx_hash(e,i,s);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}},p.exports.sign_transaction=function(v,t){let r,o;try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),c=g;l(t,Sr);var n=t.__destroy_into_raw();_.sign_transaction(s,b,c,n);var e=a()[s/4+0],i=a()[s/4+1];return r=e,o=i,h(e,i)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}};function C(v,t){return v=v>>>0,R().subarray(v/1,v/1+t)}function I(v,t){const r=t(v.length*1,1)>>>0;return R().set(v,r/1),g=v.length,r}p.exports.encrypt_with_password=function(v,t,r,o){let n,e;try{const W=_.__wbindgen_add_to_stack_pointer(-16),jr=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),Rr=g,en=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),nn=g,an=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),on=g,sn=u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),dn=g;_.encrypt_with_password(W,jr,Rr,en,nn,an,on,sn,dn);var i=a()[W/4+0],s=a()[W/4+1],b=a()[W/4+2],c=a()[W/4+3],S=i,Y=s;if(c)throw S=0,Y=0,d(b);return n=S,e=Y,h(S,Y)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(n,e,1)}},p.exports.decrypt_with_password=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g,jr=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),Rr=g;_.decrypt_with_password(S,Y,W,jr,Rr);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.min_fee=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,i_),l(t,Or),_.min_fee(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.calculate_ex_units_ceil_cost=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,dt),l(t,xt),_.calculate_ex_units_ceil_cost(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_script_fee=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,i_),l(t,xt),_.min_script_fee(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_arbitrary_bytes_as_metadatum=function(v){const t=I(v,_.__wbindgen_malloc),r=g,o=_.encode_arbitrary_bytes_as_metadatum(t,r);return ct.__wrap(o)},p.exports.decode_arbitrary_bytes_from_metadatum=function(v){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,ct),_.decode_arbitrary_bytes_from_metadatum(i,v.__wbg_ptr);var t=a()[i/4+0],r=a()[i/4+1],o=a()[i/4+2],n=a()[i/4+3];if(n)throw d(o);var e=C(t,r).slice();return _.__wbindgen_free(t,r*1),e}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_json_str_to_metadatum=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.encode_json_str_to_metadatum(e,i,s,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.decode_metadatum_to_json_str=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);l(v,ct),_.decode_metadatum_to_json_str(S,v.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.encode_json_str_to_plutus_datum=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.encode_json_str_to_plutus_datum(e,i,s,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.decode_plutus_datum_to_json_str=function(v,t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);l(v,at),_.decode_plutus_datum_to_json_str(S,v.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}},p.exports.create_send_all=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,nt),l(t,Ir),l(r,Tr),_.create_send_all(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return re.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}};let Z=null;function mt(){return(Z===null||Z.byteLength===0)&&(Z=new Uint32Array(_.memory.buffer)),Z}function At(v,t){return v=v>>>0,mt().subarray(v/4,v/4+t)}p.exports.make_daedalus_bootstrap_witness=function(v,t,r){l(v,d_),l(t,E),l(r,qr);const o=_.make_daedalus_bootstrap_witness(v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return lt.__wrap(o)},p.exports.make_icarus_bootstrap_witness=function(v,t,r){l(v,d_),l(t,E),l(r,ft);const o=_.make_icarus_bootstrap_witness(v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return lt.__wrap(o)},p.exports.make_vkey_witness=function(v,t){l(v,d_),l(t,l_);const r=_.make_vkey_witness(v.__wbg_ptr,t.__wbg_ptr);return O_.__wrap(r)},p.exports.hash_auxiliary_data=function(v){l(v,Bt);const t=_.hash_auxiliary_data(v.__wbg_ptr);return Gt.__wrap(t)},p.exports.hash_transaction=function(v){l(v,Pt);const t=_.hash_transaction(v.__wbg_ptr);return d_.__wrap(t)},p.exports.hash_plutus_data=function(v){l(v,at);const t=_.hash_plutus_data(v.__wbg_ptr);return U.__wrap(t)},p.exports.hash_script_data=function(v,t,r){l(v,b_),l(t,M);let o=0;it(r)||(l(r,Zt),o=r.__destroy_into_raw());const n=_.hash_script_data(v.__wbg_ptr,t.__wbg_ptr,o);return j_.__wrap(n)},p.exports.get_implicit_input=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,Pt),l(t,k),l(r,k),_.get_implicit_input(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return rt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.get_deposit=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,Pt),l(t,k),l(r,k),_.get_deposit(i,v.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return k.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_ada_for_output=function(v,t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(v,Tt),l(t,P),_.min_ada_for_output(e,v.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.min_ada_required=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(v,rt),l(r,k),_.min_ada_required(i,v.__wbg_ptr,t,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return k.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}},p.exports.encode_json_str_to_native_script=function(v,t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(v,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g,c=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),S=g;_.encode_json_str_to_native_script(i,s,b,c,S,r);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return yt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}};function Rt(v,t){const r=t(v.length*4,4)>>>0;return mt().set(v,r/4),g=v.length,r}function St(v,t){try{return v.apply(this,t)}catch(r){_.__wbindgen_exn_store(L(r))}}p.exports.StakeCredKind=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),p.exports.TransactionMetadatumKind=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),p.exports.MetadataJsonSchema=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),p.exports.LanguageKind=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2"}),p.exports.PlutusDataKind=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),p.exports.RedeemerTagKind=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward"}),p.exports.PlutusDatumSchema=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),p.exports.CoinSelectionStrategyCIP2=Object.freeze({LargestFirst:0,0:"LargestFirst",RandomImprove:1,1:"RandomImprove",LargestFirstMultiAsset:2,2:"LargestFirstMultiAsset",RandomImproveMultiAsset:3,3:"RandomImproveMultiAsset"}),p.exports.CborContainerType=Object.freeze({Array:0,0:"Array",Map:1,1:"Map"}),p.exports.ScriptSchema=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),p.exports.CertificateKind=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert"}),p.exports.MIRPot=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),p.exports.MIRKind=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),p.exports.RelayKind=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),p.exports.NativeScriptKind=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),p.exports.ScriptHashNamespace=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScript:1,1:"PlutusScript",PlutusScriptV2:2,2:"PlutusScriptV2"}),p.exports.NetworkIdKind=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"});class nt{static __wrap(t){t=t>>>0;const r=Object.create(nt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_address_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.address_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const W=_.__wbindgen_add_to_stack_pointer(-16);var n=it(t)?0:u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g;_.address_to_bech32(W,this.__wbg_ptr,n,e);var i=a()[W/4+0],s=a()[W/4+1],b=a()[W/4+2],c=a()[W/4+3],S=i,Y=s;if(c)throw S=0,Y=0,d(b);return r=S,o=Y,h(S,Y)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.address_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.address_network_id(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Address=nt;class ht{static __wrap(t){t=t>>>0;const r=Object.create(ht.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assetname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetname_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ht.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}name(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AssetName=ht;class Kt{static __wrap(t){t=t>>>0;const r=Object.create(Kt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assetnames_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assetnames_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetnames_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetnames_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assetnames_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Kt.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.assetnames_get(this.__wbg_ptr,t);return ht.__wrap(r)}add(t){l(t,ht),_.assetnames_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.AssetNames=Kt;class Ut{static __wrap(t){t=t>>>0;const r=Object.create(Ut.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_assets_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.assets_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assets_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assets_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.assets_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return Ut.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ht),l(r,k);const o=_.assets_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:k.__wrap(o)}get(t){l(t,ht);const r=_.assets_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:k.__wrap(r)}keys(){const t=_.assets_keys(this.__wbg_ptr);return Kt.__wrap(t)}}p.exports.Assets=Ut;class Bt{static __wrap(t){t=t>>>0;const r=Object.create(Bt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.auxiliarydata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydata_new();return Bt.__wrap(t)}metadata(){const t=_.auxiliarydata_metadata(this.__wbg_ptr);return t===0?void 0:Nt.__wrap(t)}set_metadata(t){l(t,Nt),_.auxiliarydata_set_metadata(this.__wbg_ptr,t.__wbg_ptr)}native_scripts(){const t=_.auxiliarydata_native_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_native_scripts(t){l(t,Ct),_.auxiliarydata_set_native_scripts(this.__wbg_ptr,t.__wbg_ptr)}plutus_scripts(){const t=_.auxiliarydata_plutus_scripts(this.__wbg_ptr);return t===0?void 0:w_.__wrap(t)}set_plutus_scripts(t){l(t,w_),_.auxiliarydata_set_plutus_scripts(this.__wbg_ptr,t.__wbg_ptr)}prefer_alonzo_format(){return _.auxiliarydata_prefer_alonzo_format(this.__wbg_ptr)!==0}set_prefer_alonzo_format(t){_.auxiliarydata_set_prefer_alonzo_format(this.__wbg_ptr,t)}}p.exports.AuxiliaryData=Bt;class Gt{static __wrap(t){t=t>>>0;const r=Object.create(Gt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.auxiliarydatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.auxiliarydatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AuxiliaryDataHash=Gt;class q{static __wrap(t){t=t>>>0;const r=Object.create(q.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_auxiliarydataset_free(t)}static new(){const t=_.auxiliarydataset_new();return q.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(r,Bt);const o=_.auxiliarydataset_insert(this.__wbg_ptr,t,r.__wbg_ptr);return o===0?void 0:Bt.__wrap(o)}get(t){const r=_.auxiliarydataset_get(this.__wbg_ptr,t);return r===0?void 0:Bt.__wrap(r)}indices(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydataset_indices(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.AuxiliaryDataSet=q;class z{static __wrap(t){t=t>>>0;const r=Object.create(z.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_baseaddress_free(t)}static new(t,r,o){l(r,gt),l(o,gt);const n=_.baseaddress_new(t,r.__wbg_ptr,o.__wbg_ptr);return z.__wrap(n)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}stake_cred(){const t=_.baseaddress_stake_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.baseaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.baseaddress_from_address(t.__wbg_ptr);return r===0?void 0:z.__wrap(r)}}p.exports.BaseAddress=z;class H{static __wrap(t){t=t>>>0;const r=Object.create(H.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bigint_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bigint_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}is_zero(){return _.bigint_is_zero(this.__wbg_ptr)!==0}as_u64(){const t=_.bigint_as_u64(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_int(){const t=_.bigint_as_int(this.__wbg_ptr);return t===0?void 0:bt.__wrap(t)}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bigint_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bigint_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}add(t){l(t,H);const r=_.bigint_add(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}mul(t){l(t,H);const r=_.bigint_mul(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}static one(){const t=_.bigint_one();return H.__wrap(t)}increment(){const t=_.bigint_increment(this.__wbg_ptr);return H.__wrap(t)}div_ceil(t){l(t,H);const r=_.bigint_div_ceil(this.__wbg_ptr,t.__wbg_ptr);return H.__wrap(r)}}p.exports.BigInt=H;class k{static __wrap(t){t=t>>>0;const r=Object.create(k.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bignum_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bignum_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bignum_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bignum_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static zero(){const t=_.bignum_zero();return k.__wrap(t)}static one(){const t=_.bignum_one();return k.__wrap(t)}is_zero(){return _.bignum_is_zero(this.__wbg_ptr)!==0}div_floor(t){l(t,k);const r=_.bignum_div_floor(this.__wbg_ptr,t.__wbg_ptr);return k.__wrap(r)}checked_mul(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_mul(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_add(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),_.bignum_checked_sub(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){l(t,k);const r=_.bignum_clamped_sub(this.__wbg_ptr,t.__wbg_ptr);return k.__wrap(r)}compare(t){return l(t,k),_.bignum_compare(this.__wbg_ptr,t.__wbg_ptr)}less_than(t){return l(t,k),_.bignum_less_than(this.__wbg_ptr,t.__wbg_ptr)!==0}static max_value(){const t=_.bignum_max_value();return k.__wrap(t)}static max(t,r){l(t,k),l(r,k);const o=_.bignum_max(t.__wbg_ptr,r.__wbg_ptr);return k.__wrap(o)}}p.exports.BigNum=k;class ft{static __wrap(t){t=t>>>0;const r=Object.create(ft.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bip32privatekey_free(t)}derive(t){const r=_.bip32privatekey_derive(this.__wbg_ptr,t);return ft.__wrap(r)}static from_128_xprv(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32privatekey_from_128_xprv(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_128_xprv(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_generate_ed25519_bip32(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return ft.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=_.bip32privatekey_to_raw_key(this.__wbg_ptr);return l_.__wrap(t)}to_public(){const t=_.bip32privatekey_to_public(this.__wbg_ptr);return vt.__wrap(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32privatekey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32privatekey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_bip39_entropy(t,r){const o=I(t,_.__wbindgen_malloc),n=g,e=I(r,_.__wbindgen_malloc),i=g,s=_.bip32privatekey_from_bip39_entropy(o,n,e,i);return ft.__wrap(s)}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32privatekey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Bip32PrivateKey=ft;class vt{static __wrap(t){t=t>>>0;const r=Object.create(vt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bip32publickey_free(t)}derive(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_derive(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=_.bip32publickey_to_raw_key(this.__wbg_ptr);return o_.__wrap(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bip32publickey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32publickey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bip32publickey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return vt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Bip32PublicKey=vt;class ut{static __wrap(t){t=t>>>0;const r=Object.create(ut.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_block_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.block_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.block_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.block_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ut.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}header(){const t=_.block_header(this.__wbg_ptr);return e_.__wrap(t)}transaction_bodies(){const t=_.block_transaction_bodies(this.__wbg_ptr);return ar.__wrap(t)}transaction_witness_sets(){const t=_.block_transaction_witness_sets(this.__wbg_ptr);return sr.__wrap(t)}auxiliary_data_set(){const t=_.block_auxiliary_data_set(this.__wbg_ptr);return q.__wrap(t)}invalid_transactions(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.block_invalid_transactions(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o,n,e){l(t,e_),l(r,ar),l(o,sr),l(n,q);const i=Rt(e,_.__wbindgen_malloc),s=g,b=_.block_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr,i,s);return ut.__wrap(b)}}p.exports.Block=ut;class st{static __wrap(t){t=t>>>0;const r=Object.create(st.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_blockhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.blockhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.blockhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.blockhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return st.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.BlockHash=st;class lt{static __wrap(t){t=t>>>0;const r=Object.create(lt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.bootstrapwitness_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bootstrapwitness_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.bootstrapwitness_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=_.bootstrapwitness_vkey(this.__wbg_ptr);return Lt.__wrap(t)}signature(){const t=_.bootstrapwitness_signature(this.__wbg_ptr);return wt.__wrap(t)}chain_code(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o,n){l(t,Lt),l(r,wt);const e=I(o,_.__wbindgen_malloc),i=g,s=I(n,_.__wbindgen_malloc),b=g,c=_.bootstrapwitness_new(t.__wbg_ptr,r.__wbg_ptr,e,i,s,b);return lt.__wrap(c)}}p.exports.BootstrapWitness=lt;class j{static __wrap(t){t=t>>>0;const r=Object.create(j.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_bootstrapwitnesses_free(t)}static new(){const t=_.assetnames_new();return j.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.bootstrapwitnesses_get(this.__wbg_ptr,t);return lt.__wrap(r)}add(t){l(t,lt),_.bootstrapwitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.BootstrapWitnesses=j;class E{static __wrap(t){t=t>>>0;const r=Object.create(E.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_byronaddress_free(t)}to_base58(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_to_base58(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.byronaddress_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return _.byronaddress_byron_protocol_magic(this.__wbg_ptr)>>>0}attributes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.byronaddress_network_id(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.byronaddress_from_base58(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,r){l(t,vt);const o=_.byronaddress_icarus_from_key(t.__wbg_ptr,r);return E.__wrap(o)}static is_valid(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;return _.byronaddress_is_valid(r,o)!==0}to_address(){const t=_.byronaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.byronaddress_from_address(t.__wbg_ptr);return r===0?void 0:E.__wrap(r)}}p.exports.ByronAddress=E;class B{static __wrap(t){t=t>>>0;const r=Object.create(B.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_certificate_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.certificate_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificate_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificate_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificate_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){l(t,nr);const r=_.certificate_new_stake_registration(t.__wbg_ptr);return B.__wrap(r)}static new_stake_deregistration(t){l(t,er);const r=_.certificate_new_stake_deregistration(t.__wbg_ptr);return B.__wrap(r)}static new_stake_delegation(t){l(t,rr);const r=_.certificate_new_stake_delegation(t.__wbg_ptr);return B.__wrap(r)}static new_pool_registration(t){l(t,L_);const r=_.certificate_new_pool_registration(t.__wbg_ptr);return B.__wrap(r)}static new_pool_retirement(t){l(t,V_);const r=_.certificate_new_pool_retirement(t.__wbg_ptr);return B.__wrap(r)}static new_genesis_key_delegation(t){l(t,Jt);const r=_.certificate_new_genesis_key_delegation(t.__wbg_ptr);return B.__wrap(r)}static new_move_instantaneous_rewards_cert(t){l(t,M_);const r=_.certificate_new_move_instantaneous_rewards_cert(t.__wbg_ptr);return B.__wrap(r)}kind(){return _.certificate_kind(this.__wbg_ptr)>>>0}as_stake_registration(){const t=_.certificate_as_stake_registration(this.__wbg_ptr);return t===0?void 0:nr.__wrap(t)}as_stake_deregistration(){const t=_.certificate_as_stake_deregistration(this.__wbg_ptr);return t===0?void 0:er.__wrap(t)}as_stake_delegation(){const t=_.certificate_as_stake_delegation(this.__wbg_ptr);return t===0?void 0:rr.__wrap(t)}as_pool_registration(){const t=_.certificate_as_pool_registration(this.__wbg_ptr);return t===0?void 0:L_.__wrap(t)}as_pool_retirement(){const t=_.certificate_as_pool_retirement(this.__wbg_ptr);return t===0?void 0:V_.__wrap(t)}as_genesis_key_delegation(){const t=_.certificate_as_genesis_key_delegation(this.__wbg_ptr);return t===0?void 0:Jt.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=_.certificate_as_move_instantaneous_rewards_cert(this.__wbg_ptr);return t===0?void 0:M_.__wrap(t)}}p.exports.Certificate=B;class F{static __wrap(t){t=t>>>0;const r=Object.create(F.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_certificates_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.certificates_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificates_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.certificates_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.certificates_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return F.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.certificates_get(this.__wbg_ptr,t);return B.__wrap(r)}add(t){l(t,B),_.certificates_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Certificates=F;class D{static __wrap(t){t=t>>>0;const r=Object.create(D.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_constrplutusdata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.constrplutusdata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.constrplutusdata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return D.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.constrplutusdata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.constrplutusdata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return D.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}data(){const t=_.constrplutusdata_data(this.__wbg_ptr);return Zt.__wrap(t)}static new(t,r){l(t,k),l(r,Zt);const o=_.constrplutusdata_new(t.__wbg_ptr,r.__wbg_ptr);return D.__wrap(o)}}p.exports.ConstrPlutusData=D;class N{static __wrap(t){t=t>>>0;const r=Object.create(N.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_costmodel_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.costmodel_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmodel_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmodel_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return N.__wrap(t)}set(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(r,bt),_.costmodel_set(i,this.__wbg_ptr,t,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return bt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmodel_get(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}}p.exports.CostModel=N;class M{static __wrap(t){t=t>>>0;const r=Object.create(M.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_costmdls_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.costmdls_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmdls_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.costmdls_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.costmdls_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return M.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,Mt),l(r,N);const o=_.costmdls_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:N.__wrap(o)}get(t){l(t,Mt);const r=_.costmdls_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:N.__wrap(r)}keys(){const t=_.costmdls_keys(this.__wbg_ptr);return mr.__wrap(t)}retain_language_versions(t){l(t,mr);const r=_.costmdls_retain_language_versions(this.__wbg_ptr,t.__wbg_ptr);return M.__wrap(r)}}p.exports.Costmdls=M;class Q{static __wrap(t){t=t>>>0;const r=Object.create(Q.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.dnsrecordaoraaaa_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}record(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.DNSRecordAorAAAA=Q;class T{static __wrap(t){t=t>>>0;const r=Object.create(T.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordsrv_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.dnsrecordsrv_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordsrv_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordsrv_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordsrv_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}record(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.DNSRecordSRV=T;class P{static __wrap(t){t=t>>>0;const r=Object.create(P.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datacost_free(t)}static new_coins_per_word(t){l(t,k);const r=_.datacost_new_coins_per_word(t.__wbg_ptr);return P.__wrap(r)}static new_coins_per_byte(t){l(t,k);const r=_.datacost_new_coins_per_byte(t.__wbg_ptr);return P.__wrap(r)}coins_per_byte(){const t=_.datacost_coins_per_byte(this.__wbg_ptr);return k.__wrap(t)}}p.exports.DataCost=P;class U{static __wrap(t){t=t>>>0;const r=Object.create(U.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.datahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.datahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.datahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.DataHash=U;class V{static __wrap(t){t=t>>>0;const r=Object.create(V.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_datumsource_free(t)}static new(t){l(t,at);const r=_.datumsource_new(t.__wbg_ptr);return V.__wrap(r)}static new_ref_input(t){l(t,pt);const r=_.datumsource_new_ref_input(t.__wbg_ptr);return V.__wrap(r)}}p.exports.DatumSource=V;class G{static __wrap(t){t=t>>>0;const r=Object.create(G.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519keyhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ed25519KeyHash=G;class _t{static __wrap(t){t=t>>>0;const r=Object.create(_t.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519keyhashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519keyhashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return _t.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.ed25519keyhashes_get(this.__wbg_ptr,t);return G.__wrap(r)}add(t){l(t,G),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}to_option(){const t=_.ed25519keyhashes_to_option(this.__wbg_ptr);return t===0?void 0:_t.__wrap(t)}}p.exports.Ed25519KeyHashes=_t;class wt{static __wrap(t){t=t>>>0;const r=Object.create(wt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ed25519signature_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32publickey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519signature_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519signature_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519signature_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ed25519signature_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ed25519signature_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ed25519Signature=wt;class qt{static __wrap(t){t=t>>>0;const r=Object.create(qt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_enterpriseaddress_free(t)}static new(t,r){l(r,gt);const o=_.enterpriseaddress_new(t,r.__wbg_ptr);return qt.__wrap(o)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.enterpriseaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.enterpriseaddress_from_address(t.__wbg_ptr);return r===0?void 0:qt.__wrap(r)}}p.exports.EnterpriseAddress=qt;class xt{static __wrap(t){t=t>>>0;const r=Object.create(xt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_exunitprices_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.exunitprices_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunitprices_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunitprices_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunitprices_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=_.exunitprices_mem_price(this.__wbg_ptr);return Qt.__wrap(t)}step_price(){const t=_.exunitprices_step_price(this.__wbg_ptr);return Qt.__wrap(t)}static new(t,r){l(t,Qt),l(r,Qt);const o=_.exunitprices_new(t.__wbg_ptr,r.__wbg_ptr);return xt.__wrap(o)}}p.exports.ExUnitPrices=xt;class dt{static __wrap(t){t=t>>>0;const r=Object.create(dt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_exunits_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.exunits_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunits_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.exunits_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.exunits_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=_.exunits_mem(this.__wbg_ptr);return k.__wrap(t)}steps(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.exunits_new(t.__wbg_ptr,r.__wbg_ptr);return dt.__wrap(o)}}p.exports.ExUnits=dt;class It{static __wrap(t){t=t>>>0;const r=Object.create(It.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_fixedtransaction_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.fixedtransaction_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return It.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.fixedtransaction_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return It.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=I(t,_.__wbindgen_malloc),c=g,S=I(r,_.__wbindgen_malloc),Y=g;_.fixedtransaction_new(s,b,c,S,Y,o);var n=a()[s/4+0],e=a()[s/4+1],i=a()[s/4+2];if(i)throw d(e);return It.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_with_auxiliary(t,r,o,n){try{const b=_.__wbindgen_add_to_stack_pointer(-16),c=I(t,_.__wbindgen_malloc),S=g,Y=I(r,_.__wbindgen_malloc),W=g,jr=I(o,_.__wbindgen_malloc),Rr=g;_.fixedtransaction_new_with_auxiliary(b,c,S,Y,W,jr,Rr,n);var e=a()[b/4+0],i=a()[b/4+1],s=a()[b/4+2];if(s)throw d(i);return It.__wrap(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}body(){const t=_.fixedtransaction_body(this.__wbg_ptr);return Pt.__wrap(t)}raw_body(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_body(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_body(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_body(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_witness_set(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_witness_set(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}witness_set(){const t=_.fixedtransaction_witness_set(this.__wbg_ptr);return c_.__wrap(t)}raw_witness_set(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_witness_set(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_is_valid(t){_.fixedtransaction_set_is_valid(this.__wbg_ptr,t)}is_valid(){return _.fixedtransaction_is_valid(this.__wbg_ptr)!==0}set_auxiliary_data(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16),e=I(t,_.__wbindgen_malloc),i=g;_.fixedtransaction_set_auxiliary_data(n,this.__wbg_ptr,e,i);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}auxiliary_data(){const t=_.fixedtransaction_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}raw_auxiliary_data(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.fixedtransaction_raw_auxiliary_data(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.FixedTransaction=It;class Nt{static __wrap(t){t=t>>>0;const r=Object.create(Nt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.generaltransactionmetadata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.generaltransactionmetadata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.generaltransactionmetadata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.generaltransactionmetadata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Nt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Nt.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,k),l(r,ct);const o=_.generaltransactionmetadata_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}get(t){l(t,k);const r=_.generaltransactionmetadata_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:ct.__wrap(r)}keys(){const t=_.generaltransactionmetadata_keys(this.__wbg_ptr);return Ar.__wrap(t)}}p.exports.GeneralTransactionMetadata=Nt;class y_{static __wrap(t){t=t>>>0;const r=Object.create(y_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesisdelegatehash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesisdelegatehash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesisdelegatehash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.GenesisDelegateHash=y_;class Wt{static __wrap(t){t=t>>>0;const r=Object.create(Wt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesishash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesishash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Wt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.GenesisHash=Wt;class v_{static __wrap(t){t=t>>>0;const r=Object.create(v_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesishashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesishashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesishashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.genesishashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesishashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return v_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return v_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.genesishashes_get(this.__wbg_ptr,t);return Wt.__wrap(r)}add(t){l(t,Wt),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.GenesisHashes=v_;class Jt{static __wrap(t){t=t>>>0;const r=Object.create(Jt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.genesiskeydelegation_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesiskeydelegation_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.genesiskeydelegation_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.genesiskeydelegation_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Jt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=_.genesiskeydelegation_genesishash(this.__wbg_ptr);return Wt.__wrap(t)}genesis_delegate_hash(){const t=_.genesiskeydelegation_genesis_delegate_hash(this.__wbg_ptr);return y_.__wrap(t)}vrf_keyhash(){const t=_.genesiskeydelegation_vrf_keyhash(this.__wbg_ptr);return B_.__wrap(t)}static new(t,r,o){l(t,Wt),l(r,y_),l(o,B_);const n=_.genesiskeydelegation_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return Jt.__wrap(n)}}p.exports.GenesisKeyDelegation=Jt;class e_{static __wrap(t){t=t>>>0;const r=Object.create(e_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_header_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.header_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.header_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.header_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.header_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return e_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=_.header_header_body(this.__wbg_ptr);return zt.__wrap(t)}body_signature(){const t=_.header_body_signature(this.__wbg_ptr);return Br.__wrap(t)}static new(t,r){l(t,zt),l(r,Br);const o=_.header_new(t.__wbg_ptr,r.__wbg_ptr);return e_.__wrap(o)}}p.exports.Header=e_;class zt{static __wrap(t){t=t>>>0;const r=Object.create(zt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_headerbody_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.headerbody_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.headerbody_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.headerbody_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}block_number(){return _.headerbody_block_number(this.__wbg_ptr)>>>0}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.headerbody_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.headerbody_slot_bignum(this.__wbg_ptr);return k.__wrap(t)}prev_hash(){const t=_.headerbody_prev_hash(this.__wbg_ptr);return t===0?void 0:st.__wrap(t)}issuer_vkey(){const t=_.headerbody_issuer_vkey(this.__wbg_ptr);return Lt.__wrap(t)}vrf_vkey(){const t=_.headerbody_vrf_vkey(this.__wbg_ptr);return cr.__wrap(t)}has_nonce_and_leader_vrf(){return _.headerbody_has_nonce_and_leader_vrf(this.__wbg_ptr)!==0}nonce_vrf_or_nothing(){const t=_.headerbody_nonce_vrf_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}leader_vrf_or_nothing(){const t=_.headerbody_leader_vrf_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}has_vrf_result(){return _.headerbody_has_vrf_result(this.__wbg_ptr)!==0}vrf_result_or_nothing(){const t=_.headerbody_vrf_result_or_nothing(this.__wbg_ptr);return t===0?void 0:p_.__wrap(t)}block_body_size(){return _.headerbody_block_body_size(this.__wbg_ptr)>>>0}block_body_hash(){const t=_.headerbody_block_body_hash(this.__wbg_ptr);return st.__wrap(t)}operational_cert(){const t=_.headerbody_operational_cert(this.__wbg_ptr);return A_.__wrap(t)}protocol_version(){const t=_.headerbody_protocol_version(this.__wbg_ptr);return a_.__wrap(t)}static new(t,r,o,n,e,i,s,b,c,S){let Y=0;it(o)||(l(o,st),Y=o.__destroy_into_raw()),l(n,Lt),l(e,cr),l(i,p_),l(b,st),l(c,A_),l(S,a_);const W=_.headerbody_new(t,r,Y,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s,b.__wbg_ptr,c.__wbg_ptr,S.__wbg_ptr);return zt.__wrap(W)}static new_headerbody(t,r,o,n,e,i,s,b,c,S){l(r,k);let Y=0;it(o)||(l(o,st),Y=o.__destroy_into_raw()),l(n,Lt),l(e,cr),l(i,p_),l(b,st),l(c,A_),l(S,a_);const W=_.headerbody_new_headerbody(t,r.__wbg_ptr,Y,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s,b.__wbg_ptr,c.__wbg_ptr,S.__wbg_ptr);return zt.__wrap(W)}}p.exports.HeaderBody=zt;class Yt{static __wrap(t){t=t>>>0;const r=Object.create(Yt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_inputwithscriptwitness_free(t)}static new_with_native_script_witness(t,r){l(t,pt),l(r,yt);const o=_.inputwithscriptwitness_new_with_native_script_witness(t.__wbg_ptr,r.__wbg_ptr);return Yt.__wrap(o)}static new_with_plutus_witness(t,r){l(t,pt),l(r,n_);const o=_.inputwithscriptwitness_new_with_plutus_witness(t.__wbg_ptr,r.__wbg_ptr);return Yt.__wrap(o)}input(){const t=_.inputwithscriptwitness_input(this.__wbg_ptr);return pt.__wrap(t)}}p.exports.InputWithScriptWitness=Yt;class Ht{static __wrap(t){t=t>>>0;const r=Object.create(Ht.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_inputswithscriptwitness_free(t)}static new(){const t=_.certificates_new();return Ht.__wrap(t)}add(t){l(t,Yt),_.inputswithscriptwitness_add(this.__wbg_ptr,t.__wbg_ptr)}get(t){const r=_.inputswithscriptwitness_get(this.__wbg_ptr,t);return Yt.__wrap(r)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}}p.exports.InputsWithScriptWitness=Ht;class bt{static __wrap(t){t=t>>>0;const r=Object.create(bt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_int_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.int_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,k);const r=_.int_new(t.__wbg_ptr);return bt.__wrap(r)}static new_negative(t){l(t,k);const r=_.int_new_negative(t.__wbg_ptr);return bt.__wrap(r)}static new_i32(t){const r=_.int_new_i32(t);return bt.__wrap(r)}is_positive(){return _.int_is_positive(this.__wbg_ptr)!==0}as_positive(){const t=_.int_as_positive(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_negative(){const t=_.int_as_negative(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_i32(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32_or_nothing(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.int_as_i32_or_fail(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_str(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.int_to_str(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.int_from_str(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return bt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Int=bt;class T_{static __wrap(t){t=t>>>0;const r=Object.create(T_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ipv4_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv4_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv4_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv4_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv4_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return T_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv4_ip(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ipv4=T_;class N_{static __wrap(t){t=t>>>0;const r=Object.create(N_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_ipv6_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv6_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv6_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.ipv6_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.ipv6_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return N_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ipv6_ip(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Ipv6=N_;class Sr{static __wrap(t){t=t>>>0;const r=Object.create(Sr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_jsvecstring_free(t)}static new(){const t=_.jsvecstring_new();return Sr.__wrap(t)}len(){return _.jsvecstring_len(this.__wbg_ptr)>>>0}is_empty(){return _.jsvecstring_is_empty(this.__wbg_ptr)!==0}get(t){let r,o;try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.jsvecstring_get(i,this.__wbg_ptr,t);var n=a()[i/4+0],e=a()[i/4+1];return r=n,o=e,h(n,e)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}add(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;_.jsvecstring_add(this.__wbg_ptr,r,o)}}p.exports.JsVecString=Sr;class Br{static __wrap(t){t=t>>>0;const r=Object.create(Br.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_kessignature_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.kessignature_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Br.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.KESSignature=Br;class wr{static __wrap(t){t=t>>>0;const r=Object.create(wr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_kesvkey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.kesvkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.kesvkey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.kesvkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return wr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.KESVKey=wr;class Mt{static __wrap(t){t=t>>>0;const r=Object.create(Mt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_language_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.language_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.language_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.language_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.language_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Mt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=_.language_new_plutus_v1();return Mt.__wrap(t)}static new_plutus_v2(){const t=_.language_new_plutus_v2();return Mt.__wrap(t)}kind(){return _.language_kind(this.__wbg_ptr)>>>0}}p.exports.Language=Mt;class mr{static __wrap(t){t=t>>>0;const r=Object.create(mr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_languages_free(t)}static new(){const t=_.ed25519keyhashes_new();return mr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.languages_get(this.__wbg_ptr,t);return Mt.__wrap(r)}add(t){l(t,Mt);var r=t.__destroy_into_raw();_.languages_add(this.__wbg_ptr,r)}static list(){const t=_.languages_list();return mr.__wrap(t)}}p.exports.Languages=mr;class qr{static __wrap(t){t=t>>>0;const r=Object.create(qr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.legacydaedalusprivatekey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return qr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bip32privatekey_chaincode(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.LegacyDaedalusPrivateKey=qr;class Or{static __wrap(t){t=t>>>0;const r=Object.create(Or.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_linearfee_free(t)}constant(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}coefficient(){const t=_.linearfee_coefficient(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.linearfee_new(t.__wbg_ptr,r.__wbg_ptr);return Or.__wrap(o)}}p.exports.LinearFee=Or;class U_{static __wrap(t){t=t>>>0;const r=Object.create(U_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.mirtostakecredentials_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mirtostakecredentials_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mirtostakecredentials_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mirtostakecredentials_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return U_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return U_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,gt),l(r,bt);const o=_.mirtostakecredentials_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:bt.__wrap(o)}get(t){l(t,gt);const r=_.mirtostakecredentials_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:bt.__wrap(r)}keys(){const t=_.mirtostakecredentials_keys(this.__wbg_ptr);return hr.__wrap(t)}}p.exports.MIRToStakeCredentials=U_;class F_{static __wrap(t){t=t>>>0;const r=Object.create(F_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_metadatalist_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.metadatalist_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.metadatalist_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatalist_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatalist_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return F_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return F_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.metadatalist_get(this.__wbg_ptr,t);return ct.__wrap(r)}add(t){l(t,ct),_.metadatalist_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.MetadataList=F_;class lr{static __wrap(t){t=t>>>0;const r=Object.create(lr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_metadatamap_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.metadatamap_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatamap_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return lr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return lr.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ct),l(r,ct);const o=_.metadatamap_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}insert_str(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;l(r,ct),_.metadatamap_insert_str(i,this.__wbg_ptr,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return o===0?void 0:ct.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,r){l(r,ct);const o=_.metadatamap_insert_i32(this.__wbg_ptr,t,r.__wbg_ptr);return o===0?void 0:ct.__wrap(o)}get(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,ct),_.metadatamap_get(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.metadatamap_get_str(e,this.__wbg_ptr,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.metadatamap_get_i32(e,this.__wbg_ptr,t);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}has(t){return l(t,ct),_.metadatamap_has(this.__wbg_ptr,t.__wbg_ptr)!==0}keys(){const t=_.metadatamap_keys(this.__wbg_ptr);return F_.__wrap(t)}}p.exports.MetadataMap=lr;class Xt{static __wrap(t){t=t>>>0;const r=Object.create(Xt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mint_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.mint_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mint_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mint_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.mint_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Xt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Xt.__wrap(t)}static new_from_entry(t,r){l(t,kt),l(r,m_);const o=_.mint_new_from_entry(t.__wbg_ptr,r.__wbg_ptr);return Xt.__wrap(o)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,kt),l(r,m_);const o=_.mint_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:m_.__wrap(o)}get(t){l(t,kt);const r=_.mint_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:m_.__wrap(r)}get_all(t){l(t,kt);const r=_.mint_get_all(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:Xr.__wrap(r)}keys(){const t=_.mint_keys(this.__wbg_ptr);return W_.__wrap(t)}as_positive_multiasset(){const t=_.mint_as_positive_multiasset(this.__wbg_ptr);return Ft.__wrap(t)}as_negative_multiasset(){const t=_.mint_as_negative_multiasset(this.__wbg_ptr);return Ft.__wrap(t)}}p.exports.Mint=Xt;class m_{static __wrap(t){t=t>>>0;const r=Object.create(m_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintassets_free(t)}static new(){const t=_.assets_new();return m_.__wrap(t)}static new_from_entry(t,r){l(t,ht),l(r,bt);var o=r.__destroy_into_raw();const n=_.mintassets_new_from_entry(t.__wbg_ptr,o);return m_.__wrap(n)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,ht),l(r,bt);var o=r.__destroy_into_raw();const n=_.mintassets_insert(this.__wbg_ptr,t.__wbg_ptr,o);return n===0?void 0:bt.__wrap(n)}get(t){l(t,ht);const r=_.mintassets_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:bt.__wrap(r)}keys(){const t=_.mintassets_keys(this.__wbg_ptr);return Kt.__wrap(t)}}p.exports.MintAssets=m_;class Qr{static __wrap(t){t=t>>>0;const r=Object.create(Qr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintbuilder_free(t)}static new(){const t=_.assets_new();return Qr.__wrap(t)}add_asset(t,r,o){l(t,kr),l(r,ht),l(o,bt),_.mintbuilder_add_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}set_asset(t,r,o){l(t,kr),l(r,ht),l(o,bt),_.mintbuilder_set_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}build(){const t=_.mintbuilder_build(this.__wbg_ptr);return Xt.__wrap(t)}get_native_scripts(){const t=_.mintbuilder_get_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}get_plutus_witnesses(){const t=_.mintbuilder_get_plutus_witnesses(this.__wbg_ptr);return z_.__wrap(t)}get_ref_inputs(){const t=_.mintbuilder_get_ref_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_redeeemers(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.mintbuilder_get_redeeemers(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return b_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}has_plutus_scripts(){return _.mintbuilder_has_plutus_scripts(this.__wbg_ptr)!==0}has_native_scripts(){return _.mintbuilder_has_native_scripts(this.__wbg_ptr)!==0}}p.exports.MintBuilder=Qr;class kr{static __wrap(t){t=t>>>0;const r=Object.create(kr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintwitness_free(t)}static new_native_script(t){l(t,yt);const r=_.mintwitness_new_native_script(t.__wbg_ptr);return kr.__wrap(r)}static new_plutus_script(t,r){l(t,q_),l(r,$t);const o=_.mintwitness_new_plutus_script(t.__wbg_ptr,r.__wbg_ptr);return kr.__wrap(o)}}p.exports.MintWitness=kr;class Xr{static __wrap(t){t=t>>>0;const r=Object.create(Xr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_mintsassets_free(t)}}p.exports.MintsAssets=Xr;class k_{static __wrap(t){t=t>>>0;const r=Object.create(k_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.moveinstantaneousreward_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousreward_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousreward_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousreward_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,r){l(r,k);const o=_.moveinstantaneousreward_new_to_other_pot(t,r.__wbg_ptr);return k_.__wrap(o)}static new_to_stake_creds(t,r){l(r,U_);const o=_.moveinstantaneousreward_new_to_stake_creds(t,r.__wbg_ptr);return k_.__wrap(o)}pot(){return _.moveinstantaneousreward_pot(this.__wbg_ptr)>>>0}kind(){return _.moveinstantaneousreward_kind(this.__wbg_ptr)>>>0}as_to_other_pot(){const t=_.moveinstantaneousreward_as_to_other_pot(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}as_to_stake_creds(){const t=_.moveinstantaneousreward_as_to_stake_creds(this.__wbg_ptr);return t===0?void 0:U_.__wrap(t)}}p.exports.MoveInstantaneousReward=k_;class M_{static __wrap(t){t=t>>>0;const r=Object.create(M_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.moveinstantaneousrewardscert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousrewardscert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.moveinstantaneousrewardscert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.moveinstantaneousrewardscert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return M_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=_.moveinstantaneousrewardscert_move_instantaneous_reward(this.__wbg_ptr);return k_.__wrap(t)}static new(t){l(t,k_);const r=_.moveinstantaneousrewardscert_new(t.__wbg_ptr);return M_.__wrap(r)}}p.exports.MoveInstantaneousRewardsCert=M_;class Ft{static __wrap(t){t=t>>>0;const r=Object.create(Ft.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_multiasset_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.multiasset_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multiasset_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multiasset_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multiasset_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ft.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assets_new();return Ft.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,kt),l(r,Ut);const o=_.multiasset_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:Ut.__wrap(o)}get(t){l(t,kt);const r=_.multiasset_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:Ut.__wrap(r)}set_asset(t,r,o){l(t,kt),l(r,ht),l(o,k);var n=o.__destroy_into_raw();const e=_.multiasset_set_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n);return e===0?void 0:k.__wrap(e)}get_asset(t,r){l(t,kt),l(r,ht);const o=_.multiasset_get_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return k.__wrap(o)}keys(){const t=_.multiasset_keys(this.__wbg_ptr);return W_.__wrap(t)}sub(t){l(t,Ft);const r=_.multiasset_sub(this.__wbg_ptr,t.__wbg_ptr);return Ft.__wrap(r)}}p.exports.MultiAsset=Ft;class P_{static __wrap(t){t=t>>>0;const r=Object.create(P_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_multihostname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.multihostname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multihostname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.multihostname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.multihostname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return P_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=_.multihostname_dns_name(this.__wbg_ptr);return T.__wrap(t)}static new(t){l(t,T);const r=_.multihostname_new(t.__wbg_ptr);return P_.__wrap(r)}}p.exports.MultiHostName=P_;class yt{static __wrap(t){t=t>>>0;const r=Object.create(yt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nativescript_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nativescript_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nativescript_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nativescript_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nativescript_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return yt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=_.nativescript_hash(this.__wbg_ptr);return kt.__wrap(t)}static new_script_pubkey(t){l(t,Z_);const r=_.nativescript_new_script_pubkey(t.__wbg_ptr);return yt.__wrap(r)}static new_script_all(t){l(t,G_);const r=_.nativescript_new_script_all(t.__wbg_ptr);return yt.__wrap(r)}static new_script_any(t){l(t,J_);const r=_.nativescript_new_script_any(t.__wbg_ptr);return yt.__wrap(r)}static new_script_n_of_k(t){l(t,X_);const r=_.nativescript_new_script_n_of_k(t.__wbg_ptr);return yt.__wrap(r)}static new_timelock_start(t){l(t,E_);const r=_.nativescript_new_timelock_start(t.__wbg_ptr);return yt.__wrap(r)}static new_timelock_expiry(t){l(t,C_);const r=_.nativescript_new_timelock_expiry(t.__wbg_ptr);return yt.__wrap(r)}kind(){return _.nativescript_kind(this.__wbg_ptr)>>>0}as_script_pubkey(){const t=_.nativescript_as_script_pubkey(this.__wbg_ptr);return t===0?void 0:Z_.__wrap(t)}as_script_all(){const t=_.nativescript_as_script_all(this.__wbg_ptr);return t===0?void 0:G_.__wrap(t)}as_script_any(){const t=_.nativescript_as_script_any(this.__wbg_ptr);return t===0?void 0:J_.__wrap(t)}as_script_n_of_k(){const t=_.nativescript_as_script_n_of_k(this.__wbg_ptr);return t===0?void 0:X_.__wrap(t)}as_timelock_start(){const t=_.nativescript_as_timelock_start(this.__wbg_ptr);return t===0?void 0:E_.__wrap(t)}as_timelock_expiry(){const t=_.nativescript_as_timelock_expiry(this.__wbg_ptr);return t===0?void 0:C_.__wrap(t)}get_required_signers(){const t=_.nativescript_get_required_signers(this.__wbg_ptr);return _t.__wrap(t)}}p.exports.NativeScript=yt;class Ct{static __wrap(t){t=t>>>0;const r=Object.create(Ct.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nativescripts_free(t)}static new(){const t=_.certificates_new();return Ct.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.nativescripts_get(this.__wbg_ptr,t);return yt.__wrap(r)}add(t){l(t,yt),_.nativescripts_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.NativeScripts=Ct;class x_{static __wrap(t){t=t>>>0;const r=Object.create(x_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_networkid_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.networkid_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.networkid_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.networkid_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.networkid_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return x_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=_.language_new_plutus_v1();return x_.__wrap(t)}static mainnet(){const t=_.language_new_plutus_v2();return x_.__wrap(t)}kind(){return _.networkid_kind(this.__wbg_ptr)>>>0}}p.exports.NetworkId=x_;class br{static __wrap(t){t=t>>>0;const r=Object.create(br.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_networkinfo_free(t)}static new(t,r){const o=_.networkinfo_new(t,r);return br.__wrap(o)}network_id(){return _.networkinfo_network_id(this.__wbg_ptr)}protocol_magic(){return _.networkinfo_protocol_magic(this.__wbg_ptr)>>>0}static testnet_preview(){const t=_.networkinfo_testnet_preview();return br.__wrap(t)}static testnet_preprod(){const t=_.networkinfo_testnet_preprod();return br.__wrap(t)}static testnet(){const t=_.networkinfo_testnet();return br.__wrap(t)}static mainnet(){const t=_.networkinfo_mainnet();return br.__wrap(t)}}p.exports.NetworkInfo=br;class K_{static __wrap(t){t=t>>>0;const r=Object.create(K_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_nonce_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nonce_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nonce_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.nonce_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=_.nonce_new_identity();return K_.__wrap(t)}static new_from_hash(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.nonce_new_from_hash(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return K_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.nonce_get_hash(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Nonce=K_;class A_{static __wrap(t){t=t>>>0;const r=Object.create(A_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_operationalcert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.operationalcert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.operationalcert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.operationalcert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.operationalcert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return A_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=_.operationalcert_hot_vkey(this.__wbg_ptr);return wr.__wrap(t)}sequence_number(){return _.operationalcert_sequence_number(this.__wbg_ptr)>>>0}kes_period(){return _.operationalcert_kes_period(this.__wbg_ptr)>>>0}sigma(){const t=_.operationalcert_sigma(this.__wbg_ptr);return wt.__wrap(t)}static new(t,r,o,n){l(t,wr),l(n,wt);const e=_.operationalcert_new(t.__wbg_ptr,r,o,n.__wbg_ptr);return A_.__wrap(e)}}p.exports.OperationalCert=A_;class Dr{static __wrap(t){t=t>>>0;const r=Object.create(Dr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_outputdatum_free(t)}static new_data_hash(t){l(t,U);const r=_.outputdatum_new_data_hash(t.__wbg_ptr);return Dr.__wrap(r)}static new_data(t){l(t,at);const r=_.datumsource_new(t.__wbg_ptr);return Dr.__wrap(r)}data_hash(){const t=_.outputdatum_data_hash(this.__wbg_ptr);return t===0?void 0:U.__wrap(t)}data(){const t=_.outputdatum_data(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}}p.exports.OutputDatum=Dr;class at{static __wrap(t){t=t>>>0;const r=Object.create(at.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusdata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusdata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusdata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){l(t,D);const r=_.plutusdata_new_constr_plutus_data(t.__wbg_ptr);return at.__wrap(r)}static new_empty_constr_plutus_data(t){l(t,k);const r=_.plutusdata_new_empty_constr_plutus_data(t.__wbg_ptr);return at.__wrap(r)}static new_single_value_constr_plutus_data(t,r){l(t,k),l(r,at);const o=_.plutusdata_new_single_value_constr_plutus_data(t.__wbg_ptr,r.__wbg_ptr);return at.__wrap(o)}static new_map(t){l(t,gr);const r=_.plutusdata_new_map(t.__wbg_ptr);return at.__wrap(r)}static new_list(t){l(t,Zt);const r=_.plutusdata_new_list(t.__wbg_ptr);return at.__wrap(r)}static new_integer(t){l(t,H);const r=_.plutusdata_new_integer(t.__wbg_ptr);return at.__wrap(r)}static new_bytes(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusdata_new_bytes(r,o);return at.__wrap(n)}kind(){return _.plutusdata_kind(this.__wbg_ptr)>>>0}as_constr_plutus_data(){const t=_.plutusdata_as_constr_plutus_data(this.__wbg_ptr);return t===0?void 0:D.__wrap(t)}as_map(){const t=_.plutusdata_as_map(this.__wbg_ptr);return t===0?void 0:gr.__wrap(t)}as_list(){const t=_.plutusdata_as_list(this.__wbg_ptr);return t===0?void 0:Zt.__wrap(t)}as_integer(){const t=_.plutusdata_as_integer(this.__wbg_ptr);return t===0?void 0:H.__wrap(t)}as_bytes(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.plutusdata_as_bytes(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];let n;return t!==0&&(n=C(t,r).slice(),_.__wbindgen_free(t,r*1)),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16);_.decode_plutus_datum_to_json_str(S,this.__wbg_ptr,t);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_json(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;_.encode_json_str_to_plutus_datum(i,s,b,r);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return at.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_address(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),_.plutusdata_from_address(e,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return at.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PlutusData=at;class Zt{static __wrap(t){t=t>>>0;const r=Object.create(Zt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuslist_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutuslist_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutuslist_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutuslist_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutuslist_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Zt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.plutuslist_new();return Zt.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutuslist_get(this.__wbg_ptr,t);return at.__wrap(r)}add(t){l(t,at),_.plutuslist_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusList=Zt;class gr{static __wrap(t){t=t>>>0;const r=Object.create(gr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusmap_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusmap_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusmap_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusmap_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusmap_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return gr.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,at),l(r,at);const o=_.plutusmap_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:at.__wrap(o)}get(t){l(t,at);const r=_.plutusmap_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:at.__wrap(r)}keys(){const t=_.plutusmap_keys(this.__wbg_ptr);return Zt.__wrap(t)}}p.exports.PlutusMap=gr;class Dt{static __wrap(t){t=t>>>0;const r=Object.create(Dt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscript_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscript_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscript_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscript_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscript_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusscript_new(r,o);return Dt.__wrap(n)}static new_v2(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.plutusscript_new_v2(r,o);return Dt.__wrap(n)}static new_with_version(t,r){const o=I(t,_.__wbindgen_malloc),n=g;l(r,Mt);const e=_.plutusscript_new_with_version(o,n,r.__wbg_ptr);return Dt.__wrap(e)}bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes_v2(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscript_from_bytes_v2(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Dt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes_with_version(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=I(t,_.__wbindgen_malloc),b=g;l(r,Mt),_.plutusscript_from_bytes_with_version(i,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return Dt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_hex_with_version(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;l(r,Mt),_.plutusscript_from_hex_with_version(i,s,b,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return Dt.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=_.plutusscript_hash(this.__wbg_ptr);return kt.__wrap(t)}language_version(){const t=_.plutusscript_language_version(this.__wbg_ptr);return Mt.__wrap(t)}}p.exports.PlutusScript=Dt;class q_{static __wrap(t){t=t>>>0;const r=Object.create(q_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscriptsource_free(t)}static new(t){l(t,Dt);const r=_.plutusscriptsource_new(t.__wbg_ptr);return q_.__wrap(r)}static new_ref_input(t,r){l(t,kt),l(r,pt);const o=_.plutusscriptsource_new_ref_input(t.__wbg_ptr,r.__wbg_ptr);return q_.__wrap(o)}static new_ref_input_with_lang_ver(t,r,o){l(t,kt),l(r,pt),l(o,Mt);const n=_.plutusscriptsource_new_ref_input_with_lang_ver(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return q_.__wrap(n)}}p.exports.PlutusScriptSource=q_;class w_{static __wrap(t){t=t>>>0;const r=Object.create(w_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutusscripts_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.plutusscripts_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscripts_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.plutusscripts_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.plutusscripts_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return w_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return w_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutusscripts_get(this.__wbg_ptr,t);return Dt.__wrap(r)}add(t){l(t,Dt),_.plutusscripts_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusScripts=w_;class n_{static __wrap(t){t=t>>>0;const r=Object.create(n_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuswitness_free(t)}static new(t,r,o){l(t,Dt),l(r,at),l(o,$t);const n=_.plutuswitness_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return n_.__wrap(n)}static new_with_ref(t,r,o){l(t,q_),l(r,V),l(o,$t);const n=_.plutuswitness_new_with_ref(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return n_.__wrap(n)}static new_without_datum(t,r){l(t,Dt),l(r,$t);const o=_.plutuswitness_new_without_datum(t.__wbg_ptr,r.__wbg_ptr);return n_.__wrap(o)}static new_with_ref_without_datum(t,r){l(t,q_),l(r,$t);const o=_.plutuswitness_new_with_ref_without_datum(t.__wbg_ptr,r.__wbg_ptr);return n_.__wrap(o)}script(){const t=_.plutuswitness_script(this.__wbg_ptr);return t===0?void 0:Dt.__wrap(t)}datum(){const t=_.plutuswitness_datum(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}redeemer(){const t=_.plutuswitness_redeemer(this.__wbg_ptr);return $t.__wrap(t)}}p.exports.PlutusWitness=n_;class z_{static __wrap(t){t=t>>>0;const r=Object.create(z_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_plutuswitnesses_free(t)}static new(){const t=_.certificates_new();return z_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.plutuswitnesses_get(this.__wbg_ptr,t);return n_.__wrap(r)}add(t){l(t,n_),_.plutuswitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PlutusWitnesses=z_;class xr{static __wrap(t){t=t>>>0;const r=Object.create(xr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_pointer_free(t)}static new(t,r,o){const n=_.pointer_new(t,r,o);return xr.__wrap(n)}static new_pointer(t,r,o){l(t,k),l(r,k),l(o,k);const n=_.pointer_new_pointer(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return xr.__wrap(n)}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.pointer_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}tx_index(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.pointer_tx_index(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}cert_index(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.pointer_cert_index(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.exunits_mem(this.__wbg_ptr);return k.__wrap(t)}tx_index_bignum(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}cert_index_bignum(){const t=_.constrplutusdata_alternative(this.__wbg_ptr);return k.__wrap(t)}}p.exports.Pointer=xr;class zr{static __wrap(t){t=t>>>0;const r=Object.create(zr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_pointeraddress_free(t)}static new(t,r,o){l(r,gt),l(o,xr);const n=_.pointeraddress_new(t,r.__wbg_ptr,o.__wbg_ptr);return zr.__wrap(n)}payment_cred(){const t=_.pointeraddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}stake_pointer(){const t=_.pointeraddress_stake_pointer(this.__wbg_ptr);return xr.__wrap(t)}to_address(){const t=_.pointeraddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.pointeraddress_from_address(t.__wbg_ptr);return r===0?void 0:zr.__wrap(r)}}p.exports.PointerAddress=zr;class H_{static __wrap(t){t=t>>>0;const r=Object.create(H_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolmetadata_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolmetadata_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadata_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolmetadata_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadata_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return H_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}url(){const t=_.multihostname_dns_name(this.__wbg_ptr);return ir.__wrap(t)}pool_metadata_hash(){const t=_.poolmetadata_pool_metadata_hash(this.__wbg_ptr);return fr.__wrap(t)}static new(t,r){l(t,ir),l(r,fr);const o=_.poolmetadata_new(t.__wbg_ptr,r.__wbg_ptr);return H_.__wrap(o)}}p.exports.PoolMetadata=H_;class fr{static __wrap(t){t=t>>>0;const r=Object.create(fr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolmetadatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolmetadatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return fr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PoolMetadataHash=fr;class R_{static __wrap(t){t=t>>>0;const r=Object.create(R_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolparams_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolparams_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolparams_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolparams_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolparams_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return R_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=_.poolparams_operator(this.__wbg_ptr);return G.__wrap(t)}vrf_keyhash(){const t=_.poolparams_vrf_keyhash(this.__wbg_ptr);return B_.__wrap(t)}pledge(){const t=_.headerbody_slot_bignum(this.__wbg_ptr);return k.__wrap(t)}cost(){const t=_.poolparams_cost(this.__wbg_ptr);return k.__wrap(t)}margin(){const t=_.poolparams_margin(this.__wbg_ptr);return Qt.__wrap(t)}reward_account(){const t=_.poolparams_reward_account(this.__wbg_ptr);return f_.__wrap(t)}pool_owners(){const t=_.poolparams_pool_owners(this.__wbg_ptr);return _t.__wrap(t)}relays(){const t=_.poolparams_relays(this.__wbg_ptr);return $_.__wrap(t)}pool_metadata(){const t=_.poolparams_pool_metadata(this.__wbg_ptr);return t===0?void 0:H_.__wrap(t)}static new(t,r,o,n,e,i,s,b,c){l(t,G),l(r,B_),l(o,k),l(n,k),l(e,Qt),l(i,f_),l(s,_t),l(b,$_);let S=0;it(c)||(l(c,H_),S=c.__destroy_into_raw());const Y=_.poolparams_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr,e.__wbg_ptr,i.__wbg_ptr,s.__wbg_ptr,b.__wbg_ptr,S);return R_.__wrap(Y)}}p.exports.PoolParams=R_;class L_{static __wrap(t){t=t>>>0;const r=Object.create(L_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolregistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolregistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolregistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolregistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolregistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return L_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=_.poolregistration_pool_params(this.__wbg_ptr);return R_.__wrap(t)}static new(t){l(t,R_);const r=_.poolregistration_new(t.__wbg_ptr);return L_.__wrap(r)}}p.exports.PoolRegistration=L_;class V_{static __wrap(t){t=t>>>0;const r=Object.create(V_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_poolretirement_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.poolretirement_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolretirement_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.poolretirement_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.poolretirement_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return V_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=_.poolretirement_pool_keyhash(this.__wbg_ptr);return G.__wrap(t)}epoch(){return _.poolretirement_epoch(this.__wbg_ptr)>>>0}static new(t,r){l(t,G);const o=_.poolretirement_new(t.__wbg_ptr,r);return V_.__wrap(o)}}p.exports.PoolRetirement=V_;class l_{static __wrap(t){t=t>>>0;const r=Object.create(l_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_privatekey_free(t)}to_public(){const t=_.privatekey_to_public(this.__wbg_ptr);return o_.__wrap(t)}static generate_ed25519(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_generate_ed25519(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return l_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_generate_ed25519extended(n);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return l_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.privatekey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_as_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.privatekey_from_extended_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.privatekey_from_normal_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}sign(t){const r=I(t,_.__wbindgen_malloc),o=g,n=_.privatekey_sign(this.__wbg_ptr,r,o);return wt.__wrap(n)}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.privatekey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.privatekey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return l_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PrivateKey=l_;class Y_{static __wrap(t){t=t>>>0;const r=Object.create(Y_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.proposedprotocolparameterupdates_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.proposedprotocolparameterupdates_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.proposedprotocolparameterupdates_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.proposedprotocolparameterupdates_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Y_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Y_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,Wt),l(r,I_);const o=_.proposedprotocolparameterupdates_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:I_.__wrap(o)}get(t){l(t,Wt);const r=_.proposedprotocolparameterupdates_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:I_.__wrap(r)}keys(){const t=_.proposedprotocolparameterupdates_keys(this.__wbg_ptr);return v_.__wrap(t)}}p.exports.ProposedProtocolParameterUpdates=Y_;class I_{static __wrap(t){t=t>>>0;const r=Object.create(I_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.protocolparamupdate_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolparamupdate_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolparamupdate_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return I_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){l(t,k),_.protocolparamupdate_set_minfee_a(this.__wbg_ptr,t.__wbg_ptr)}minfee_a(){const t=_.protocolparamupdate_minfee_a(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_minfee_b(t){l(t,k),_.protocolparamupdate_set_minfee_b(this.__wbg_ptr,t.__wbg_ptr)}minfee_b(){const t=_.protocolparamupdate_minfee_b(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_max_block_body_size(t){_.protocolparamupdate_set_max_block_body_size(this.__wbg_ptr,t)}max_block_body_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_block_body_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){_.protocolparamupdate_set_max_tx_size(this.__wbg_ptr,t)}max_tx_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_tx_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){_.protocolparamupdate_set_max_block_header_size(this.__wbg_ptr,t)}max_block_header_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_block_header_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){l(t,k),_.protocolparamupdate_set_key_deposit(this.__wbg_ptr,t.__wbg_ptr)}key_deposit(){const t=_.protocolparamupdate_key_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_pool_deposit(t){l(t,k),_.protocolparamupdate_set_pool_deposit(this.__wbg_ptr,t.__wbg_ptr)}pool_deposit(){const t=_.protocolparamupdate_pool_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_max_epoch(t){_.protocolparamupdate_set_max_epoch(this.__wbg_ptr,t)}max_epoch(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_epoch(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){_.protocolparamupdate_set_n_opt(this.__wbg_ptr,t)}n_opt(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_n_opt(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){l(t,Qt),_.protocolparamupdate_set_pool_pledge_influence(this.__wbg_ptr,t.__wbg_ptr)}pool_pledge_influence(){const t=_.protocolparamupdate_pool_pledge_influence(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}set_expansion_rate(t){l(t,Qt),_.protocolparamupdate_set_expansion_rate(this.__wbg_ptr,t.__wbg_ptr)}expansion_rate(){const t=_.protocolparamupdate_expansion_rate(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}set_treasury_growth_rate(t){l(t,Qt),_.protocolparamupdate_set_treasury_growth_rate(this.__wbg_ptr,t.__wbg_ptr)}treasury_growth_rate(){const t=_.protocolparamupdate_treasury_growth_rate(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}d(){const t=_.protocolparamupdate_d(this.__wbg_ptr);return t===0?void 0:Qt.__wrap(t)}extra_entropy(){const t=_.protocolparamupdate_extra_entropy(this.__wbg_ptr);return t===0?void 0:K_.__wrap(t)}set_protocol_version(t){l(t,a_),_.protocolparamupdate_set_protocol_version(this.__wbg_ptr,t.__wbg_ptr)}protocol_version(){const t=_.protocolparamupdate_protocol_version(this.__wbg_ptr);return t===0?void 0:a_.__wrap(t)}set_min_pool_cost(t){l(t,k),_.protocolparamupdate_set_min_pool_cost(this.__wbg_ptr,t.__wbg_ptr)}min_pool_cost(){const t=_.protocolparamupdate_min_pool_cost(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_ada_per_utxo_byte(t){l(t,k),_.protocolparamupdate_set_ada_per_utxo_byte(this.__wbg_ptr,t.__wbg_ptr)}ada_per_utxo_byte(){const t=_.protocolparamupdate_ada_per_utxo_byte(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_cost_models(t){l(t,M),_.protocolparamupdate_set_cost_models(this.__wbg_ptr,t.__wbg_ptr)}cost_models(){const t=_.protocolparamupdate_cost_models(this.__wbg_ptr);return t===0?void 0:M.__wrap(t)}set_execution_costs(t){l(t,xt),_.protocolparamupdate_set_execution_costs(this.__wbg_ptr,t.__wbg_ptr)}execution_costs(){const t=_.protocolparamupdate_execution_costs(this.__wbg_ptr);return t===0?void 0:xt.__wrap(t)}set_max_tx_ex_units(t){l(t,dt),_.protocolparamupdate_set_max_tx_ex_units(this.__wbg_ptr,t.__wbg_ptr)}max_tx_ex_units(){const t=_.protocolparamupdate_max_tx_ex_units(this.__wbg_ptr);return t===0?void 0:dt.__wrap(t)}set_max_block_ex_units(t){l(t,dt),_.protocolparamupdate_set_max_block_ex_units(this.__wbg_ptr,t.__wbg_ptr)}max_block_ex_units(){const t=_.protocolparamupdate_max_block_ex_units(this.__wbg_ptr);return t===0?void 0:dt.__wrap(t)}set_max_value_size(t){_.protocolparamupdate_set_max_value_size(this.__wbg_ptr,t)}max_value_size(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_value_size(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){_.protocolparamupdate_set_collateral_percentage(this.__wbg_ptr,t)}collateral_percentage(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_collateral_percentage(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){_.protocolparamupdate_set_max_collateral_inputs(this.__wbg_ptr,t)}max_collateral_inputs(){try{const o=_.__wbindgen_add_to_stack_pointer(-16);_.protocolparamupdate_max_collateral_inputs(o,this.__wbg_ptr);var t=a()[o/4+0],r=a()[o/4+1];return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.protocolparamupdate_new();return I_.__wrap(t)}}p.exports.ProtocolParamUpdate=I_;class a_{static __wrap(t){t=t>>>0;const r=Object.create(a_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_protocolversion_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.protocolversion_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolversion_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.protocolversion_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.protocolversion_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return a_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}major(){return _.networkinfo_protocol_magic(this.__wbg_ptr)>>>0}minor(){return _.protocolversion_minor(this.__wbg_ptr)>>>0}static new(t,r){const o=_.protocolversion_new(t,r);return a_.__wrap(o)}}p.exports.ProtocolVersion=a_;class o_{static __wrap(t){t=t>>>0;const r=Object.create(o_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_publickey_free(t)}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.publickey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.publickey_to_bech32(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}as_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.publickey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}verify(t,r){const o=I(t,_.__wbindgen_malloc),n=g;return l(r,wt),_.publickey_verify(this.__wbg_ptr,o,n,r.__wbg_ptr)!==0}hash(){const t=_.publickey_hash(this.__wbg_ptr);return G.__wrap(t)}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.publickey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.publickey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return o_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.PublicKey=o_;class Zr{static __wrap(t){t=t>>>0;const r=Object.create(Zr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_publickeys_free(t)}constructor(){const t=_.ed25519keyhashes_new();return Zr.__wrap(t)}size(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.publickeys_get(this.__wbg_ptr,t);return o_.__wrap(r)}add(t){l(t,o_),_.publickeys_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.PublicKeys=Zr;class $t{static __wrap(t){t=t>>>0;const r=Object.create($t.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemer_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemer_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemer_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemer_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemer_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $t.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=_.redeemer_tag(this.__wbg_ptr);return s_.__wrap(t)}index(){const t=_.redeemer_index(this.__wbg_ptr);return k.__wrap(t)}data(){const t=_.redeemer_data(this.__wbg_ptr);return at.__wrap(t)}ex_units(){const t=_.redeemer_ex_units(this.__wbg_ptr);return dt.__wrap(t)}static new(t,r,o,n){l(t,s_),l(r,k),l(o,at),l(n,dt);const e=_.redeemer_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,n.__wbg_ptr);return $t.__wrap(e)}}p.exports.Redeemer=$t;class s_{static __wrap(t){t=t>>>0;const r=Object.create(s_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemertag_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemertag_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemertag_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemertag_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemertag_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return s_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=_.redeemertag_new_spend();return s_.__wrap(t)}static new_mint(){const t=_.redeemertag_new_mint();return s_.__wrap(t)}static new_cert(){const t=_.redeemertag_new_cert();return s_.__wrap(t)}static new_reward(){const t=_.redeemertag_new_reward();return s_.__wrap(t)}kind(){return _.redeemertag_kind(this.__wbg_ptr)>>>0}}p.exports.RedeemerTag=s_;class b_{static __wrap(t){t=t>>>0;const r=Object.create(b_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_redeemers_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.redeemers_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemers_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.redeemers_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return b_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return b_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.redeemers_get(this.__wbg_ptr,t);return $t.__wrap(r)}add(t){l(t,$t),_.redeemers_add(this.__wbg_ptr,t.__wbg_ptr)}total_ex_units(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.redeemers_total_ex_units(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return dt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.Redeemers=b_;class g_{static __wrap(t){t=t>>>0;const r=Object.create(g_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_relay_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.relay_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relay_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relay_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relay_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return g_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){l(t,tr);const r=_.relay_new_single_host_addr(t.__wbg_ptr);return g_.__wrap(r)}static new_single_host_name(t){l(t,_r);const r=_.relay_new_single_host_name(t.__wbg_ptr);return g_.__wrap(r)}static new_multi_host_name(t){l(t,P_);const r=_.relay_new_multi_host_name(t.__wbg_ptr);return g_.__wrap(r)}kind(){return _.relay_kind(this.__wbg_ptr)>>>0}as_single_host_addr(){const t=_.relay_as_single_host_addr(this.__wbg_ptr);return t===0?void 0:tr.__wrap(t)}as_single_host_name(){const t=_.relay_as_single_host_name(this.__wbg_ptr);return t===0?void 0:_r.__wrap(t)}as_multi_host_name(){const t=_.relay_as_multi_host_name(this.__wbg_ptr);return t===0?void 0:P_.__wrap(t)}}p.exports.Relay=g_;class $_{static __wrap(t){t=t>>>0;const r=Object.create($_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_relays_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.relays_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relays_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.relays_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.relays_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return $_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return $_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.relays_get(this.__wbg_ptr,t);return g_.__wrap(r)}add(t){l(t,g_),_.relays_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Relays=$_;class f_{static __wrap(t){t=t>>>0;const r=Object.create(f_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_rewardaddress_free(t)}static new(t,r){l(r,gt);const o=_.enterpriseaddress_new(t,r.__wbg_ptr);return f_.__wrap(o)}payment_cred(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}to_address(){const t=_.rewardaddress_to_address(this.__wbg_ptr);return nt.__wrap(t)}static from_address(t){l(t,nt);const r=_.rewardaddress_from_address(t.__wbg_ptr);return r===0?void 0:f_.__wrap(r)}}p.exports.RewardAddress=f_;class ur{static __wrap(t){t=t>>>0;const r=Object.create(ur.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_rewardaddresses_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.rewardaddresses_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.rewardaddresses_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.rewardaddresses_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.rewardaddresses_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ur.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return ur.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.rewardaddresses_get(this.__wbg_ptr,t);return f_.__wrap(r)}add(t){l(t,f_),_.rewardaddresses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.RewardAddresses=ur;class G_{static __wrap(t){t=t>>>0;const r=Object.create(G_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptall_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptall_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptall_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptall_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return G_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t){l(t,Ct);const r=_.scriptall_new(t.__wbg_ptr);return G_.__wrap(r)}}p.exports.ScriptAll=G_;class J_{static __wrap(t){t=t>>>0;const r=Object.create(J_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptany_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptany_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptany_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptall_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptany_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptany_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return J_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t){l(t,Ct);const r=_.scriptall_new(t.__wbg_ptr);return J_.__wrap(r)}}p.exports.ScriptAny=J_;class j_{static __wrap(t){t=t>>>0;const r=Object.create(j_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptdatahash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptdatahash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptdatahash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return j_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.ScriptDataHash=j_;class kt{static __wrap(t){t=t>>>0;const r=Object.create(kt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scripthash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scripthash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.ed25519keyhash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return kt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.ScriptHash=kt;class W_{static __wrap(t){t=t>>>0;const r=Object.create(W_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scripthashes_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scripthashes_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scripthashes_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scripthashes_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthashes_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.ed25519keyhashes_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scripthashes_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return W_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return W_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.scripthashes_get(this.__wbg_ptr,t);return kt.__wrap(r)}add(t){l(t,kt),_.ed25519keyhashes_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.ScriptHashes=W_;class X_{static __wrap(t){t=t>>>0;const r=Object.create(X_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptnofk_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptnofk_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptnofk_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptnofk_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptnofk_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return X_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}n(){return _.scriptnofk_n(this.__wbg_ptr)>>>0}native_scripts(){const t=_.scriptall_native_scripts(this.__wbg_ptr);return Ct.__wrap(t)}static new(t,r){l(r,Ct);const o=_.scriptnofk_new(t,r.__wbg_ptr);return X_.__wrap(o)}}p.exports.ScriptNOfK=X_;class Z_{static __wrap(t){t=t>>>0;const r=Object.create(Z_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptpubkey_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptpubkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptpubkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptpubkey_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptpubkey_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Z_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=_.scriptpubkey_addr_keyhash(this.__wbg_ptr);return G.__wrap(t)}static new(t){l(t,G);const r=_.scriptpubkey_new(t.__wbg_ptr);return Z_.__wrap(r)}}p.exports.ScriptPubkey=Z_;class u_{static __wrap(t){t=t>>>0;const r=Object.create(u_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_scriptref_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.scriptref_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptref_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.scriptref_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.scriptref_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return u_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_native_script(t){l(t,yt);const r=_.scriptref_new_native_script(t.__wbg_ptr);return u_.__wrap(r)}static new_plutus_script(t){l(t,Dt);const r=_.scriptref_new_plutus_script(t.__wbg_ptr);return u_.__wrap(r)}is_native_script(){return _.scriptref_is_native_script(this.__wbg_ptr)!==0}is_plutus_script(){return _.scriptref_is_plutus_script(this.__wbg_ptr)!==0}native_script(){const t=_.scriptref_native_script(this.__wbg_ptr);return t===0?void 0:yt.__wrap(t)}plutus_script(){const t=_.scriptref_plutus_script(this.__wbg_ptr);return t===0?void 0:Dt.__wrap(t)}}p.exports.ScriptRef=u_;class Hr{static __wrap(t){t=t>>>0;const r=Object.create(Hr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_serializedaddress_free(t)}static new(t,r,o){const n=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g,i=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g,b=u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),c=g,S=_.serializedaddress_new(n,e,i,s,b,c);return Hr.__wrap(S)}get_pub_key_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_pub_key_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}get_script_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_script_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}get_stake_key_hash(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.serializedaddress_get_stake_key_hash(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.SerializedAddress=Hr;class tr{static __wrap(t){t=t>>>0;const r=Object.create(tr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_singlehostaddr_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.singlehostaddr_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostaddr_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostaddr_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostaddr_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return tr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}port(){const t=_.singlehostaddr_port(this.__wbg_ptr);return t===16777215?void 0:t}ipv4(){const t=_.singlehostaddr_ipv4(this.__wbg_ptr);return t===0?void 0:T_.__wrap(t)}ipv6(){const t=_.singlehostaddr_ipv6(this.__wbg_ptr);return t===0?void 0:N_.__wrap(t)}static new(t,r,o){let n=0;it(r)||(l(r,T_),n=r.__destroy_into_raw());let e=0;it(o)||(l(o,N_),e=o.__destroy_into_raw());const i=_.singlehostaddr_new(it(t)?16777215:t,n,e);return tr.__wrap(i)}}p.exports.SingleHostAddr=tr;class _r{static __wrap(t){t=t>>>0;const r=Object.create(_r.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_singlehostname_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.singlehostname_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostname_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.singlehostname_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.singlehostname_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return _r.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}port(){const t=_.singlehostname_port(this.__wbg_ptr);return t===16777215?void 0:t}dns_name(){const t=_.multihostname_dns_name(this.__wbg_ptr);return Q.__wrap(t)}static new(t,r){l(r,Q);const o=_.singlehostname_new(it(t)?16777215:t,r.__wbg_ptr);return _r.__wrap(o)}}p.exports.SingleHostName=_r;class gt{static __wrap(t){t=t>>>0;const r=Object.create(gt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakecredential_free(t)}static from_keyhash(t){l(t,G);const r=_.stakecredential_from_keyhash(t.__wbg_ptr);return gt.__wrap(r)}static from_scripthash(t){l(t,kt);const r=_.stakecredential_from_scripthash(t.__wbg_ptr);return gt.__wrap(r)}to_keyhash(){const t=_.stakecredential_to_keyhash(this.__wbg_ptr);return t===0?void 0:G.__wrap(t)}to_scripthash(){const t=_.stakecredential_to_scripthash(this.__wbg_ptr);return t===0?void 0:kt.__wrap(t)}kind(){return _.networkid_kind(this.__wbg_ptr)>>>0}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakecredential_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredential_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredential_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredential_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return gt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.StakeCredential=gt;class hr{static __wrap(t){t=t>>>0;const r=Object.create(hr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakecredentials_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakecredentials_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredentials_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakecredentials_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakecredentials_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return hr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return hr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.stakecredentials_get(this.__wbg_ptr,t);return gt.__wrap(r)}add(t){l(t,gt),_.stakecredentials_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.StakeCredentials=hr;class rr{static __wrap(t){t=t>>>0;const r=Object.create(rr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakedelegation_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakedelegation_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakedelegation_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakedelegation_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakedelegation_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}pool_keyhash(){const t=_.stakedelegation_pool_keyhash(this.__wbg_ptr);return G.__wrap(t)}static new(t,r){l(t,gt),l(r,G);const o=_.stakedelegation_new(t.__wbg_ptr,r.__wbg_ptr);return rr.__wrap(o)}}p.exports.StakeDelegation=rr;class er{static __wrap(t){t=t>>>0;const r=Object.create(er.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakederegistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakederegistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakederegistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakederegistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return er.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}static new(t){l(t,gt);const r=_.stakederegistration_new(t.__wbg_ptr);return er.__wrap(r)}}p.exports.StakeDeregistration=er;class nr{static __wrap(t){t=t>>>0;const r=Object.create(nr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_stakeregistration_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.stakeregistration_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakeregistration_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.stakederegistration_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.stakeregistration_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.stakeregistration_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return nr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=_.baseaddress_payment_cred(this.__wbg_ptr);return gt.__wrap(t)}static new(t){l(t,gt);const r=_.stakederegistration_new(t.__wbg_ptr);return nr.__wrap(r)}}p.exports.StakeRegistration=nr;class te{static __wrap(t){t=t>>>0;const r=Object.create(te.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_strings_free(t)}static new(){const t=_.assetnames_new();return te.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){let r,o;try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.strings_get(i,this.__wbg_ptr,t);var n=a()[i/4+0],e=a()[i/4+1];return r=n,o=e,h(n,e)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}add(t){const r=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=g;_.strings_add(this.__wbg_ptr,r,o)}}p.exports.Strings=te;class C_{static __wrap(t){t=t>>>0;const r=Object.create(C_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_timelockexpiry_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.timelockexpiry_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockexpiry_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockexpiry_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return C_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}static new(t){const r=_.timelockexpiry_new(t);return C_.__wrap(r)}static new_timelockexpiry(t){l(t,k);const r=_.exunits_mem(t.__wbg_ptr);return C_.__wrap(r)}}p.exports.TimelockExpiry=C_;class E_{static __wrap(t){t=t>>>0;const r=Object.create(E_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_timelockstart_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.timelockstart_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockstart_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockstart_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.timelockstart_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return E_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.timelockexpiry_slot(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}slot_bignum(){const t=_.linearfee_constant(this.__wbg_ptr);return k.__wrap(t)}static new(t){const r=_.timelockexpiry_new(t);return E_.__wrap(r)}static new_timelockstart(t){l(t,k);const r=_.exunits_mem(t.__wbg_ptr);return E_.__wrap(r)}}p.exports.TimelockStart=E_;class i_{static __wrap(t){t=t>>>0;const r=Object.create(i_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transaction_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transaction_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transaction_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transaction_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transaction_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return i_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}body(){const t=_.fixedtransaction_body(this.__wbg_ptr);return Pt.__wrap(t)}witness_set(){const t=_.transaction_witness_set(this.__wbg_ptr);return c_.__wrap(t)}is_valid(){return _.transaction_is_valid(this.__wbg_ptr)!==0}auxiliary_data(){const t=_.transaction_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}set_is_valid(t){_.transaction_set_is_valid(this.__wbg_ptr,t)}static new(t,r,o){l(t,Pt),l(r,c_);let n=0;it(o)||(l(o,Bt),n=o.__destroy_into_raw());const e=_.transaction_new(t.__wbg_ptr,r.__wbg_ptr,n);return i_.__wrap(e)}}p.exports.Transaction=i_;class _e{static __wrap(t){t=t>>>0;const r=Object.create(_e.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbatch_free(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbatch_get(this.__wbg_ptr,t);return i_.__wrap(r)}}p.exports.TransactionBatch=_e;class re{static __wrap(t){t=t>>>0;const r=Object.create(re.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbatchlist_free(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbatchlist_get(this.__wbg_ptr,t);return _e.__wrap(r)}}p.exports.TransactionBatchList=re;class ar{static __wrap(t){t=t>>>0;const r=Object.create(ar.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbodies_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionbodies_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbodies_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbodies_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbodies_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return ar.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionbodies_get(this.__wbg_ptr,t);return Pt.__wrap(r)}add(t){l(t,Pt),_.transactionbodies_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionBodies=ar;class Pt{static __wrap(t){t=t>>>0;const r=Object.create(Pt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbody_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionbody_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbody_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbody_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=_.transactionbody_inputs(this.__wbg_ptr);return Ot.__wrap(t)}outputs(){const t=_.transactionbody_outputs(this.__wbg_ptr);return S_.__wrap(t)}fee(){const t=_.transactionbody_fee(this.__wbg_ptr);return k.__wrap(t)}ttl(){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_ttl(e,this.__wbg_ptr);var t=a()[e/4+0],r=a()[e/4+1],o=a()[e/4+2],n=a()[e/4+3];if(n)throw d(o);return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}ttl_bignum(){const t=_.transactionbody_ttl_bignum(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}set_ttl(t){l(t,k),_.protocolparamupdate_set_minfee_a(this.__wbg_ptr,t.__wbg_ptr)}remove_ttl(){_.transactionbody_remove_ttl(this.__wbg_ptr)}set_certs(t){l(t,F),_.transactionbody_set_certs(this.__wbg_ptr,t.__wbg_ptr)}certs(){const t=_.transactionbody_certs(this.__wbg_ptr);return t===0?void 0:F.__wrap(t)}set_withdrawals(t){l(t,Q_),_.transactionbody_set_withdrawals(this.__wbg_ptr,t.__wbg_ptr)}withdrawals(){const t=_.transactionbody_withdrawals(this.__wbg_ptr);return t===0?void 0:Q_.__wrap(t)}set_update(t){l(t,dr),_.transactionbody_set_update(this.__wbg_ptr,t.__wbg_ptr)}update(){const t=_.transactionbody_update(this.__wbg_ptr);return t===0?void 0:dr.__wrap(t)}set_auxiliary_data_hash(t){l(t,Gt),_.transactionbody_set_auxiliary_data_hash(this.__wbg_ptr,t.__wbg_ptr)}auxiliary_data_hash(){const t=_.transactionbody_auxiliary_data_hash(this.__wbg_ptr);return t===0?void 0:Gt.__wrap(t)}set_validity_start_interval(t){_.transactionbody_set_validity_start_interval(this.__wbg_ptr,t)}set_validity_start_interval_bignum(t){l(t,k);var r=t.__destroy_into_raw();_.transactionbody_set_validity_start_interval_bignum(this.__wbg_ptr,r)}validity_start_interval_bignum(){const t=_.protocolparamupdate_minfee_b(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}validity_start_interval(){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbody_validity_start_interval(e,this.__wbg_ptr);var t=a()[e/4+0],r=a()[e/4+1],o=a()[e/4+2],n=a()[e/4+3];if(n)throw d(o);return t===0?void 0:r>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_mint(t){l(t,Xt),_.transactionbody_set_mint(this.__wbg_ptr,t.__wbg_ptr)}mint(){const t=_.transactionbody_mint(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}multiassets(){const t=_.transactionbody_multiassets(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}set_reference_inputs(t){l(t,Ot),_.transactionbody_set_reference_inputs(this.__wbg_ptr,t.__wbg_ptr)}reference_inputs(){const t=_.transactionbody_reference_inputs(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}set_script_data_hash(t){l(t,j_),_.transactionbody_set_script_data_hash(this.__wbg_ptr,t.__wbg_ptr)}script_data_hash(){const t=_.transactionbody_script_data_hash(this.__wbg_ptr);return t===0?void 0:j_.__wrap(t)}set_collateral(t){l(t,Ot),_.transactionbody_set_collateral(this.__wbg_ptr,t.__wbg_ptr)}collateral(){const t=_.transactionbody_collateral(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}set_required_signers(t){l(t,_t),_.transactionbody_set_required_signers(this.__wbg_ptr,t.__wbg_ptr)}required_signers(){const t=_.transactionbody_required_signers(this.__wbg_ptr);return t===0?void 0:_t.__wrap(t)}set_network_id(t){l(t,x_),_.transactionbody_set_network_id(this.__wbg_ptr,t.__wbg_ptr)}network_id(){const t=_.transactionbody_network_id(this.__wbg_ptr);return t===0?void 0:x_.__wrap(t)}set_collateral_return(t){l(t,Tt),_.transactionbody_set_collateral_return(this.__wbg_ptr,t.__wbg_ptr)}collateral_return(){const t=_.transactionbody_collateral_return(this.__wbg_ptr);return t===0?void 0:Tt.__wrap(t)}set_total_collateral(t){l(t,k),_.protocolparamupdate_set_key_deposit(this.__wbg_ptr,t.__wbg_ptr)}total_collateral(){const t=_.protocolparamupdate_key_deposit(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}static new(t,r,o,n){l(t,Ot),l(r,S_),l(o,k);const e=_.transactionbody_new(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr,!it(n),it(n)?0:n);return Pt.__wrap(e)}static new_tx_body(t,r,o){l(t,Ot),l(r,S_),l(o,k);const n=_.transactionbody_new_tx_body(t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);return Pt.__wrap(n)}}p.exports.TransactionBody=Pt;class ee{static __wrap(t){t=t>>>0;const r=Object.create(ee.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilder_free(t)}add_inputs_from(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ir),_.transactionbuilder_add_inputs_from(e,this.__wbg_ptr,t.__wbg_ptr,r);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_inputs(t){l(t,Nr),_.transactionbuilder_set_inputs(this.__wbg_ptr,t.__wbg_ptr)}set_collateral(t){l(t,Nr),_.transactionbuilder_set_collateral(this.__wbg_ptr,t.__wbg_ptr)}set_collateral_return(t){l(t,Tt),_.transactionbuilder_set_collateral_return(this.__wbg_ptr,t.__wbg_ptr)}set_collateral_return_and_total(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_set_collateral_return_and_total(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_total_collateral(t){l(t,k),_.transactionbuilder_set_total_collateral(this.__wbg_ptr,t.__wbg_ptr)}set_total_collateral_and_return(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k),l(r,nt),_.transactionbuilder_set_total_collateral_and_return(e,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_reference_input(t){l(t,pt),_.transactionbuilder_add_reference_input(this.__wbg_ptr,t.__wbg_ptr)}add_key_input(t,r,o){l(t,G),l(r,pt),l(o,rt),_.transactionbuilder_add_key_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_script_input(t,r,o){l(t,kt),l(r,pt),l(o,rt),_.transactionbuilder_add_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_native_script_input(t,r,o){l(t,yt),l(r,pt),l(o,rt),_.transactionbuilder_add_native_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_plutus_script_input(t,r,o){l(t,n_),l(r,pt),l(o,rt),_.transactionbuilder_add_plutus_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_bootstrap_input(t,r,o){l(t,E),l(r,pt),l(o,rt),_.transactionbuilder_add_bootstrap_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_input(t,r,o){l(t,nt),l(r,pt),l(o,rt),_.transactionbuilder_add_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}count_missing_input_scripts(){return _.transactionbuilder_count_missing_input_scripts(this.__wbg_ptr)>>>0}add_required_native_input_scripts(t){return l(t,Ct),_.transactionbuilder_add_required_native_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_plutus_input_scripts(t){return l(t,z_),_.transactionbuilder_add_required_plutus_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}get_native_input_scripts(){const t=_.transactionbuilder_get_native_input_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}get_plutus_input_scripts(){const t=_.transactionbuilder_get_plutus_input_scripts(this.__wbg_ptr);return t===0?void 0:z_.__wrap(t)}fee_for_input(t,r,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),l(r,pt),l(o,rt),_.transactionbuilder_fee_for_input(s,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr);var n=a()[s/4+0],e=a()[s/4+1],i=a()[s/4+2];if(i)throw d(e);return k.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_add_output(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}fee_for_output(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Tt),_.transactionbuilder_fee_for_output(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return k.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_fee(t){l(t,k),_.transactionbuilder_set_fee(this.__wbg_ptr,t.__wbg_ptr)}set_ttl(t){_.transactionbuilder_set_ttl(this.__wbg_ptr,t)}set_ttl_bignum(t){l(t,k),_.transactionbuilder_set_ttl_bignum(this.__wbg_ptr,t.__wbg_ptr)}set_validity_start_interval(t){_.transactionbuilder_set_validity_start_interval(this.__wbg_ptr,t)}set_validity_start_interval_bignum(t){l(t,k);var r=t.__destroy_into_raw();_.transactionbuilder_set_validity_start_interval_bignum(this.__wbg_ptr,r)}set_certs(t){l(t,F),_.transactionbuilder_set_certs(this.__wbg_ptr,t.__wbg_ptr)}set_withdrawals(t){l(t,Q_),_.transactionbuilder_set_withdrawals(this.__wbg_ptr,t.__wbg_ptr)}get_auxiliary_data(){const t=_.transactionbuilder_get_auxiliary_data(this.__wbg_ptr);return t===0?void 0:Bt.__wrap(t)}set_auxiliary_data(t){l(t,Bt),_.transactionbuilder_set_auxiliary_data(this.__wbg_ptr,t.__wbg_ptr)}set_metadata(t){l(t,Nt),_.transactionbuilder_set_metadata(this.__wbg_ptr,t.__wbg_ptr)}add_metadatum(t,r){l(t,k),l(r,ct),_.transactionbuilder_add_metadatum(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr)}add_json_metadatum(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,k);const i=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionbuilder_add_json_metadatum(e,this.__wbg_ptr,t.__wbg_ptr,i,s);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,r,o){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,k);const s=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),b=g;_.transactionbuilder_add_json_metadatum_with_schema(i,this.__wbg_ptr,t.__wbg_ptr,s,b,o);var n=a()[i/4+0],e=a()[i/4+1];if(e)throw d(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_mint_builder(t){l(t,Qr),_.transactionbuilder_set_mint_builder(this.__wbg_ptr,t.__wbg_ptr)}get_mint_builder(){const t=_.transactionbuilder_get_mint_builder(this.__wbg_ptr);return t===0?void 0:Qr.__wrap(t)}set_mint(t,r){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,Xt),l(r,Ct),_.transactionbuilder_set_mint(e,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];if(n)throw d(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_mint(){const t=_.transactionbuilder_get_mint(this.__wbg_ptr);return t===0?void 0:Xt.__wrap(t)}get_mint_scripts(){const t=_.transactionbuilder_get_mint_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_mint_asset(t,r){l(t,yt),l(r,m_),_.transactionbuilder_set_mint_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr)}add_mint_asset(t,r,o){l(t,yt),l(r,ht),l(o,bt);var n=o.__destroy_into_raw();_.transactionbuilder_add_mint_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n)}add_mint_asset_and_output(t,r,o,n,e){try{const c=_.__wbindgen_add_to_stack_pointer(-16);l(t,yt),l(r,ht),l(o,bt);var i=o.__destroy_into_raw();l(n,h_),l(e,k),_.transactionbuilder_add_mint_asset_and_output(c,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,i,n.__wbg_ptr,e.__wbg_ptr);var s=a()[c/4+0],b=a()[c/4+1];if(b)throw d(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_mint_asset_and_output_min_required_coin(t,r,o,n){try{const b=_.__wbindgen_add_to_stack_pointer(-16);l(t,yt),l(r,ht),l(o,bt);var e=o.__destroy_into_raw();l(n,h_),_.transactionbuilder_add_mint_asset_and_output_min_required_coin(b,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,e,n.__wbg_ptr);var i=a()[b/4+0],s=a()[b/4+1];if(s)throw d(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,Tr);const r=_.transactionbuilder_new(t.__wbg_ptr);return ee.__wrap(r)}get_reference_inputs(){const t=_.transactionbuilder_get_reference_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_explicit_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_explicit_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_implicit_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_total_input(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_total_output(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_explicit_output(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_get_deposit(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return k.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=_.transactionbuilder_get_fee_if_set(this.__wbg_ptr);return t===0?void 0:k.__wrap(t)}add_change_if_needed(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),_.transactionbuilder_add_change_if_needed(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return r!==0}finally{_.__wbindgen_add_to_stack_pointer(16)}}add_change_if_needed_with_datum(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,nt),l(r,Dr),_.transactionbuilder_add_change_if_needed_with_datum(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return o!==0}finally{_.__wbindgen_add_to_stack_pointer(16)}}calc_script_data_hash(t){try{const n=_.__wbindgen_add_to_stack_pointer(-16);l(t,M),_.transactionbuilder_calc_script_data_hash(n,this.__wbg_ptr,t.__wbg_ptr);var r=a()[n/4+0],o=a()[n/4+1];if(o)throw d(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_script_data_hash(t){l(t,j_),_.transactionbuilder_set_script_data_hash(this.__wbg_ptr,t.__wbg_ptr)}remove_script_data_hash(){_.transactionbuilder_remove_script_data_hash(this.__wbg_ptr)}add_required_signer(t){l(t,G),_.transactionbuilder_add_required_signer(this.__wbg_ptr,t.__wbg_ptr)}full_size(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_full_size(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return t>>>0}finally{_.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_output_sizes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=At(t,r).slice();return _.__wbindgen_free(t,r*4),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Pt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build_tx(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build_tx(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return i_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build_tx_unsafe(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_build_tx_unsafe(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return i_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilder_min_fee(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return k.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionBuilder=ee;class Tr{static __wrap(t){t=t>>>0;const r=Object.create(Tr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilderconfig_free(t)}}p.exports.TransactionBuilderConfig=Tr;class __{static __wrap(t){t=t>>>0;const r=Object.create(__.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=_.transactionbuilderconfigbuilder_new();return __.__wrap(t)}fee_algo(t){l(t,Or);const r=_.transactionbuilderconfigbuilder_fee_algo(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}coins_per_utxo_word(t){l(t,k);const r=_.transactionbuilderconfigbuilder_coins_per_utxo_word(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}coins_per_utxo_byte(t){l(t,k);const r=_.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}ex_unit_prices(t){l(t,xt);const r=_.transactionbuilderconfigbuilder_ex_unit_prices(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}pool_deposit(t){l(t,k);const r=_.transactionbuilderconfigbuilder_pool_deposit(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}key_deposit(t){l(t,k);const r=_.transactionbuilderconfigbuilder_key_deposit(this.__wbg_ptr,t.__wbg_ptr);return __.__wrap(r)}max_value_size(t){const r=_.transactionbuilderconfigbuilder_max_value_size(this.__wbg_ptr,t);return __.__wrap(r)}max_tx_size(t){const r=_.transactionbuilderconfigbuilder_max_tx_size(this.__wbg_ptr,t);return __.__wrap(r)}prefer_pure_change(t){const r=_.transactionbuilderconfigbuilder_prefer_pure_change(this.__wbg_ptr,t);return __.__wrap(r)}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionbuilderconfigbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Tr.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionBuilderConfigBuilder=__;class d_{static __wrap(t){t=t>>>0;const r=Object.create(d_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return d_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionHash=d_;class pt{static __wrap(t){t=t>>>0;const r=Object.create(pt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactioninput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactioninput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=_.transactioninput_transaction_id(this.__wbg_ptr);return d_.__wrap(t)}index(){return _.transactioninput_index(this.__wbg_ptr)>>>0}static new(t,r){l(t,d_);const o=_.transactioninput_new(t.__wbg_ptr,r);return pt.__wrap(o)}}p.exports.TransactionInput=pt;class Ot{static __wrap(t){t=t>>>0;const r=Object.create(Ot.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactioninputs_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactioninputs_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninputs_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactioninputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactioninputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ot.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return Ot.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactioninputs_get(this.__wbg_ptr,t);return pt.__wrap(r)}add(t){l(t,pt),_.transactioninputs_add(this.__wbg_ptr,t.__wbg_ptr)}to_option(){const t=_.transactioninputs_to_option(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}}p.exports.TransactionInputs=Ot;class ct{static __wrap(t){t=t>>>0;const r=Object.create(ct.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatum_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatum_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){l(t,lr);const r=_.transactionmetadatum_new_map(t.__wbg_ptr);return ct.__wrap(r)}static new_list(t){l(t,F_);const r=_.transactionmetadatum_new_list(t.__wbg_ptr);return ct.__wrap(r)}static new_int(t){l(t,bt);const r=_.transactionmetadatum_new_int(t.__wbg_ptr);return ct.__wrap(r)}static new_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatum_new_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatum_new_text(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ct.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}kind(){return _.plutusdata_kind(this.__wbg_ptr)>>>0}as_map(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_map(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return lr.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_list(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return F_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_int(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return bt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_bytes(i,this.__wbg_ptr);var t=a()[i/4+0],r=a()[i/4+1],o=a()[i/4+2],n=a()[i/4+3];if(n)throw d(o);var e=C(t,r).slice();return _.__wbindgen_free(t,r*1),e}finally{_.__wbindgen_add_to_stack_pointer(16)}}as_text(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatum_as_text(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.TransactionMetadatum=ct;class Ar{static __wrap(t){t=t>>>0;const r=Object.create(Ar.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatumlabels_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionmetadatumlabels_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionmetadatumlabels_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionmetadatumlabels_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ar.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return Ar.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionmetadatumlabels_get(this.__wbg_ptr,t);return k.__wrap(r)}add(t){l(t,k),_.transactionmetadatumlabels_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionMetadatumLabels=Ar;class Tt{static __wrap(t){t=t>>>0;const r=Object.create(Tt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionoutput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Tt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}address(){const t=_.transactionoutput_address(this.__wbg_ptr);return nt.__wrap(t)}amount(){const t=_.transactionoutput_amount(this.__wbg_ptr);return rt.__wrap(t)}data_hash(){const t=_.transactionoutput_data_hash(this.__wbg_ptr);return t===0?void 0:U.__wrap(t)}plutus_data(){const t=_.transactionoutput_plutus_data(this.__wbg_ptr);return t===0?void 0:at.__wrap(t)}script_ref(){const t=_.transactionoutput_script_ref(this.__wbg_ptr);return t===0?void 0:u_.__wrap(t)}set_script_ref(t){l(t,u_),_.transactionoutput_set_script_ref(this.__wbg_ptr,t.__wbg_ptr)}set_plutus_data(t){l(t,at),_.transactionoutput_set_plutus_data(this.__wbg_ptr,t.__wbg_ptr)}set_data_hash(t){l(t,U),_.transactionoutput_set_data_hash(this.__wbg_ptr,t.__wbg_ptr)}has_plutus_data(){return _.transactionoutput_has_plutus_data(this.__wbg_ptr)!==0}has_data_hash(){return _.transactionoutput_has_data_hash(this.__wbg_ptr)!==0}has_script_ref(){return _.transactionoutput_has_script_ref(this.__wbg_ptr)!==0}static new(t,r){l(t,nt),l(r,rt);const o=_.transactionoutput_new(t.__wbg_ptr,r.__wbg_ptr);return Tt.__wrap(o)}serialization_format(){const t=_.transactionoutput_serialization_format(this.__wbg_ptr);return t===2?void 0:t}}p.exports.TransactionOutput=Tt;class h_{static __wrap(t){t=t>>>0;const r=Object.create(h_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){l(t,rt);const r=_.transactionoutputamountbuilder_with_value(this.__wbg_ptr,t.__wbg_ptr);return h_.__wrap(r)}with_coin(t){l(t,k);const r=_.transactionoutputamountbuilder_with_coin(this.__wbg_ptr,t.__wbg_ptr);return h_.__wrap(r)}with_coin_and_asset(t,r){l(t,k),l(r,Ft);const o=_.transactionoutputamountbuilder_with_coin_and_asset(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return h_.__wrap(o)}with_asset_and_min_required_coin(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ft),l(r,k),_.transactionoutputamountbuilder_with_asset_and_min_required_coin(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return h_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}with_asset_and_min_required_coin_by_utxo_cost(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16);l(t,Ft),l(r,P),_.transactionoutputamountbuilder_with_asset_and_min_required_coin_by_utxo_cost(i,this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return h_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}build(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputamountbuilder_build(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return Tt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionOutputAmountBuilder=h_;class yr{static __wrap(t){t=t>>>0;const r=Object.create(yr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputbuilder_free(t)}static new(){const t=_.transactionoutputbuilder_new();return yr.__wrap(t)}with_address(t){l(t,nt);const r=_.transactionoutputbuilder_with_address(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_data_hash(t){l(t,U);const r=_.transactionoutputbuilder_with_data_hash(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_plutus_data(t){l(t,at);const r=_.transactionoutputbuilder_with_plutus_data(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}with_script_ref(t){l(t,u_);const r=_.transactionoutputbuilder_with_script_ref(this.__wbg_ptr,t.__wbg_ptr);return yr.__wrap(r)}next(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputbuilder_next(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return h_.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.TransactionOutputBuilder=yr;class S_{static __wrap(t){t=t>>>0;const r=Object.create(S_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionoutputs_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionoutputs_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutputs_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionoutputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionoutputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return S_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return S_.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionoutputs_get(this.__wbg_ptr,t);return Tt.__wrap(r)}add(t){l(t,Tt),_.transactionoutputs_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionOutputs=S_;class or{static __wrap(t){t=t>>>0;const r=Object.create(or.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionunspentoutput_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutput_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutput_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutput_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return or.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){l(t,pt),l(r,Tt);const o=_.transactionunspentoutput_new(t.__wbg_ptr,r.__wbg_ptr);return or.__wrap(o)}input(){const t=_.transactionunspentoutput_input(this.__wbg_ptr);return pt.__wrap(t)}output(){const t=_.transactionunspentoutput_output(this.__wbg_ptr);return Tt.__wrap(t)}}p.exports.TransactionUnspentOutput=or;class Ir{static __wrap(t){t=t>>>0;const r=Object.create(Ir.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionunspentoutputs_free(t)}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutputs_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionunspentoutputs_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionunspentoutputs_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.certificates_new();return Ir.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionunspentoutputs_get(this.__wbg_ptr,t);return or.__wrap(r)}add(t){l(t,or),_.transactionunspentoutputs_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionUnspentOutputs=Ir;class c_{static __wrap(t){t=t>>>0;const r=Object.create(c_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionwitnessset_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnessset_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnessset_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnessset_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return c_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){l(t,pr),_.transactionwitnessset_set_vkeys(this.__wbg_ptr,t.__wbg_ptr)}vkeys(){const t=_.transactionwitnessset_vkeys(this.__wbg_ptr);return t===0?void 0:pr.__wrap(t)}set_native_scripts(t){l(t,Ct),_.transactionwitnessset_set_native_scripts(this.__wbg_ptr,t.__wbg_ptr)}native_scripts(){const t=_.transactionwitnessset_native_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}set_bootstraps(t){l(t,j),_.transactionwitnessset_set_bootstraps(this.__wbg_ptr,t.__wbg_ptr)}bootstraps(){const t=_.transactionwitnessset_bootstraps(this.__wbg_ptr);return t===0?void 0:j.__wrap(t)}set_plutus_scripts(t){l(t,w_),_.transactionwitnessset_set_plutus_scripts(this.__wbg_ptr,t.__wbg_ptr)}plutus_scripts(){const t=_.transactionwitnessset_plutus_scripts(this.__wbg_ptr);return t===0?void 0:w_.__wrap(t)}set_plutus_data(t){l(t,Zt),_.transactionwitnessset_set_plutus_data(this.__wbg_ptr,t.__wbg_ptr)}plutus_data(){const t=_.transactionwitnessset_plutus_data(this.__wbg_ptr);return t===0?void 0:Zt.__wrap(t)}set_redeemers(t){l(t,b_),_.transactionwitnessset_set_redeemers(this.__wbg_ptr,t.__wbg_ptr)}redeemers(){const t=_.transactionwitnessset_redeemers(this.__wbg_ptr);return t===0?void 0:b_.__wrap(t)}static new(){const t=_.transactionwitnessset_new();return c_.__wrap(t)}}p.exports.TransactionWitnessSet=c_;class sr{static __wrap(t){t=t>>>0;const r=Object.create(sr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.transactionwitnesssets_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnesssets_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.transactionwitnesssets_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.transactionwitnesssets_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return sr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.assetnames_new();return sr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.transactionwitnesssets_get(this.__wbg_ptr,t);return c_.__wrap(r)}add(t){l(t,c_),_.transactionwitnesssets_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.TransactionWitnessSets=sr;class Ze{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_txbuilderconstants_free(t)}static plutus_default_cost_models(){const t=_.txbuilderconstants_plutus_default_cost_models();return M.__wrap(t)}static plutus_alonzo_cost_models(){const t=_.txbuilderconstants_plutus_alonzo_cost_models();return M.__wrap(t)}static plutus_vasil_cost_models(){const t=_.txbuilderconstants_plutus_default_cost_models();return M.__wrap(t)}}p.exports.TxBuilderConstants=Ze;class Nr{static __wrap(t){t=t>>>0;const r=Object.create(Nr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_txinputsbuilder_free(t)}static new(){const t=_.txinputsbuilder_new();return Nr.__wrap(t)}add_key_input(t,r,o){l(t,G),l(r,pt),l(o,rt),_.txinputsbuilder_add_key_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_script_input(t,r,o){l(t,kt),l(r,pt),l(o,rt),_.txinputsbuilder_add_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_native_script_input(t,r,o){l(t,yt),l(r,pt),l(o,rt),_.txinputsbuilder_add_native_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_plutus_script_input(t,r,o){l(t,n_),l(r,pt),l(o,rt),_.txinputsbuilder_add_plutus_script_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_bootstrap_input(t,r,o){l(t,E),l(r,pt),l(o,rt),_.txinputsbuilder_add_bootstrap_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}add_input(t,r,o){l(t,nt),l(r,pt),l(o,rt),_.txinputsbuilder_add_input(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o.__wbg_ptr)}count_missing_input_scripts(){return _.txinputsbuilder_count_missing_input_scripts(this.__wbg_ptr)>>>0}add_required_native_input_scripts(t){return l(t,Ct),_.txinputsbuilder_add_required_native_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_plutus_input_scripts(t){return l(t,z_),_.txinputsbuilder_add_required_plutus_input_scripts(this.__wbg_ptr,t.__wbg_ptr)>>>0}add_required_script_input_witnesses(t){return l(t,Ht),_.txinputsbuilder_add_required_script_input_witnesses(this.__wbg_ptr,t.__wbg_ptr)>>>0}get_ref_inputs(){const t=_.txinputsbuilder_get_ref_inputs(this.__wbg_ptr);return Ot.__wrap(t)}get_native_input_scripts(){const t=_.txinputsbuilder_get_native_input_scripts(this.__wbg_ptr);return t===0?void 0:Ct.__wrap(t)}get_plutus_input_scripts(){const t=_.txinputsbuilder_get_plutus_input_scripts(this.__wbg_ptr);return t===0?void 0:z_.__wrap(t)}len(){return _.txinputsbuilder_len(this.__wbg_ptr)>>>0}add_required_signer(t){l(t,G),_.txinputsbuilder_add_required_signer(this.__wbg_ptr,t.__wbg_ptr)}add_required_signers(t){l(t,_t),_.txinputsbuilder_add_required_signers(this.__wbg_ptr,t.__wbg_ptr)}total_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.txinputsbuilder_total_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return rt.__wrap(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=_.txinputsbuilder_inputs(this.__wbg_ptr);return Ot.__wrap(t)}inputs_option(){const t=_.txinputsbuilder_inputs_option(this.__wbg_ptr);return t===0?void 0:Ot.__wrap(t)}}p.exports.TxInputsBuilder=Nr;class ir{static __wrap(t){t=t>>>0;const r=Object.create(ir.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_url_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.url_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.url_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.url_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.url_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.dnsrecordaoraaaa_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.url_new(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return ir.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}url(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.dnsrecordaoraaaa_record(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}}p.exports.URL=ir;class Qt{static __wrap(t){t=t>>>0;const r=Object.create(Qt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_unitinterval_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.unitinterval_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.unitinterval_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.unitinterval_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.unitinterval_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Qt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=_.exunits_mem(this.__wbg_ptr);return k.__wrap(t)}denominator(){const t=_.exunits_steps(this.__wbg_ptr);return k.__wrap(t)}static new(t,r){l(t,k),l(r,k);const o=_.exunits_new(t.__wbg_ptr,r.__wbg_ptr);return Qt.__wrap(o)}}p.exports.UnitInterval=Qt;class dr{static __wrap(t){t=t>>>0;const r=Object.create(dr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_update_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.update_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.update_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.update_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.update_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return dr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=_.update_proposed_protocol_parameter_updates(this.__wbg_ptr);return Y_.__wrap(t)}epoch(){return _.update_epoch(this.__wbg_ptr)>>>0}static new(t,r){l(t,Y_);const o=_.update_new(t.__wbg_ptr,r);return dr.__wrap(o)}}p.exports.Update=dr;class p_{static __wrap(t){t=t>>>0;const r=Object.create(p_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfcert_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfcert_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfcert_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vrfcert_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfcert_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return p_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}output(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.assetname_name(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.bootstrapwitness_attributes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){try{const i=_.__wbindgen_add_to_stack_pointer(-16),s=I(t,_.__wbindgen_malloc),b=g,c=I(r,_.__wbindgen_malloc),S=g;_.vrfcert_new(i,s,b,c,S);var o=a()[i/4+0],n=a()[i/4+1],e=a()[i/4+2];if(e)throw d(n);return p_.__wrap(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFCert=p_;class B_{static __wrap(t){t=t>>>0;const r=Object.create(B_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfkeyhash_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfkeyhash_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfkeyhash_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return B_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFKeyHash=B_;class cr{static __wrap(t){t=t>>>0;const r=Object.create(cr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vrfvkey_free(t)}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vrfvkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){let r,o;try{const S=_.__wbindgen_add_to_stack_pointer(-16),Y=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),W=g;_.auxiliarydatahash_to_bech32(S,this.__wbg_ptr,Y,W);var n=a()[S/4+0],e=a()[S/4+1],i=a()[S/4+2],s=a()[S/4+3],b=n,c=e;if(s)throw b=0,c=0,d(i);return r=b,o=c,h(b,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(r,o,1)}}static from_bech32(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfvkey_from_bech32(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.auxiliarydatahash_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vrfvkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return cr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}p.exports.VRFVKey=cr;class rt{static __wrap(t){t=t>>>0;const r=Object.create(rt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_value_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.value_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.value_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.value_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.value_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,k);const r=_.value_new(t.__wbg_ptr);return rt.__wrap(r)}static new_from_assets(t){l(t,Ft);const r=_.value_new_from_assets(t.__wbg_ptr);return rt.__wrap(r)}static new_with_assets(t,r){l(t,k),l(r,Ft);const o=_.value_new_with_assets(t.__wbg_ptr,r.__wbg_ptr);return rt.__wrap(o)}static zero(){const t=_.value_zero();return rt.__wrap(t)}is_zero(){return _.value_is_zero(this.__wbg_ptr)!==0}coin(){const t=_.value_coin(this.__wbg_ptr);return k.__wrap(t)}set_coin(t){l(t,k),_.value_set_coin(this.__wbg_ptr,t.__wbg_ptr)}multiasset(){const t=_.value_multiasset(this.__wbg_ptr);return t===0?void 0:Ft.__wrap(t)}set_multiasset(t){l(t,Ft),_.value_set_multiasset(this.__wbg_ptr,t.__wbg_ptr)}checked_add(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,rt),_.value_checked_add(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);l(t,rt),_.value_checked_sub(e,this.__wbg_ptr,t.__wbg_ptr);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return rt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){l(t,rt);const r=_.value_clamped_sub(this.__wbg_ptr,t.__wbg_ptr);return rt.__wrap(r)}compare(t){l(t,rt);const r=_.value_compare(this.__wbg_ptr,t.__wbg_ptr);return r===16777215?void 0:r}}p.exports.Value=rt;class Lt{static __wrap(t){t=t>>>0;const r=Object.create(Lt.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkey_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkey_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkey_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkey_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkey_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Lt.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t){l(t,o_);const r=_.vkey_new(t.__wbg_ptr);return Lt.__wrap(r)}public_key(){const t=_.vkey_public_key(this.__wbg_ptr);return o_.__wrap(t)}}p.exports.Vkey=Lt;class ne{static __wrap(t){t=t>>>0;const r=Object.create(ne.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeys_free(t)}static new(){const t=_.ed25519keyhashes_new();return ne.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.vkeys_get(this.__wbg_ptr,t);return Lt.__wrap(r)}add(t){l(t,Lt),_.vkeys_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Vkeys=ne;class O_{static __wrap(t){t=t>>>0;const r=Object.create(O_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeywitness_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkeywitness_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitness_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitness_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitness_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return O_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){l(t,Lt),l(r,wt);const o=_.vkeywitness_new(t.__wbg_ptr,r.__wbg_ptr);return O_.__wrap(o)}vkey(){const t=_.vkeywitness_vkey(this.__wbg_ptr);return Lt.__wrap(t)}signature(){const t=_.vkeywitness_signature(this.__wbg_ptr);return wt.__wrap(t)}}p.exports.Vkeywitness=O_;class pr{static __wrap(t){t=t>>>0;const r=Object.create(pr.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_vkeywitnesses_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.vkeywitnesses_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitnesses_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.vkeywitnesses_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.vkeywitnesses_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return pr.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.ed25519keyhashes_new();return pr.__wrap(t)}len(){return _.assetnames_len(this.__wbg_ptr)>>>0}get(t){const r=_.vkeywitnesses_get(this.__wbg_ptr,t);return O_.__wrap(r)}add(t){l(t,O_),_.vkeywitnesses_add(this.__wbg_ptr,t.__wbg_ptr)}}p.exports.Vkeywitnesses=pr;class Q_{static __wrap(t){t=t>>>0;const r=Object.create(Q_.prototype);return r.__wbg_ptr=t,r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();_.__wbg_withdrawals_free(t)}to_bytes(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_bytes(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=C(t,r).slice();return _.__wbindgen_free(t,r*1),o}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=I(t,_.__wbindgen_malloc),s=g;_.withdrawals_from_bytes(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_hex(){let t,r;try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_hex(e,this.__wbg_ptr);var o=a()[e/4+0],n=a()[e/4+1];return t=o,r=n,h(o,n)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}static from_hex(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.withdrawals_from_hex(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let t,r;try{const c=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_json(c,this.__wbg_ptr);var o=a()[c/4+0],n=a()[c/4+1],e=a()[c/4+2],i=a()[c/4+3],s=o,b=n;if(i)throw s=0,b=0,d(e);return t=s,r=b,h(s,b)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(t,r,1)}}to_js_value(){try{const n=_.__wbindgen_add_to_stack_pointer(-16);_.withdrawals_to_js_value(n,this.__wbg_ptr);var t=a()[n/4+0],r=a()[n/4+1],o=a()[n/4+2];if(o)throw d(r);return d(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16),i=u(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=g;_.withdrawals_from_json(e,i,s);var r=a()[e/4+0],o=a()[e/4+1],n=a()[e/4+2];if(n)throw d(o);return Q_.__wrap(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=_.auxiliarydataset_new();return Q_.__wrap(t)}len(){return _.auxiliarydataset_len(this.__wbg_ptr)>>>0}insert(t,r){l(t,f_),l(r,k);const o=_.withdrawals_insert(this.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return o===0?void 0:k.__wrap(o)}get(t){l(t,f_);const r=_.withdrawals_get(this.__wbg_ptr,t.__wbg_ptr);return r===0?void 0:k.__wrap(r)}keys(){const t=_.withdrawals_keys(this.__wbg_ptr);return ur.__wrap(t)}}p.exports.Withdrawals=Q_,p.exports.__wbindgen_object_drop_ref=function(v){d(v)},p.exports.__wbindgen_string_new=function(v,t){const r=h(v,t);return L(r)},p.exports.__wbindgen_error_new=function(v,t){const r=new Error(h(v,t));return L(r)},p.exports.__wbindgen_string_get=function(v,t){const r=A(t),o=typeof r=="string"?r:void 0;var n=it(o)?0:u(o,_.__wbindgen_malloc,_.__wbindgen_realloc),e=g;a()[v/4+1]=e,a()[v/4+0]=n},p.exports.__wbindgen_object_clone_ref=function(v){const t=A(v);return L(t)},p.exports.__wbindgen_is_object=function(v){const t=A(v);return typeof t=="object"&&t!==null},p.exports.__wbg_String_91fba7ded13ba54c=function(v,t){const r=String(A(t)),o=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),n=g;a()[v/4+1]=n,a()[v/4+0]=o},p.exports.__wbindgen_number_new=function(v){return L(v)},p.exports.__wbg_set_20cbc34131e76824=function(v,t,r){A(v)[d(t)]=d(r)},p.exports.__wbg_crypto_566d7465cdbb6b7a=function(v){const t=A(v).crypto;return L(t)},p.exports.__wbg_process_dc09a8c7d59982f6=function(v){const t=A(v).process;return L(t)},p.exports.__wbg_versions_d98c6400c6ca2bd8=function(v){const t=A(v).versions;return L(t)},p.exports.__wbg_node_caaf83d002149bd5=function(v){const t=A(v).node;return L(t)},p.exports.__wbindgen_is_string=function(v){return typeof A(v)=="string"},p.exports.__wbg_require_94a9da52636aacbf=function(){return St(function(){return L(De)},arguments)},p.exports.__wbg_msCrypto_0b84745e9245cdf6=function(v){const t=A(v).msCrypto;return L(t)},p.exports.__wbg_randomFillSync_290977693942bf03=function(){return St(function(v,t){A(v).randomFillSync(d(t))},arguments)},p.exports.__wbg_getRandomValues_260cc23a41afad9a=function(){return St(function(v,t){A(v).getRandomValues(A(t))},arguments)},p.exports.__wbindgen_is_function=function(v){return typeof A(v)=="function"},p.exports.__wbg_self_e7c1f827057f6584=function(){return St(function(){const v=self.self;return L(v)},arguments)},p.exports.__wbg_window_a09ec664e14b1b81=function(){return St(function(){const v=window.window;return L(v)},arguments)},p.exports.__wbg_globalThis_87cbb8506fecf3a9=function(){return St(function(){const v=globalThis.globalThis;return L(v)},arguments)},p.exports.__wbg_global_c85a9259e621f3db=function(){return St(function(){const v=Qe.global;return L(v)},arguments)},p.exports.__wbindgen_is_undefined=function(v){return A(v)===void 0},p.exports.__wbg_newnoargs_2b8b6bd7753c76ba=function(v,t){const r=new Function(h(v,t));return L(r)},p.exports.__wbg_call_95d1ea488d03e4e8=function(){return St(function(v,t){const r=A(v).call(A(t));return L(r)},arguments)},p.exports.__wbg_new_b525de17f44a8943=function(){const v=new Array;return L(v)},p.exports.__wbg_new_f841cc6f2098f4b5=function(){return L(new Map)},p.exports.__wbg_new_f9876326328f45ed=function(){const v=new Object;return L(v)},p.exports.__wbg_set_17224bc548dd1d7b=function(v,t,r){A(v)[t>>>0]=d(r)},p.exports.__wbg_call_9495de66fdbe016b=function(){return St(function(v,t,r){const o=A(v).call(A(t),A(r));return L(o)},arguments)},p.exports.__wbg_set_388c4c6422704173=function(v,t,r){const o=A(v).set(A(t),A(r));return L(o)},p.exports.__wbg_buffer_cf65c07de34b9a08=function(v){const t=A(v).buffer;return L(t)},p.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5=function(v,t,r){const o=new Uint8Array(A(v),t>>>0,r>>>0);return L(o)},p.exports.__wbg_new_537b7341ce90bb31=function(v){const t=new Uint8Array(A(v));return L(t)},p.exports.__wbg_set_17499e8aa4003ebd=function(v,t,r){A(v).set(A(t),r>>>0)},p.exports.__wbg_newwithlength_b56c882b57805732=function(v){const t=new Uint8Array(v>>>0);return L(t)},p.exports.__wbg_subarray_7526649b91a252a6=function(v,t,r){const o=A(v).subarray(t>>>0,r>>>0);return L(o)},p.exports.__wbg_new_d87f272aec784ec0=function(v,t){const r=new Function(h(v,t));return L(r)},p.exports.__wbg_call_eae29933372a39be=function(v,t){const r=A(v).call(A(t));return L(r)},p.exports.__wbindgen_jsval_eq=function(v,t){return A(v)===A(t)},p.exports.__wbg_self_e0b3266d2d9eba1a=function(v){const t=A(v).self;return L(t)},p.exports.__wbg_require_0993fe224bf8e202=function(v,t){const r=De(h(v,t));return L(r)},p.exports.__wbg_crypto_e95a6e54c5c2e37f=function(v){const t=A(v).crypto;return L(t)},p.exports.__wbg_getRandomValues_dc67302a7bd1aec5=function(v){const t=A(v).getRandomValues;return L(t)},p.exports.__wbg_randomFillSync_dd2297de5917c74e=function(v,t,r){A(v).randomFillSync(C(t,r))},p.exports.__wbg_getRandomValues_02639197c8166a96=function(v,t,r){A(v).getRandomValues(C(t,r))},p.exports.__wbindgen_debug_string=function(v,t){const r=et(A(t)),o=u(r,_.__wbindgen_malloc,_.__wbindgen_realloc),n=g;a()[v/4+1]=n,a()[v/4+0]=o},p.exports.__wbindgen_throw=function(v,t){throw new Error(h(v,t))},p.exports.__wbindgen_memory=function(){const v=_.memory;return L(v)};const tn=Ve.join(__dirname,"sidan_csl_rs_bg.wasm"),_n=Ve.readFileSync(tn),rn=new WebAssembly.Module(_n);_=new WebAssembly.Instance(rn,w).exports,p.exports.__wasm=_})(ie);ie.exports.Language.new_plutus_v1(),ie.exports.Language.new_plutus_v2();ie.exports.RedeemerTag.new_cert(),ie.exports.RedeemerTag.new_mint(),ie.exports.RedeemerTag.new_reward(),ie.exports.RedeemerTag.new_spend();const Is=(p,w)=>{const _=ie.exports.JsVecString.new();return w.forEach(y=>{_.add(y)}),ie.exports.sign_transaction(p,_)},js=()=>({inputs:[],outputs:[],extraInputs:[],selectionThreshold:0,collaterals:[],requiredSignatures:[],referenceInputs:[],mints:[],changeAddress:"",metadata:[],validityRange:{},certificates:[],signingKey:[]});class Cs{txBuilder;protocolParams;meshTxBuilderBody=js();constructor(w){this.protocolParams=w||Cr,this.txBuilder=yn(w)}serializeTxBody(w,_){_&&(this.protocolParams=_),this.txBuilder=yn(_);const{inputs:f,outputs:y,extraInputs:m,selectionThreshold:A,collaterals:O,referenceInputs:K,mints:d,changeAddress:$,certificates:J,validityRange:R,requiredSignatures:h,metadata:L}=w;if(m.length>0&&this.addUtxosFrom(m,String(A)),this.removeDuplicateInputs(),d.sort((tt,u)=>tt.policyId.localeCompare(u.policyId)),f.sort((tt,u)=>tt.txIn.txHash===u.txIn.txHash?tt.txIn.txIndex-u.txIn.txIndex:tt.txIn.txHash.localeCompare(u.txIn.txHash)),this.addAllInputs(f),this.addAllOutputs(y),this.addAllCollaterals(O),this.addAllReferenceInputs(K),this.addAllMints(d),this.addAllCertificates(J),this.addValidityRange(R),this.addAllRequiredSignatures(h),this.addAllMetadata(L),this.addCostModels(),$){const tt=O.map(jt=>{var a,et;return((et=(a=jt.txIn.amount)==null?void 0:a.find(l=>l.unit==="lovelace"))==null?void 0:et.quantity)||"0"}).reduce((jt,a)=>jt+parseInt(a),0),u=Math.ceil(this.protocolParams.collateralPercent*Number(Number(this.txBuilder.min_fee().checked_add(x.exports.BigNum.from_str("10000")).to_js_value()))/100);let it=!1;if(tt-u>0){const jt=x.exports.TransactionOutput.new(x.exports.Address.from_bech32($),x.exports.Value.new(x.exports.BigNum.from_str(String(u))));tt-u>Number(x.exports.min_ada_for_output(jt,x.exports.DataCost.new_coins_per_byte(x.exports.BigNum.from_str(this.protocolParams.coinsPerUTxOSize))).to_js_value())&&(this.txBuilder.set_collateral_return(x.exports.TransactionOutput.new(x.exports.Address.from_bech32($),x.exports.Value.new(x.exports.BigNum.from_str(String(tt))))),this.txBuilder.set_total_collateral(x.exports.BigNum.from_str(String(tt))),it=!0)}this.addChange($),it&&this.addCollateralReturn($)}return this.txBuilder.build_tx().to_hex()}addSigningKeys(w,_){return _.length>0?Is(w,_):w}addUtxosFrom=(w,_)=>{const f=this.meshTxBuilderBody.outputs.reduce((m,A)=>(A.amount.forEach(K=>{const{unit:d,quantity:$}=K,J=Number(m.get(d))||0;m.set(d,String(J+Number($)))}),m),new Map);this.meshTxBuilderBody.inputs.reduce((m,A)=>{const O=A.txIn.amount;return O==null||O.forEach(K=>{const{unit:d,quantity:$}=K,J=Number(m.get(d))||0;m.set(d,String(J-Number($)))}),m},f),this.meshTxBuilderBody.mints.reduce((m,A)=>{const O={unit:A.policyId+A.assetName,quantity:String(A.amount)},K=Number(m.get(O.unit))||0;return m.set(O.unit,String(K-Number(O.quantity))),m},f),Lo(w,f,_).forEach(m=>{const A={type:"PubKey",txIn:{txHash:m.input.txHash,txIndex:m.input.outputIndex,amount:m.output.amount,address:m.output.address}};this.meshTxBuilderBody.inputs.push(A),this.addTxIn(A)})};makePlutusScriptSource=w=>{const _=x.exports.ScriptHash.from_hex(w.spendingScriptHash),f=x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(w.txHash),w.txIndex);return x.exports.PlutusScriptSource.new_ref_input_with_lang_ver(_,f,ae[w.version])};removeDuplicateInputs=()=>{const w=this.meshTxBuilderBody.inputs,_=y=>`${y.txHash}#${y.txIndex}`,f=[];for(let y=0;y<w.length;y++){const m=_(w[y].txIn);f.includes(m)?(w.splice(y,1),y--):f.push(m)}};addAllInputs=w=>{for(let _=0;_<w.length;_++){const f=w[_];switch(f.type){case"PubKey":this.addTxIn(f);break;case"Script":this.addScriptTxIn(f);break}}};addTxIn=w=>{this.txBuilder.add_input(x.exports.Address.from_bech32(w.txIn.address),x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(w.txIn.txHash),w.txIn.txIndex),se(w.txIn.amount))};addScriptTxIn=({scriptTxIn:w,txIn:_})=>{let f;const{datumSource:y,scriptSource:m,redeemer:A}=w;if(y.type==="Provided")f=x.exports.DatumSource.new(this.castDataToPlutusData(y.data));else{const d=x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(y.txHash),y.txIndex);f=x.exports.DatumSource.new_ref_input(d)}let O;m.type=="Inline"?O=this.makePlutusScriptSource(m.txInInfo):O=x.exports.PlutusScriptSource.new(x.exports.PlutusScript.from_hex_with_version(m.script.code,ae[m.script.version]));const K=x.exports.Redeemer.new(x.exports.RedeemerTag.new_spend(),x.exports.BigNum.from_str("0"),this.castDataToPlutusData(A.data),x.exports.ExUnits.new(x.exports.BigNum.from_str(String(A.exUnits.mem)),x.exports.BigNum.from_str(String(A.exUnits.steps))));this.txBuilder.add_plutus_script_input(x.exports.PlutusWitness.new_with_ref(O,f,K),x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(_.txHash),_.txIndex),se(_.amount))};addAllOutputs=w=>{for(let _=0;_<w.length;_++){const f=w[_];this.addOutput(f)}};addOutput=({amount:w,address:_,datum:f,referenceScript:y})=>{const m=se(w),A=m.multiasset();if(m.is_zero()&&A===void 0)throw Error("Invalid output amount");let O=x.exports.TransactionOutputBuilder.new().with_address(Yr(_));f&&f.type==="Hash"&&(O=O.with_data_hash(x.exports.hash_plutus_data(this.castDataToPlutusData(f.data)))),f&&f.type==="Inline"&&(O=O.with_plutus_data(this.castDataToPlutusData(f.data))),y&&(O=O.with_script_ref(x.exports.ScriptRef.new_plutus_script(x.exports.PlutusScript.from_hex_with_version(y.code,ae[y.version]))));const K=O.next();if(A){const d=m.coin().is_zero()?K.with_asset_and_min_required_coin_by_utxo_cost(A,fn(this.protocolParams.coinsPerUTxOSize)).build():K.with_coin_and_asset(m.coin(),A).build();this.txBuilder.add_output(d)}else{const d=K.with_coin(m.coin()).build();this.txBuilder.add_output(d)}};addAllCollaterals=w=>{const _=x.exports.TxInputsBuilder.new();for(let f=0;f<w.length;f++){const y=w[f];this.addCollateral(_,y)}this.txBuilder.set_collateral(_)};addCollateral=(w,_)=>{w.add_input(x.exports.Address.from_bech32(_.txIn.address),x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(_.txIn.txHash),_.txIn.txIndex),se(_.txIn.amount))};addCollateralReturn=w=>{var f;const _=(f=this.txBuilder.get_fee_if_set())==null?void 0:f.to_js_value();if(_){const y=Math.ceil(this.protocolParams.collateralPercent*Number(_)/100);this.txBuilder.set_total_collateral_and_return(x.exports.BigNum.from_str(String(y)),x.exports.Address.from_bech32(w))}};addAllReferenceInputs=w=>{w.forEach(_=>{this.addReferenceInput(_)})};addReferenceInput=({txHash:w,txIndex:_})=>{const f=x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(w),_);this.txBuilder.add_reference_input(f)};addAllMints=w=>{const _=x.exports.MintBuilder.new();let f=0;for(let y=0;y<w.length;y++){const m=w[y];if(!m.scriptSource)throw Error("Mint script is expected to be provided");if(m.type==="Plutus"){if(!m.redeemer)throw Error("Missing mint redeemer information");this.addPlutusMint(_,m,f),f++}else m.type==="Native"&&this.addNativeMint(_,m)}this.txBuilder.set_mint_builder(_)};addPlutusMint=(w,{redeemer:_,policyId:f,scriptSource:y,assetName:m,amount:A},O)=>{const K=x.exports.Redeemer.new(x.exports.RedeemerTag.new_mint(),x.exports.BigNum.from_str(String(O)),this.castDataToPlutusData(_.data),x.exports.ExUnits.new(x.exports.BigNum.from_str(String(_.exUnits.mem)),x.exports.BigNum.from_str(String(_.exUnits.steps)))),d=y.type==="Reference Script"?x.exports.PlutusScriptSource.new_ref_input_with_lang_ver(x.exports.ScriptHash.from_hex(f),x.exports.TransactionInput.new(x.exports.TransactionHash.from_hex(y.txHash),y.txIndex),ae[y.version]):x.exports.PlutusScriptSource.new(x.exports.PlutusScript.from_hex_with_version(y.script.code,ae[y.script.version]));w.add_asset(x.exports.MintWitness.new_plutus_script(d,K),x.exports.AssetName.new(Buffer.from(m,"hex")),x.exports.Int.from_str(A))};addNativeMint=(w,{scriptSource:_,assetName:f,amount:y})=>{if(_.type==="Reference Script")throw Error("Native mint cannot have reference script");w.add_asset(x.exports.MintWitness.new_native_script(x.exports.NativeScript.from_hex(_.script.code)),x.exports.AssetName.new(Buffer.from(f,"hex")),x.exports.Int.from_str(y))};decimalToFraction(w){const _=10**w.toString().split(".")[1].length;return[w*_,_]}toPoolParams=w=>{const _=this.decimalToFraction(w.margin),f=x.exports.Relays.new();w.relays.forEach(A=>{f.add(ja(A))});const y=x.exports.RewardAddress.from_address(x.exports.Address.from_bech32(w.rewardAddress));if(y===void 0)throw new Error("Reward address is invalid");const m=x.exports.Ed25519KeyHashes.new();return w.owners.forEach(A=>{m.add(x.exports.Ed25519KeyHash.from_hex(A))}),x.exports.PoolParams.new(x.exports.Ed25519KeyHash.from_hex(w.operator),x.exports.VRFKeyHash.from_hex(w.VRFKeyHash),x.exports.BigNum.from_str(w.pledge),x.exports.BigNum.from_str(w.cost),x.exports.UnitInterval.new(x.exports.BigNum.from_str(_[0].toString()),x.exports.BigNum.from_str(_[1].toString())),y,m,f,w.metadata?x.exports.PoolMetadata.from_json(ye.exports.stringify(w.metadata)):void 0)};addCertificate=(w,_)=>{switch(_.type){case"RegisterPool":w.add(x.exports.Certificate.new_pool_registration(x.exports.PoolRegistration.new(this.toPoolParams(_.poolParams))));break;case"RegisterStake":w.add(x.exports.Certificate.new_stake_registration(x.exports.StakeRegistration.new(x.exports.StakeCredential.from_keyhash(x.exports.Ed25519KeyHash.from_hex(_.stakeKeyHash)))));break;case"DelegateStake":w.add(x.exports.Certificate.new_stake_delegation(x.exports.StakeDelegation.new(x.exports.StakeCredential.from_keyhash(x.exports.Ed25519KeyHash.from_hex(_.stakeKeyHash)),_.poolId.startsWith("pool")?x.exports.Ed25519KeyHash.from_bech32(_.poolId):x.exports.Ed25519KeyHash.from_hex(_.poolId))));break;case"DeregisterStake":w.add(x.exports.Certificate.new_stake_deregistration(x.exports.StakeDeregistration.new(x.exports.StakeCredential.from_keyhash(x.exports.Ed25519KeyHash.from_hex(_.stakeKeyHash)))));break;case"RetirePool":w.add(x.exports.Certificate.new_pool_retirement(x.exports.PoolRetirement.new(_.poolId.startsWith("pool")?x.exports.Ed25519KeyHash.from_bech32(_.poolId):x.exports.Ed25519KeyHash.from_hex(_.poolId),_.epoch)))}};addAllCertificates=w=>{const _=x.exports.Certificates.new();w.forEach(f=>{this.addCertificate(_,f)}),this.txBuilder.set_certs(_)};addCostModels=()=>{this.txBuilder.calc_script_data_hash(x.exports.TxBuilderConstants.plutus_vasil_cost_models())};addChange=w=>{this.txBuilder.add_change_if_needed(x.exports.Address.from_bech32(w))};addValidityRange=({invalidBefore:w,invalidHereafter:_})=>{w&&this.txBuilder.set_validity_start_interval_bignum(x.exports.BigNum.from_str(w.toString())),_&&this.txBuilder.set_ttl_bignum(x.exports.BigNum.from_str(_.toString()))};addAllRequiredSignatures=w=>{w.forEach(_=>{this.txBuilder.add_required_signer(x.exports.Ed25519KeyHash.from_hex(_))})};addAllMetadata=w=>{w.forEach(({tag:_,metadata:f})=>{this.txBuilder.add_json_metadatum(x.exports.BigNum.from_str(_),ye.exports.stringify(f))})};castRawDataToJsonString=w=>typeof w=="object"?ye.exports.stringify(w):w;castDataToPlutusData=({type:w,content:_})=>w==="Mesh"?ge(_):w==="CBOR"?x.exports.PlutusData.from_hex(_):x.exports.PlutusData.from_json(_,x.exports.PlutusDatumSchema.DetailedSchema)}class Es{txHex="";txEvaluationMultiplier=1.1;_protocolParams=Cr;serializer=new Cs(this._protocolParams);txOutput;addingScriptInput=!1;addingPlutusMint=!1;isHydra=!1;meshTxBuilderBody;mintItem;txInQueueItem;collateralQueueItem;refScriptTxInQueueItem;reset=()=>(this.txHex="",this.txEvaluationMultiplier=1.1,this._protocolParams=Cr,this.txOutput=void 0,this.addingScriptInput=!1,this.addingPlutusMint=!1,this.mintItem=void 0,this.txInQueueItem=void 0,this.collateralQueueItem=void 0,this.refScriptTxInQueueItem=void 0,this.meshTxBuilderBody=this.emptyTxBuilderBody(),this);emptyTxBuilderBody=()=>({inputs:[],outputs:[],extraInputs:[],selectionThreshold:0,collaterals:[],requiredSignatures:[],referenceInputs:[],mints:[],changeAddress:"",metadata:[],validityRange:{},certificates:[],signingKey:[]});constructor(w){this.meshTxBuilderBody=this.emptyTxBuilderBody(),w&&(this.serializer=w)}completeSync=w=>{w?this.meshTxBuilderBody=w:this.queueAllLastItem();let _=Cr;return this.isHydra&&(_={..._,minFeeA:0,minFeeB:0,priceMem:0,priceStep:0,collateralPercent:0,coinsPerUTxOSize:"0"}),this.serializer.serializeTxBody(this.meshTxBuilderBody,_)};completeSigning=()=>{const{signingKey:w}=this.meshTxBuilderBody;return this.txHex=this.serializer.addSigningKeys(this.txHex,w),this.txHex};txIn=(w,_,f,y)=>(this.txInQueueItem&&this.queueInput(),this.addingScriptInput?this.txInQueueItem={type:"Script",txIn:{txHash:w,txIndex:_,amount:f,address:y},scriptTxIn:{}}:this.txInQueueItem={type:"PubKey",txIn:{txHash:w,txIndex:_,amount:f,address:y}},this.addingScriptInput=!1,this);txInScript=(w,_="V2")=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="PubKey")throw Error("Datum value attempted to be called a non script input");return this.txInQueueItem.scriptTxIn.scriptSource={type:"Provided",script:{code:w,version:_}},this};txInDatumValue=(w,_="Mesh")=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="PubKey")throw Error("Datum value attempted to be called a non script input");let f=w;return _==="JSON"&&(f=this.castRawDataToJsonString(w)),_==="Mesh"?(this.txInQueueItem.scriptTxIn.datumSource={type:"Provided",data:{type:_,content:w}},this):(this.txInQueueItem.scriptTxIn.datumSource={type:"Provided",data:{type:_,content:f}},this)};txInInlineDatumPresent=()=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="PubKey")throw Error("Inline datum present attempted to be called a non script input");const{txHash:w,txIndex:_}=this.txInQueueItem.txIn;return w&&_.toString()&&(this.txInQueueItem.scriptTxIn.datumSource={type:"Inline",txHash:w,txIndex:_}),this};txInRedeemerValue=(w,_={...ke},f="Mesh")=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="PubKey")throw Error("Spending tx in reference redeemer attempted to be called a non script input");let y=w;return f==="Mesh"?(this.txInQueueItem.scriptTxIn.redeemer={data:{type:f,content:w},exUnits:_},this):(f==="JSON"&&(y=this.castRawDataToJsonString(w)),this.txInQueueItem.scriptTxIn.redeemer={data:{type:f,content:y},exUnits:_},this)};txOut=(w,_)=>(this.txOutput&&(this.meshTxBuilderBody.outputs.push(this.txOutput),this.txOutput=void 0),this.txOutput={address:w,amount:_},this);txOutDatumHashValue=(w,_="Mesh")=>{let f=w;if(this.txOutput){if(_==="Mesh")return this.txOutput.datum={type:"Hash",data:{type:_,content:f}},this;_==="JSON"&&(f=this.castRawDataToJsonString(w)),this.txOutput.datum={type:"Hash",data:{type:_,content:f}}}return this};txOutInlineDatumValue=(w,_="Mesh")=>{let f=w;if(this.txOutput){if(_==="Mesh")return this.txOutput.datum={type:"Inline",data:{type:_,content:f}},this;_==="JSON"&&(f=this.castRawDataToJsonString(w)),this.txOutput.datum={type:"Inline",data:{type:_,content:f}}}return this};txOutReferenceScript=(w,_="V2")=>(this.txOutput&&(this.txOutput.referenceScript={code:w,version:_}),this);spendingPlutusScriptV2=()=>(this.addingScriptInput=!0,this);spendingTxInReference=(w,_,f,y="V2")=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="PubKey")throw Error("Spending tx in reference attempted to be called a non script input");return this.txInQueueItem.scriptTxIn.scriptSource={type:"Inline",txInInfo:{txHash:w,txIndex:_,spendingScriptHash:f,version:y}},this};spendingReferenceTxInInlineDatumPresent=()=>(this.txInInlineDatumPresent(),this);spendingReferenceTxInRedeemerValue=(w,_={...ke},f="Mesh")=>(this.txInRedeemerValue(w,_,f),this);readOnlyTxInReference=(w,_)=>(this.meshTxBuilderBody.referenceInputs.push({txHash:w,txIndex:_}),this);mintPlutusScriptV2=()=>(this.addingPlutusMint=!0,this);mint=(w,_,f)=>(this.mintItem&&this.queueMint(),this.mintItem={type:this.addingPlutusMint?"Plutus":"Native",policyId:_,assetName:f,amount:w},this.addingPlutusMint=!1,this);mintingScript=(w,_="V2")=>{if(!this.mintItem)throw Error("Undefined mint");if(!this.mintItem.type)throw Error("Mint information missing");return this.mintItem.scriptSource={type:"Provided",script:{code:w,version:_}},this};mintTxInReference=(w,_,f="V2")=>{if(!this.mintItem)throw Error("Undefined mint");if(!this.mintItem.type)throw Error("Mint information missing");if(this.mintItem.type=="Native")throw Error("Mint tx in reference can only be used on plutus script tokens");if(!this.mintItem.policyId)throw Error("PolicyId information missing from mint asset");return this.mintItem.scriptSource={type:"Reference Script",txHash:w,txIndex:_,version:f},this};mintReferenceTxInRedeemerValue=(w,_={...ke},f="Mesh")=>{if(!this.mintItem)throw Error("Undefined mint");if(this.mintItem.type=="Native")throw Error("Mint tx in reference can only be used on plutus script tokens");if(this.mintItem.type=="Plutus"){if(!this.mintItem.policyId)throw Error("PolicyId information missing from mint asset");let y=w;if(f==="Mesh")return this.mintItem.redeemer={data:{type:f,content:y},exUnits:_},this;f==="JSON"&&(y=this.castRawDataToJsonString(w)),this.mintItem.redeemer={data:{type:f,content:y},exUnits:_}}return this};mintRedeemerValue=(w,_={...ke},f="Mesh")=>(this.mintReferenceTxInRedeemerValue(w,_,f),this);requiredSignerHash=w=>(this.meshTxBuilderBody.requiredSignatures.push(w),this);txInCollateral=(w,_,f,y)=>(this.collateralQueueItem&&this.meshTxBuilderBody.collaterals.push(this.collateralQueueItem),this.collateralQueueItem={type:"PubKey",txIn:{txHash:w,txIndex:_,amount:f,address:y}},this);registerPoolCertificate=w=>(this.meshTxBuilderBody.certificates.push({type:"RegisterPool",poolParams:w}),this);registerStakeCertificate=w=>(this.meshTxBuilderBody.certificates.push({type:"RegisterStake",stakeKeyHash:w}),this);delegateStakeCertificate=(w,_)=>(this.meshTxBuilderBody.certificates.push({type:"DelegateStake",stakeKeyHash:w,poolId:_}),this);deregisterStakeCertificate=w=>(this.meshTxBuilderBody.certificates.push({type:"DeregisterStake",stakeKeyHash:w}),this);retirePoolCertificate=(w,_)=>(this.meshTxBuilderBody.certificates.push({type:"RetirePool",poolId:w,epoch:_}),this);changeAddress=w=>(this.meshTxBuilderBody.changeAddress=w,this);invalidBefore=w=>(this.meshTxBuilderBody.validityRange.invalidBefore=w,this);invalidHereafter=w=>(this.meshTxBuilderBody.validityRange.invalidHereafter=w,this);metadataValue=(w,_)=>(this.meshTxBuilderBody.metadata.push({tag:w,metadata:_}),this);protocolParams=w=>{const _={...Cr,...w};return this._protocolParams=_,this};signingKey=w=>(this.meshTxBuilderBody.signingKey.push(w),this);selectUtxosFrom=(w,_=5e6)=>(this.meshTxBuilderBody.extraInputs=w,this.meshTxBuilderBody.selectionThreshold=_,this);queueInput=()=>{if(!this.txInQueueItem)throw Error("Undefined input");if(this.txInQueueItem.type==="Script")if(this.txInQueueItem.scriptTxIn){if(!this.txInQueueItem.scriptTxIn.datumSource)throw Error("Script input does not contain datum information");if(!this.txInQueueItem.scriptTxIn.redeemer)throw Error("Script input does not contain redeemer information");if(!this.txInQueueItem.scriptTxIn.scriptSource)throw Error("Script input does not contain script information")}else throw Error("Script input does not contain script, datum, or redeemer information");this.meshTxBuilderBody.inputs.push(this.txInQueueItem),this.txInQueueItem=void 0};queueMint=()=>{if(!this.mintItem)throw Error("Undefined mint");if(!this.mintItem.scriptSource)throw Error("Missing mint script information");this.meshTxBuilderBody.mints.push(this.mintItem),this.mintItem=void 0};removeDuplicateInputs=()=>{const w=this.meshTxBuilderBody.inputs,_=y=>`${y.txHash}#${y.txIndex}`,f=[];for(let y=0;y<w.length;y++){const m=_(w[y].txIn);f.includes(m)?(w.splice(y,1),y--):f.push(m)}};queueAllLastItem=()=>{this.txOutput&&(this.meshTxBuilderBody.outputs.push(this.txOutput),this.txOutput=void 0),this.txInQueueItem&&this.queueInput(),this.collateralQueueItem&&(this.meshTxBuilderBody.collaterals.push(this.collateralQueueItem),this.collateralQueueItem=void 0),this.mintItem&&this.queueMint()};updateRedeemer=(w,_)=>{_.forEach(f=>{switch(f.tag){case"SPEND":{const y=w.inputs[f.index];y.type=="Script"&&y.scriptTxIn.redeemer&&(y.scriptTxIn.redeemer.exUnits.mem=Math.floor(f.budget.mem*this.txEvaluationMultiplier),y.scriptTxIn.redeemer.exUnits.steps=Math.floor(f.budget.steps*this.txEvaluationMultiplier));break}case"MINT":{const y=w.mints[f.index];y.type=="Plutus"&&y.redeemer&&(y.redeemer.exUnits.mem=Math.floor(f.budget.mem*this.txEvaluationMultiplier),y.redeemer.exUnits.steps=Math.floor(f.budget.steps*this.txEvaluationMultiplier));break}}})};castRawDataToJsonString=w=>typeof w=="object"?ye.exports.stringify(w):w}class Ss extends Es{_fetcher;_submitter;_evaluator;queriedTxHashes=new Set;queriedUTxOs={};constructor({fetcher:w,submitter:_,evaluator:f,isHydra:y=!1}){super(),w&&(this._fetcher=w),_&&(this._submitter=_),f&&(this._evaluator=f),y&&(this.isHydra=!0)}complete=async w=>{w?this.meshTxBuilderBody=w:this.queueAllLastItem();const{inputs:_,collaterals:f}=this.meshTxBuilderBody,y=[..._,...f].filter(m=>!this.isInputComplete(m));if(await this.queryAllTxInfo(y),y.forEach(m=>{this.completeTxInformation(m)}),this.completeSync(w),this._evaluator){const m=await this._evaluator.evaluateTx(this.txHex);this.updateRedeemer(this.meshTxBuilderBody,m),this.completeSync(w)}return this};submitTx=async w=>{var f;return await((f=this._submitter)==null?void 0:f.submitTx(w))};getUTxOInfo=async w=>{var f;let _=[];this.queriedTxHashes.has(w)||(this.queriedTxHashes.add(w),_=await((f=this._fetcher)==null?void 0:f.fetchUTxOs(w))||[],this.queriedUTxOs[w]=_)};queryAllTxInfo=w=>{var f;const _=[];if(w.length>0&&!this._fetcher)throw Error("Transaction information is incomplete while no fetcher instance is provided");for(let y=0;y<w.length;y++){const m=w[y];this.isInputInfoComplete(m)||_.push(this.getUTxOInfo(m.txIn.txHash)),m.type==="Script"&&((f=m.scriptTxIn.scriptSource)==null?void 0:f.type)==="Inline"&&!this.isRefScriptInfoComplete(m)&&_.push(this.getUTxOInfo(m.scriptTxIn.scriptSource.txInInfo.txHash))}return Promise.all(_)};completeTxInformation=w=>{var _;if(!this.isInputInfoComplete(w)){const f=this.queriedUTxOs[w.txIn.txHash],y=f==null?void 0:f.find(O=>O.input.outputIndex===w.txIn.txIndex),m=y==null?void 0:y.output.amount,A=y==null?void 0:y.output.address;if(!m||m.length===0)throw Error(`Couldn't find value information for ${w.txIn.txHash}#${w.txIn.txIndex}`);if(w.txIn.amount=m,w.type==="PubKey"){if(!A||A==="")throw Error(`Couldn't find address information for ${w.txIn.txHash}#${w.txIn.txIndex}`);w.txIn.address=A}}if(w.type==="Script"&&((_=w.scriptTxIn.scriptSource)==null?void 0:_.type)=="Inline"&&!this.isRefScriptInfoComplete(w)){const f=w.scriptTxIn.scriptSource.txInInfo,m=this.queriedUTxOs[f.txHash].find(A=>A.input.outputIndex===f.txIndex);if(!m)throw Error(`Couldn't find script reference utxo for ${f.txHash}#${f.txIndex}`);f.spendingScriptHash=m==null?void 0:m.output.scriptHash}};isInputComplete=w=>w.type==="PubKey"?this.isInputInfoComplete(w):w.type==="Script"?this.isInputInfoComplete(w)&&this.isRefScriptInfoComplete(w):!0;isInputInfoComplete=w=>{const{amount:_,address:f}=w.txIn;return!(w.type==="PubKey"&&(!_||!f)||w.type==="Script"&&!_)};isRefScriptInfoComplete=w=>{var f;const{scriptSource:_}=w.scriptTxIn;return!((_==null?void 0:_.type)==="Inline"&&!((f=_.txInInfo)!=null&&f.spendingScriptHash))}}const vn=(p,w)=>{const _=p.vkeys();if(_!==void 0){const f=new Set;for(let m=0;m<_.len();m+=1)f.add(_.get(m).to_hex());for(let m=0;m<w.len();m+=1)f.add(w.get(m).to_hex());const y=x.exports.Vkeywitnesses.new();return f.forEach(m=>{y.add(x.exports.Vkeywitness.from_hex(m))}),y}return w};class D_{_networkId;_encryptedSecret;constructor(w,_){this._networkId=w,this._encryptedSecret=_}getAccount(w,_){return this.accountContext(w,_,(f,y)=>{const m=ea(this._networkId,f.to_public().hash(),y.to_public().hash()).to_address().to_bech32(),A=na(this._networkId,f.to_public().hash()).to_address().to_bech32(),O=un(this._networkId,y.to_public().hash()).to_address().to_bech32();return{baseAddress:m,enterpriseAddress:A,rewardAddress:O}})}signData(w,_,f,y){try{return this.accountContext(w,_,(m,A)=>{const O={payload:y},K={address:D_.resolveAddress(this._networkId,f,m,A),key:f.startsWith("stake")?A:m},{coseSign1:d,coseKey:$}=yo(O,K);return{signature:d,key:$}})}catch(m){throw new Error(`An error occurred during signData: ${m}.`)}}signTx(w,_,f,y,m){try{const A=xa(Oa(y));return this.accountContext(w,_,(O,K)=>{const d=x.exports.Vkeywitnesses.new();return D_.resolveSigners(y,f,O.to_public().hash().to_hex()).forEach(J=>{if(J===O.to_public().hash().to_hex())d.add(x.exports.make_vkey_witness(A,O));else if(J===K.to_public().hash().to_hex())d.add(x.exports.make_vkey_witness(A,K));else if(m===!1)throw new Error(`Missing key witness for: ${J}`)}),d})}catch(A){throw new Error(`An error occurred during signTx: ${A}.`)}}static encryptMnemonic(w,_){const f=wn.mnemonicToEntropy(w.join(" ")),y=Sa(f),m=Ur(y.as_bytes());return y.free(),D_.encrypt(m,_)}static encryptPrivateKey(w,_){const f=x.exports.Bip32PrivateKey.from_bech32(w),y=Ur(f.as_bytes());return f.free(),D_.encrypt(y,_)}static encryptSigningKeys(w,_,f){const y=D_.encrypt(w.slice(4),f),m=D_.encrypt(_.slice(4),f);return[y,m]}static generateMnemonic(w=256){return wn.generateMnemonic(w).split(" ")}accountContext(w,_,f){const{paymentKey:y,stakeKey:m}=D_.resolveKeys(w,_,this._encryptedSecret),A=f(y,m);return y.free(),m.free(),A}static decrypt(w,_){try{return x.exports.decrypt_with_password(Mr(_),w)}catch{throw new Error("The password is incorrect.")}}static encrypt(w,_){const f=sa.customAlphabet("0123456789abcdef"),y=f(64),m=f(24);return x.exports.encrypt_with_password(Mr(_),y,m,w)}static resolveAddress(w,_,f,y){const m=[ea(w,f.to_public().hash(),y.to_public().hash()),na(w,f.to_public().hash()),un(w,y.to_public().hash())].find(A=>A.to_address().to_bech32()===_);if(m!==void 0)return m.to_address();throw new Error(`Address: ${_} doesn't belong to this account.`)}static resolveKeys(w,_,f){if(typeof f=="string"){const A=D_.decrypt(f,_);return Ro(A,w)}const y=D_.decrypt(f[0],_),m=D_.decrypt(f[1],_);return{paymentKey:x.exports.PrivateKey.from_hex(y),stakeKey:x.exports.PrivateKey.from_hex(m)}}static resolveSigners(w,_,f){const y=O=>{const K=(tt,u=[],it=0)=>{var et,l,C,I,Z;if(tt===void 0||it>=tt.len())return u;const jt=tt.get(it),a=new Array;switch(jt.kind()){case x.exports.CertificateKind.StakeDeregistration:{const mt=(et=jt.as_stake_deregistration())==null?void 0:et.stake_credential(),At=(mt==null?void 0:mt.kind())===x.exports.StakeCredKind.Key?mt.to_keyhash():void 0;At&&a.push(At.to_hex());break}case x.exports.CertificateKind.StakeDelegation:{const mt=(l=jt.as_stake_delegation())==null?void 0:l.stake_credential(),At=(mt==null?void 0:mt.kind())===x.exports.StakeCredKind.Key?mt.to_keyhash():void 0;At&&a.push(At.to_hex());break}case x.exports.CertificateKind.PoolRegistration:{const mt=(C=jt.as_pool_registration())==null?void 0:C.pool_params().pool_owners();a.push(...$(mt));break}case x.exports.CertificateKind.PoolRetirement:{const mt=(I=jt.as_pool_retirement())==null?void 0:I.pool_keyhash();mt&&a.push(mt.to_hex());break}case x.exports.CertificateKind.MoveInstantaneousRewardsCert:{const mt=(Z=jt.as_move_instantaneous_rewards_cert())==null?void 0:Z.move_instantaneous_reward().as_to_stake_creds();if(mt)for(let At=0;At<mt.len();At+=1){const Rt=mt.keys().get(At),St=Rt.kind()===x.exports.StakeCredKind.Key?Rt.to_keyhash():void 0;St&&a.push(St.to_hex())}break}}return K(tt,[...u,...a],it+1)},d=(tt,u=[],it=0)=>{if(tt===void 0||it>=tt.len())return u;const jt=tt.get(it).index(),a=tt.get(it).transaction_id(),et=_.find(l=>l.input.outputIndex===jt&&l.input.txHash===a.to_hex())!==void 0?f:"OUR_PRINCESS_IS_IN_ANOTHER_CASTLE";return d(tt,[...u,et],it+1)},$=(tt,u=[],it=0)=>tt===void 0||it>=tt.len()?u:$(tt,[...u,tt.get(it).to_hex()],it+1),J=(tt,u=[],it=0)=>{if(tt===void 0||it>=tt.len())return u;const jt=tt.keys().get(it).payment_cred(),a=jt.kind()===x.exports.StakeCredKind.Key?jt.to_keyhash():void 0;return J(tt,a?[...u,a.to_hex()]:u,it+1)},R=O.certs(),h=O.collateral(),L=O.inputs(),g=O.required_signers(),ot=O.withdrawals();return[...K(R),...d(h),...d(L),...$(g),...J(ot)]},m=O=>{const K=($,J=[])=>{var R,h,L,g;if($)for(let ot=0;ot<$.len();ot+=1){const tt=$.get(ot);switch(tt.kind()){case x.exports.NativeScriptKind.ScriptPubkey:{const u=(R=tt.as_script_pubkey())==null?void 0:R.addr_keyhash().to_hex();return u?[...J,u]:J}case x.exports.NativeScriptKind.ScriptAll:return K((h=tt.as_script_all())==null?void 0:h.native_scripts(),J);case x.exports.NativeScriptKind.ScriptAny:return K((L=tt.as_script_any())==null?void 0:L.native_scripts(),J);case x.exports.NativeScriptKind.ScriptNOfK:return K((g=tt.as_script_n_of_k())==null?void 0:g.native_scripts(),J)}}return J},d=O.native_scripts();return[...K(d)]},A=Jr(w);return new Set([...y(A.body()),...m(A.witness_set())])}}const Lr="MARI0TIME";class Le{_fetcher;_submitter;_wallet;constructor(w){switch(this._fetcher=w.fetcher,this._submitter=w.submitter,w.key.type){case"mnemonic":this._wallet=new D_(w.networkId,D_.encryptMnemonic(w.key.words,Lr));break;case"root":this._wallet=new D_(w.networkId,D_.encryptPrivateKey(w.key.bech32,Lr));break;case"cli":this._wallet=new D_(w.networkId,D_.encryptSigningKeys(w.key.payment,w.key.stake??"f0".repeat(34),Lr))}}getBaseAddress(w=0){return this._wallet.getAccount(w,Lr).baseAddress}getPaymentAddress(w=0){return this._wallet.getAccount(w,Lr).enterpriseAddress}getRewardAddress(w=0){return this._wallet.getAccount(w,Lr).rewardAddress}getUsedAddress(w=0){const _=this._wallet.getAccount(w,Lr);return Yr(_.enterpriseAddress)}getUsedCollateral(w=Cr.maxCollateralInputs){throw new Error("getUsedCollateral not implemented.")}async getUsedUTxOs(w=0){const _=this._wallet.getAccount(w,Lr);return(await this._fetcher.fetchAddressUTxOs(_.enterpriseAddress)).map(y=>Vr(y))}signData(w,_,f=0){try{return this._wallet.signData(f,Lr,w,_)}catch(y){throw new Error(`[AppWallet] An error occurred during signData: ${y}.`)}}async signTx(w,_=!1,f=0){try{const y=this._wallet.getAccount(f,Lr),m=await this._fetcher.fetchAddressUTxOs(y.enterpriseAddress),A=this._wallet.signTx(f,Lr,m,w,_),O=Jr(w),K=O.witness_set(),d=vn(K,A);return K.set_vkeys(d),x.exports.Transaction.new(O.body(),K,O.auxiliary_data()).to_hex()}catch(y){throw new Error(`[AppWallet] An error occurred during signTx: ${y}.`)}}async signTxs(w,_){return console.log("unimplemented",w,_),[]}submitTx(w){return this._submitter.submitTx(w)}static brew(w=256){return D_.generateMnemonic(w)}async getUtxos(){return await this.getUsedUTxOs()}async getCollateral(){return(await this.getUsedUTxOs())[0]}async getUsedAddresses(){return console.log(1,await this.getPaymentAddress()),[await this.getPaymentAddress()]}}class Ge{_walletInstance;_walletName;walletInstance;constructor(w,_){this._walletInstance=w,this._walletName=_,this.walletInstance={...w}}static getInstalledWallets(){return window.cardano===void 0?[]:Pn.filter(w=>window.cardano[w]!==void 0).map(w=>({name:window.cardano[w].name,icon:window.cardano[w].icon,version:window.cardano[w].apiVersion}))}static async enable(w){try{const _=await Ge.resolveInstance(w);if(_!==void 0)return new Ge(_,w);throw new Error(`Couldn't create an instance of wallet: ${w}`)}catch(_){throw new Error(`[BrowserWallet] An error occurred during enable: ${JSON.stringify(_)}.`)}}async getBalance(){const w=await this._walletInstance.getBalance();return Ea(Zo(w))}async getChangeAddress(){const w=await this._walletInstance.getChangeAddress();return me(w).to_bech32()}async getCollateral(w=Cr.maxCollateralInputs){return(await this.getUsedCollateral(w)).map(f=>Ue(f))}getNetworkId(){return this._walletInstance.getNetworkId()}async getRewardAddresses(){return(await this._walletInstance.getRewardAddresses()).map(_=>me(_).to_bech32())}async getUnusedAddresses(){return(await this._walletInstance.getUnusedAddresses()).map(_=>me(_).to_bech32())}async getUsedAddresses(){return(await this._walletInstance.getUsedAddresses()).map(_=>me(_).to_bech32())}async getUtxos(w=void 0){return(await this.getUsedUTxOs(w)).map(f=>Ue(f))}signData(w,_){const f=Yr(w).to_hex();return this._walletInstance.signData(f,Mr(_))}async signTx(w,_=!1){try{const f=Jr(w),y=f.witness_set(),m=await this._walletInstance.signTx(w,_),A=_a(m).vkeys()??x.exports.Vkeywitnesses.new(),O=vn(y,A);return y.set_vkeys(O),Ur(x.exports.Transaction.new(f.body(),y,f.auxiliary_data()).to_bytes())}catch(f){throw new Error(`[BrowserWallet] An error occurred during signTx: ${JSON.stringify(f)}.`)}}async signTxs(w,_=!1){let f;switch(this._walletName){case"Typhon Wallet":this._walletInstance.signTxs&&(f=await this._walletInstance.signTxs(w,_));break;default:this._walletInstance.signTxs?f=await this._walletInstance.signTxs(w.map(m=>({cbor:m,partialSign:_}))):this._walletInstance.experimental.signTxs&&(f=await this._walletInstance.experimental.signTxs(w.map(m=>({cbor:m,partialSign:_}))));break}if(!f)throw new Error("Wallet does not support signTxs");const y=[];for(let m=0;m<f.length;m++){const A=Jr(w[m]),O=A.witness_set(),K=_a(f[m]).vkeys()??x.exports.Vkeywitnesses.new(),d=vn(O,K);O.set_vkeys(d);const $=Ur(x.exports.Transaction.new(A.body(),O,A.auxiliary_data()).to_bytes());y.push($)}return y}submitTx(w){return this._walletInstance.submitTx(w)}async getUsedAddress(){const w=await this._walletInstance.getUsedAddresses();return me(w[0])}async getUsedCollateral(w=Cr.maxCollateralInputs){return(await this._walletInstance.experimental.getCollateral()??[]).map(f=>ta(f)).slice(0,w)}async getUsedUTxOs(w=void 0){const _=w?se(w).to_hex():void 0;return(await this._walletInstance.getUtxos(_)??[]).map(y=>ta(y))}async getAssets(){return(await this.getBalance()).filter(_=>_.unit!=="lovelace").map(_=>{const f=_.unit.slice(0,Fr),y=_.unit.slice(Fr),m=Nn(f,y);return{unit:_.unit,policyId:f,assetName:Tn(y),fingerprint:m,quantity:_.quantity}})}async getLovelace(){const _=(await this.getBalance()).find(f=>f.unit==="lovelace");return _!==void 0?_.quantity:"0"}async getPolicyIdAssets(w){return(await this.getAssets()).filter(f=>f.policyId===w)}async getPolicyIds(){const w=await this.getBalance();return Array.from(new Set(w.map(_=>_.unit.slice(0,Fr)))).filter(_=>_!=="lovelace")}static resolveInstance(w){if(window.cardano===void 0)return;const _=Pn.map(f=>window.cardano[f]).filter(f=>f!==void 0).find(f=>f.name.toLowerCase()===w.toLowerCase());return _==null?void 0:_.enable()}}class Bs{_wallet;_network;constructor(w){switch(this._network=w.networkId,w.key.type){case"root":this._wallet=new Le({networkId:w.networkId,fetcher:w.fetcher,submitter:w.submitter,key:{type:"root",bech32:w.key.bech32}});break;case"cli":this._wallet=new Le({networkId:w.networkId,fetcher:w.fetcher,submitter:w.submitter,key:{type:"cli",payment:w.key.payment}});break;case"mnemonic":this._wallet=new Le({networkId:w.networkId,fetcher:w.fetcher,submitter:w.submitter,key:{type:"mnemonic",words:w.key.words}});break}}async getBalance(){const w=await this.getUtxos(),_=new Map;return w.map(y=>{y.output.amount.map(m=>{const A=m.unit,O=Number(m.quantity);if(_.has(A)){const K=_.get(A);_.set(A,K+O)}else _.set(A,O)})}),Array.from(_,([y,m])=>({unit:y,quantity:m.toString()}))}getChangeAddress(){return this._wallet.getPaymentAddress()}async getCollateral(){const _=(await this.getUtxos()).filter(f=>f.output.amount.length===1&&f.output.amount[0].unit==="lovelace");_.sort((f,y)=>Number(f.output.amount[0].quantity)-Number(y.output.amount[0].quantity));for(const f of _)if(Number(f.output.amount[0].quantity)>=5e6)return[f];return[]}getNetworkId(){return this._network}async getRewardAddresses(){return[await this._wallet.getRewardAddress()]}getUnusedAddresses(){return[this.getChangeAddress()]}async getUsedAddresses(){return[this.getChangeAddress()]}async getUtxos(){return(await this.getUsedUTxOs()).map(_=>Ue(_))}signData(w){return this._wallet.signData(this.getChangeAddress(),w)}async signTx(w,_=!1){return await this._wallet.signTx(w,_)}async signTxs(w,_=!1){const f=[];for(const y of w){const m=await this.signTx(y,_);f.push(m)}return f}async submitTx(w){return await this._wallet.submitTx(w)}getUsedAddress(){return this._wallet.getUsedAddress()}async getUsedCollateral(){return(await this.getCollateral()).map(f=>Vr(f))}async getUsedUTxOs(){return await this._wallet.getUtxos()}async getAssets(){return(await this.getBalance()).filter(_=>_.unit!=="lovelace").map(_=>{const f=_.unit.slice(0,Fr),y=_.unit.slice(Fr),m=Nn(f,y);return{unit:_.unit,policyId:f,assetName:Tn(y),fingerprint:m,quantity:_.quantity}})}async getLovelace(){const _=(await this.getBalance()).find(f=>f.unit==="lovelace");return _!==void 0?_.quantity:"0"}async getPolicyIdAssets(w){return(await this.getAssets()).filter(f=>f.policyId===w)}async getPolicyIds(){const w=await this.getBalance();return Array.from(new Set(w.map(_=>_.unit.slice(0,Fr)))).filter(_=>_!=="lovelace")}async createCollateral(){const _=await new exports.Transaction({initiator:this._wallet}).sendLovelace(this.getChangeAddress(),"5000000").build(),f=await this.signTx(_);return await this.submitTx(f)}static brew(w=!1,_=256){const f=D_.generateMnemonic(_);return w?Ba(f):f}}exports.AppWallet=Le;exports.BlockfrostProvider=ls;exports.BrowserWallet=Ge;exports.EmbeddedWallet=D_;exports.ForgeScript=ys;exports.InfuraProvider=bs;exports.KoiosProvider=gs;exports.MaestroProvider=us;exports.MeshTxBuilder=Ss;exports.MeshWallet=Bs;exports.OgmiosProvider=fs;exports.YaciProvider=hs;exports.assetClass=Ga;exports.assocMap=ln;exports.bool=La;exports.builtinByteString=pe;exports.checkSignature=vo;exports.conStr=Je;exports.conStr0=Pr;exports.conStr1=We;exports.conStr2=Ra;exports.currencySymbol=xn;exports.dict=to;exports.generateNonce=ps;exports.integer=kn;exports.isNetwork=ia;exports.keepRelevant=ca;exports.largestFirst=lo;exports.largestFirstMultiAsset=pa;exports.list=Va;exports.mConStr=Ka;exports.mConStr0=Ae;exports.mConStr1=da;exports.mConStr2=qa;exports.mMaybeStakingHash=mn;exports.mPubKeyAddress=za;exports.mScriptAddress=Ha;exports.maybeStakingHash=In;exports.mergeAssets=Ma;exports.parseAssetUnit=ce;exports.parseHttpError=X;exports.parsePlutusValueToAssets=eo;exports.paymentPubKeyHash=Wa;exports.posixTime=Za;exports.pubKeyAddress=Ya;exports.pubKeyHash=Xa;exports.readPlutusData=ws;exports.resolveDataHash=rs;exports.resolveEpochNo=es;exports.resolveFingerprint=Nn;exports.resolveLanguageView=ns;exports.resolveNativeScriptHash=as;exports.resolvePaymentKeyHash=he;exports.resolvePlutusScriptAddress=os;exports.resolvePlutusScriptHash=ss;exports.resolvePoolId=is;exports.resolvePrivateKey=Ba;exports.resolveRewardAddress=Fe;exports.resolveScriptRef=ds;exports.resolveSlotNo=cs;exports.resolveStakeKeyHash=xe;exports.resolveTxFees=Un;exports.resolveTxHash=Oa;exports.scriptAddress=$a;exports.tokenName=An;exports.tuple=_o;exports.txOutRef=Ja;exports.value=ro;
|