PageSourceSearch

https://stellar.expert/783.50db1857c186640969db3ab512d3dea1.js

js stellar.expert collected 2026-10-02 03:50:56 UTC 87,479 bytes, 2 lines download raw bytes

1/*! For license information please see 783.50db1857c186640969db3ab512d3dea1.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkui_stellar_expert||=[]).push([[783],{80789(e,t,r){r.r(t),r.d(t,{Point:()=>P});const s=Object.freeze,n=0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn,c=0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3edn,o=0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3n,a=0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51an,i=0x6666666666666666666666666666666666666666666666666666666666666658n,u=n-1n,d=s({p:n,n:c,h:8n,a:u,d:o,Gx:a,Gy:i}),h=32,l=e=>e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&1===e.BYTES_PER_ELEMENT,p=(e,t,r="")=>{if(l(e)&&(void 0===t||e.length===t))return e;const s=l(e),n=(r?`"${r}" `:"")+"expected Uint8Array"+(void 0!==t?` of length ${t}`:"")+", got "+(s?`length=${e.length}`:"type="+typeof e);if(!s)throw new TypeError(n);throw new RangeError(n)},y=(e,t="",r)=>Uint8Array.from(p(e,r,t)),m=(e,t)=>e.toString(16).padStart(t,"0"),b=e=>{let t="";for(const r of p(e))t+=m(r,2);return t},f=e=>{const t="hex invalid";if("string"!=typeof e)throw new TypeError(t);if(e.length%2||!/^[\da-f]*$/i.test(e))throw new RangeError(t);const r=new Uint8Array(e.length/2);for(let t=0,s=0;t<r.length;t++,s+=2){const n=e.charCodeAt(s),c=e.charCodeAt(s+1);r[t]=16*((15&n)+9*(n>>6))+(15&c)+9*(c>>6)}return r},w=(...e)=>{let t=0;for(const r of e)t+=p(r).length;const r=new Uint8Array(t);let s=0;for(const t of e)r.set(t,s),s+=t.length;return r},v=(e=32)=>{const t=globalThis?.crypto;if("function"!=typeof t?.getRandomValues)throw new Error("crypto.getRandomValues must be defined, consider polyfill");return t.getRandomValues(new Uint8Array(e))},g=(e,t,r,s="bad number: out of range")=>{if("bigint"!=typeof e)throw new TypeError(s);if(t<=e&&e<r)return e;throw new RangeError(s)},x=(e,t=n)=>(e%=t)>=0n?e:t+e,O=(1n<<255n)-1n,A=e=>{if(e<0n)throw new RangeError("negative coordinate");let t=19n*(e>>255n)+(e&O);return t=19n*(t>>255n)+(t&O),t%n},j=e=>x(e,c),X=(e,t)=>{if(0n===e)throw new Error("invert: expected non-zero number");if(t<=1n)throw new Error("invert: expected modulus > 1, got "+t);let r=x(e,t),s=t,n=0n,c=1n;for(;0n!==r;){const e=s/r,t=s-r*e,o=n-c*e;s=r,r=t,n=c,c=o}if(1n!==s)throw new Error("invert: does not exist");return x(n,t)},T=e=>{const t=G[e];if("function"!=typeof t)throw new Error("hashes."+e+" not set");return t},I=(e,...t)=>p(T(e)(w(...t)),64,"digest"),C=async(e,...t)=>p(await T(e)(w(...t)),64,"digest"),E=e=>{if(e instanceof P)return e;throw new TypeError("Point expected")},S=2n**256n;class P{static BASE;static ZERO;X;Y;Z;T;constructor(e,t,r,n){const c=S;this.X=g(e,0n,c),this.Y=g(t,0n,c),this.Z=g(r,1n,c),this.T=g(n,0n,c),s(this)}static CURVE(){return d}static fromAffine(e){return new P(e.x,e.y,1n,A(e.x*e.y))}static fromBytes(e,t=!1){const r=y(e,"point",h),s=r[31];r[31]=-129&s;const c=Z(r);t||g(c,0n,n);const a=A(c*c),i=x(a-1n),u=A(o*a+1n);let{isValid:d,value:l}=L(i,u);if(!d)throw new Error("bad point: y not sqrt");const p=!!(128&s);if(!t&&0n===l&&p)throw new Error("bad point: x==0, isLastByteOdd");return p!==!!(1n&l)&&(l=x(-l)),new P(l,c,1n,A(l*c))}static fromHex(e,t){return P.fromBytes(f(e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}assertValidity(){const e=u,t=o;if(this.is0())throw new Error("bad point: ZERO");const{X:r,Y:s,Z:n,T:c}=this,a=A(r*r),i=A(s*s),d=A(n*n),h=A(d*d),l=A(a*e);if(A(d*(l+i))!==x(h+A(t*A(a*i))))throw new Error("bad point: equation left != right (1)");if(A(r*s)!==A(n*c))throw new Error("bad point: equation left != right (2)");return this}equals(e){const{X:t,Y:r,Z:s}=this,{X:n,Y:c,Z:o}=E(e);return A(t*o)===A(n*s)&&A(r*o)===A(c*s)}is0(){return this.equals(V)}negate(){return new P(x(-this.X),this.Y,this.Z,x(-this.T))}double(){const{X:e,Y:t,Z:r}=this,s=u,n=A(e*e),c=A(t*t),o=A(2n*r*r),a=A(s*n),i=x(e+t),d=x(A(i*i)-n-c),h=x(a+c),l=x(h-o),p=x(a-c),y=A(d*l),m=A(h*p),b=A(d*p),f=A(l*h);return new P(y,m,f,b)}add(e){const{X:t,Y:r,Z:s,T:n}=this,{X:c,Y:a,Z:i,T:d}=E(e),h=u,l=o,p=A(t*c),y=A(r*a),m=A(A(n*l)*d),b=A(s*i),f=x(A(x(t+r)*x(c+a))-p-y),w=x(b-m),v=x(b+m),g=x(y-A(h*p)),O=A(f*w),j=A(v*g),X=A(f*g),T=A(w*v);return new P(O,j,T,X)}subtract(e){return this.add(E(e).negate())}multiply(e,t=!0){if(!t&&0n===e)return V;if(g(e,1n,c),!t&&this.is0())return V;if(1n===e)return this;if(this.equals(H))return te(e).p;let r=V,s=H,n=this;for(let c=0;t?c<256:e>0n;c++)1n&e?r=r.add(n):t&&(s=s.add(n)),n=n.double(),e>>=1n;return r}multiplyUnsafe(e){return this.multiply(e,!1)}toAffine(){const{X:e,Y:t,Z:r}=this;if(this.equals(V))return{x:0n,y:1n};const s=X(r,n);if(1n!==A(r*s))throw new Error("invalid inverse");return{x:A(e*s),y:A(t*s)}}toBytes(){const{x:e,y:t}=this.toAffine(),r=D(t);return r[31]|=1n&e?128:0,r}toHex(){return b(this.toBytes())}clearCofactor(){return this.multiply(8n,!1)}isSmallOrder(){return this.clearCofactor().is0()}isTorsionFree(){return this.multiply(c/2n,!1).double().add(this).is0()}}const H=new P(a,i,1n,x(a*i)),V=new P(0n,1n,1n,0n);P.BASE=H,P.ZERO=V;const D=e=>f(m(g(e,0n,S),64)).reverse(),Z=e=>BigInt("0x"+b(Uint8Array.from(p(e)).reverse())),N=(e,t)=>{let r=e;for(;t-- >0;)r=A(r*r);return r},B=0x2b8324804fc1df0b2b4d00993dfbd7a72f431806ad2fe478c4ee1b274a0ea0b0n,L=(e,t)=>{const r=A(t*A(t*t)),s=A(A(r*r)*t),n=(e=>{const t=A(e*e),r=A(t*e),s=A(N(r,2)*r),n=A(N(s,1)*e),c=A(N(n,5)*n),o=A(N(c,10)*c),a=A(N(o,20)*o),i=A(N(a,40)*a),u=A(N(i,80)*i),d=A(N(u,80)*i),h=A(N(d,10)*c);return A(N(h,2)*e)})(A(e*s));let c=A(e*A(r*n));const o=A(t*A(c*c)),a=c,i=A(c*B),u=o===e,d=o===x(-e),h=o===x(-e*B);return u&&(c=a),(d||h)&&(c=i),1n==(1n&x(c))&&(c=x(-c)),{isValid:u||d,value:c}},k=e=>j(Z(e)),K=e=>{const t=y(e),r=t.slice(0,32);r[0]&=248,r[31]&=127,r[31]|=64;const s=t.slice(32),n=k(r),c=H.multiply(n),o=c.toBytes();return{head:r,prefix:s,scalar:n,point:c,pointBytes:o}},F=e=>C("sha512Async",p(e,h,"secretKey")).then(K),U=e=>K(I("sha512",p(e,h,"secretKey"))),q=e=>F(e).then(e=>e.pointBytes),R=e=>U(e).pointBytes,z=async e=>e[1](await C("sha512Async",e[0])),_=e=>
2e[1](I("sha512",e[0])),$=(e,t,r)=>{const{pointBytes:s,scalar:n}=e,c=k(t),o=H.multiply(c).toBytes();return[w(o,s,r),e=>{const t=j(c+k(e)*n);return p(w(o,D(t)),64)}]},M=(e,t,r,s)=>{e=p(e,64,"signature"),t=p(t,void 0,"message"),r=p(r,h,"publicKey");const n=(e=>{if(null===e||"object"!=typeof e)throw new TypeError("expected valid options object");return e.zip215??!0})(s),c=e.subarray(0,h),o=Z(e.subarray(h,64));let a,i,u,d=Uint8Array.of(),l=!1;try{a=P.fromBytes(r,n),i=P.fromBytes(c,n),u=H.multiply(o,!1),d=w(c,r,t),l=!0}catch(e){}return[d,e=>{if(!l)return!1;if(!n&&a.isSmallOrder())return!1;const t=k(e);return i.add(a.multiply(t,!1)).subtract(u).clearCofactor().is0()}]},W=s({bytesToHex:b,hexToBytes:f,concatBytes:w,mod:x,invert:X,randomBytes:v}),G={sha512Async:async e=>{const t=globalThis?.crypto?.subtle;if(!t)throw new Error("crypto.subtle must be defined, consider polyfill");return new Uint8Array(await t.digest("SHA-512",w(e)))},sha512:void 0},Y=e=>p(void 0===e?v():e,h,"seed"),J=s({getExtendedPublicKeyAsync:F,getExtendedPublicKey:U,randomSecretKey:Y});let Q;const ee=(e,t)=>{const r=t.negate();return e?r:t},te=e=>{const t=Q||(Q=(()=>{const e=[];let t,r=H;for(let s=0;s<33;s++){t=r,e.push(t);for(let s=1;s<128;s++)t=t.add(r),e.push(t);r=t.double()}return e})());let r=V,s=H;for(let n=0;n<33;n++){let c=Number(255n&e);e>>=8n,c>128&&(c-=256,e+=1n);const o=128*n,a=o+Math.abs(c)-1,i=n%2!=0,u=c<0;0===c?s=s.add(ee(i,t[o])):r=r.add(ee(u,t[a]))}if(0n!==e)throw new Error("invalid wnaf");return{p:r,f:s}};r.d(t,["etc",0,W,"getPublicKey",0,R,"getPublicKeyAsync",0,q,"hash",0,e=>I("sha512",p(e,void 0,"message")),"hashes",0,G,"keygen",0,e=>{const t=Y(e);return{secretKey:t,publicKey:R(t)}},"keygenAsync",0,async e=>{const t=Y(e);return{secretKey:t,publicKey:await q(t)}},"sign",0,(e,t)=>{const r=y(e,"message"),s=U(t);return _($(s,I("sha512",s.prefix,r),r))},"signAsync",0,async(e,t)=>{const r=y(e,"message"),s=await F(t);return z($(s,await C("sha512Async",s.prefix,r),r))},"utils",0,J,"verify",0,(e,t,r,s={})=>_(M(e,t,r,s)),"verifyAsync",0,async(e,t,r,s={})=>z(M(e,t,r,s))])},83182(e,t,r){r.r(t),r.d(t,{_SHA224:()=>U,_SHA256:()=>F,_SHA384:()=>G,_SHA512:()=>W,_SHA512_224:()=>Q,_SHA512_256:()=>ee,sha224:()=>re,sha256:()=>te,sha384:()=>ne,sha512:()=>se,sha512_224:()=>oe,sha512_256:()=>ce});const s=(()=>BigInt(2**32-1))(),n=BigInt(32);function c(e,t=!1){return t?{h:Number(e&s),l:Number(e>>n&s)}:{h:0|Number(e>>n&s),l:0|Number(e&s)}}const o=(e,t,r)=>e>>>r,a=(e,t,r)=>e<<32-r|t>>>r,i=(e,t,r)=>e>>>r|t<<32-r,u=(e,t,r)=>e<<32-r|t>>>r,d=(e,t,r)=>e<<64-r|t>>>r-32,h=(e,t,r)=>e>>>r-32|t<<64-r;function l(e,t,r,s){const n=(t>>>0)+(s>>>0);return{h:e+r+(n/2**32|0)|0,l:0|n}}const p=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),y=(e,t,r,s)=>t+r+s+(e/2**32|0)|0,m=(e,t,r,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(s>>>0),b=(e,t,r,s,n)=>t+r+s+n+(e/2**32|0)|0,f=(e,t,r,s,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(s>>>0)+(n>>>0),w=(e,t,r,s,n,c)=>t+r+s+n+c+(e/2**32|0)|0;function v(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT}const g=e=>e?`"${e}" `:"";function x(e,t=""){if("number"!=typeof e)throw new TypeError(g(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(g(t)+"expected integer >= 0, got "+e);return e}function O(e,t,r=""){if(v(e)&&(void 0===t||e.length===t))return e;void 0!==t&&x(t,"length");const s=v(e),n=void 0!==t?` of length ${t}`:"",c=s?`length=${e.length}`:"type="+typeof e,o=g(r)+"expected Uint8Array"+n+", got "+c;if(!s)throw new TypeError(o);throw new RangeError(o)}const A=(e,t)=>{if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError(("object"===t?"":`"${t}" `)+"expected object, got type="+typeof e)},j=(e,t)=>{A(e,t);const r=Object.getPrototypeOf(e);if(r!==Object.prototype&&null!==r)throw new TypeError(`"${t}" expected plain object`);if(Object.hasOwn(e,"__proto__"))throw new TypeError(`"${t}.__proto__" is not allowed`)};function X(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function T(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function I(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function C(e,t){return e<<32-t|e>>>t}function E(e,t={}){if("function"!=typeof e)throw new TypeError('"hashCons" expected function, got type='+typeof e);t=function(e,t,r="opts"){return j(e,"defaults"),void 0!==t&&j(t,r),Object.assign(Object.create(null),e,t)}({},t,"info");const r=(t,r)=>e(r).update(t).digest(),s=e(void 0);return r.outputLen=s.outputLen,r.blockLen=s.blockLen,r.canXOF=s.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)}const S=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function P(e,t,r){return e&t^~e&r}function H(e,t,r){return e&t^e&r^t&r}class V{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,s){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(e),this.view=I(this.buffer)}update(e){X(this),O(e);const{view:t,buffer:r,blockLen:s}=this,n=e.length;let c=!1;for(let o=0;o<n;){const a=Math.min(s-this.pos,n-o);if(a===s){const t=I(e);for(;s<=n-o;o+=s)this.process(t,o);c=!0;continue}r.set(0===o&&a===n?e:e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(t,0),this.pos=0,c=!0)}return this.length+=e.length,c&&this.roundClean(),this}digestInto(e){X(this),function(e,t){O(e,void 0,"output");const r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:s,isLE:n}=this;let{pos:c}=this;t[c++]=128,t.fill(0,c),this.padOffset>s-c&&(this.process(r,0),t.fill(0)),function(e,t,r,s){const n=(e=>e/2**32|0)(r),c=(e=>e>>>0)(r);e.setUint32(t,s?c:n,s),e.setUint32(t+4,s?n:c,s)}(r,s-8,8*this.length,n),this.process(r,0),this.roundClean();const o=e===t?r:I(e),a=this.outputLen,i=a/4,u=this.get();if(a%4||i>u.length)throw new Error("invalid outputLen");for(let e=0;e<i;e++)o.setUint32(4*e,u[e],n)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneIntoMeta(e){const{buffer:t,length:r,finished:s,destroyed:n,pos:c}=this;return e.destroyed=n,e.finished=s,e.length=r,e.pos=c,c&&e.buffer.set(t),e}clone(){return this._cloneInto()}}const D=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Z=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),N=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),B=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),L=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
2734187,3204031479,3329325298]),k=new Uint32Array(64);class K extends V{A=0;B=0;C=0;D=0;E=0;F=0;G=0;H=0;constructor(e,t){super(64,e,8,!1),this.A=0|t[0],this.B=0|t[1],this.C=0|t[2],this.D=0|t[3],this.E=0|t[4],this.F=0|t[5],this.G=0|t[6],this.H=0|t[7]}get(){const{A:e,B:t,C:r,D:s,E:n,F:c,G:o,H:a}=this;return[e,t,r,s,n,c,o,a]}set(e,t,r,s,n,c,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|s,this.E=0|n,this.F=0|c,this.G=0|o,this.H=0|a}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let r=0;r<16;r++,t+=4)k[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=k[e-15],r=k[e-2],s=C(t,7)^C(t,18)^t>>>3,n=C(r,17)^C(r,19)^r>>>10;k[e]=n+k[e-7]+s+k[e-16]|0}let{A:r,B:s,C:n,D:c,E:o,F:a,G:i,H:u}=this;for(let e=0;e<64;e++){const t=u+(C(o,6)^C(o,11)^C(o,25))+P(o,a,i)+L[e]+k[e]|0,d=(C(r,2)^C(r,13)^C(r,22))+H(r,s,n)|0;u=i,i=a,a=o,o=c+t|0,c=n,n=s,s=r,r=t+d|0}r=r+this.A|0,s=s+this.B|0,n=n+this.C|0,c=c+this.D|0,o=o+this.E|0,a=a+this.F|0,i=i+this.G|0,u=u+this.H|0,this.set(r,s,n,c,o,a,i,u)}roundClean(){T(k)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),T(this.buffer)}}class F extends K{constructor(){super(32,D)}}class U extends K{constructor(){super(28,Z)}}const q=(()=>function(e,t=!1){const r=e.length;let s=new Uint32Array(r),n=new Uint32Array(r);for(let o=0;o<r;o++){const{h:r,l:a}=c(e[o],t);[s[o],n[o]]=[r,a]}return[s,n]}(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
25771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),R=(()=>q[0])(),z=(()=>q[1])(),_=new Uint32Array(80),$=new Uint32Array(80);class M extends V{Ah=0;Al=0;Bh=0;Bl=0;Ch=0;Cl=0;Dh=0;Dl=0;Eh=0;El=0;Fh=0;Fl=0;Gh=0;Gl=0;Hh=0;Hl=0;constructor(e,t){super(128,e,16,!1),this.Ah=0|t[0],this.Al=0|t[1],this.Bh=0|t[2],this.Bl=0|t[3],this.Ch=0|t[4],this.Cl=0|t[5],this.Dh=0|t[6],this.Dl=0|t[7],this.Eh=0|t[8],this.El=0|t[9],this.Fh=0|t[10],this.Fl=0|t[11],this.Gh=0|t[12],this.Gl=0|t[13],this.Hh=0|t[14],this.Hl=0|t[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:s,Ch:n,Cl:c,Dh:o,Dl:a,Eh:i,El:u,Fh:d,Fl:h,Gh:l,Gl:p,Hh:y,Hl:m}=this;return[e,t,r,s,n,c,o,a,i,u,d,h,l,p,y,m]}set(e,t,r,s,n,c,o,a,i,u,d,h,l,p,y,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|s,this.Ch=0|n,this.Cl=0|c,this.Dh=0|o,this.Dl=0|a,this.Eh=0|i,this.El=0|u,this.Fh=0|d,this.Fl=0|h,this.Gh=0|l,this.Gl=0|p,this.Hh=0|y,this.Hl=0|m}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let r=0;r<16;r++,t+=4)_[r]=e.getUint32(t),$[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|_[e-15],r=0|$[e-15],s=i(t,r,1)^i(t,r,8)^o(t,0,7),n=u(t,r,1)^u(t,r,8)^a(t,r,7),c=0|_[e-2],l=0|$[e-2],p=i(c,l,19)^d(c,l,61)^o(c,0,6),y=u(c,l,19)^h(c,l,61)^a(c,l,6),f=m(n,y,$[e-7],$[e-16]),w=b(f,s,p,_[e-7],_[e-16]);_[e]=0|w,$[e]=0|f}let{Ah:r,Al:s,Bh:n,Bl:c,Ch:v,Cl:g,Dh:x,Dl:O,Eh:A,El:j,Fh:X,Fl:T,Gh:I,Gl:C,Hh:E,Hl:S}=this;for(let e=0;e<80;e++){const t=i(A,j,14)^i(A,j,18)^d(A,j,41),o=u(A,j,14)^u(A,j,18)^h(A,j,41),a=A&X^~A&I,m=f(S,o,j&T^~j&C,z[e],$[e]),b=w(m,E,t,a,R[e],_[e]),P=0|m,H=i(r,s,28)^d(r,s,34)^d(r,s,39),V=u(r,s,28)^h(r,s,34)^h(r,s,39),D=r&n^r&v^n&v,Z=s&c^s&g^c&g;E=0|I,S=0|C,I=0|X,C=0|T,X=0|A,T=0|j,({h:A,l:j}=l(0|x,0|O,0|b,0|P)),x=0|v,O=0|g,v=0|n,g=0|c,n=0|r,c=0|s;const N=p(P,V,Z);r=y(N,b,H,D),s=0|N}({h:r,l:s}=l(0|this.Ah,0|this.Al,0|r,0|s)),({h:n,l:c}=l(0|this.Bh,0|this.Bl,0|n,0|c)),({h:v,l:g}=l(0|this.Ch,0|this.Cl,0|v,0|g)),({h:x,l:O}=l(0|this.Dh,0|this.Dl,0|x,0|O)),({h:A,l:j}=l(0|this.Eh,0|this.El,0|A,0|j)),({h:X,l:T}=l(0|this.Fh,0|this.Fl,0|X,0|T)),({h:I,l:C}=l(0|this.Gh,0|this.Gl,0|I,0|C)),({h:E,l:S}=l(0|this.Hh,0|this.Hl,0|E,0|S)),this.set(r,s,n,c,v,g,x,O,A,j,X,T,I,C,E,S)}roundClean(){T(_,$)}destroy(){this.destroyed=!0,T(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class W extends M{constructor(){super(64,B)}}class G extends M{constructor(){super(48,N)}}const Y=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),J=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class Q extends M{constructor(){super(28,Y)}}class ee extends M{constructor(){super(32,J)}}const te=E(()=>new F,S(1)),re=E(()=>new U,S(4)),se=E(()=>new W,S(3)),ne=E(()=>new G,S(2)),ce=E(()=>new ee,S(6)),oe=E(()=>new Q,S(5))},2191(e,t,r){r.d(t,{V:()=>x});var s=r(65836),n=r(9438),c=r(91646),o=r(78668),a=r(46007),i=r(45966),u=r(46534),d=r(82078),h=r(50162),l=r(19262),p=r(91117),y=r(11499),m=r(15248),b=r(84919);const f="native",w="credit_alphanum4",v="credit_alphanum12";function g(e,t){return(0,s.compareUint8Arrays)((0,s.stringToUint8Array)(e),(0,s.stringToUint8Array)(t))}class x{code;issuer;constructor(e,t){if(!/^[a-zA-Z0-9]{1,12}
2$/.test(e))throw new Error("Asset code is invalid (maximum alphanumeric, 12 characters at max)");if("xlm"!==String(e).toLowerCase()&&!t)throw new Error("Issuer cannot be null");if(t&&!o.L8.isValidEd25519PublicKey(t))throw new Error("Issuer is invalid");"xlm"===String(e).toLowerCase()?this.code="XLM":this.code=e,this.issuer=t}static native(){return new x("XLM")}static fromOperation(e){let t,r,c;switch(e.type){case"assetTypeNative":return this.native();case"assetTypeCreditAlphanum4":return t=e.alphaNum4,c=o.L8.encodeEd25519PublicKey(t.issuer.ed25519.toBytes()),r=(0,n.s)((0,s.uint8ArrayToString)(t.assetCode.toBytes()),"\0"),new this(r,c);case"assetTypeCreditAlphanum12":return t=e.alphaNum12,c=o.L8.encodeEd25519PublicKey(t.issuer.ed25519.toBytes()),r=(0,n.s)((0,s.uint8ArrayToString)(t.assetCode.toBytes()),"\0"),new this(r,c);default:throw new Error("Invalid asset type received: "+e.type)}}toXdrObject(){return this._toXdrObject(i.Vd)}toChangeTrustXdrObject(){return this._toXdrObject(u.Zr)}toTrustLineXdrObject(){return this._toXdrObject(d.Ht)}toXDRObject(){return this.toXdrObject()}toChangeTrustXDRObject(){return this.toChangeTrustXdrObject()}toTrustLineXDRObject(){return this.toTrustLineXdrObject()}contractId(e){const t=(0,a.t)((0,s.stringToUint8Array)(e)),r=h.co.envelopeTypeContractId(new l.p({networkId:t,contractIdPreimage:p.cZ.contractIdPreimageFromAsset(this.toXdrObject())}));return o.L8.encodeContract((0,a.t)(r.toXdr()))}_toXdrObject(e){if(this.isNative())return e.assetTypeNative();if(!this.issuer)throw new Error("Issuer cannot be null for non-native asset");if(this.code.length<=4){const t=new y.B({assetCode:(0,s.stringToUint8Array)(this.code.padEnd(4,"\0")),issuer:c.A.fromPublicKey(this.issuer).xdrAccountId()});return e.assetTypeCreditAlphanum4(t)}const t=new m.S({assetCode:(0,s.stringToUint8Array)(this.code.padEnd(12,"\0")),issuer:c.A.fromPublicKey(this.issuer).xdrAccountId()});return e.assetTypeCreditAlphanum12(t)}getCode(){return String(this.code)}getIssuer(){if(void 0!==this.issuer)return String(this.issuer)}getAssetType(){switch(this.getRawAssetType().value){case b.P.assetTypeNative.value:return f;case b.P.assetTypeCreditAlphanum4.value:return w;case b.P.assetTypeCreditAlphanum12.value:return v;default:throw new Error("Supported asset types are: native, credit_alphanum4, credit_alphanum12. received: "+this.getRawAssetType().name)}}getRawAssetType(){return this.isNative()?b.P.assetTypeNative:this.code.length<=4?b.P.assetTypeCreditAlphanum4:b.P.assetTypeCreditAlphanum12}isNative(){return!this.issuer}equals(e){return this.code===e.getCode()&&this.issuer===e.getIssuer()}toString(){return this.isNative()?"native":`${this.getCode()}:${this.getIssuer()}`}static compare(e,t){if(!(e&&e instanceof x))throw new Error("assetA is invalid");if(!(t&&t instanceof x))throw new Error("assetB is invalid");if(e.equals(t))return 0;const r=e.getRawAssetType().value,s=t.getRawAssetType().value;if(r!==s)return r<s?-1:1;const n=g(e.getCode(),t.getCode());if(0!==n)return n;const c=e.getIssuer(),o=t.getIssuer();if(void 0===c||void 0===o)throw new Error("Issuer is undefined for non-native asset");return g(c,o)}}},26745(e,t,r){r.d(t,{w:()=>a});var s=r(2191),n=r(46007),c=r(67396),o=r(42565);function a(e,t){if("constant_product"!==e)throw new Error("liquidityPoolType is invalid");const{assetA:r,assetB:a,fee:i}=t??{};if(!(r&&r instanceof s.V))throw new Error("assetA is invalid");if(!(a&&a instanceof s.V))throw new Error("assetB is invalid");if(!i||30!==i)throw new Error("fee is invalid");if(-1!==s.V.compare(r,a))throw new Error("Assets are not in lexicographic order");const u=c.J.liquidityPoolConstantProduct(new o.u({assetA:r.toXdrObject(),assetB:a.toXdrObject(),fee:i})).toXdr();return(0,n.t)(u)}},46007(e,t,r){r.d(t,{t:()=>c});var s=r(83182),n=r(65836);function c(e){const t="string"==typeof e?(0,n.stringToUint8Array)(e):e;return(0,s.sha256)(t)}},91646(e,t,r){r.d(t,{A:()=>f});var s=r(80789),n=r(83182),c=r(65836);s.hashes.sha512=n.sha512;var o=r(78668),a=r(46007),i=r(53924),u=r(92302),d=r(88099),h=r(85944),l=r(90429),p=r(11188);s.hashes.sha512=n.sha512;
2const y=(0,c.stringToUint8Array)("Stellar Signed Message:\n");function m(e){if(e instanceof p.t)return!0;if("object"!=typeof e||null===e)return!1;const t=e.constructor;return t?.schema?.name===p.t.schema.name&&"function"==typeof e.toBytes}function b(e){return"string"==typeof e?(0,c.stringToUint8Array)(e):Uint8Array.from(e)}class f{type;_publicKey;_secretSeed;_secretKey;constructor(e){if("ed25519"!==e.type)throw new Error("Invalid keys type");if(this.type=e.type,"secretKey"in e){const t=b(e.secretKey);if(32!==t.length)throw new Error("secretKey length is invalid");if(this._secretSeed=t,this._publicKey=function(e){return s.getPublicKey(e)}(t),this._secretKey=t,e.publicKey&&!(0,c.areUint8ArraysEqual)(this._publicKey,b(e.publicKey)))throw new Error("secretKey does not match publicKey")}else{if(!("publicKey"in e))throw new Error("At least one of publicKey or secretKey must be provided");if(this._publicKey=b(e.publicKey),32!==this._publicKey.length)throw new Error("publicKey length is invalid")}}static fromSecret(e){const t=o.L8.decodeEd25519SecretSeed(e);return this.fromRawEd25519Seed(t)}static fromRawEd25519Seed(e){return new this({type:"ed25519",secretKey:e})}static master(e){if(!e)throw new Error("No network selected. Please pass a network argument, e.g. `Keypair.master(Networks.PUBLIC)`.");return this.fromRawEd25519Seed((0,a.t)(e))}static fromPublicKey(e){const t=o.L8.decodeEd25519PublicKey(e);if(32!==t.length)throw new Error("Invalid Stellar public key");return new this({type:"ed25519",publicKey:t})}static random(){const e=s.utils.randomSecretKey();return this.fromRawEd25519Seed(e)}xdrAccountId(){return u.J.publicKeyTypeEd25519(this._publicKey)}xdrPublicKey(){return u.J.publicKeyTypeEd25519(this._publicKey)}xdrMuxedAccount(e){if(void 0!==e){if("string"!=typeof e)throw new TypeError("expected string for ID, got "+typeof e);return d.HW.keyTypeMuxedEd25519(new h.b({id:i.Rf3.fromString(e),ed25519:this._publicKey}))}return d.HW.keyTypeEd25519(this._publicKey)}rawPublicKey(){return this._publicKey}signatureHint(){const e=this.xdrAccountId().toXdr();return e.slice(e.length-4)}publicKey(){return o.L8.encodeEd25519PublicKey(this._publicKey)}secret(){if(!this._secretSeed)throw new Error("no secret key available");if("ed25519"===this.type)return o.L8.encodeEd25519SecretSeed(this._secretSeed);throw new Error("Invalid Keypair type")}rawSecretKey(){if(!this._secretSeed)throw new Error("no secret seed available");return this._secretSeed}canSign(){return!!this._secretKey}sign(e){if(!this._secretKey)throw new Error("cannot sign: no secret key available");return function(e,t){return s.sign(e,t)}(e,this._secretKey)}verify(e,t){if(!(0,c.isUint8Array)(e))throw new TypeError("expected Uint8Array for data, got "+typeof e);const r=m(t)?t.toBytes():t;if(!(0,c.isUint8Array)(r))throw new TypeError("expected Uint8Array or xdr.Signature for signature, got "+typeof t);try{return function(e,t,r){return s.verify(t,e,r,{zip215:!1})}(e,r,this._publicKey)}catch{return!1}}signMessage(e){return this.sign(this._hashMessage(e))}verifyMessage(e,t){return this.verify(this._hashMessage(e),t)}_hashMessage(e){if("string"!=typeof e&&!(0,c.isUint8Array)(e))throw new TypeError("expected string or Uint8Array for message, got "+typeof e);const t="string"==typeof e?(0,c.stringToUint8Array)(e):e;return(0,a.t)((0,c.concatUint8Arrays)([y,t]))}signDecorated(e){const t=this.sign(e),r=this.signatureHint();return new l.O({hint:r,signature:t})}signPayloadDecorated(e){const t=this.sign(e),r=this.signatureHint(),s=new Uint8Array(4);s.set(e.slice(-4),0);for(let e=0;e<s.length;e++)s[e]=s[e]^r[e];return new l.O({hint:s,signature:t})}}},16783(e,t,r){r.d(t,{f:()=>u});var s=r(65836),n=r(2191),c=r(26745),o=r(42565),a=r(67396),i=r(46534);class u{assetA;assetB;fee;constructor(e,t,r){if(!(e&&e instanceof n.V))throw new Error("assetA is invalid");if(!(t&&t instanceof n.V))throw new Error("assetB is invalid");if(-1!==n.V.compare(e,t))throw new Error("Assets are not in lexicographic order");if(!r||30!==r)throw new Error("fee is invalid");this.assetA=e,this.assetB=t,this.fee=r}static fromOperation(e){const t=e.type;if("assetTypePoolShare"===t){const t=e.value.value;return new this(n.V.fromOperation(t.assetA),n.V.fromOperation(t.assetB),t.fee)}throw new Error(`Invalid asset type: ${t}`)}toXdrObject(){const e=new o.u({assetA:this.assetA.toXdrObject(),assetB:this.assetB.toXdrObject(),fee:this.fee}),t=a.J.liquidityPoolConstantProduct(e);return i.Zr.assetTypePoolShare(t)}
2toXDRObject(){return this.toXdrObject()}getLiquidityPoolParameters(){return{...this,assetA:this.assetA,assetB:this.assetB,fee:this.fee}}getAssetType(){return"liquidity_pool_shares"}equals(e){return this.assetA.equals(e.assetA)&&this.assetB.equals(e.assetB)&&this.fee===e.fee}toString(){return`liquidity_pool:${(0,s.uint8ArrayToHex)((0,c.w)("constant_product",this.getLiquidityPoolParameters()))}`}}},9438(e,t,r){r.d(t,["s",0,(e,t)=>{const r="number"==typeof e;let s=String(e);for(;s.endsWith(t);)s=s.slice(0,-1);return r?Number(s):s}])},15248(e,t,r){r.d(t,{S:()=>a});var s=r(79755),n=r(31837),c=r(53829),o=r(92302);class a extends n.SD{assetCode;issuer;static schema=(0,s.w3)("AlphaNum12",{assetCode:c.P.schema,issuer:o.J.schema});constructor(e){super(),this.assetCode=e.assetCode instanceof c.P?e.assetCode:new c.P(e.assetCode),this.issuer=e.issuer}toXdrObject(){return{assetCode:this.assetCode.toXdrObject(),issuer:this.issuer.toXdrObject()}}static fromXdrObject(e){return new a({assetCode:c.P.fromXdrObject(e.assetCode),issuer:o.J.fromXdrObject(e.issuer)})}}},11499(e,t,r){r.d(t,{B:()=>a});var s=r(79755),n=r(31837),c=r(76240),o=r(92302);class a extends n.SD{assetCode;issuer;static schema=(0,s.w3)("AlphaNum4",{assetCode:c.k.schema,issuer:o.J.schema});constructor(e){super(),this.assetCode=e.assetCode instanceof c.k?e.assetCode:new c.k(e.assetCode),this.issuer=e.issuer}toXdrObject(){return{assetCode:this.assetCode.toXdrObject(),issuer:this.issuer.toXdrObject()}}static fromXdrObject(e){return new a({assetCode:c.k.fromXdrObject(e.assetCode),issuer:o.J.fromXdrObject(e.issuer)})}}},53829(e,t,r){r.d(t,{P:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=12;static padTo=12;static encoding="ascii";static schema=(0,s.OZ)(12,"AssetCode12");static fromXdrObject(e){return new c(e)}}},76240(e,t,r){r.d(t,{k:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=4;static padTo=4;static encoding="ascii";static schema=(0,s.OZ)(4,"AssetCode4");static fromXdrObject(e){return new c(e)}}},84919(e,t,r){r.d(t,{P:()=>c});var s=r(79755),n=r(55018);class c extends n.RS{static assetTypeNative=new c("assetTypeNative",0);static assetTypeCreditAlphanum4=new c("assetTypeCreditAlphanum4",1);static assetTypeCreditAlphanum12=new c("assetTypeCreditAlphanum12",2);static assetTypePoolShare=new c("assetTypePoolShare",3);static schema=(0,n.P8)((0,s.QT)("AssetType",{assetTypeNative:0,assetTypeCreditAlphanum4:1,assetTypeCreditAlphanum12:2,assetTypePoolShare:3}),"assetType");static fromValue(e){return(0,n.t4)("AssetType",c.schema,c,e)}static fromName(e){return(0,n.$2)("AssetType",c,e)}static fromXdrObject(e){return c.fromValue(e)}}},45966(e,t,r){var s=r(79755),n=r(31837),c=r(84919),o=r(11499),a=r(15248);class i extends n.SD{constructor(){if(super(),new.target===i)throw new TypeError("new xdr.Asset(...) is not supported: XDR unions are built from per-variant factories. Call xdr.Asset.assetTypeNative() (or another arm factory) instead.")}static schema=(0,s.KC)("Asset",{switchOn:c.P.schema,cases:[(0,s.DH)("assetTypeNative",0,(0,s.rI)()),(0,s.DH)("assetTypeCreditAlphanum4",1,(0,s.ZZ)("alphaNum4",o.B.schema)),(0,s.DH)("assetTypeCreditAlphanum12",2,(0,s.ZZ)("alphaNum12",a.S.schema))]});static assetTypeNative(){return new u}static assetTypeCreditAlphanum4(e){return new d(e)}static assetTypeCreditAlphanum12(e){return new h(e)}static fromXdrObject(e){switch(e.type){case 0:return new u;case 1:return new d(o.B.fromXdrObject(e.alphaNum4));case 2:return new h(a.S.fromXdrObject(e.alphaNum12))}throw new s.zj(`Asset: unknown type ${e.type}`)}static is(e){return e instanceof i}}class u extends i{type="assetTypeNative";get value(){return null}toXdrObject(){return{type:0}}}class d extends i{type="assetTypeCreditAlphanum4";alphaNum4;constructor(e){super(),this.alphaNum4=e}get value(){return this.alphaNum4}toXdrObject(){return{type:1,alphaNum4:this.alphaNum4.toXdrObject()}}}class h extends i{type="assetTypeCreditAlphanum12";alphaNum12;constructor(e){super(),this.alphaNum12=e}get value(){return this.alphaNum12}toXdrObject(){return{type:2,alphaNum12:this.alphaNum12.toXdrObject()}}}const l=i;r.d(t,["Vd",0,l])},46534(e,t,r){var s=r(79755),n=r(31837),c=r(84919),o=r(11499),a=r
2(15248),i=r(67396);class u extends n.SD{constructor(){if(super(),new.target===u)throw new TypeError("new xdr.ChangeTrustAsset(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ChangeTrustAsset.assetTypeNative() (or another arm factory) instead.")}static schema=(0,s.KC)("ChangeTrustAsset",{switchOn:c.P.schema,cases:[(0,s.DH)("assetTypeNative",0,(0,s.rI)()),(0,s.DH)("assetTypeCreditAlphanum4",1,(0,s.ZZ)("alphaNum4",o.B.schema)),(0,s.DH)("assetTypeCreditAlphanum12",2,(0,s.ZZ)("alphaNum12",a.S.schema)),(0,s.DH)("assetTypePoolShare",3,(0,s.ZZ)("liquidityPool",i.J.schema))]});static assetTypeNative(){return new d}static assetTypeCreditAlphanum4(e){return new h(e)}static assetTypeCreditAlphanum12(e){return new l(e)}static assetTypePoolShare(e){return new p(e)}static fromXdrObject(e){switch(e.type){case 0:return new d;case 1:return new h(o.B.fromXdrObject(e.alphaNum4));case 2:return new l(a.S.fromXdrObject(e.alphaNum12));case 3:return new p(i.J.fromXdrObject(e.liquidityPool))}throw new s.zj(`ChangeTrustAsset: unknown type ${e.type}`)}static is(e){return e instanceof u}}class d extends u{type="assetTypeNative";get value(){return null}toXdrObject(){return{type:0}}}class h extends u{type="assetTypeCreditAlphanum4";alphaNum4;constructor(e){super(),this.alphaNum4=e}get value(){return this.alphaNum4}toXdrObject(){return{type:1,alphaNum4:this.alphaNum4.toXdrObject()}}}class l extends u{type="assetTypeCreditAlphanum12";alphaNum12;constructor(e){super(),this.alphaNum12=e}get value(){return this.alphaNum12}toXdrObject(){return{type:2,alphaNum12:this.alphaNum12.toXdrObject()}}}class p extends u{type="assetTypePoolShare";liquidityPool;constructor(e){super(),this.liquidityPool=e}get value(){return this.liquidityPool}toXdrObject(){return{type:3,liquidityPool:this.liquidityPool.toXdrObject()}}}const y=u;r.d(t,["Zr",0,y])},25154(e,t,r){r.d(t,{m:()=>c});var s=r(79755),n=r(55018);class c extends n.RS{static claimableBalanceIdTypeV0=new c("claimableBalanceIdTypeV0",0);static schema=(0,s.QT)("ClaimableBalanceIdType",{claimableBalanceIdTypeV0:0});static fromValue(e){return(0,n.t4)("ClaimableBalanceIdType",c.schema,c,e)}static fromName(e){return(0,n.$2)("ClaimableBalanceIdType",c,e)}static fromXdrObject(e){return c.fromValue(e)}}},86065(e,t,r){r.d(t,{i:()=>i});var s=r(79755),n=r(31837),c=r(25154),o=r(73512);class a extends n.SD{constructor(){if(super(),new.target===a)throw new TypeError("new xdr.ClaimableBalanceId(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ClaimableBalanceId.claimableBalanceIdTypeV0(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ClaimableBalanceId",{switchOn:c.m.schema,cases:[(0,s.DH)("claimableBalanceIdTypeV0",0,(0,s.ZZ)("v0",o.V.schema))]});static claimableBalanceIdTypeV0(e){return new i(e)}static fromXdrObject(e){if(0===e.type)return new i(o.V.fromXdrObject(e.v0));throw new s.zj(`ClaimableBalanceId: unknown type ${e.type}`)}static is(e){return e instanceof a}}class i extends a{type="claimableBalanceIdTypeV0";v0;constructor(e){super(),this.v0=e instanceof o.V?e:new o.V(e)}get value(){return this.v0}toXdrObject(){return{type:0,v0:this.v0.toXdrObject()}}}const u=a;r.d(t,["_",0,u])},87691(e,t,r){r.d(t,{H:()=>a});var s=r(79755),n=r(31837),c=r(6815),o=r(93083);class a extends n.SD{executableOwner;tag;static schema=(0,s.w3)("ContractExecutableExternalRef",{executableOwner:o.lu.schema,tag:(0,c.G)(s.dp)});constructor(e){super(),this.executableOwner=e.executableOwner,this.tag=e.tag instanceof c.u?e.tag:new c.u(e.tag)}toXdrObject(){return{executableOwner:this.executableOwner.toXdrObject(),tag:this.tag}}static fromXdrObject(e){return new a({executableOwner:o.lu.fromXdrObject(e.executableOwner),tag:e.tag})}}},25610(e,t,r){r.d(t,{bC:()=>p});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static contractExecutableWasm=new o("contractExecutableWasm",0);static contractExecutableStellarAsset=new o("contractExecutableStellarAsset",1);static contractExecutableExternalRef=new o("contractExecutableExternalRef",2);static schema=(0,c.P8)((0,s.QT)("ContractExecutableType",{contractExecutableWasm:0,contractExecutableStellarAsset:1,contractExecutableExternalRef:2}),"contractExecutable");static fromValue(e){return(0,c.t4)("ContractExecutableType",o.schema,o,e)}static fromName(e){return(0,c.$2)("ContractExecutableType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(73512),i=r(87691);class u extends n.SD{constructor(){if(super(),new.target===u)throw new TypeError("new xdr.ContractExecutable(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ContractExecutable.contractExecutableWasm(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ContractExecutable",{switchOn:o.schema,cases:[(0,s.DH)("contractExecutableWasm",0,(0,s.ZZ)("wasmHash",a.V.schema)),(0,s.DH)("contractExecutableStellarAsset",1,(0,s.rI)()),(0,s.DH)("contractExecutableExternalRef",2,(0,s.ZZ)("externalRef",i.H.schema))]});static contractExecutableWasm(e){return new d(e)}static contractExecutableStellarAsset(){return new h}static contractExecutableExternalRef(e){return new l(e)}static fromXdrObject(e){switch(e.type){case 0:return new d(a.V.fromXdrObject(e.wasmHash));case 1:return new h;case 2:return new l(i.H.fromXdrObject(e.externalRef))}throw new s.zj(`ContractExecutable: unknown type ${e.type}`)}static is(e){return e instanceof u}}class d extends u{type="contractExecutableWasm";wasmHash;constructor(e){super(),this.wasmHash=e instanceof a.V?e:new a.V(e)}get value(){return this.wasmHash}toXdrObject(){return{type:0,wasmHash:this.wasmHash.toXdrObject()}}}class h extends u{type="contractExecutableStellarAsset";get value(){return null}toXdrObject(){return{type:1}}}class l extends u{type="contractExecutableExternalRef";externalRef;constructor(e){super(),this.externalRef=e}get value(){return this.externalRef}toXdrObject(){return{type:2,externalRef:this.externalRef.toXdrObject()}}}const p=u},74843(e,t,r){r.d(t,{g:()=>a});var s=r(79755),n=r(31837),c=r(93083),o=r(8033);class a extends n.SD{address;salt;
2static schema=(0,s.w3)("ContractIdPreimageFromAddress",{address:c.lu.schema,salt:o.l.schema});constructor(e){super(),this.address=e.address,this.salt=e.salt instanceof o.l?e.salt:new o.l(e.salt)}toXdrObject(){return{address:this.address.toXdrObject(),salt:this.salt.toXdrObject()}}static fromXdrObject(e){return new a({address:c.lu.fromXdrObject(e.address),salt:o.l.fromXdrObject(e.salt)})}}},91117(e,t,r){r.d(t,{cZ:()=>l});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static contractIdPreimageFromAddress=new o("contractIdPreimageFromAddress",0);static contractIdPreimageFromAsset=new o("contractIdPreimageFromAsset",1);static schema=(0,c.P8)((0,s.QT)("ContractIdPreimageType",{contractIdPreimageFromAddress:0,contractIdPreimageFromAsset:1}),"contractIdPreimageFrom");static fromValue(e){return(0,c.t4)("ContractIdPreimageType",o.schema,o,e)}static fromName(e){return(0,c.$2)("ContractIdPreimageType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(74843),i=r(45966);class u extends n.SD{constructor(){if(super(),new.target===u)throw new TypeError("new xdr.ContractIdPreimage(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ContractIdPreimage.contractIdPreimageFromAddress(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ContractIdPreimage",{switchOn:o.schema,cases:[(0,s.DH)("contractIdPreimageFromAddress",0,(0,s.ZZ)("fromAddress",a.g.schema)),(0,s.DH)("contractIdPreimageFromAsset",1,(0,s.ZZ)("fromAsset",i.Vd.schema))]});static contractIdPreimageFromAddress(e){return new d(e)}static contractIdPreimageFromAsset(e){return new h(e)}static fromXdrObject(e){switch(e.type){case 0:return new d(a.g.fromXdrObject(e.fromAddress));case 1:return new h(i.Vd.fromXdrObject(e.fromAsset))}throw new s.zj(`ContractIdPreimage: unknown type ${e.type}`)}static is(e){return e instanceof u}}class d extends u{type="contractIdPreimageFromAddress";fromAddress;constructor(e){super(),this.fromAddress=e}get value(){return this.fromAddress}toXdrObject(){return{type:0,fromAddress:this.fromAddress.toXdrObject()}}}class h extends u{type="contractIdPreimageFromAsset";fromAsset;constructor(e){super(),this.fromAsset=e}get value(){return this.fromAsset}toXdrObject(){return{type:1,fromAsset:this.fromAsset.toXdrObject()}}}const l=u},16902(e,t,r){r.d(t,{K:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=32;static encoding="hex";static schema=(0,s.OZ)(32,"ContractId");static fromXdrObject(e){return new c(e)}}},93314(e,t,r){r.d(t,{m:()=>i});var s=r(79755),n=r(31837),c=r(91117),o=r(25610),a=r(14992);class i extends n.SD{contractIdPreimage;executable;constructorArgs;static schema=(0,s.w3)("CreateContractArgsV2",{contractIdPreimage:c.cZ.schema,executable:o.bC.schema,constructorArgs:(0,s.YO)(a.wq.schema,s.dp)});constructor(e){super(),this.contractIdPreimage=e.contractIdPreimage,this.executable=e.executable,this.constructorArgs=e.constructorArgs}toXdrObject(){return{contractIdPreimage:this.contractIdPreimage.toXdrObject(),executable:this.executable.toXdrObject(),constructorArgs:this.constructorArgs.map(e=>e.toXdrObject())}}static fromXdrObject(e){return new i({contractIdPreimage:c.cZ.fromXdrObject(e.contractIdPreimage),executable:o.bC.fromXdrObject(e.executable),constructorArgs:e.constructorArgs.map(e=>a.wq.fromXdrObject(e))})}}},48669(e,t,r){r.d(t,{W:()=>a});var s=r(79755),n=r(31837),c=r(91117),o=r(25610);class a extends n.SD{contractIdPreimage;executable;static schema=(0,s.w3)("CreateContractArgs",{contractIdPreimage:c.cZ.schema,executable:o.bC.schema});constructor(e){super(),this.contractIdPreimage=e.contractIdPreimage,this.executable=e.executable}toXdrObject(){return{contractIdPreimage:this.contractIdPreimage.toXdrObject(),executable:this.executable.toXdrObject()}}static fromXdrObject(e){return new a({contractIdPreimage:c.cZ.fromXdrObject(e.contractIdPreimage),executable:o.bC.fromXdrObject(e.executable)})}}},90429(e,t,r){r.d(t,{O:()=>i});var s=r(79755),n=r(31837),c=r(50792);class o extends c.v{static byteLength=4;static encoding="hex";static schema=(0,s.OZ)(4,"SignatureHint");static fromXdrObject(e){return new o(e)}}var a=r(11188);class i extends n.SD{hint;signature;static schema=(0,s.w3)("DecoratedSignature",{hint:o.schema,signature:a.t.schema});constructor(e){super(),this.hint=e.hint instanceof o?e.hint:new o(e.hint),this.signature=e.signature instanceof a.t?e.signature:new a.t(e.signature)}toXdrObject(){return{hint:this.hint.toXdrObject(),signature:this.signature.toXdrObject()}}static fromXdrObject(e){return new i({hint:o.fromXdrObject(e.hint),signature:a.t.fromXdrObject(e.signature)})}}},77193(e,t,r){r.d(t,{v:()=>c});var s=r(79755),n=r(55018);class c extends n.RS{static envelopeTypeTxV0=new c("envelopeTypeTxV0",0);static envelopeTypeScp=new c("envelopeTypeScp",1);static envelopeTypeTx=new c("envelopeTypeTx",2);static envelopeTypeAuth=new c("envelopeTypeAuth",3);static envelopeTypeScpvalue=new c("envelopeTypeScpvalue",4);static envelopeTypeTxFeeBump=new c("envelopeTypeTxFeeBump",5);static envelopeTypeOpId=new c("envelopeTypeOpId",6);static envelopeTypePoolRevokeOpId=new c("envelopeTypePoolRevokeOpId",7);static envelopeTypeContractId=new c("envelopeTypeContractId",8);static envelopeTypeSorobanAuthorization=new c("envelopeTypeSorobanAuthorization",9);static envelopeTypeSorobanAuthorizationWithAddress=new c("envelopeTypeSorobanAuthorizationWithAddress",10);static schema=(0,n.P8)((0,s.QT)("EnvelopeType",{envelopeTypeTxV0:0,envelopeTypeScp:1,envelopeTypeTx:2,envelopeTypeAuth:3,envelopeTypeScpvalue:4,envelopeTypeTxFeeBump:5,envelopeTypeOpId:6,envelopeTypePoolRevokeOpId:7,envelopeTypeContractId:8,envelopeTypeSorobanAuthorization:9,envelopeTypeSorobanAuthorizationWithAddress:10}),"envelopeType");static fromValue(e){return(0,n.t4)("EnvelopeType",c.schema,c,e)}static fromName(e){return(0,n.$2)("EnvelopeType",c,e)}static fromXdrObject(e){return c.fromValue(e)}}},19262(e,t,r){r.d(t,{p:()=>a});
2var s=r(79755),n=r(31837),c=r(73512),o=r(91117);class a extends n.SD{networkId;contractIdPreimage;static schema=(0,s.w3)("HashIdPreimageContractId",{networkId:c.V.schema,contractIdPreimage:o.cZ.schema});constructor(e){super(),this.networkId=e.networkId instanceof c.V?e.networkId:new c.V(e.networkId),this.contractIdPreimage=e.contractIdPreimage}toXdrObject(){return{networkId:this.networkId.toXdrObject(),contractIdPreimage:this.contractIdPreimage.toXdrObject()}}static fromXdrObject(e){return new a({networkId:c.V.fromXdrObject(e.networkId),contractIdPreimage:o.cZ.fromXdrObject(e.contractIdPreimage)})}}},34013(e,t,r){r.d(t,{Y:()=>o});var s=r(79755),n=r(31837),c=r(92302);class o extends n.SD{sourceAccount;seqNum;opNum;static schema=(0,s.w3)("HashIdPreimageOperationId",{sourceAccount:c.J.schema,seqNum:(0,s.Gk)(),opNum:(0,s.S8)()});constructor(e){super(),this.sourceAccount=e.sourceAccount,this.seqNum=e.seqNum,this.opNum=e.opNum}toXdrObject(){return{sourceAccount:this.sourceAccount.toXdrObject(),seqNum:this.seqNum,opNum:this.opNum}}static fromXdrObject(e){return new o({sourceAccount:c.J.fromXdrObject(e.sourceAccount),seqNum:e.seqNum,opNum:e.opNum})}}},50162(e,t,r){r.d(t,{co:()=>A});var s=r(79755),n=r(31837),c=r(77193),o=r(34013),a=r(92302),i=r(3474),u=r(45966);class d extends n.SD{sourceAccount;seqNum;opNum;liquidityPoolId;asset;static schema=(0,s.w3)("HashIdPreimageRevokeId",{sourceAccount:a.J.schema,seqNum:(0,s.Gk)(),opNum:(0,s.S8)(),liquidityPoolId:i.e.schema,asset:u.Vd.schema});constructor(e){super(),this.sourceAccount=e.sourceAccount,this.seqNum=e.seqNum,this.opNum=e.opNum,this.liquidityPoolId=e.liquidityPoolId,this.asset=e.asset}toXdrObject(){return{sourceAccount:this.sourceAccount.toXdrObject(),seqNum:this.seqNum,opNum:this.opNum,liquidityPoolId:this.liquidityPoolId.toXdrObject(),asset:this.asset.toXdrObject()}}static fromXdrObject(e){return new d({sourceAccount:a.J.fromXdrObject(e.sourceAccount),seqNum:e.seqNum,opNum:e.opNum,liquidityPoolId:i.e.fromXdrObject(e.liquidityPoolId),asset:u.Vd.fromXdrObject(e.asset)})}}var h=r(19262),l=r(73512),p=r(14727);class y extends n.SD{networkId;nonce;signatureExpirationLedger;invocation;static schema=(0,s.w3)("HashIdPreimageSorobanAuthorization",{networkId:l.V.schema,nonce:(0,s.Gk)(),signatureExpirationLedger:(0,s.S8)(),invocation:p.y.schema});constructor(e){super(),this.networkId=e.networkId instanceof l.V?e.networkId:new l.V(e.networkId),this.nonce=e.nonce,this.signatureExpirationLedger=e.signatureExpirationLedger,this.invocation=e.invocation}toXdrObject(){return{networkId:this.networkId.toXdrObject(),nonce:this.nonce,signatureExpirationLedger:this.signatureExpirationLedger,invocation:this.invocation.toXdrObject()}}static fromXdrObject(e){return new y({networkId:l.V.fromXdrObject(e.networkId),nonce:e.nonce,signatureExpirationLedger:e.signatureExpirationLedger,invocation:p.y.fromXdrObject(e.invocation)})}}var m=r(93083);class b extends n.SD{networkId;nonce;signatureExpirationLedger;address;invocation;static schema=(0,s.w3)("HashIdPreimageSorobanAuthorizationWithAddress",{networkId:l.V.schema,nonce:(0,s.Gk)(),signatureExpirationLedger:(0,s.S8)(),address:m.lu.schema,invocation:p.y.schema});constructor(e){super(),this.networkId=e.networkId instanceof l.V?e.networkId:new l.V(e.networkId),this.nonce=e.nonce,this.signatureExpirationLedger=e.signatureExpirationLedger,this.address=e.address,this.invocation=e.invocation}toXdrObject(){return{networkId:this.networkId.toXdrObject(),nonce:this.nonce,signatureExpirationLedger:this.signatureExpirationLedger,address:this.address.toXdrObject(),invocation:this.invocation.toXdrObject()}}static fromXdrObject(e){return new b({networkId:l.V.fromXdrObject(e.networkId),nonce:e.nonce,signatureExpirationLedger:e.signatureExpirationLedger,address:m.lu.fromXdrObject(e.address),invocation:p.y.fromXdrObject(e.invocation)})}}class f extends n.SD{constructor(){if(super(),new.target===f)throw new TypeError("new xdr.HashIdPreimage(...) is not supported: XDR unions are built from per-variant factories. Call xdr.HashIdPreimage.envelopeTypeOpId(...) (or another arm factory) instead.")}static schema=(0,s.KC)("HashIdPreimage",{switchOn:c.v.schema,cases:[(0,s.DH)("envelopeTypeOpId",6,(0,s.ZZ)("operationId",o.Y.schema)),(0,s.DH)("envelopeTypePoolRevokeOpId",7,(0,s.ZZ)("revokeId",d.schema)),(0,s.DH)("envelopeTypeContractId",8,(0,s.ZZ)("contractId",h.p.schema)),(0,s.DH)("envelopeTypeSorobanAuthorization",9,(0,s.ZZ)("sorobanAuthorization",y.schema)),(0,s.DH)("envelopeTypeSorobanAuthorizationWithAddress",10,(0,s.ZZ)("sorobanAuthorizationWithAddress",b.schema))]});static envelopeTypeOpId(e){return new w(e)}static envelopeTypePoolRevokeOpId(e){return new v(e)}static envelopeTypeContractId(e){return new g(e)}static envelopeTypeSorobanAuthorization(e){return new x(e)}static envelopeTypeSorobanAuthorizationWithAddress(e){return new O(e)}static fromXdrObject(e){switch(e.type){case 6:return new w(o.Y.fromXdrObject(e.operationId));case 7:return new v(d.fromXdrObject(e.revokeId));case 8:return new g(h.p.fromXdrObject(e.contractId));case 9:return new x(y.fromXdrObject(e.sorobanAuthorization));case 10:return new O(b.fromXdrObject(e.sorobanAuthorizationWithAddress))}throw new s.zj(`HashIdPreimage: unknown type ${e.type}`)}static is(e){return e instanceof f}}class w extends f{type="envelopeTypeOpId";operationId;constructor(e){super(),this.operationId=e}get value(){return this.operationId}toXdrObject(){return{type:6,operationId:this.operationId.toXdrObject()}}}class v extends f{type="envelopeTypePoolRevokeOpId";revokeId;constructor(e){super(),this.revokeId=e}get value(){return this.revokeId}toXdrObject(){return{type:7,revokeId:this.revokeId.toXdrObject()}}}class g extends f{type="envelopeTypeContractId";contractId;constructor(e){super(),this.contractId=e}get value(){return this.contractId}toXdrObject(){return{type:8,contractId:this.contractId.toXdrObject()}}}class x extends f{type="envelopeTypeSorobanAuthorization";sorobanAuthorization;constructor(e){super(),this.sorobanAuthorization=e}get value(){return this.sorobanAuthorization}toXdrObject(){return{type:9,sorobanAuthorization:this.sorobanAuthorization.toXdrObject()}}}class O extends f{type="envelopeTypeSorobanAuthorizationWithAddress";sorobanAuthorizationWithAddress;constructor(e){super(),this.sorobanAuthorizationWithAddress=e}get value(){return this.sorobanAuthorizationWithAddress}toXdrObject(){return{type:10,sorobanAuthorizationWithAddress:this.sorobanAuthorizationWithAddress.toXdrObject()}}}const A=f},73512(e,t,r){r.d(t,{V:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=32;static encoding="hex";static schema=(0,s.OZ)(32,"Hash");static fromXdrObject(e){return new c(e)}}},10509(e,t,r){r.d(t,{p:()=>c});var s=r(79755),n=r(31837);class c extends n.SD{hi;lo;static schema=(0,s.w3)("Int128Parts",{hi:(0,s.Gk)(),lo:(0,s.VV)()});constructor(e){super(),this.hi=e.hi,this.lo=e.lo}toXdrObject(){return{hi:this.hi,lo:this.lo}}static fromXdrObject(e){return new c({hi:e.hi,lo:e.lo})}}},83729(e,t,r){r.d(t,{J:()=>c});var s=r(79755),n=r(31837);class c extends n.SD{hiHi;hiLo;loHi;loLo;static schema=(0,s.w3)("Int256Parts",{hiHi:(0,s.Gk)(),hiLo:(0,s.VV)(),loHi:(0,s.VV)(),loLo:(0,s.VV)()});constructor(e){super(),this.hiHi=e.hiHi,this.hiLo=e.hiLo,this.loHi=e.loHi,this.loLo=e.loLo}toXdrObject(){return{hiHi:this.hiHi,hiLo:this.hiLo,loHi:this.loHi,loLo:this.loLo}}static fromXdrObject(e){return new c({hiHi:e.hiHi,hiLo:e.hiLo,loHi:e.loHi,loLo:e.loLo})}}},94213(e,t,r){r.d(t,{M:()=>i});
2var s=r(79755),n=r(31837),c=r(6815),o=r(93083),a=r(14992);class i extends n.SD{contractAddress;functionName;args;static schema=(0,s.w3)("InvokeContractArgs",{contractAddress:o.lu.schema,functionName:(0,c.G)(32),args:(0,s.YO)(a.wq.schema,s.dp)});constructor(e){super(),this.contractAddress=e.contractAddress,this.functionName=e.functionName instanceof c.u?e.functionName:new c.u(e.functionName),this.args=e.args}toXdrObject(){return{contractAddress:this.contractAddress.toXdrObject(),functionName:this.functionName,args:this.args.map(e=>e.toXdrObject())}}static fromXdrObject(e){return new i({contractAddress:o.lu.fromXdrObject(e.contractAddress),functionName:e.functionName,args:e.args.map(e=>a.wq.fromXdrObject(e))})}}},42565(e,t,r){r.d(t,{u:()=>o});var s=r(79755),n=r(31837),c=r(45966);class o extends n.SD{assetA;assetB;fee;static schema=(0,s.w3)("LiquidityPoolConstantProductParameters",{assetA:c.Vd.schema,assetB:c.Vd.schema,fee:(0,s.HA)()});constructor(e){super(),this.assetA=e.assetA,this.assetB=e.assetB,this.fee=e.fee}toXdrObject(){return{assetA:this.assetA.toXdrObject(),assetB:this.assetB.toXdrObject(),fee:this.fee}}static fromXdrObject(e){return new o({assetA:c.Vd.fromXdrObject(e.assetA),assetB:c.Vd.fromXdrObject(e.assetB),fee:e.fee})}}},67396(e,t,r){r.d(t,{J:()=>d});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static liquidityPoolConstantProduct=new o("liquidityPoolConstantProduct",0);static schema=(0,s.QT)("LiquidityPoolType",{liquidityPoolConstantProduct:0});static fromValue(e){return(0,c.t4)("LiquidityPoolType",o.schema,o,e)}static fromName(e){return(0,c.$2)("LiquidityPoolType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(42565);class i extends n.SD{constructor(){if(super(),new.target===i)throw new TypeError("new xdr.LiquidityPoolParameters(...) is not supported: XDR unions are built from per-variant factories. Call xdr.LiquidityPoolParameters.liquidityPoolConstantProduct(...) (or another arm factory) instead.")}static schema=(0,s.KC)("LiquidityPoolParameters",{switchOn:o.schema,cases:[(0,s.DH)("liquidityPoolConstantProduct",0,(0,s.ZZ)("constantProduct",a.u.schema))]});static liquidityPoolConstantProduct(e){return new u(e)}static fromXdrObject(e){if(0===e.type)return new u(a.u.fromXdrObject(e.constantProduct));throw new s.zj(`LiquidityPoolParameters: unknown type ${e.type}`)}static is(e){return e instanceof i}}class u extends i{type="liquidityPoolConstantProduct";constantProduct;constructor(e){super(),this.constantProduct=e}get value(){return this.constantProduct}toXdrObject(){return{type:0,constantProduct:this.constantProduct.toXdrObject()}}}const d=i},85944(e,t,r){r.d(t,{b:()=>o});var s=r(79755),n=r(31837),c=r(8033);class o extends n.SD{id;ed25519;static schema=(0,s.w3)("MuxedAccountMed25519",{id:(0,s.VV)(),ed25519:c.l.schema});constructor(e){super(),this.id=e.id,this.ed25519=e.ed25519 instanceof c.l?e.ed25519:new c.l(e.ed25519)}toXdrObject(){return{id:this.id,ed25519:this.ed25519.toXdrObject()}}static fromXdrObject(e){return new o({id:e.id,ed25519:c.l.fromXdrObject(e.ed25519)})}}},88099(e,t,r){r.d(t,{HW:()=>l});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static keyTypeEd25519=new o("keyTypeEd25519",0);static keyTypePreAuthTx=new o("keyTypePreAuthTx",1);static keyTypeHashX=new o("keyTypeHashX",2);static keyTypeEd25519SignedPayload=new o("keyTypeEd25519SignedPayload",3);static keyTypeMuxedEd25519=new o("keyTypeMuxedEd25519",256);static schema=(0,c.P8)((0,s.QT)("CryptoKeyType",{keyTypeEd25519:0,keyTypePreAuthTx:1,keyTypeHashX:2,keyTypeEd25519SignedPayload:3,keyTypeMuxedEd25519:256}),"keyType");static fromValue(e){return(0,c.t4)("CryptoKeyType",o.schema,o,e)}static fromName(e){return(0,c.$2)("CryptoKeyType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(8033),i=r(85944);class u extends n.SD{constructor(){if(super(),new.target===u)throw new TypeError("new xdr.MuxedAccount(...) is not supported: XDR unions are built from per-variant factories. Call xdr.MuxedAccount.keyTypeEd25519(...) (or another arm factory) instead.")}static schema=(0,s.KC)("MuxedAccount",{switchOn:o.schema,cases:[(0,s.DH)("keyTypeEd25519",0,(0,s.ZZ)("ed25519",a.l.schema)),(0,s.DH)("keyTypeMuxedEd25519",256,(0,s.ZZ)("med25519",i.b.schema))]});static keyTypeEd25519(e){return new d(e)}static keyTypeMuxedEd25519(e){return new h(e)}static fromXdrObject(e){switch(e.type){case 0:return new d(a.l.fromXdrObject(e.ed25519));case 256:return new h(i.b.fromXdrObject(e.med25519))}throw new s.zj(`MuxedAccount: unknown type ${e.type}`)}static is(e){return e instanceof u}}class d extends u{type="keyTypeEd25519";ed25519;constructor(e){super(),this.ed25519=e instanceof a.l?e:new a.l(e)}get value(){return this.ed25519}toXdrObject(){return{type:0,ed25519:this.ed25519.toXdrObject()}}}class h extends u{type="keyTypeMuxedEd25519";med25519;constructor(e){super(),this.med25519=e}get value(){return this.med25519}toXdrObject(){return{type:256,med25519:this.med25519.toXdrObject()}}}const l=u},33443(e,t,r){r.d(t,{o:()=>o});var s=r(79755),n=r(31837),c=r(8033);
2class o extends n.SD{id;ed25519;static schema=(0,s.w3)("MuxedEd25519Account",{id:(0,s.VV)(),ed25519:c.l.schema});constructor(e){super(),this.id=e.id,this.ed25519=e.ed25519 instanceof c.l?e.ed25519:new c.l(e.ed25519)}toXdrObject(){return{id:this.id,ed25519:this.ed25519.toXdrObject()}}static fromXdrObject(e){return new o({id:e.id,ed25519:c.l.fromXdrObject(e.ed25519)})}}},3474(e,t,r){r.d(t,{e:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=32;static encoding="hex";static schema=(0,s.OZ)(32,"PoolId");static fromXdrObject(e){return new c(e)}}},92302(e,t,r){r.d(t,{J:()=>d});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static publicKeyTypeEd25519=new o("publicKeyTypeEd25519",0);static schema=(0,s.QT)("PublicKeyType",{publicKeyTypeEd25519:0});static fromValue(e){return(0,c.t4)("PublicKeyType",o.schema,o,e)}static fromName(e){return(0,c.$2)("PublicKeyType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(8033);class i extends n.SD{constructor(){if(super(),new.target===i)throw new TypeError("new xdr.PublicKey(...) is not supported: XDR unions are built from per-variant factories. Call xdr.PublicKey.publicKeyTypeEd25519(...) (or another arm factory) instead.")}static schema=(0,s.KC)("PublicKey",{switchOn:o.schema,cases:[(0,s.DH)("publicKeyTypeEd25519",0,(0,s.ZZ)("ed25519",a.l.schema))]});static publicKeyTypeEd25519(e){return new u(e)}static fromXdrObject(e){if(0===e.type)return new u(a.l.fromXdrObject(e.ed25519));throw new s.zj(`PublicKey: unknown type ${e.type}`)}static is(e){return e instanceof i}}class u extends i{type="publicKeyTypeEd25519";ed25519;constructor(e){super(),this.ed25519=e instanceof a.l?e:new a.l(e)}get value(){return this.ed25519}toXdrObject(){return{type:0,ed25519:this.ed25519.toXdrObject()}}}const d=i},93083(e,t,r){r.d(t,{lu:()=>w});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static scAddressTypeAccount=new o("scAddressTypeAccount",0);static scAddressTypeContract=new o("scAddressTypeContract",1);static scAddressTypeMuxedAccount=new o("scAddressTypeMuxedAccount",2);static scAddressTypeClaimableBalance=new o("scAddressTypeClaimableBalance",3);static scAddressTypeLiquidityPool=new o("scAddressTypeLiquidityPool",4);static schema=(0,c.P8)((0,s.QT)("ScAddressType",{scAddressTypeAccount:0,scAddressTypeContract:1,scAddressTypeMuxedAccount:2,scAddressTypeClaimableBalance:3,scAddressTypeLiquidityPool:4}),"scAddressType");static fromValue(e){return(0,c.t4)("ScAddressType",o.schema,o,e)}static fromName(e){return(0,c.$2)("ScAddressType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(92302),i=r(16902),u=r(33443),d=r(86065),h=r(3474);class l extends n.SD{constructor(){if(super(),new.target===l)throw new TypeError("new xdr.ScAddress(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ScAddress.scAddressTypeAccount(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ScAddress",{switchOn:o.schema,cases:[(0,s.DH)("scAddressTypeAccount",0,(0,s.ZZ)("accountId",a.J.schema)),(0,s.DH)("scAddressTypeContract",1,(0,s.ZZ)("contractId",i.K.schema)),(0,s.DH)("scAddressTypeMuxedAccount",2,(0,s.ZZ)("muxedAccount",u.o.schema)),(0,s.DH)("scAddressTypeClaimableBalance",3,(0,s.ZZ)("claimableBalanceId",d._.schema)),(0,s.DH)("scAddressTypeLiquidityPool",4,(0,s.ZZ)("liquidityPoolId",h.e.schema))]});static scAddressTypeAccount(e){return new p(e)}static scAddressTypeContract(e){return new y(e)}static scAddressTypeMuxedAccount(e){return new m(e)}static scAddressTypeClaimableBalance(e){return new b(e)}static scAddressTypeLiquidityPool(e){return new f(e)}static fromXdrObject(e){switch(e.type){case 0:return new p(a.J.fromXdrObject(e.accountId));case 1:return new y(i.K.fromXdrObject(e.contractId));case 2:return new m(u.o.fromXdrObject(e.muxedAccount));case 3:return new b(d._.fromXdrObject(e.claimableBalanceId));case 4:return new f(h.e.fromXdrObject(e.liquidityPoolId))}throw new s.zj(`ScAddress: unknown type ${e.type}`)}static is(e){return e instanceof l}}class p extends l{type="scAddressTypeAccount";accountId;constructor(e){super(),this.accountId=e}get value(){return this.accountId}toXdrObject(){return{type:0,accountId:this.accountId.toXdrObject()}}}class y extends l{type="scAddressTypeContract";contractId;constructor(e){super(),this.contractId=e}get value(){return this.contractId}toXdrObject(){return{type:1,contractId:this.contractId.toXdrObject()}}}class m extends l{type="scAddressTypeMuxedAccount";muxedAccount;constructor(e){super(),this.muxedAccount=e}get value(){return this.muxedAccount}toXdrObject(){return{type:2,muxedAccount:this.muxedAccount.toXdrObject()}}}class b extends l{type="scAddressTypeClaimableBalance";claimableBalanceId;constructor(e){super(),this.claimableBalanceId=e}get value(){return this.claimableBalanceId}toXdrObject(){return{type:3,claimableBalanceId:this.claimableBalanceId.toXdrObject()}}}class f extends l{type="scAddressTypeLiquidityPool";liquidityPoolId;constructor(e){super(),this.liquidityPoolId=e}get value(){return this.liquidityPoolId}toXdrObject(){return{type:4,liquidityPoolId:this.liquidityPoolId.toXdrObject()}}}const w=l},5268(e,t,r){r.d(t,{W:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static encoding="hex";static schema=(0,s.bj)(s.dp,"ScBytes");static fromXdrObject(e){return new c(e)}}},14992(e,t,r){r.d(t,{Dh:()=>P,wq:()=>re});var s=r(79755),n=r(31837),c=r(6815),o=r(25610),a=r(55018);class i extends a.RS{static scvBool=new i("scvBool",0);static scvVoid=new i("scvVoid",1);static scvError=new i("scvError",2);static scvU32=new i("scvU32",3);static scvI32=new i("scvI32",4);static scvU64=new i("scvU64",5);static scvI64=new i("scvI64",6);static scvTimepoint=new i("scvTimepoint",7);static scvDuration=new i("scvDuration",8);static scvU128=new i("scvU128",9);static scvI128=new i("scvI128",10);static scvU256=new i("scvU256",11);static scvI256=new i("scvI256",12);static scvBytes=new i("scvBytes",13);static scvString=new i("scvString",14);static scvSymbol=new i("scvSymbol",15);static scvVec=new i("scvVec",16);static scvMap=new i("scvMap",17);static scvAddress=new i("scvAddress",18);static scvContractInstance=new i("scvContractInstance",19);static scvLedgerKeyContractInstance=new i("scvLedgerKeyContractInstance",20);static scvLedgerKeyNonce=new i("scvLedgerKeyNonce",21);static scvExecutableTag=new i("scvExecutableTag",22);static schema=(0,a.P8)((0,s.QT)("ScValType",{scvBool:0,scvVoid:1,scvError:2,scvU32:3,scvI32:4,scvU64:5,scvI64:6,scvTimepoint:7,scvDuration:8,scvU128:9,scvI128:10,scvU256:11,scvI256:12,scvBytes:13,scvString:14,scvSymbol
2:15,scvVec:16,scvMap:17,scvAddress:18,scvContractInstance:19,scvLedgerKeyContractInstance:20,scvLedgerKeyNonce:21,scvExecutableTag:22}),"scv");static fromValue(e){return(0,a.t4)("ScValType",i.schema,i,e)}static fromName(e){return(0,a.$2)("ScValType",i,e)}static fromXdrObject(e){return i.fromValue(e)}}class u extends a.RS{static sceContract=new u("sceContract",0);static sceWasmVm=new u("sceWasmVm",1);static sceContext=new u("sceContext",2);static sceStorage=new u("sceStorage",3);static sceObject=new u("sceObject",4);static sceCrypto=new u("sceCrypto",5);static sceEvents=new u("sceEvents",6);static sceBudget=new u("sceBudget",7);static sceValue=new u("sceValue",8);static sceAuth=new u("sceAuth",9);static schema=(0,a.P8)((0,s.QT)("ScErrorType",{sceContract:0,sceWasmVm:1,sceContext:2,sceStorage:3,sceObject:4,sceCrypto:5,sceEvents:6,sceBudget:7,sceValue:8,sceAuth:9}),"sce");static fromValue(e){return(0,a.t4)("ScErrorType",u.schema,u,e)}static fromName(e){return(0,a.$2)("ScErrorType",u,e)}static fromXdrObject(e){return u.fromValue(e)}}class d extends a.RS{static scecArithDomain=new d("scecArithDomain",0);static scecIndexBounds=new d("scecIndexBounds",1);static scecInvalidInput=new d("scecInvalidInput",2);static scecMissingValue=new d("scecMissingValue",3);static scecExistingValue=new d("scecExistingValue",4);static scecExceededLimit=new d("scecExceededLimit",5);static scecInvalidAction=new d("scecInvalidAction",6);static scecInternalError=new d("scecInternalError",7);static scecUnexpectedType=new d("scecUnexpectedType",8);static scecUnexpectedSize=new d("scecUnexpectedSize",9);static schema=(0,a.P8)((0,s.QT)("ScErrorCode",{scecArithDomain:0,scecIndexBounds:1,scecInvalidInput:2,scecMissingValue:3,scecExistingValue:4,scecExceededLimit:5,scecInvalidAction:6,scecInternalError:7,scecUnexpectedType:8,scecUnexpectedSize:9}),"scec");static fromValue(e){return(0,a.t4)("ScErrorCode",d.schema,d,e)}static fromName(e){return(0,a.$2)("ScErrorCode",d,e)}static fromXdrObject(e){return d.fromValue(e)}}class h extends n.SD{constructor(){if(super(),new.target===h)throw new TypeError("new xdr.ScError(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ScError.sceContract(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ScError",{switchOn:u.schema,cases:[(0,s.DH)("sceContract",0,(0,s.ZZ)("contractCode",(0,s.S8)())),(0,s.DH)("sceWasmVm",1,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceContext",2,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceStorage",3,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceObject",4,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceCrypto",5,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceEvents",6,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceBudget",7,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceValue",8,(0,s.ZZ)("code",d.schema)),(0,s.DH)("sceAuth",9,(0,s.ZZ)("code",d.schema))]});static sceContract(e){return new l(e)}static sceWasmVm(e){return new p(e)}static sceContext(e){return new y(e)}static sceStorage(e){return new m(e)}static sceObject(e){return new b(e)}static sceCrypto(e){return new f(e)}static sceEvents(e){return new w(e)}static sceBudget(e){return new v(e)}static sceValue(e){return new g(e)}static sceAuth(e){return new x(e)}static fromXdrObject(e){switch(e.type){case 0:return new l(e.contractCode);case 1:return new p(d.fromXdrObject(e.code));case 2:return new y(d.fromXdrObject(e.code));case 3:return new m(d.fromXdrObject(e.code));case 4:return new b(d.fromXdrObject(e.code));case 5:return new f(d.fromXdrObject(e.code));case 6:return new w(d.fromXdrObject(e.code));case 7:return new v(d.fromXdrObject(e.code));case 8:return new g(d.fromXdrObject(e.code));case 9:return new x(d.fromXdrObject(e.code))}throw new s.zj(`ScError: unknown type ${e.type}`)}static is(e){return e instanceof h}}class l extends h{type="sceContract";contractCode;constructor(e){super(),this.contractCode=e}get value(){return this.contractCode}toXdrObject(){return{type:0,contractCode:this.contractCode}}}class p extends h{type="sceWasmVm";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:1,code:this.code.toXdrObject()}}}class y extends h{type="sceContext";code;constructor(e){super(),this.code=e}
2get value(){return this.code}toXdrObject(){return{type:2,code:this.code.toXdrObject()}}}class m extends h{type="sceStorage";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:3,code:this.code.toXdrObject()}}}class b extends h{type="sceObject";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:4,code:this.code.toXdrObject()}}}class f extends h{type="sceCrypto";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:5,code:this.code.toXdrObject()}}}class w extends h{type="sceEvents";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:6,code:this.code.toXdrObject()}}}class v extends h{type="sceBudget";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:7,code:this.code.toXdrObject()}}}class g extends h{type="sceValue";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:8,code:this.code.toXdrObject()}}}class x extends h{type="sceAuth";code;constructor(e){super(),this.code=e}get value(){return this.code}toXdrObject(){return{type:9,code:this.code.toXdrObject()}}}const O=h;var A=r(43308),j=r(10509),X=r(21868),T=r(83729),I=r(5268),C=r(93083);class E extends n.SD{nonce;static schema=(0,s.w3)("ScNonceKey",{nonce:(0,s.Gk)()});constructor(e){super(),this.nonce=e.nonce}toXdrObject(){return{nonce:this.nonce}}static fromXdrObject(e){return new E({nonce:e.nonce})}}class S extends n.SD{executable;storage;static schema=(0,s.w3)("ScContractInstance",{executable:o.bC.schema,storage:(0,s.uK)((0,s.YO)((0,s.RZ)(()=>P.schema),s.dp))});constructor(e){super(),this.executable=e.executable,this.storage=e.storage}toXdrObject(){return{executable:this.executable.toXdrObject(),storage:null===this.storage?null:this.storage.map(e=>e.toXdrObject())}}static fromXdrObject(e){return new S({executable:o.bC.fromXdrObject(e.executable),storage:null===e.storage?null:e.storage.map(e=>P.fromXdrObject(e))})}}class P extends n.SD{key;val;static schema=(0,s.w3)("ScMapEntry",{key:(0,s.RZ)(()=>re.schema),val:(0,s.RZ)(()=>re.schema)});constructor(e){super(),this.key=e.key,this.val=e.val}toXdrObject(){return{key:this.key.toXdrObject(),val:this.val.toXdrObject()}}static fromXdrObject(e){return new P({key:re.fromXdrObject(e.key),val:re.fromXdrObject(e.val)})}}class H extends n.SD{constructor(){if(super(),new.target===H)throw new TypeError("new xdr.ScVal(...) is not supported: XDR unions are built from per-variant factories. Call xdr.ScVal.scvBool(...) (or another arm factory) instead.")}static schema=(0,s.KC)("ScVal",{switchOn:i.schema,cases:[(0,s.DH)("scvBool",0,(0,s.ZZ)("b",(0,s.lc)())),(0,s.DH)("scvVoid",1,(0,s.rI)()),(0,s.DH)("scvError",2,(0,s.ZZ)("error",O.schema)),(0,s.DH)("scvU32",3,(0,s.ZZ)("u32",(0,s.S8)())),(0,s.DH)("scvI32",4,(0,s.ZZ)("i32",(0,s.HA)())),(0,s.DH)("scvU64",5,(0,s.ZZ)("u64",(0,s.VV)())),(0,s.DH)("scvI64",6,(0,s.ZZ)("i64",(0,s.Gk)())),(0,s.DH)("scvTimepoint",7,(0,s.ZZ)("timepoint",(0,s.VV)())),(0,s.DH)("scvDuration",8,(0,s.ZZ)("duration",(0,s.VV)())),(0,s.DH)("scvU128",9,(0,s.ZZ)("u128",A.M.schema)),(0,s.DH)("scvI128",10,(0,s.ZZ)("i128",j.p.schema)),(0,s.DH)("scvU256",11,(0,s.ZZ)("u256",X.Q.schema)),(0,s.DH)("scvI256",12,(0,s.ZZ)("i256",T.J.schema)),(0,s.DH)("scvBytes",13,(0,s.ZZ)("bytes",I.W.schema)),(0,s.DH)("scvString",14,(0,s.ZZ)("str",(0,c.G)(s.dp))),(0,s.DH)("scvSymbol",15,(0,s.ZZ)("sym",(0,c.G)(32))),(0,s.DH)("scvVec",16,(0,s.ZZ)("vec",(0,s.uK)((0,s.YO)((0,s.RZ)(()=>re.schema),s.dp)))),(0,s.DH)("scvMap",17,(0,s.ZZ)("map",(0,s.uK)((0,s.YO)((0,s.RZ)(()=>P.schema),s.dp)))),(0,s.DH)("scvAddress",18,(0,s.ZZ)("address",C.lu.schema)),(0,s.DH)("scvContractInstance",19,(0,s.ZZ)("instance",(0,s.RZ)(()=>S.schema))),(0,s.DH)("scvLedgerKeyContractInstance",20,(0,s.rI)()),(0,s.DH)("scvLedgerKeyNonce",21,(0,s.ZZ)("nonceKey",E.schema)),(0,s.DH)("scvExecutableTag",22,(0,s.ZZ)("executableTag",(0,c.G)(s.dp)))]});static scvBool(e){return new V(e)}static scvVoid(){return new D}static scvError(e){return new Z(e)}static scvU32(e){return new N(e)}static scvI32(e){return new B(e)}static scvU64(e){return new L(e)}static scvI64(e){return new k(e)}static scvTimepoint(e){return new K(e)}static scvDuration(e){return new F(e)}static scvU128(e){return new U(e)}static scvI128(e){return new q(e)}static scvU256(e){return new R(e)}static scvI256(e){return new z(e)}static scvBytes(e){return new _(e)}static scvString(e){return new $(e)}static scvSymbol(e){return new M(e)}static scvVec(e){return new W(e)}static scvMap(e){return new G(e)}static scvAddress(e){return new Y(e)}
2static scvContractInstance(e){return new J(e)}static scvLedgerKeyContractInstance(){return new Q}static scvLedgerKeyNonce(e){return new ee(e)}static scvExecutableTag(e){return new te(e)}static fromXdrObject(e){switch(e.type){case 0:return new V(e.b);case 1:return new D;case 2:return new Z(O.fromXdrObject(e.error));case 3:return new N(e.u32);case 4:return new B(e.i32);case 5:return new L(e.u64);case 6:return new k(e.i64);case 7:return new K(e.timepoint);case 8:return new F(e.duration);case 9:return new U(A.M.fromXdrObject(e.u128));case 10:return new q(j.p.fromXdrObject(e.i128));case 11:return new R(X.Q.fromXdrObject(e.u256));case 12:return new z(T.J.fromXdrObject(e.i256));case 13:return new _(I.W.fromXdrObject(e.bytes));case 14:return new $(e.str);case 15:return new M(e.sym);case 16:return new W(null===e.vec?null:e.vec.map(e=>re.fromXdrObject(e)));case 17:return new G(null===e.map?null:e.map.map(e=>P.fromXdrObject(e)));case 18:return new Y(C.lu.fromXdrObject(e.address));case 19:return new J(S.fromXdrObject(e.instance));case 20:return new Q;case 21:return new ee(E.fromXdrObject(e.nonceKey));case 22:return new te(e.executableTag)}throw new s.zj(`ScVal: unknown type ${e.type}`)}static is(e){return e instanceof H}}class V extends H{type="scvBool";b;constructor(e){super(),this.b=e}get value(){return this.b}toXdrObject(){return{type:0,b:this.b}}}class D extends H{type="scvVoid";get value(){return null}toXdrObject(){return{type:1}}}class Z extends H{type="scvError";error;constructor(e){super(),this.error=e}get value(){return this.error}toXdrObject(){return{type:2,error:this.error.toXdrObject()}}}class N extends H{type="scvU32";u32;constructor(e){super(),this.u32=e}get value(){return this.u32}toXdrObject(){return{type:3,u32:this.u32}}}class B extends H{type="scvI32";i32;constructor(e){super(),this.i32=e}get value(){return this.i32}toXdrObject(){return{type:4,i32:this.i32}}}class L extends H{type="scvU64";u64;constructor(e){super(),this.u64=e}get value(){return this.u64}toXdrObject(){return{type:5,u64:this.u64}}}class k extends H{type="scvI64";i64;constructor(e){super(),this.i64=e}get value(){return this.i64}toXdrObject(){return{type:6,i64:this.i64}}}class K extends H{type="scvTimepoint";timepoint;constructor(e){super(),this.timepoint=e}get value(){return this.timepoint}toXdrObject(){return{type:7,timepoint:this.timepoint}}}class F extends H{type="scvDuration";duration;constructor(e){super(),this.duration=e}get value(){return this.duration}toXdrObject(){return{type:8,duration:this.duration}}}class U extends H{type="scvU128";u128;constructor(e){super(),this.u128=e}get value(){return this.u128}toXdrObject(){return{type:9,u128:this.u128.toXdrObject()}}}class q extends H{type="scvI128";i128;constructor(e){super(),this.i128=e}get value(){return this.i128}toXdrObject(){return{type:10,i128:this.i128.toXdrObject()}}}class R extends H{type="scvU256";u256;constructor(e){super(),this.u256=e}get value(){return this.u256}toXdrObject(){return{type:11,u256:this.u256.toXdrObject()}}}class z extends H{type="scvI256";i256;constructor(e){super(),this.i256=e}get value(){return this.i256}toXdrObject(){return{type:12,i256:this.i256.toXdrObject()}}}class _ extends H{type="scvBytes";bytes;constructor(e){super(),this.bytes=e instanceof I.W?e:new I.W(e)}get value(){return this.bytes}toXdrObject(){return{type:13,bytes:this.bytes.toXdrObject()}}}class $ extends H{type="scvString";str;constructor(e){super(),this.str=e instanceof c.u?e:new c.u(e)}get value(){return this.str.toString()}toXdrObject(){return{type:14,str:this.str}}}class M extends H{type="scvSymbol";sym;constructor(e){super(),this.sym=e instanceof c.u?e:new c.u(e)}get value(){return this.sym.toString()}toXdrObject(){return{type:15,sym:this.sym}}}class W extends H{type="scvVec";vec;constructor(e){super(),this.vec=e}get value(){return this.vec}toXdrObject(){return{type:16,vec:null===this.vec?null:this.vec.map(e=>e.toXdrObject())}}}class G extends H{type="scvMap";map;constructor(e){super(),this.map=e}get value(){return this.map}toXdrObject(){return{type:17,map:null===this.map?null:this.map.map(e=>e.toXdrObject())}}}class Y extends H{type="scvAddress";address;constructor(e){super(),this.address=e}get value(){return this.address}toXdrObject(){return{type:18,address:this.address.toXdrObject()}}}class J extends H{type="scvContractInstance";instance;constructor(e){super(),this.instance=e}get value(){return this.instance}toXdrObject(){return{type:19,instance:this.instance.toXdrObject()}}}class Q extends H{type="scvLedgerKeyContractInstance";get value(){return null}toXdrObject(){return{type:20}}}class ee extends H{type="scvLedgerKeyNonce";nonceKey;constructor(e){super(),this.nonceKey=e}get value(){return this.nonceKey}
2toXdrObject(){return{type:21,nonceKey:this.nonceKey.toXdrObject()}}}class te extends H{type="scvExecutableTag";executableTag;constructor(e){super(),this.executableTag=e instanceof c.u?e:new c.u(e)}get value(){return this.executableTag.toString()}toXdrObject(){return{type:22,executableTag:this.executableTag}}}const re=H},11188(e,t,r){r.d(t,{t:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static encoding="hex";static schema=(0,s.bj)(64,"Signature");static fromXdrObject(e){return new c(e)}}},38042(e,t,r){r.d(t,{QD:()=>y});var s=r(79755),n=r(31837),c=r(55018);class o extends c.RS{static sorobanAuthorizedFunctionTypeContractFn=new o("sorobanAuthorizedFunctionTypeContractFn",0);static sorobanAuthorizedFunctionTypeCreateContractHostFn=new o("sorobanAuthorizedFunctionTypeCreateContractHostFn",1);static sorobanAuthorizedFunctionTypeCreateContractV2HostFn=new o("sorobanAuthorizedFunctionTypeCreateContractV2HostFn",2);static schema=(0,c.P8)((0,s.QT)("SorobanAuthorizedFunctionType",{sorobanAuthorizedFunctionTypeContractFn:0,sorobanAuthorizedFunctionTypeCreateContractHostFn:1,sorobanAuthorizedFunctionTypeCreateContractV2HostFn:2}),"sorobanAuthorizedFunctionType");static fromValue(e){return(0,c.t4)("SorobanAuthorizedFunctionType",o.schema,o,e)}static fromName(e){return(0,c.$2)("SorobanAuthorizedFunctionType",o,e)}static fromXdrObject(e){return o.fromValue(e)}}var a=r(94213),i=r(48669),u=r(93314);class d extends n.SD{constructor(){if(super(),new.target===d)throw new TypeError("new xdr.SorobanAuthorizedFunction(...) is not supported: XDR unions are built from per-variant factories. Call xdr.SorobanAuthorizedFunction.sorobanAuthorizedFunctionTypeContractFn(...) (or another arm factory) instead.")}static schema=(0,s.KC)("SorobanAuthorizedFunction",{switchOn:o.schema,cases:[(0,s.DH)("sorobanAuthorizedFunctionTypeContractFn",0,(0,s.ZZ)("contractFn",a.M.schema)),(0,s.DH)("sorobanAuthorizedFunctionTypeCreateContractHostFn",1,(0,s.ZZ)("createContractHostFn",i.W.schema)),(0,s.DH)("sorobanAuthorizedFunctionTypeCreateContractV2HostFn",2,(0,s.ZZ)("createContractV2HostFn",u.m.schema))]});static sorobanAuthorizedFunctionTypeContractFn(e){return new h(e)}static sorobanAuthorizedFunctionTypeCreateContractHostFn(e){return new l(e)}static sorobanAuthorizedFunctionTypeCreateContractV2HostFn(e){return new p(e)}static fromXdrObject(e){switch(e.type){case 0:return new h(a.M.fromXdrObject(e.contractFn));case 1:return new l(i.W.fromXdrObject(e.createContractHostFn));case 2:return new p(u.m.fromXdrObject(e.createContractV2HostFn))}throw new s.zj(`SorobanAuthorizedFunction: unknown type ${e.type}`)}static is(e){return e instanceof d}}class h extends d{type="sorobanAuthorizedFunctionTypeContractFn";contractFn;constructor(e){super(),this.contractFn=e}get value(){return this.contractFn}toXdrObject(){return{type:0,contractFn:this.contractFn.toXdrObject()}}}class l extends d{type="sorobanAuthorizedFunctionTypeCreateContractHostFn";createContractHostFn;constructor(e){super(),this.createContractHostFn=e}get value(){return this.createContractHostFn}toXdrObject(){return{type:1,createContractHostFn:this.createContractHostFn.toXdrObject()}}}class p extends d{type="sorobanAuthorizedFunctionTypeCreateContractV2HostFn";createContractV2HostFn;constructor(e){super(),this.createContractV2HostFn=e}get value(){return this.createContractV2HostFn}toXdrObject(){return{type:2,createContractV2HostFn:this.createContractV2HostFn.toXdrObject()}}}const y=d},14727(e,t,r){r.d(t,{y:()=>o});var s=r(79755),n=r(31837),c=r(38042);class o extends n.SD{function;subInvocations;static schema=(0,s.w3)("SorobanAuthorizedInvocation",{function:c.QD.schema,subInvocations:(0,s.YO)((0,s.RZ)(()=>o.schema),s.dp)});constructor(e){super(),this.function=e.function,this.subInvocations=e.subInvocations}toXdrObject(){return{function:this.function.toXdrObject(),subInvocations:this.subInvocations.map(e=>e.toXdrObject())}}static fromXdrObject(e){return new o({function:c.QD.fromXdrObject(e.function),subInvocations:e.subInvocations.map(e=>o.fromXdrObject(e))})}}},82078(e,t,r){var s=r(79755),n=r(31837),c=r(84919),o=r(11499),a=r
2(15248),i=r(3474);class u extends n.SD{constructor(){if(super(),new.target===u)throw new TypeError("new xdr.TrustLineAsset(...) is not supported: XDR unions are built from per-variant factories. Call xdr.TrustLineAsset.assetTypeNative() (or another arm factory) instead.")}static schema=(0,s.KC)("TrustLineAsset",{switchOn:c.P.schema,cases:[(0,s.DH)("assetTypeNative",0,(0,s.rI)()),(0,s.DH)("assetTypeCreditAlphanum4",1,(0,s.ZZ)("alphaNum4",o.B.schema)),(0,s.DH)("assetTypeCreditAlphanum12",2,(0,s.ZZ)("alphaNum12",a.S.schema)),(0,s.DH)("assetTypePoolShare",3,(0,s.ZZ)("liquidityPoolId",i.e.schema))]});static assetTypeNative(){return new d}static assetTypeCreditAlphanum4(e){return new h(e)}static assetTypeCreditAlphanum12(e){return new l(e)}static assetTypePoolShare(e){return new p(e)}static fromXdrObject(e){switch(e.type){case 0:return new d;case 1:return new h(o.B.fromXdrObject(e.alphaNum4));case 2:return new l(a.S.fromXdrObject(e.alphaNum12));case 3:return new p(i.e.fromXdrObject(e.liquidityPoolId))}throw new s.zj(`TrustLineAsset: unknown type ${e.type}`)}static is(e){return e instanceof u}}class d extends u{type="assetTypeNative";get value(){return null}toXdrObject(){return{type:0}}}class h extends u{type="assetTypeCreditAlphanum4";alphaNum4;constructor(e){super(),this.alphaNum4=e}get value(){return this.alphaNum4}toXdrObject(){return{type:1,alphaNum4:this.alphaNum4.toXdrObject()}}}class l extends u{type="assetTypeCreditAlphanum12";alphaNum12;constructor(e){super(),this.alphaNum12=e}get value(){return this.alphaNum12}toXdrObject(){return{type:2,alphaNum12:this.alphaNum12.toXdrObject()}}}class p extends u{type="assetTypePoolShare";liquidityPoolId;constructor(e){super(),this.liquidityPoolId=e}get value(){return this.liquidityPoolId}toXdrObject(){return{type:3,liquidityPoolId:this.liquidityPoolId.toXdrObject()}}}const y=u;r.d(t,["Ht",0,y])},43308(e,t,r){r.d(t,{M:()=>c});var s=r(79755),n=r(31837);class c extends n.SD{hi;lo;static schema=(0,s.w3)("Uint128Parts",{hi:(0,s.VV)(),lo:(0,s.VV)()});constructor(e){super(),this.hi=e.hi,this.lo=e.lo}toXdrObject(){return{hi:this.hi,lo:this.lo}}static fromXdrObject(e){return new c({hi:e.hi,lo:e.lo})}}},8033(e,t,r){r.d(t,{l:()=>c});var s=r(79755),n=r(50792);class c extends n.v{static byteLength=32;static encoding="hex";static schema=(0,s.OZ)(32,"Uint256Bytes");static fromXdrObject(e){return new c(e)}}},21868(e,t,r){r.d(t,{Q:()=>c});var s=r(79755),n=r(31837);class c extends n.SD{hiHi;hiLo;loHi;loLo;static schema=(0,s.w3)("Uint256Parts",{hiHi:(0,s.VV)(),hiLo:(0,s.VV)(),loHi:(0,s.VV)(),loLo:(0,s.VV)()});constructor(e){super(),this.hiHi=e.hiHi,this.hiLo=e.hiLo,this.loHi=e.loHi,this.loLo=e.loLo}toXdrObject(){return{hiHi:this.hiHi,hiLo:this.hiLo,loHi:this.loHi,loLo:this.loLo}}static fromXdrObject(e){return new c({hiHi:e.hiHi,hiLo:e.hiLo,loHi:e.loHi,loLo:e.loLo})}}},53924(e,t,r){var s=r(79755),n=r(60027),c=r(31837);const o=d(!0,64),a=d(!1,64),i=h(!0,32),u=h(!1,32);function d(e,t){const[r,o]=(0,n.qT)(e,t),a=e?`Int${t}`:`Uint${t}`;function i(r){let s;if(Array.isArray(r)&&2===r.length){const t=BigInt.asUintN(32,BigInt(r[0])),n=BigInt(r[1])<<32n|t;s=e?BigInt.asIntN(64,n):BigInt.asUintN(64,n)}else s="bigint"==typeof r?r:BigInt(r);return(0,n.Mp)(s,e,t,a),s}return i.fromXdr=(r,n="raw")=>{const o=(0,c.yj)(r,n);if(8!==o.length)throw new s.zj(`${a}.fromXdr: expected exactly 8 bytes, got ${o.length}`);let i=0n;for(const e of o)i=(i<<8n)+BigInt(e);return e?BigInt.asIntN(t,i):BigInt.asUintN(t,i)},i.fromString=r=>{const s=BigInt(r);return(0,n.Mp)(s,e,t,a),s},i.MAX_VALUE=o,i.MIN_VALUE=r,Object.defineProperty(i,"name",{value:a}),new Proxy(i,{construct(e,t){throw i(t[0]),new TypeError(`new xdr.${a}(...) is not supported: XDR ${a.toLowerCase()} values are native bigints. Call xdr.${a}(value) (no \`new\`) or pass a bigint literal instead.`)}})}function h(e,t){const r=e?2**(t-1)-1:2**t-1,o=e?-2147483648:0,a=e?`Int${t}`:`Uint${t}`;function i(r){const s="number"==typeof r?r:Number(r);return(0,n.wd)(s,e,t,a),s}return i.fromXdr=(t,r="raw")=>{const n=(0,c.yj)(t,r);if(4!==n.length)throw new s.zj(`${a}.fromXdr: expected exactly 4 bytes, got ${n.length}`);const o=n[0]<<24|n[1]<<16|n[2]<<8|n[3];return e?o:o>>>0},i.fromString=r=>{const s=Number(r);return(0,n.wd)(s,e,t,a),s}
2,i.MAX_VALUE=r,i.MIN_VALUE=o,Object.defineProperty(i,"name",{value:a}),new Proxy(i,{construct(e,t){throw i(t[0]),new TypeError(`new xdr.${a}(...) is not supported: XDR ${a.toLowerCase()} values are native numbers. Call xdr.${a}(value) (no \`new\`) or pass a number literal instead.`)}})}r.d(t,["CGN",0,o,"P_H",0,i,"Rf3",0,a,"SSn",0,u])},50792(e,t,r){r.d(t,{v:()=>o});var s=r(65836),n=r(79755),c=r(31837);class o extends c.SD{value;constructor(e){super();const t=this.constructor;let r=(o=e,a=t.encoding,o instanceof Uint8Array?o:"ascii"===a?(0,s.stringToUint8Array)(o):(0,c.yj)(o,a));var o,a;if("string"==typeof e&&void 0!==t.padTo&&r.length<t.padTo){const e=new Uint8Array(t.padTo);e.set(r),r=e}if(void 0!==t.byteLength&&r.length!==t.byteLength)throw new n.zj(`${t.name}: expected ${t.byteLength} byte(s), got ${r.length}`);this.value=r}toString(){const e=this.constructor;return t=this.value,"ascii"===(r=e.encoding)?(0,s.uint8ArrayToString)(t):(0,c.MW)(t,r);var t,r}toXdrObject(){return this.value}toBytes(){return this.value}}},55018(e,t,r){r.d(t,{$2:()=>i,P8:()=>o,RS:()=>c,t4:()=>a});var s=r(79755),n=r(31837);class c extends n.SD{name;value;constructor(e,t){super(),this.name=e,this.value=t}toXdrObject(){return this.value}}function o(e,t){return Object.assign(e,{memberPrefix:t})}function a(e,t,r,n){const c=t.nameByValue.get(n);if(void 0===c)throw new s.zj(`${e}: unknown enum value ${n}`);return i(e,r,c)}function i(e,t,r){const n=t[r];if(!(n instanceof c))throw new s.zj(`${e}: unknown name ${r}`);return n}}}]);

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