ccxt 4.5.9 → 4.5.10
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 -3
- package/dist/ccxt.browser.min.js +1 -1
- package/dist/cjs/ccxt.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,13 +220,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
220
220
|
|
|
221
221
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
222
222
|
|
|
223
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.5.
|
|
224
|
-
* unpkg: https://unpkg.com/ccxt@4.5.
|
|
223
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.5.10/dist/ccxt.browser.min.js
|
|
224
|
+
* unpkg: https://unpkg.com/ccxt@4.5.10/dist/ccxt.browser.min.js
|
|
225
225
|
|
|
226
226
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
227
227
|
|
|
228
228
|
```HTML
|
|
229
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.5.
|
|
229
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.5.10/dist/ccxt.browser.min.js"></script>
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
Creates a global `ccxt` object:
|
package/dist/ccxt.browser.min.js
CHANGED
|
@@ -30,4 +30,4 @@ Code licensed under the BSD License:
|
|
|
30
30
|
http://developer.yahoo.com/yui/license.html
|
|
31
31
|
version: 2.9.0
|
|
32
32
|
*/
|
|
33
|
-
var s={};s.lang={extend:function(e,t,i){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var s=function(){};if(s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),i){var r;for(r in i)e.prototype[r]=i[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var i=o[r],s=t[i];"function"==typeof s&&s!=Object.prototype[i]&&(e[i]=s)}})}catch(e){}a(e.prototype,i)}}}},917:(e,t,i)=>{function s(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const i=4294967296;let s,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/i,s=e%i;l([207,t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(s=new ArrayBuffer(8),r=new DataView(s)),r.setFloat64(0,e),c(203),l(new Uint8Array(s))}(e);break;case"string":!function(e){let t=function(e){let t=!0,i=e.length;for(let s=0;s<i;s++)if(e.charCodeAt(s)>127){t=!1;break}let s=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==i;t++){let a=e.charCodeAt(t);if(a<128)r[s++]=a;else{if(a<2048)r[s++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=i)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[s++]=a>>18|240,r[s++]=a>>12&63|128}else r[s++]=a>>12|224;r[s++]=a>>6&63|128}r[s++]=63&a|128}}return t?r:r.subarray(0,s)}(e),i=t.length;i<=31?c(160+i):l(i<=255?[217,i]:i<=65535?[218,i>>>8,i]:[219,i>>>24,i>>>16,i>>>8,i]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let s=1e6*e.getMilliseconds();l([215,255,s>>>22,s>>>14,s>>>6,s<<2>>>0|t/i,t>>>24,t>>>16,t>>>8,t])}else{let i=1e6*e.getMilliseconds();l([199,12,255,i>>>24,i>>>16,i>>>8,i]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let i in e)void 0!==e[i]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let i=e[t];void 0!==i&&(n(t),n(i))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let i=0;i<t;i++)n(e[i])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let i=new Uint8Array(t);i.set(a),a=i}a.set(e,o),o+=e.length}function u(e){let t,s;e>=0?(t=e/i,s=e%i):(e++,t=Math.abs(e)/i,s=Math.abs(e)%i,t=~t,s=~s),l([t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}}i.d(t,{l:()=>s})},1417:(e,t,i)=>{i.d(t,{Ay:()=>d,MV:()=>n,_J:()=>a,j1:()=>o});var s=String.prototype.replace,r=/%20/g,a={RFC1738:function(e){return s.call(e,r,"+")},RFC3986:function(e){return e}},o="RFC1738",n="RFC3986";const d="RFC3986"},3649:(e,t,i)=>{i.d(t,{Ay:()=>o});var s=i(6888),r=i(7942),a=i(1417);const o={formats:{default:a.Ay,formatters:a._J,RFC1738:a.j1,RFC3986:a.MV},parse:r.A,stringify:s.A}},7942:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(700),r=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:s.D4,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},n=function(e,t){var i,n={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,c=d.split(t.delimiter,h),l=-1,u=t.charset;if(t.charsetSentinel)for(i=0;i<c.length;++i)0===c[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[i]?u="utf-8":"utf8=%26%2310003%3B"===c[i]&&(u="iso-8859-1"),l=i,i=c.length);for(i=0;i<c.length;++i)if(i!==l){var p,f,m=c[i],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(p=t.decoder(m,a.decoder,u),f=t.strictNullHandling?null:""):(p=t.decoder(m.slice(0,v),a.decoder,u),f=t.decoder(m.slice(v+1),a.decoder,u)),f&&t.interpretNumericEntities&&"iso-8859-1"===u&&(f=o(f)),f&&t.comma&&f.indexOf(",")>-1&&(f=f.split(",")),r.call(n,p)?n[p]=s.kg(n[p],f):n[p]=f}return n},d=function(e,t,i){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(s),n=o?s.slice(0,o.index):s,d=[];if(n){if(!i.plainObjects&&r.call(Object.prototype,n)&&!i.allowPrototypes)return;d.push(n)}for(var h=0;null!==(o=a.exec(s))&&h<i.depth;){if(h+=1,!i.plainObjects&&r.call(Object.prototype,o[1].slice(1,-1))&&!i.allowPrototypes)return;d.push(o[1])}return o&&d.push("["+s.slice(o.index)+"]"),function(e,t,i){for(var s=t,r=e.length-1;r>=0;--r){var a,o=e[r];if("[]"===o&&i.parseArrays)a=[].concat(s);else{a=i.plainObjects?Object.create(null):{};var n="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,d=parseInt(n,10);i.parseArrays||""!==n?!isNaN(d)&&o!==n&&String(d)===n&&d>=0&&i.parseArrays&&d<=i.arrayLimit?(a=[])[d]=s:a[n]=s:a={0:s}}s=a}return s}(d,t,i)}},h=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||s.gd(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};function c(e,t){var i=h(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var r="string"==typeof e?n(e,i):e,a=i.plainObjects?Object.create(null):{},o=Object.keys(r),c=0;c<o.length;++c){var l=o[c],u=d(l,r[l],i);a=s.h1(a,u,i)}return s.oE(a)}},6888:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(700),r=i(1417),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Array.isArray,d=Array.prototype.push,h=function(e,t){d.apply(e,n(t)?t:[t])},c=Date.prototype.toISOString,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.lF,encodeValuesOnly:!1,formatter:r._J[r.Ay],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,i,r,a,o,d,c,u,p,f,m,g,v){var y=t;if("function"==typeof c?y=c(i,y):y instanceof Date?y=f(y):"comma"===r&&n(y)&&(y=y.join(",")),null===y){if(a)return d&&!g?d(i,l.encoder,v):i;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||s.Pe(y))return d?[m(g?i:d(i,l.encoder,v))+"="+m(d(y,l.encoder,v))]:[m(i)+"="+m(String(y))];var b,w=[];if(void 0===y)return w;if(n(c))b=c;else{var k=Object.keys(y);b=u?k.sort(u):k}for(var S=0;S<b.length;++S){var O=b[S];o&&null===y[O]||(n(y)?h(w,e(y[O],"function"==typeof r?r(i,O):i,r,a,o,d,c,u,p,f,m,g,v)):h(w,e(y[O],i+(p?"."+O:"["+O+"]"),r,a,o,d,c,u,p,f,m,g,v)))}return w},p=function(e){if(!e)return l;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=r.Ay;if(void 0!==e.format){if(!a.call(r._J,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var s=r._J[i],o=l.filter;return("function"==typeof e.filter||n(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:o,formatter:s,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}};function f(e,t){var i,s=e,r=p(t);"function"==typeof r.filter?s=(0,r.filter)("",s):n(r.filter)&&(i=r.filter);var a,d=[];if("object"!=typeof s||null===s)return"";a=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=o[a];i||(i=Object.keys(s)),r.sort&&i.sort(r.sort);for(var l=0;l<i.length;++l){var f=i[l];r.skipNulls&&null===s[f]||h(d,u(s[f],f,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.formatter,r.encodeValuesOnly,r.charset))}var m=d.join(r.delimiter),g=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}},700:(e,t,i)=>{i.d(t,{D4:()=>n,Pe:()=>l,gd:()=>c,h1:()=>o,kg:()=>u,lF:()=>d,oE:()=>h});var s=Object.prototype.hasOwnProperty,r=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function e(t,i,a){if(!i)return t;if("object"!=typeof i){if(r(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(a&&(a.plainObjects||a.allowPrototypes)||!s.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var o=t;return r(t)&&!r(i)&&(o=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},s=0;s<e.length;++s)void 0!==e[s]&&(i[s]=e[s]);return i}(t,a)),r(t)&&r(i)?(i.forEach((function(i,r){if(s.call(t,r)){var o=t[r];o&&"object"==typeof o&&i&&"object"==typeof i?t[r]=e(o,i,a):t.push(i)}else t[r]=i})),t):Object.keys(i).reduce((function(t,r){var o=i[r];return s.call(t,r)?t[r]=e(t[r],o,a):t[r]=o,t}),o)},n=function(e,t,i){var s=e.replace(/\+/g," ");if("iso-8859-1"===i)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},d=function(e,t,i){if(0===e.length)return e;var s="string"==typeof e?e:String(e);if("iso-8859-1"===i)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",o=0;o<s.length;++o){var n=s.charCodeAt(o);45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?r+=s.charAt(o):n<128?r+=a[n]:n<2048?r+=a[192|n>>6]+a[128|63&n]:n<55296||n>=57344?r+=a[224|n>>12]+a[128|n>>6&63]+a[128|63&n]:(o+=1,n=65536+((1023&n)<<10|1023&s.charCodeAt(o)),r+=a[240|n>>18]+a[128|n>>12&63]+a[128|n>>6&63]+a[128|63&n])}return r},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],s=0;s<t.length;++s)for(var a=t[s],o=a.obj[a.prop],n=Object.keys(o),d=0;d<n.length;++d){var h=n[d],c=o[h];"object"==typeof c&&null!==c&&-1===i.indexOf(c)&&(t.push({obj:o,prop:h}),i.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(r(i)){for(var s=[],a=0;a<i.length;++a)void 0!==i[a]&&s.push(i[a]);t.obj[t.prop]=s}}}(t),e},c=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},l=function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},u=function(e,t){return[].concat(e,t)}},7661:(e,t,i)=>{let s;i.d(t,{$s:()=>M,Ay:()=>ge,H3:()=>oe,JF:()=>C,KR:()=>F,qj:()=>_});const r=new Array(128).fill(void 0);function a(e){return r[e]}r.push(void 0,null,!0,!1);let o=r.length;function n(e){const t=a(e);return function(e){e<132||(r[e]=o,o=e)}(e),t}function d(e){o===r.length&&r.push(r.length+1);const t=o;return o=r[t],r[t]=e,t}const h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&h.decode();let c=null;function l(){return null!==c&&0!==c.byteLength||(c=new Uint8Array(s.memory.buffer)),c}function u(e,t){return e>>>=0,h.decode(l().subarray(e,e+t))}function p(e){return null==e}let f=null;let m=null;function g(){return null!==m&&0!==m.byteLength||(m=new Int32Array(s.memory.buffer)),m}let v=0;const y="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},b="function"==typeof y.encodeInto?function(e,t){return y.encodeInto(e,t)}:function(e,t){const i=y.encode(e);return t.set(i),{read:e.length,written:i.length}};function w(e,t,i){if(void 0===i){const i=y.encode(e),s=t(i.length,1)>>>0;return l().subarray(s,s+i.length).set(i),v=i.length,s}let s=e.length,r=t(s,1)>>>0;const a=l();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;a[r+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),r=i(r,s,s=o+3*e.length,1)>>>0;const t=l().subarray(r+o,r+s);o+=b(e,t).written,r=i(r,s,o,1)>>>0}return v=o,r}let k=null;function S(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let i="[";t>0&&(i+=S(e[0]));for(let s=1;s<t;s++)i+=", "+S(e[s]);return i+="]",i}const i=/\[object ([^\]]+)\]/.exec(toString.call(e));let s;if(!(i.length>1))return toString.call(e);if(s=i[1],"Object"==s)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:s}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{s.__wbindgen_export_2.get(e.dtor)(e.a,e.b)}));function T(e,t,i,r){const a={a:e,b:t,cnt:1,dtor:i},o=(...e)=>{a.cnt++;const t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{0==--a.cnt?(s.__wbindgen_export_2.get(a.dtor)(t,a.b),O.unregister(a)):a.a=t}};return o.original=a,O.register(o,a,a),o}function P(e,t){s.__wbindgen_export_3(e,t)}function I(e,t,i){s.__wbindgen_export_4(e,t,d(i))}function M(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16);s.newRpcSignerWithProvider(r,d(e));var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return Q.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}function A(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}let x=null;function _(e){A(e,oe);var t=e.__destroy_into_raw();const i=s.newTransfer(t);return re.__wrap(i)}function C(e){A(e,F);var t=e.__destroy_into_raw();const i=s.newContract(t);return q.__wrap(i)}function B(e,t){try{return e.apply(this,t)}catch(e){s.__wbindgen_export_6(d(e))}}Object.freeze({Success:0,0:"Success",Failed:1,1:"Failed",Pending:2,2:"Pending"}),Object.freeze({OnChain:0,0:"OnChain",EthECDSA:1,1:"EthECDSA",EthCREATE2:2,2:"EthCREATE2"}),Object.freeze({Eth:0,0:"Eth",Eip1271:1,1:"Eip1271",Stark:2,2:"Stark"}),Object.freeze({Deposit:1,1:"Deposit",FullExit:5,5:"FullExit",ChangePubKey:6,6:"ChangePubKey",Transfer:4,4:"Transfer",Withdraw:3,3:"Withdraw",ForcedExit:7,7:"ForcedExit",OrderMatching:8,8:"OrderMatching",AutoDeleveraging:11,11:"AutoDeleveraging",ContractMatching:9,9:"ContractMatching",Funding:13,13:"Funding",Liquidation:10,10:"Liquidation",UpdateGlobalVar:12,12:"UpdateGlobalVar"}),Object.freeze({Latest:0,0:"Latest",Finalized:1,1:"Finalized",Safe:2,2:"Safe",Earliest:3,3:"Earliest",Pending:4,4:"Pending",Number:5,5:"Number"}),Object.freeze({FeeAccount:0,0:"FeeAccount",InsuranceFundAccount:1,1:"InsuranceFundAccount",MarginInfo:2,2:"MarginInfo",FundingInfos:3,3:"FundingInfos",ContractInfo:4,4:"ContractInfo"}),Object.freeze({AccountId:0,0:"AccountId",Address:1,1:"Address"}),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_accountquery_free(e>>>0)));const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_autodeleveraging_free(e>>>0)));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_autodeleveraging_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.autodeleveraging_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.autodeleveraging_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_autodeleveragingbuilder_free(e>>>0)));const R="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_changepubkey_free(e>>>0)));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_changepubkey_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getChangePubkeyMessage(e,t){let i,r;try{const p=s.__wbindgen_add_to_stack_pointer(-16),f=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),m=v;s.changepubkey_getChangePubkeyMessage(p,this.__wbg_ptr,e,f,m);var a=g()[p/4+0],o=g()[p/4+1],d=g()[p/4+2],h=g()[p/4+3],c=a,l=o;if(h)throw c=0,l=0,n(d);return i=c,r=l,u(c,l)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}getEthSignMsg(e,t){let i,r;try{const n=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_getEthSignMsg(n,this.__wbg_ptr,e,t);var a=g()[n/4+0],o=g()[n/4+1];return i=a,r=o,u(a,o)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}setEthAuthData(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.changepubkey_setEthAuthData(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return n(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.changepubkey_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_changepubkeybuilder_free(e>>>0)));const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contract_free(e>>>0)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contract_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contract_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.contract_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractbuilder_free(e>>>0)));class F{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u){try{const m=s.__wbindgen_add_to_stack_pointer(-16),y=w(o,s.__wbindgen_export_0,s.__wbindgen_export_1),b=v,k=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),S=v;s.contractbuilder_new(m,e,t,i,r,a,y,b,k,S,h,c,l,u);var p=g()[m/4+0],f=g()[m/4+1];if(g()[m/4+2])throw n(f);return this.__wbg_ptr=p>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.contractbuilder_build(e);return q.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractinfo_free(e>>>0)));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractmatching_free(e>>>0)));class G{static __wrap(e){e>>>=0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractmatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contractmatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.contractmatching_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractmatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractprice_free(e>>>0)));const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_create2data_free(e>>>0)));class W{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_create2data_free(e)}constructor(e,t,i){try{const o=s.__wbindgen_add_to_stack_pointer(-16),d=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),h=v,c=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),l=v,u=w(i,s.__wbindgen_export_0,s.__wbindgen_export_1),p=v;s.create2data_new(o,d,h,c,l,u,p);var r=g()[o/4+0],a=g()[o/4+1];if(g()[o/4+2])throw n(a);return this.__wbg_ptr=r>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}salt(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.create2data_salt(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.create2data_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ethtxoption_free(e>>>0)));const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_forcedexit_free(e>>>0)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_forcedexit_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.forcedexit_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.forcedexit_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_forcedexitbuilder_free(e>>>0)));const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_funding_free(e>>>0)));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_funding_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.funding_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.funding_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundinginfo_free(e>>>0)));const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_jsonrpcsigner_free(e>>>0)));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_jsonrpcsigner_free(e)}initZklinkSigner(e){var t=p(e)?0:w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),i=v;return n(s.jsonrpcsigner_initZklinkSigner(this.__wbg_ptr,t,i))}getPubkey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_getPubkey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}pubkeyHash(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_pubkeyHash(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}address(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_address(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];let r;return 0!==e&&(r=u(e,t).slice(),s.__wbindgen_export_5(e,1*t,1)),r}finally{s.__wbindgen_add_to_stack_pointer(16)}}signatureSeed(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_signatureSeed(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signChangePubkeyWithOnchain(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,N);var t=e.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithOnchain(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signChangePubkeyWithEthEcdsaAuth(e){A(e,N);var t=e.__destroy_into_raw();return n(s.jsonrpcsigner_signChangePubkeyWithEthEcdsaAuth(this.__wbg_ptr,t))}signChangePubkeyWithCreate2DataAuth(e,t){try{const d=s.__wbindgen_add_to_stack_pointer(-16);A(e,N);var i=e.__destroy_into_raw();A(t,W);var r=t.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithCreate2DataAuth(d,this.__wbg_ptr,i,r);var a=g()[d/4+0],o=g()[d/4+1];if(g()[d/4+2])throw n(o);return n(a)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signTransfer(e,t){A(e,re);var i=e.__destroy_into_raw();const r=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signTransfer(this.__wbg_ptr,i,r,a))}createSignedOrder(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ee);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedOrder(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signOrderMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ie);var t=e.__destroy_into_raw();s.jsonrpcsigner_signOrderMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signWithdraw(e,t){A(e,ce);var i=e.__destroy_into_raw();const r=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signWithdraw(this.__wbg_ptr,i,r,a))}signForcedExit(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,K);var t=e.__destroy_into_raw();s.jsonrpcsigner_signForcedExit(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signAutoDeleveraging(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,L);var t=e.__destroy_into_raw();s.jsonrpcsigner_signAutoDeleveraging(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}createSignedContract(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,q);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedContract(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signContractMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,G);var t=e.__destroy_into_raw();s.jsonrpcsigner_signContractMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signFunding(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,Y);var t=e.__destroy_into_raw();s.jsonrpcsigner_signFunding(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signLiquidation(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,$);var t=e.__destroy_into_raw();s.jsonrpcsigner_signLiquidation(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signMusig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=function(e,t){const i=t(1*e.length,1)>>>0;return l().set(e,i/1),v=e.length,i}(e,s.__wbindgen_export_0),o=v;s.jsonrpcsigner_signMusig(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return de.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getZkLinkSigner(){const e=s.jsonrpcsigner_getZkLinkSigner(this.__wbg_ptr);return ue.__wrap(e)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_liquidation_free(e>>>0)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_liquidation_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.liquidation_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.liquidation_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_liquidationbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_margininfo_free(e>>>0)));const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_order_free(e>>>0)));class ee{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_order_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u,p){try{const y=s.__wbindgen_add_to_stack_pointer(-16),b=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=w(h,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.order_new(y,e,t,i,r,a,o,b,k,S,O,c,l,u,p);var f=g()[y/4+0],m=g()[y/4+1];if(g()[y/4+2])throw n(m);return this.__wbg_ptr=f>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.order_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.order_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_ordermatching_free(e>>>0)));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_ordermatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.ordermatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ordermatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_parameter_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_requestarguments_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_rpcclient_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_spotpriceinfo_free(e>>>0)));const se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transfer_free(e>>>0)));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,se.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transfer_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.transfer_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.transfer_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.transfer_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transferbuilder_free(e>>>0)));class oe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transferbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c){try{const f=s.__wbindgen_add_to_stack_pointer(-16),m=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),y=v,b=w(o,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.transferbuilder_new(f,e,m,y,i,r,a,b,k,S,O,h,!p(c),p(c)?0:c);var l=g()[f/4+0],u=g()[f/4+1];if(g()[f/4+2])throw n(u);return this.__wbg_ptr=l>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.transferbuilder_build(e);return re.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_txlayer1signature_free(e>>>0)));const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_txzklinksignature_free(e>>>0)));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_txzklinksignature_free(e)}constructor(e,t){try{const a=s.__wbindgen_add_to_stack_pointer(-16),o=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v,h=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),c=v;s.txzklinksignature_new(a,o,d,h,c);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return this.__wbg_ptr=i>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}pubKey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_pubKey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signature(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_signature(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvar_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvarbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_wallet_free(e>>>0)));const he="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_withdraw_free(e>>>0)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,he.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_withdraw_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.withdraw_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.withdraw_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.withdraw_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_withdrawbuilder_free(e>>>0)));const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_zklinksigner_free(e>>>0)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_zklinksigner_free(e)}static ethSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_ethSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}static starknetSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_starknetSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_zklinktx_free(e>>>0)));function pe(){const e={wbg:{}};return e.wbg.__wbindgen_object_drop_ref=function(e){n(e)},e.wbg.__wbg_request_aa80f2dd90291bcc=function(){return B((function(e,t){return d(a(e).request(n(t)))}),arguments)},e.wbg.__wbg_signMessage_31620e519ceecf94=function(){return B((function(e,t){return d(a(e).signMessage(a(t)))}),arguments)},e.wbg.__wbindgen_number_new=function(e){return d(e)},e.wbg.__wbindgen_string_new=function(e,t){return d(u(e,t))},e.wbg.__wbindgen_is_undefined=function(e){return void 0===a(e)},e.wbg.__wbindgen_in=function(e,t){return a(e)in a(t)},e.wbg.__wbindgen_boolean_get=function(e){const t=a(e);return"boolean"==typeof t?t?1:0:2},e.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof a(e)},e.wbg.__wbindgen_number_get=function(e,t){const i=a(t),r="number"==typeof i?i:void 0;(null!==f&&0!==f.byteLength||(f=new Float64Array(s.memory.buffer)),f)[e/8+1]=p(r)?0:r,g()[e/4+0]=!p(r)},e.wbg.__wbindgen_bigint_from_i64=function(e){return d(e)},e.wbg.__wbindgen_jsval_eq=function(e,t){return a(e)===a(t)},e.wbg.__wbindgen_string_get=function(e,t){const i=a(t),r="string"==typeof i?i:void 0;var o=p(r)?0:w(r,s.__wbindgen_export_0,s.__wbindgen_export_1),n=v;g()[e/4+1]=n,g()[e/4+0]=o},e.wbg.__wbindgen_is_object=function(e){const t=a(e);return"object"==typeof t&&null!==t},e.wbg.__wbindgen_bigint_from_u64=function(e){return d(BigInt.asUintN(64,e))},e.wbg.__wbindgen_object_clone_ref=function(e){return d(a(e))},e.wbg.__wbindgen_as_number=function(e){return+a(e)},e.wbg.__wbindgen_error_new=function(e,t){return d(new Error(u(e,t)))},e.wbg.__wbg_performance_eeefc685c9bc38b4=function(e){return d(a(e).performance)},e.wbg.__wbg_now_e0d8ec93dd25766a=function(e){return a(e).now()},e.wbg.__wbg_selectedAddress_e88960714bb47d11=function(e,t){const i=a(t).selectedAddress;var r=p(i)?0:w(i,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;g()[e/4+1]=o,g()[e/4+0]=r},e.wbg.__wbg_address_b7ff4a10022d02d8=function(e,t){const i=w(a(t).address,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_jsval_loose_eq=function(e,t){return a(e)==a(t)},e.wbg.__wbg_String_389b54bd9d25375f=function(e,t){const i=w(String(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(e,t){return d(a(e)[a(t)])},e.wbg.__wbg_set_9182712abebf82ef=function(e,t,i){a(e)[n(t)]=n(i)},e.wbg.__wbindgen_cb_drop=function(e){const t=n(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},e.wbg.__wbg_clearTimeout_76877dbc010e786d=function(e){return d(clearTimeout(n(e)))},e.wbg.__wbg_setTimeout_75cb9b6991a4031d=function(){return B((function(e,t){return d(setTimeout(a(e),t))}),arguments)},e.wbg.__wbg_fetch_6a2624d7f767e331=function(e){return d(fetch(a(e)))},e.wbg.__wbg_fetch_693453ca3f88c055=function(e,t){return d(a(e).fetch(a(t)))},e.wbg.__wbg_new_7a20246daa6eec7e=function(){return B((function(){return d(new Headers)}),arguments)},e.wbg.__wbg_append_aa3f462f9e2b5ff2=function(){return B((function(e,t,i,s,r){a(e).append(u(t,i),u(s,r))}),arguments)},e.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03=function(){return B((function(e,t,i){return d(new Request(u(e,t),a(i)))}),arguments)},e.wbg.__wbg_signal_3c701f5f40a5f08d=function(e){return d(a(e).signal)},e.wbg.__wbg_new_0ae46f44b7485bb2=function(){return B((function(){return d(new AbortController)}),arguments)},e.wbg.__wbg_abort_2c4fb490d878d2b2=function(e){a(e).abort()},e.wbg.__wbg_instanceof_Response_4c3b1446206114d1=function(e){let t;try{t=a(e)instanceof Response}catch(e){t=!1}return t},e.wbg.__wbg_url_83a6a4f65f7a2b38=function(e,t){const i=w(a(t).url,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_status_d6d47ad2837621eb=function(e){return a(e).status},e.wbg.__wbg_headers_24def508a7518df9=function(e){return d(a(e).headers)},e.wbg.__wbg_arrayBuffer_5b2688e3dd873fed=function(){return B((function(e){return d(a(e).arrayBuffer())}),arguments)},e.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(e){queueMicrotask(a(e))},e.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(e){return d(a(e).queueMicrotask)},e.wbg.__wbindgen_is_function=function(e){return"function"==typeof a(e)},e.wbg.__wbg_crypto_58f13aa23ffcb166=function(e){return d(a(e).crypto)},e.wbg.__wbg_process_5b786e71d465a513=function(e){return d(a(e).process)},e.wbg.__wbg_versions_c2ab80650590b6a2=function(e){return d(a(e).versions)},e.wbg.__wbg_node_523d7bd03ef69fba=function(e){return d(a(e).node)},e.wbg.__wbindgen_is_string=function(e){return"string"==typeof a(e)},e.wbg.__wbg_require_2784e593a4674877=function(){return B((function(){return d(module.require)}),arguments)},e.wbg.__wbg_msCrypto_abcb1295e768d1f2=function(e){return d(a(e).msCrypto)},e.wbg.__wbg_randomFillSync_a0d98aa11c81fe89=function(){return B((function(e,t){a(e).randomFillSync(n(t))}),arguments)},e.wbg.__wbg_getRandomValues_504510b5564925af=function(){return B((function(e,t){a(e).getRandomValues(a(t))}),arguments)},e.wbg.__wbg_get_bd8e338fbd5f5cc8=function(e,t){return d(a(e)[t>>>0])},e.wbg.__wbg_length_cd7af8117672b8b8=function(e){return a(e).length},e.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return d(new Array)},e.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(e,t){return d(new Function(u(e,t)))},e.wbg.__wbg_new_d9bc3a0147634640=function(){return d(new Map)},e.wbg.__wbg_next_40fc327bfc8770e6=function(e){return d(a(e).next)},e.wbg.__wbg_next_196c84450b364254=function(){return B((function(e){return d(a(e).next())}),arguments)},e.wbg.__wbg_done_298b57d23c0fc80c=function(e){return a(e).done},e.wbg.__wbg_value_d93c65011f51a456=function(e){return d(a(e).value)},e.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return d(Symbol.iterator)},e.wbg.__wbg_get_e3c254076557e348=function(){return B((function(e,t){return d(Reflect.get(a(e),a(t)))}),arguments)},e.wbg.__wbg_call_27c0f87801dedf93=function(){return B((function(e,t){return d(a(e).call(a(t)))}),arguments)},e.wbg.__wbg_new_72fb9a18b5ae2624=function(){return d(new Object)},e.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return B((function(){return d(self.self)}),arguments)},e.wbg.__wbg_window_c6fb939a7f436783=function(){return B((function(){return d(window.window)}),arguments)},e.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return B((function(){return d(globalThis.globalThis)}),arguments)},e.wbg.__wbg_global_207b558942527489=function(){return B((function(){return d(global.global)}),arguments)},e.wbg.__wbg_set_d4638f722068f043=function(e,t,i){a(e)[t>>>0]=n(i)},e.wbg.__wbg_isArray_2ab64d95e09ea0ae=function(e){return Array.isArray(a(e))},e.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let t;try{t=a(e)instanceof ArrayBuffer}catch(e){t=!1}return t},e.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return B((function(e,t,i){return d(a(e).call(a(t),a(i)))}),arguments)},e.wbg.__wbg_set_8417257aaedc936b=function(e,t,i){return d(a(e).set(a(t),a(i)))},e.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(a(e))},e.wbg.__wbg_entries_95cc2c823b285a09=function(e){return d(Object.entries(a(e)))},e.wbg.__wbg_new_81740750da40724f=function(e,t){try{var i={a:e,b:t};const r=new Promise(((e,t)=>{const r=i.a;i.a=0;try{return function(e,t,i,r){s.__wbindgen_export_7(e,t,d(i),d(r))}(r,i.b,e,t)}finally{i.a=r}}));return d(r)}finally{i.a=i.b=0}},e.wbg.__wbg_resolve_b0083a7967828ec8=function(e){return d(Promise.resolve(a(e)))},e.wbg.__wbg_then_0c86a60e8fcfe9f6=function(e,t){return d(a(e).then(a(t)))},e.wbg.__wbg_then_a73caa9a87991566=function(e,t,i){return d(a(e).then(a(t),a(i)))},e.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){return d(a(e).buffer)},e.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(e,t,i){return d(new Uint8Array(a(e),t>>>0,i>>>0))},e.wbg.__wbg_new_63b92bc8671ed464=function(e){return d(new Uint8Array(a(e)))},e.wbg.__wbg_set_a47bac70306a19a7=function(e,t,i){a(e).set(a(t),i>>>0)},e.wbg.__wbg_length_c20a40f15020d68a=function(e){return a(e).length},e.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let t;try{t=a(e)instanceof Uint8Array}catch(e){t=!1}return t},e.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(e){return d(new Uint8Array(e>>>0))},e.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(e,t,i){return d(a(e).subarray(t>>>0,i>>>0))},e.wbg.__wbg_has_0af94d20077affa2=function(){return B((function(e,t){return Reflect.has(a(e),a(t))}),arguments)},e.wbg.__wbg_set_1f9b04f170055d33=function(){return B((function(e,t,i){return Reflect.set(a(e),a(t),a(i))}),arguments)},e.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return B((function(e){return d(JSON.stringify(a(e)))}),arguments)},e.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const i=a(t),r="bigint"==typeof i?i:void 0;(null!==k&&0!==k.byteLength||(k=new BigInt64Array(s.memory.buffer)),k)[e/8+1]=p(r)?BigInt(0):r,g()[e/4+0]=!p(r)},e.wbg.__wbindgen_debug_string=function(e,t){const i=w(S(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_throw=function(e,t){throw new Error(u(e,t))},e.wbg.__wbindgen_memory=function(){return d(s.memory)},e.wbg.__wbindgen_closure_wrapper3897=function(e,t,i){return d(T(e,t,699,P))},e.wbg.__wbindgen_closure_wrapper7350=function(e,t,i){return d(T(e,t,1724,I))},e}function fe(e,t){return s=e.exports,me.__wbindgen_wasm_module=t,k=null,f=null,m=null,x=null,c=null,s}async function me(e){if(void 0!==s)return s;void 0===e&&(e="https://qa.omni.apex.exchange/api/v3/download/zklink-sdk-web_bg.wasm");const t=pe();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:i,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}(await e,t);return fe(i,r)}const ge=me}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var a=s[e]={exports:{}};return i[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var a=Object.create(null);r.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var n=2&s&&i;"object"==typeof n&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>i[e]));return o.default=()=>i,r.d(a,o),a},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};r.r(a),r.d(a,{AccountNotEnabled:()=>h.AccountNotEnabled,AccountSuspended:()=>h.AccountSuspended,AddressPending:()=>h.AddressPending,ArgumentsRequired:()=>h.ArgumentsRequired,AuthenticationError:()=>h.AuthenticationError,BadRequest:()=>h.BadRequest,BadResponse:()=>h.BadResponse,BadSymbol:()=>h.BadSymbol,BaseError:()=>h.BaseError,CancelPending:()=>h.CancelPending,ChecksumError:()=>h.ChecksumError,ContractUnavailable:()=>h.ContractUnavailable,DDoSProtection:()=>h.DDoSProtection,DuplicateOrderId:()=>h.DuplicateOrderId,Exchange:()=>o.k,ExchangeClosedByUser:()=>h.ExchangeClosedByUser,ExchangeError:()=>h.ExchangeError,ExchangeNotAvailable:()=>h.ExchangeNotAvailable,InsufficientFunds:()=>h.InsufficientFunds,InvalidAddress:()=>h.InvalidAddress,InvalidNonce:()=>h.InvalidNonce,InvalidOrder:()=>h.InvalidOrder,InvalidProxySettings:()=>h.InvalidProxySettings,ManualInteractionNeeded:()=>h.ManualInteractionNeeded,MarginModeAlreadySet:()=>h.MarginModeAlreadySet,MarketClosed:()=>h.MarketClosed,NetworkError:()=>h.NetworkError,NoChange:()=>h.NoChange,NotSupported:()=>h.NotSupported,NullResponse:()=>h.NullResponse,OnMaintenance:()=>h.OnMaintenance,OperationFailed:()=>h.OperationFailed,OperationRejected:()=>h.OperationRejected,OrderImmediatelyFillable:()=>h.OrderImmediatelyFillable,OrderNotCached:()=>h.OrderNotCached,OrderNotFillable:()=>h.OrderNotFillable,OrderNotFound:()=>h.OrderNotFound,PermissionDenied:()=>h.PermissionDenied,Precise:()=>n.Y,RateLimitExceeded:()=>h.RateLimitExceeded,RequestTimeout:()=>h.RequestTimeout,RestrictedLocation:()=>h.RestrictedLocation,UnsubscribeError:()=>h.UnsubscribeError,alpaca:()=>c.A,apex:()=>l.A,ascendex:()=>u.A,backpack:()=>p.A,bequant:()=>f.A,bigone:()=>m.A,binance:()=>g.A,binancecoinm:()=>v.A,binanceus:()=>y.A,binanceusdm:()=>b.A,bingx:()=>w.A,bit2c:()=>k.A,bitbank:()=>S.A,bitbns:()=>O.A,bitfinex:()=>T.A,bitflyer:()=>P.A,bitget:()=>I.A,bithumb:()=>M.A,bitmart:()=>A.A,bitmex:()=>x.A,bitopro:()=>_.A,bitrue:()=>C.A,bitso:()=>B.A,bitstamp:()=>E.A,bitteam:()=>L.A,bittrade:()=>R.A,bitvavo:()=>N.A,blockchaincom:()=>D.A,blofin:()=>q.A,btcalpha:()=>V.A,btcbox:()=>F.A,btcmarkets:()=>H.A,btcturk:()=>G.A,bybit:()=>U.A,cex:()=>W.A,coinbase:()=>j.A,coinbaseadvanced:()=>K.A,coinbaseexchange:()=>z.A,coinbaseinternational:()=>Y.A,coincatch:()=>X.A,coincheck:()=>Q.A,coinex:()=>Z.A,coinmate:()=>$.A,coinmetro:()=>J.A,coinone:()=>ee.A,coinsph:()=>te.A,coinspot:()=>ie.A,cryptocom:()=>se.A,cryptomus:()=>re.A,default:()=>_i,defx:()=>ae.A,delta:()=>oe.A,deribit:()=>ne.A,derive:()=>de.A,digifinex:()=>he.A,errors:()=>h,exchanges:()=>Ai,exmo:()=>ce.A,fmfwio:()=>le.A,foxbit:()=>ue.A,functions:()=>d,gate:()=>pe.A,gateio:()=>fe.A,gemini:()=>me.A,hashkey:()=>ge.A,hibachi:()=>ve.A,hitbtc:()=>ye.A,hollaex:()=>be.A,htx:()=>we.A,huobi:()=>ke.A,hyperliquid:()=>Se.A,independentreserve:()=>Oe.A,indodax:()=>Te.A,kraken:()=>Pe.A,krakenfutures:()=>Ie.A,kucoin:()=>Me.A,kucoinfutures:()=>Ae.A,latoken:()=>xe.A,lbank:()=>_e.A,luno:()=>Ce.A,mercado:()=>Be.A,mexc:()=>Ee.A,modetrade:()=>Le.A,myokx:()=>Re.A,ndax:()=>Ne.A,novadax:()=>De.A,oceanex:()=>qe.A,okcoin:()=>Ve.A,okx:()=>Fe.A,okxus:()=>He.A,onetrading:()=>Ge.A,oxfun:()=>Ue.A,p2b:()=>We.A,paradex:()=>je.A,paymium:()=>Ke.A,phemex:()=>ze.A,poloniex:()=>Ye.A,pro:()=>xi,probit:()=>Xe.A,timex:()=>Qe.A,tokocrypto:()=>Ze.A,toobit:()=>$e.A,upbit:()=>Je.A,version:()=>Mi,wavesexchange:()=>et.A,whitebit:()=>tt.A,woo:()=>it.A,woofipro:()=>st.A,xt:()=>rt.A,yobit:()=>at.A,zaif:()=>ot.A,zonda:()=>nt.A});var o=r(2961),n=r(5147),d=r(5095),h=r(2079),c=r(7930),l=r(4920),u=r(1411),p=r(7698),f=r(9002),m=r(8698),g=r(3192),v=r(1510),y=r(8228),b=r(2171),w=r(2480),k=r(2342),S=r(7399),O=r(6328),T=r(8657),P=r(1787),I=r(7757),M=r(357),A=r(1837),x=r(9523),_=r(2753),C=r(9061),B=r(3019),E=r(382),L=r(112),R=r(2263),N=r(3727),D=r(3205),q=r(2520),V=r(3413),F=r(5376),H=r(4936),G=r(9265),U=r(5462),W=r(8846),j=r(7504),K=r(3278),z=r(4293),Y=r(1558),X=r(570),Q=r(2741),Z=r(9344),$=r(6016),J=r(8692),ee=r(5377),te=r(2692),ie=r(1669),se=r(6068),re=r(870),ae=r(6077),oe=r(1080),ne=r(2591),de=r(1839),he=r(779),ce=r(7057),le=r(3042),ue=r(448),pe=r(9403),fe=r(784),me=r(8823),ge=r(2937),ve=r(5106),ye=r(7996),be=r(4455),we=r(9946),ke=r(63),Se=r(1936),Oe=r(4162),Te=r(7325),Pe=r(8042),Ie=r(2300),Me=r(1397),Ae=r(6217),xe=r(8146),_e=r(3144),Ce=r(9248),Be=r(6419),Ee=r(2403),Le=r(5345),Re=r(8982),Ne=r(4460),De=r(8473),qe=r(3805),Ve=r(7915),Fe=r(3660),He=r(3536),Ge=r(3573),Ue=r(6358),We=r(4998),je=r(6993),Ke=r(3280),ze=r(9075),Ye=r(288),Xe=r(5037),Qe=r(6213),Ze=r(2490),$e=r(237),Je=r(930),et=r(7073),tt=r(5336),it=r(669),st=r(9641),rt=r(5344),at=r(7469),ot=r(1530),nt=r(6022),dt=r(6810),ht=r(136),ct=r(1657),lt=r(4034),ut=r(9338),pt=r(9544),ft=r(902),mt=r(8788),gt=r(8251),vt=r(9456),yt=r(1038),bt=r(205),wt=r(6181),kt=r(3069),St=r(3731),Ot=r(4401),Tt=r(3333),Pt=r(3326),It=r(2391),Mt=r(1327),At=r(8693),xt=r(1672),_t=r(8518),Ct=r(3774),Bt=r(8160),Et=r(5918),Lt=r(1925),Rt=r(998),Nt=r(3242),Dt=r(79),qt=r(9088),Vt=r(8673),Ft=r(6292),Ht=r(8717),Gt=r(7791),Ut=r(2127),Wt=r(5233),jt=r(9195),Kt=r(5843),zt=r(375),Yt=r(1481),Xt=r(4524),Qt=r(8247),Zt=r(3898),$t=r(6335),Jt=r(3984),ei=r(98),ti=r(9050),ii=r(6396),si=r(4965),ri=r(905),ai=r(1736),oi=r(2208),ni=r(9219),di=r(49),hi=r(3062),ci=r(3887),li=r(6187),ui=r(8588),pi=r(3296),fi=r(4357),mi=r(550),gi=r(4934),vi=r(1057),yi=r(1619),bi=r(3456),wi=r(5738),ki=r(3933),Si=r(5794),Oi=r(4712),Ti=r(5869),Pi=r(8713),Ii=r(2368);const Mi="4.5.8";o.k.ccxtVersion=Mi;const Ai={alpaca:c.A,apex:l.A,ascendex:u.A,backpack:p.A,bequant:f.A,bigone:m.A,binance:g.A,binancecoinm:v.A,binanceus:y.A,binanceusdm:b.A,bingx:w.A,bit2c:k.A,bitbank:S.A,bitbns:O.A,bitfinex:T.A,bitflyer:P.A,bitget:I.A,bithumb:M.A,bitmart:A.A,bitmex:x.A,bitopro:_.A,bitrue:C.A,bitso:B.A,bitstamp:E.A,bitteam:L.A,bittrade:R.A,bitvavo:N.A,blockchaincom:D.A,blofin:q.A,btcalpha:V.A,btcbox:F.A,btcmarkets:H.A,btcturk:G.A,bybit:U.A,cex:W.A,coinbase:j.A,coinbaseadvanced:K.A,coinbaseexchange:z.A,coinbaseinternational:Y.A,coincatch:X.A,coincheck:Q.A,coinex:Z.A,coinmate:$.A,coinmetro:J.A,coinone:ee.A,coinsph:te.A,coinspot:ie.A,cryptocom:se.A,cryptomus:re.A,defx:ae.A,delta:oe.A,deribit:ne.A,derive:de.A,digifinex:he.A,exmo:ce.A,fmfwio:le.A,foxbit:ue.A,gate:pe.A,gateio:fe.A,gemini:me.A,hashkey:ge.A,hibachi:ve.A,hitbtc:ye.A,hollaex:be.A,htx:we.A,huobi:ke.A,hyperliquid:Se.A,independentreserve:Oe.A,indodax:Te.A,kraken:Pe.A,krakenfutures:Ie.A,kucoin:Me.A,kucoinfutures:Ae.A,latoken:xe.A,lbank:_e.A,luno:Ce.A,mercado:Be.A,mexc:Ee.A,modetrade:Le.A,myokx:Re.A,ndax:Ne.A,novadax:De.A,oceanex:qe.A,okcoin:Ve.A,okx:Fe.A,okxus:He.A,onetrading:Ge.A,oxfun:Ue.A,p2b:We.A,paradex:je.A,paymium:Ke.A,phemex:ze.A,poloniex:Ye.A,probit:Xe.A,timex:Qe.A,tokocrypto:Ze.A,toobit:$e.A,upbit:Je.A,wavesexchange:et.A,whitebit:tt.A,woo:it.A,woofipro:st.A,xt:rt.A,yobit:at.A,zaif:ot.A,zonda:nt.A},xi={alpaca:dt.A,apex:ht.A,ascendex:ct.A,backpack:lt.A,bequant:ut.A,binance:pt.A,binancecoinm:ft.A,binanceus:mt.A,binanceusdm:gt.A,bingx:vt.A,bitfinex:yt.A,bitget:bt.A,bithumb:wt.A,bitmart:kt.A,bitmex:St.A,bitopro:Ot.A,bitrue:Tt.A,bitstamp:Pt.A,bittrade:It.A,bitvavo:Mt.A,blockchaincom:At.A,blofin:xt.A,bybit:_t.A,cex:Ct.A,coinbase:Bt.A,coinbaseadvanced:Et.A,coinbaseexchange:Lt.A,coinbaseinternational:Rt.A,coincatch:Nt.A,coincheck:Dt.A,coinex:qt.A,coinone:Vt.A,cryptocom:Ft.A,defx:Ht.A,deribit:Gt.A,derive:Ut.A,exmo:Wt.A,gate:jt.A,gateio:Kt.A,gemini:zt.A,hashkey:Yt.A,hitbtc:Xt.A,hollaex:Qt.A,htx:Zt.A,huobi:$t.A,hyperliquid:Jt.A,independentreserve:ei.A,kraken:ti.A,krakenfutures:ii.A,kucoin:si.A,kucoinfutures:ri.A,lbank:ai.A,luno:oi.A,mexc:ni.A,modetrade:di.A,myokx:hi.A,ndax:ci.A,okcoin:li.A,okx:ui.A,okxus:pi.A,onetrading:fi.A,oxfun:mi.A,p2b:gi.A,paradex:vi.A,phemex:yi.A,poloniex:bi.A,probit:wi.A,toobit:ki.A,upbit:Si.A,whitebit:Oi.A,woo:Ti.A,woofipro:Pi.A,xt:Ii.A};for(const e in xi);xi.exchanges=Object.keys(xi),xi.Exchange=o.k;const _i=Object.assign({version:Mi,Exchange:o.k,Precise:n.Y,exchanges:Object.keys(Ai),pro:xi},Ai,d,h);self.ccxt=a})();
|
|
33
|
+
var s={};s.lang={extend:function(e,t,i){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var s=function(){};if(s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),i){var r;for(r in i)e.prototype[r]=i[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var i=o[r],s=t[i];"function"==typeof s&&s!=Object.prototype[i]&&(e[i]=s)}})}catch(e){}a(e.prototype,i)}}}},917:(e,t,i)=>{function s(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const i=4294967296;let s,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/i,s=e%i;l([207,t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(s=new ArrayBuffer(8),r=new DataView(s)),r.setFloat64(0,e),c(203),l(new Uint8Array(s))}(e);break;case"string":!function(e){let t=function(e){let t=!0,i=e.length;for(let s=0;s<i;s++)if(e.charCodeAt(s)>127){t=!1;break}let s=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==i;t++){let a=e.charCodeAt(t);if(a<128)r[s++]=a;else{if(a<2048)r[s++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=i)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[s++]=a>>18|240,r[s++]=a>>12&63|128}else r[s++]=a>>12|224;r[s++]=a>>6&63|128}r[s++]=63&a|128}}return t?r:r.subarray(0,s)}(e),i=t.length;i<=31?c(160+i):l(i<=255?[217,i]:i<=65535?[218,i>>>8,i]:[219,i>>>24,i>>>16,i>>>8,i]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let s=1e6*e.getMilliseconds();l([215,255,s>>>22,s>>>14,s>>>6,s<<2>>>0|t/i,t>>>24,t>>>16,t>>>8,t])}else{let i=1e6*e.getMilliseconds();l([199,12,255,i>>>24,i>>>16,i>>>8,i]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let i in e)void 0!==e[i]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let i=e[t];void 0!==i&&(n(t),n(i))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let i=0;i<t;i++)n(e[i])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let i=new Uint8Array(t);i.set(a),a=i}a.set(e,o),o+=e.length}function u(e){let t,s;e>=0?(t=e/i,s=e%i):(e++,t=Math.abs(e)/i,s=Math.abs(e)%i,t=~t,s=~s),l([t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}}i.d(t,{l:()=>s})},1417:(e,t,i)=>{i.d(t,{Ay:()=>d,MV:()=>n,_J:()=>a,j1:()=>o});var s=String.prototype.replace,r=/%20/g,a={RFC1738:function(e){return s.call(e,r,"+")},RFC3986:function(e){return e}},o="RFC1738",n="RFC3986";const d="RFC3986"},3649:(e,t,i)=>{i.d(t,{Ay:()=>o});var s=i(6888),r=i(7942),a=i(1417);const o={formats:{default:a.Ay,formatters:a._J,RFC1738:a.j1,RFC3986:a.MV},parse:r.A,stringify:s.A}},7942:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(700),r=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:s.D4,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},n=function(e,t){var i,n={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,c=d.split(t.delimiter,h),l=-1,u=t.charset;if(t.charsetSentinel)for(i=0;i<c.length;++i)0===c[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[i]?u="utf-8":"utf8=%26%2310003%3B"===c[i]&&(u="iso-8859-1"),l=i,i=c.length);for(i=0;i<c.length;++i)if(i!==l){var p,f,m=c[i],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(p=t.decoder(m,a.decoder,u),f=t.strictNullHandling?null:""):(p=t.decoder(m.slice(0,v),a.decoder,u),f=t.decoder(m.slice(v+1),a.decoder,u)),f&&t.interpretNumericEntities&&"iso-8859-1"===u&&(f=o(f)),f&&t.comma&&f.indexOf(",")>-1&&(f=f.split(",")),r.call(n,p)?n[p]=s.kg(n[p],f):n[p]=f}return n},d=function(e,t,i){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(s),n=o?s.slice(0,o.index):s,d=[];if(n){if(!i.plainObjects&&r.call(Object.prototype,n)&&!i.allowPrototypes)return;d.push(n)}for(var h=0;null!==(o=a.exec(s))&&h<i.depth;){if(h+=1,!i.plainObjects&&r.call(Object.prototype,o[1].slice(1,-1))&&!i.allowPrototypes)return;d.push(o[1])}return o&&d.push("["+s.slice(o.index)+"]"),function(e,t,i){for(var s=t,r=e.length-1;r>=0;--r){var a,o=e[r];if("[]"===o&&i.parseArrays)a=[].concat(s);else{a=i.plainObjects?Object.create(null):{};var n="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,d=parseInt(n,10);i.parseArrays||""!==n?!isNaN(d)&&o!==n&&String(d)===n&&d>=0&&i.parseArrays&&d<=i.arrayLimit?(a=[])[d]=s:a[n]=s:a={0:s}}s=a}return s}(d,t,i)}},h=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||s.gd(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};function c(e,t){var i=h(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var r="string"==typeof e?n(e,i):e,a=i.plainObjects?Object.create(null):{},o=Object.keys(r),c=0;c<o.length;++c){var l=o[c],u=d(l,r[l],i);a=s.h1(a,u,i)}return s.oE(a)}},6888:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(700),r=i(1417),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Array.isArray,d=Array.prototype.push,h=function(e,t){d.apply(e,n(t)?t:[t])},c=Date.prototype.toISOString,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.lF,encodeValuesOnly:!1,formatter:r._J[r.Ay],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,i,r,a,o,d,c,u,p,f,m,g,v){var y=t;if("function"==typeof c?y=c(i,y):y instanceof Date?y=f(y):"comma"===r&&n(y)&&(y=y.join(",")),null===y){if(a)return d&&!g?d(i,l.encoder,v):i;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||s.Pe(y))return d?[m(g?i:d(i,l.encoder,v))+"="+m(d(y,l.encoder,v))]:[m(i)+"="+m(String(y))];var b,w=[];if(void 0===y)return w;if(n(c))b=c;else{var k=Object.keys(y);b=u?k.sort(u):k}for(var S=0;S<b.length;++S){var O=b[S];o&&null===y[O]||(n(y)?h(w,e(y[O],"function"==typeof r?r(i,O):i,r,a,o,d,c,u,p,f,m,g,v)):h(w,e(y[O],i+(p?"."+O:"["+O+"]"),r,a,o,d,c,u,p,f,m,g,v)))}return w},p=function(e){if(!e)return l;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=r.Ay;if(void 0!==e.format){if(!a.call(r._J,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var s=r._J[i],o=l.filter;return("function"==typeof e.filter||n(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:o,formatter:s,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}};function f(e,t){var i,s=e,r=p(t);"function"==typeof r.filter?s=(0,r.filter)("",s):n(r.filter)&&(i=r.filter);var a,d=[];if("object"!=typeof s||null===s)return"";a=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=o[a];i||(i=Object.keys(s)),r.sort&&i.sort(r.sort);for(var l=0;l<i.length;++l){var f=i[l];r.skipNulls&&null===s[f]||h(d,u(s[f],f,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.formatter,r.encodeValuesOnly,r.charset))}var m=d.join(r.delimiter),g=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}},700:(e,t,i)=>{i.d(t,{D4:()=>n,Pe:()=>l,gd:()=>c,h1:()=>o,kg:()=>u,lF:()=>d,oE:()=>h});var s=Object.prototype.hasOwnProperty,r=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function e(t,i,a){if(!i)return t;if("object"!=typeof i){if(r(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(a&&(a.plainObjects||a.allowPrototypes)||!s.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var o=t;return r(t)&&!r(i)&&(o=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},s=0;s<e.length;++s)void 0!==e[s]&&(i[s]=e[s]);return i}(t,a)),r(t)&&r(i)?(i.forEach((function(i,r){if(s.call(t,r)){var o=t[r];o&&"object"==typeof o&&i&&"object"==typeof i?t[r]=e(o,i,a):t.push(i)}else t[r]=i})),t):Object.keys(i).reduce((function(t,r){var o=i[r];return s.call(t,r)?t[r]=e(t[r],o,a):t[r]=o,t}),o)},n=function(e,t,i){var s=e.replace(/\+/g," ");if("iso-8859-1"===i)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},d=function(e,t,i){if(0===e.length)return e;var s="string"==typeof e?e:String(e);if("iso-8859-1"===i)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",o=0;o<s.length;++o){var n=s.charCodeAt(o);45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?r+=s.charAt(o):n<128?r+=a[n]:n<2048?r+=a[192|n>>6]+a[128|63&n]:n<55296||n>=57344?r+=a[224|n>>12]+a[128|n>>6&63]+a[128|63&n]:(o+=1,n=65536+((1023&n)<<10|1023&s.charCodeAt(o)),r+=a[240|n>>18]+a[128|n>>12&63]+a[128|n>>6&63]+a[128|63&n])}return r},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],s=0;s<t.length;++s)for(var a=t[s],o=a.obj[a.prop],n=Object.keys(o),d=0;d<n.length;++d){var h=n[d],c=o[h];"object"==typeof c&&null!==c&&-1===i.indexOf(c)&&(t.push({obj:o,prop:h}),i.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(r(i)){for(var s=[],a=0;a<i.length;++a)void 0!==i[a]&&s.push(i[a]);t.obj[t.prop]=s}}}(t),e},c=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},l=function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},u=function(e,t){return[].concat(e,t)}},7661:(e,t,i)=>{let s;i.d(t,{$s:()=>M,Ay:()=>ge,H3:()=>oe,JF:()=>C,KR:()=>F,qj:()=>_});const r=new Array(128).fill(void 0);function a(e){return r[e]}r.push(void 0,null,!0,!1);let o=r.length;function n(e){const t=a(e);return function(e){e<132||(r[e]=o,o=e)}(e),t}function d(e){o===r.length&&r.push(r.length+1);const t=o;return o=r[t],r[t]=e,t}const h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&h.decode();let c=null;function l(){return null!==c&&0!==c.byteLength||(c=new Uint8Array(s.memory.buffer)),c}function u(e,t){return e>>>=0,h.decode(l().subarray(e,e+t))}function p(e){return null==e}let f=null;let m=null;function g(){return null!==m&&0!==m.byteLength||(m=new Int32Array(s.memory.buffer)),m}let v=0;const y="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},b="function"==typeof y.encodeInto?function(e,t){return y.encodeInto(e,t)}:function(e,t){const i=y.encode(e);return t.set(i),{read:e.length,written:i.length}};function w(e,t,i){if(void 0===i){const i=y.encode(e),s=t(i.length,1)>>>0;return l().subarray(s,s+i.length).set(i),v=i.length,s}let s=e.length,r=t(s,1)>>>0;const a=l();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;a[r+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),r=i(r,s,s=o+3*e.length,1)>>>0;const t=l().subarray(r+o,r+s);o+=b(e,t).written,r=i(r,s,o,1)>>>0}return v=o,r}let k=null;function S(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let i="[";t>0&&(i+=S(e[0]));for(let s=1;s<t;s++)i+=", "+S(e[s]);return i+="]",i}const i=/\[object ([^\]]+)\]/.exec(toString.call(e));let s;if(!(i.length>1))return toString.call(e);if(s=i[1],"Object"==s)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:s}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{s.__wbindgen_export_2.get(e.dtor)(e.a,e.b)}));function T(e,t,i,r){const a={a:e,b:t,cnt:1,dtor:i},o=(...e)=>{a.cnt++;const t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{0==--a.cnt?(s.__wbindgen_export_2.get(a.dtor)(t,a.b),O.unregister(a)):a.a=t}};return o.original=a,O.register(o,a,a),o}function P(e,t){s.__wbindgen_export_3(e,t)}function I(e,t,i){s.__wbindgen_export_4(e,t,d(i))}function M(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16);s.newRpcSignerWithProvider(r,d(e));var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return Q.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}function A(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}let x=null;function _(e){A(e,oe);var t=e.__destroy_into_raw();const i=s.newTransfer(t);return re.__wrap(i)}function C(e){A(e,F);var t=e.__destroy_into_raw();const i=s.newContract(t);return q.__wrap(i)}function B(e,t){try{return e.apply(this,t)}catch(e){s.__wbindgen_export_6(d(e))}}Object.freeze({Success:0,0:"Success",Failed:1,1:"Failed",Pending:2,2:"Pending"}),Object.freeze({OnChain:0,0:"OnChain",EthECDSA:1,1:"EthECDSA",EthCREATE2:2,2:"EthCREATE2"}),Object.freeze({Eth:0,0:"Eth",Eip1271:1,1:"Eip1271",Stark:2,2:"Stark"}),Object.freeze({Deposit:1,1:"Deposit",FullExit:5,5:"FullExit",ChangePubKey:6,6:"ChangePubKey",Transfer:4,4:"Transfer",Withdraw:3,3:"Withdraw",ForcedExit:7,7:"ForcedExit",OrderMatching:8,8:"OrderMatching",AutoDeleveraging:11,11:"AutoDeleveraging",ContractMatching:9,9:"ContractMatching",Funding:13,13:"Funding",Liquidation:10,10:"Liquidation",UpdateGlobalVar:12,12:"UpdateGlobalVar"}),Object.freeze({Latest:0,0:"Latest",Finalized:1,1:"Finalized",Safe:2,2:"Safe",Earliest:3,3:"Earliest",Pending:4,4:"Pending",Number:5,5:"Number"}),Object.freeze({FeeAccount:0,0:"FeeAccount",InsuranceFundAccount:1,1:"InsuranceFundAccount",MarginInfo:2,2:"MarginInfo",FundingInfos:3,3:"FundingInfos",ContractInfo:4,4:"ContractInfo"}),Object.freeze({AccountId:0,0:"AccountId",Address:1,1:"Address"}),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_accountquery_free(e>>>0)));const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_autodeleveraging_free(e>>>0)));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_autodeleveraging_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.autodeleveraging_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.autodeleveraging_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_autodeleveragingbuilder_free(e>>>0)));const R="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_changepubkey_free(e>>>0)));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_changepubkey_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getChangePubkeyMessage(e,t){let i,r;try{const p=s.__wbindgen_add_to_stack_pointer(-16),f=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),m=v;s.changepubkey_getChangePubkeyMessage(p,this.__wbg_ptr,e,f,m);var a=g()[p/4+0],o=g()[p/4+1],d=g()[p/4+2],h=g()[p/4+3],c=a,l=o;if(h)throw c=0,l=0,n(d);return i=c,r=l,u(c,l)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}getEthSignMsg(e,t){let i,r;try{const n=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_getEthSignMsg(n,this.__wbg_ptr,e,t);var a=g()[n/4+0],o=g()[n/4+1];return i=a,r=o,u(a,o)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}setEthAuthData(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.changepubkey_setEthAuthData(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return n(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.changepubkey_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_changepubkeybuilder_free(e>>>0)));const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contract_free(e>>>0)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contract_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contract_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.contract_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractbuilder_free(e>>>0)));class F{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u){try{const m=s.__wbindgen_add_to_stack_pointer(-16),y=w(o,s.__wbindgen_export_0,s.__wbindgen_export_1),b=v,k=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),S=v;s.contractbuilder_new(m,e,t,i,r,a,y,b,k,S,h,c,l,u);var p=g()[m/4+0],f=g()[m/4+1];if(g()[m/4+2])throw n(f);return this.__wbg_ptr=p>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.contractbuilder_build(e);return q.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractinfo_free(e>>>0)));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractmatching_free(e>>>0)));class G{static __wrap(e){e>>>=0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractmatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contractmatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.contractmatching_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractmatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractprice_free(e>>>0)));const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_create2data_free(e>>>0)));class W{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_create2data_free(e)}constructor(e,t,i){try{const o=s.__wbindgen_add_to_stack_pointer(-16),d=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),h=v,c=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),l=v,u=w(i,s.__wbindgen_export_0,s.__wbindgen_export_1),p=v;s.create2data_new(o,d,h,c,l,u,p);var r=g()[o/4+0],a=g()[o/4+1];if(g()[o/4+2])throw n(a);return this.__wbg_ptr=r>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}salt(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.create2data_salt(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.create2data_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ethtxoption_free(e>>>0)));const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_forcedexit_free(e>>>0)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_forcedexit_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.forcedexit_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.forcedexit_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_forcedexitbuilder_free(e>>>0)));const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_funding_free(e>>>0)));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_funding_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.funding_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.funding_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundinginfo_free(e>>>0)));const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_jsonrpcsigner_free(e>>>0)));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_jsonrpcsigner_free(e)}initZklinkSigner(e){var t=p(e)?0:w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),i=v;return n(s.jsonrpcsigner_initZklinkSigner(this.__wbg_ptr,t,i))}getPubkey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_getPubkey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}pubkeyHash(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_pubkeyHash(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}address(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_address(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];let r;return 0!==e&&(r=u(e,t).slice(),s.__wbindgen_export_5(e,1*t,1)),r}finally{s.__wbindgen_add_to_stack_pointer(16)}}signatureSeed(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_signatureSeed(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signChangePubkeyWithOnchain(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,N);var t=e.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithOnchain(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signChangePubkeyWithEthEcdsaAuth(e){A(e,N);var t=e.__destroy_into_raw();return n(s.jsonrpcsigner_signChangePubkeyWithEthEcdsaAuth(this.__wbg_ptr,t))}signChangePubkeyWithCreate2DataAuth(e,t){try{const d=s.__wbindgen_add_to_stack_pointer(-16);A(e,N);var i=e.__destroy_into_raw();A(t,W);var r=t.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithCreate2DataAuth(d,this.__wbg_ptr,i,r);var a=g()[d/4+0],o=g()[d/4+1];if(g()[d/4+2])throw n(o);return n(a)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signTransfer(e,t){A(e,re);var i=e.__destroy_into_raw();const r=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signTransfer(this.__wbg_ptr,i,r,a))}createSignedOrder(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ee);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedOrder(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signOrderMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ie);var t=e.__destroy_into_raw();s.jsonrpcsigner_signOrderMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signWithdraw(e,t){A(e,ce);var i=e.__destroy_into_raw();const r=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signWithdraw(this.__wbg_ptr,i,r,a))}signForcedExit(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,K);var t=e.__destroy_into_raw();s.jsonrpcsigner_signForcedExit(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signAutoDeleveraging(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,L);var t=e.__destroy_into_raw();s.jsonrpcsigner_signAutoDeleveraging(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}createSignedContract(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,q);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedContract(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signContractMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,G);var t=e.__destroy_into_raw();s.jsonrpcsigner_signContractMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signFunding(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,Y);var t=e.__destroy_into_raw();s.jsonrpcsigner_signFunding(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signLiquidation(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,$);var t=e.__destroy_into_raw();s.jsonrpcsigner_signLiquidation(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signMusig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=function(e,t){const i=t(1*e.length,1)>>>0;return l().set(e,i/1),v=e.length,i}(e,s.__wbindgen_export_0),o=v;s.jsonrpcsigner_signMusig(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return de.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getZkLinkSigner(){const e=s.jsonrpcsigner_getZkLinkSigner(this.__wbg_ptr);return ue.__wrap(e)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_liquidation_free(e>>>0)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_liquidation_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.liquidation_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.liquidation_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_liquidationbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_margininfo_free(e>>>0)));const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_order_free(e>>>0)));class ee{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_order_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u,p){try{const y=s.__wbindgen_add_to_stack_pointer(-16),b=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=w(h,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.order_new(y,e,t,i,r,a,o,b,k,S,O,c,l,u,p);var f=g()[y/4+0],m=g()[y/4+1];if(g()[y/4+2])throw n(m);return this.__wbg_ptr=f>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.order_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.order_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_ordermatching_free(e>>>0)));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_ordermatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.ordermatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ordermatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_parameter_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_requestarguments_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_rpcclient_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_spotpriceinfo_free(e>>>0)));const se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transfer_free(e>>>0)));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,se.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transfer_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.transfer_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.transfer_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.transfer_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transferbuilder_free(e>>>0)));class oe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transferbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c){try{const f=s.__wbindgen_add_to_stack_pointer(-16),m=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),y=v,b=w(o,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=w(d,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.transferbuilder_new(f,e,m,y,i,r,a,b,k,S,O,h,!p(c),p(c)?0:c);var l=g()[f/4+0],u=g()[f/4+1];if(g()[f/4+2])throw n(u);return this.__wbg_ptr=l>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.transferbuilder_build(e);return re.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_txlayer1signature_free(e>>>0)));const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_txzklinksignature_free(e>>>0)));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_txzklinksignature_free(e)}constructor(e,t){try{const a=s.__wbindgen_add_to_stack_pointer(-16),o=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v,h=w(t,s.__wbindgen_export_0,s.__wbindgen_export_1),c=v;s.txzklinksignature_new(a,o,d,h,c);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return this.__wbg_ptr=i>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}pubKey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_pubKey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signature(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_signature(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvar_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvarbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_wallet_free(e>>>0)));const he="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_withdraw_free(e>>>0)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,he.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_withdraw_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.withdraw_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.withdraw_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);A(e,ue);var t=e.__destroy_into_raw();s.withdraw_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_withdrawbuilder_free(e>>>0)));const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_zklinksigner_free(e>>>0)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_zklinksigner_free(e)}static ethSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_ethSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}static starknetSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=w(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_starknetSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_zklinktx_free(e>>>0)));function pe(){const e={wbg:{}};return e.wbg.__wbindgen_object_drop_ref=function(e){n(e)},e.wbg.__wbg_request_aa80f2dd90291bcc=function(){return B((function(e,t){return d(a(e).request(n(t)))}),arguments)},e.wbg.__wbg_signMessage_31620e519ceecf94=function(){return B((function(e,t){return d(a(e).signMessage(a(t)))}),arguments)},e.wbg.__wbindgen_number_new=function(e){return d(e)},e.wbg.__wbindgen_string_new=function(e,t){return d(u(e,t))},e.wbg.__wbindgen_is_undefined=function(e){return void 0===a(e)},e.wbg.__wbindgen_in=function(e,t){return a(e)in a(t)},e.wbg.__wbindgen_boolean_get=function(e){const t=a(e);return"boolean"==typeof t?t?1:0:2},e.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof a(e)},e.wbg.__wbindgen_number_get=function(e,t){const i=a(t),r="number"==typeof i?i:void 0;(null!==f&&0!==f.byteLength||(f=new Float64Array(s.memory.buffer)),f)[e/8+1]=p(r)?0:r,g()[e/4+0]=!p(r)},e.wbg.__wbindgen_bigint_from_i64=function(e){return d(e)},e.wbg.__wbindgen_jsval_eq=function(e,t){return a(e)===a(t)},e.wbg.__wbindgen_string_get=function(e,t){const i=a(t),r="string"==typeof i?i:void 0;var o=p(r)?0:w(r,s.__wbindgen_export_0,s.__wbindgen_export_1),n=v;g()[e/4+1]=n,g()[e/4+0]=o},e.wbg.__wbindgen_is_object=function(e){const t=a(e);return"object"==typeof t&&null!==t},e.wbg.__wbindgen_bigint_from_u64=function(e){return d(BigInt.asUintN(64,e))},e.wbg.__wbindgen_object_clone_ref=function(e){return d(a(e))},e.wbg.__wbindgen_as_number=function(e){return+a(e)},e.wbg.__wbindgen_error_new=function(e,t){return d(new Error(u(e,t)))},e.wbg.__wbg_performance_eeefc685c9bc38b4=function(e){return d(a(e).performance)},e.wbg.__wbg_now_e0d8ec93dd25766a=function(e){return a(e).now()},e.wbg.__wbg_selectedAddress_e88960714bb47d11=function(e,t){const i=a(t).selectedAddress;var r=p(i)?0:w(i,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;g()[e/4+1]=o,g()[e/4+0]=r},e.wbg.__wbg_address_b7ff4a10022d02d8=function(e,t){const i=w(a(t).address,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_jsval_loose_eq=function(e,t){return a(e)==a(t)},e.wbg.__wbg_String_389b54bd9d25375f=function(e,t){const i=w(String(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(e,t){return d(a(e)[a(t)])},e.wbg.__wbg_set_9182712abebf82ef=function(e,t,i){a(e)[n(t)]=n(i)},e.wbg.__wbindgen_cb_drop=function(e){const t=n(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},e.wbg.__wbg_clearTimeout_76877dbc010e786d=function(e){return d(clearTimeout(n(e)))},e.wbg.__wbg_setTimeout_75cb9b6991a4031d=function(){return B((function(e,t){return d(setTimeout(a(e),t))}),arguments)},e.wbg.__wbg_fetch_6a2624d7f767e331=function(e){return d(fetch(a(e)))},e.wbg.__wbg_fetch_693453ca3f88c055=function(e,t){return d(a(e).fetch(a(t)))},e.wbg.__wbg_new_7a20246daa6eec7e=function(){return B((function(){return d(new Headers)}),arguments)},e.wbg.__wbg_append_aa3f462f9e2b5ff2=function(){return B((function(e,t,i,s,r){a(e).append(u(t,i),u(s,r))}),arguments)},e.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03=function(){return B((function(e,t,i){return d(new Request(u(e,t),a(i)))}),arguments)},e.wbg.__wbg_signal_3c701f5f40a5f08d=function(e){return d(a(e).signal)},e.wbg.__wbg_new_0ae46f44b7485bb2=function(){return B((function(){return d(new AbortController)}),arguments)},e.wbg.__wbg_abort_2c4fb490d878d2b2=function(e){a(e).abort()},e.wbg.__wbg_instanceof_Response_4c3b1446206114d1=function(e){let t;try{t=a(e)instanceof Response}catch(e){t=!1}return t},e.wbg.__wbg_url_83a6a4f65f7a2b38=function(e,t){const i=w(a(t).url,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_status_d6d47ad2837621eb=function(e){return a(e).status},e.wbg.__wbg_headers_24def508a7518df9=function(e){return d(a(e).headers)},e.wbg.__wbg_arrayBuffer_5b2688e3dd873fed=function(){return B((function(e){return d(a(e).arrayBuffer())}),arguments)},e.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(e){queueMicrotask(a(e))},e.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(e){return d(a(e).queueMicrotask)},e.wbg.__wbindgen_is_function=function(e){return"function"==typeof a(e)},e.wbg.__wbg_crypto_58f13aa23ffcb166=function(e){return d(a(e).crypto)},e.wbg.__wbg_process_5b786e71d465a513=function(e){return d(a(e).process)},e.wbg.__wbg_versions_c2ab80650590b6a2=function(e){return d(a(e).versions)},e.wbg.__wbg_node_523d7bd03ef69fba=function(e){return d(a(e).node)},e.wbg.__wbindgen_is_string=function(e){return"string"==typeof a(e)},e.wbg.__wbg_require_2784e593a4674877=function(){return B((function(){return d(module.require)}),arguments)},e.wbg.__wbg_msCrypto_abcb1295e768d1f2=function(e){return d(a(e).msCrypto)},e.wbg.__wbg_randomFillSync_a0d98aa11c81fe89=function(){return B((function(e,t){a(e).randomFillSync(n(t))}),arguments)},e.wbg.__wbg_getRandomValues_504510b5564925af=function(){return B((function(e,t){a(e).getRandomValues(a(t))}),arguments)},e.wbg.__wbg_get_bd8e338fbd5f5cc8=function(e,t){return d(a(e)[t>>>0])},e.wbg.__wbg_length_cd7af8117672b8b8=function(e){return a(e).length},e.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return d(new Array)},e.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(e,t){return d(new Function(u(e,t)))},e.wbg.__wbg_new_d9bc3a0147634640=function(){return d(new Map)},e.wbg.__wbg_next_40fc327bfc8770e6=function(e){return d(a(e).next)},e.wbg.__wbg_next_196c84450b364254=function(){return B((function(e){return d(a(e).next())}),arguments)},e.wbg.__wbg_done_298b57d23c0fc80c=function(e){return a(e).done},e.wbg.__wbg_value_d93c65011f51a456=function(e){return d(a(e).value)},e.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return d(Symbol.iterator)},e.wbg.__wbg_get_e3c254076557e348=function(){return B((function(e,t){return d(Reflect.get(a(e),a(t)))}),arguments)},e.wbg.__wbg_call_27c0f87801dedf93=function(){return B((function(e,t){return d(a(e).call(a(t)))}),arguments)},e.wbg.__wbg_new_72fb9a18b5ae2624=function(){return d(new Object)},e.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return B((function(){return d(self.self)}),arguments)},e.wbg.__wbg_window_c6fb939a7f436783=function(){return B((function(){return d(window.window)}),arguments)},e.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return B((function(){return d(globalThis.globalThis)}),arguments)},e.wbg.__wbg_global_207b558942527489=function(){return B((function(){return d(global.global)}),arguments)},e.wbg.__wbg_set_d4638f722068f043=function(e,t,i){a(e)[t>>>0]=n(i)},e.wbg.__wbg_isArray_2ab64d95e09ea0ae=function(e){return Array.isArray(a(e))},e.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let t;try{t=a(e)instanceof ArrayBuffer}catch(e){t=!1}return t},e.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return B((function(e,t,i){return d(a(e).call(a(t),a(i)))}),arguments)},e.wbg.__wbg_set_8417257aaedc936b=function(e,t,i){return d(a(e).set(a(t),a(i)))},e.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(a(e))},e.wbg.__wbg_entries_95cc2c823b285a09=function(e){return d(Object.entries(a(e)))},e.wbg.__wbg_new_81740750da40724f=function(e,t){try{var i={a:e,b:t};const r=new Promise(((e,t)=>{const r=i.a;i.a=0;try{return function(e,t,i,r){s.__wbindgen_export_7(e,t,d(i),d(r))}(r,i.b,e,t)}finally{i.a=r}}));return d(r)}finally{i.a=i.b=0}},e.wbg.__wbg_resolve_b0083a7967828ec8=function(e){return d(Promise.resolve(a(e)))},e.wbg.__wbg_then_0c86a60e8fcfe9f6=function(e,t){return d(a(e).then(a(t)))},e.wbg.__wbg_then_a73caa9a87991566=function(e,t,i){return d(a(e).then(a(t),a(i)))},e.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){return d(a(e).buffer)},e.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(e,t,i){return d(new Uint8Array(a(e),t>>>0,i>>>0))},e.wbg.__wbg_new_63b92bc8671ed464=function(e){return d(new Uint8Array(a(e)))},e.wbg.__wbg_set_a47bac70306a19a7=function(e,t,i){a(e).set(a(t),i>>>0)},e.wbg.__wbg_length_c20a40f15020d68a=function(e){return a(e).length},e.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let t;try{t=a(e)instanceof Uint8Array}catch(e){t=!1}return t},e.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(e){return d(new Uint8Array(e>>>0))},e.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(e,t,i){return d(a(e).subarray(t>>>0,i>>>0))},e.wbg.__wbg_has_0af94d20077affa2=function(){return B((function(e,t){return Reflect.has(a(e),a(t))}),arguments)},e.wbg.__wbg_set_1f9b04f170055d33=function(){return B((function(e,t,i){return Reflect.set(a(e),a(t),a(i))}),arguments)},e.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return B((function(e){return d(JSON.stringify(a(e)))}),arguments)},e.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const i=a(t),r="bigint"==typeof i?i:void 0;(null!==k&&0!==k.byteLength||(k=new BigInt64Array(s.memory.buffer)),k)[e/8+1]=p(r)?BigInt(0):r,g()[e/4+0]=!p(r)},e.wbg.__wbindgen_debug_string=function(e,t){const i=w(S(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_throw=function(e,t){throw new Error(u(e,t))},e.wbg.__wbindgen_memory=function(){return d(s.memory)},e.wbg.__wbindgen_closure_wrapper3897=function(e,t,i){return d(T(e,t,699,P))},e.wbg.__wbindgen_closure_wrapper7350=function(e,t,i){return d(T(e,t,1724,I))},e}function fe(e,t){return s=e.exports,me.__wbindgen_wasm_module=t,k=null,f=null,m=null,x=null,c=null,s}async function me(e){if(void 0!==s)return s;void 0===e&&(e="https://qa.omni.apex.exchange/api/v3/download/zklink-sdk-web_bg.wasm");const t=pe();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:i,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}(await e,t);return fe(i,r)}const ge=me}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var a=s[e]={exports:{}};return i[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var a=Object.create(null);r.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var n=2&s&&i;"object"==typeof n&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>i[e]));return o.default=()=>i,r.d(a,o),a},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};r.r(a),r.d(a,{AccountNotEnabled:()=>h.AccountNotEnabled,AccountSuspended:()=>h.AccountSuspended,AddressPending:()=>h.AddressPending,ArgumentsRequired:()=>h.ArgumentsRequired,AuthenticationError:()=>h.AuthenticationError,BadRequest:()=>h.BadRequest,BadResponse:()=>h.BadResponse,BadSymbol:()=>h.BadSymbol,BaseError:()=>h.BaseError,CancelPending:()=>h.CancelPending,ChecksumError:()=>h.ChecksumError,ContractUnavailable:()=>h.ContractUnavailable,DDoSProtection:()=>h.DDoSProtection,DuplicateOrderId:()=>h.DuplicateOrderId,Exchange:()=>o.k,ExchangeClosedByUser:()=>h.ExchangeClosedByUser,ExchangeError:()=>h.ExchangeError,ExchangeNotAvailable:()=>h.ExchangeNotAvailable,InsufficientFunds:()=>h.InsufficientFunds,InvalidAddress:()=>h.InvalidAddress,InvalidNonce:()=>h.InvalidNonce,InvalidOrder:()=>h.InvalidOrder,InvalidProxySettings:()=>h.InvalidProxySettings,ManualInteractionNeeded:()=>h.ManualInteractionNeeded,MarginModeAlreadySet:()=>h.MarginModeAlreadySet,MarketClosed:()=>h.MarketClosed,NetworkError:()=>h.NetworkError,NoChange:()=>h.NoChange,NotSupported:()=>h.NotSupported,NullResponse:()=>h.NullResponse,OnMaintenance:()=>h.OnMaintenance,OperationFailed:()=>h.OperationFailed,OperationRejected:()=>h.OperationRejected,OrderImmediatelyFillable:()=>h.OrderImmediatelyFillable,OrderNotCached:()=>h.OrderNotCached,OrderNotFillable:()=>h.OrderNotFillable,OrderNotFound:()=>h.OrderNotFound,PermissionDenied:()=>h.PermissionDenied,Precise:()=>n.Y,RateLimitExceeded:()=>h.RateLimitExceeded,RequestTimeout:()=>h.RequestTimeout,RestrictedLocation:()=>h.RestrictedLocation,UnsubscribeError:()=>h.UnsubscribeError,alpaca:()=>c.A,apex:()=>l.A,ascendex:()=>u.A,backpack:()=>p.A,bequant:()=>f.A,bigone:()=>m.A,binance:()=>g.A,binancecoinm:()=>v.A,binanceus:()=>y.A,binanceusdm:()=>b.A,bingx:()=>w.A,bit2c:()=>k.A,bitbank:()=>S.A,bitbns:()=>O.A,bitfinex:()=>T.A,bitflyer:()=>P.A,bitget:()=>I.A,bithumb:()=>M.A,bitmart:()=>A.A,bitmex:()=>x.A,bitopro:()=>_.A,bitrue:()=>C.A,bitso:()=>B.A,bitstamp:()=>E.A,bitteam:()=>L.A,bittrade:()=>R.A,bitvavo:()=>N.A,blockchaincom:()=>D.A,blofin:()=>q.A,btcalpha:()=>V.A,btcbox:()=>F.A,btcmarkets:()=>H.A,btcturk:()=>G.A,bybit:()=>U.A,cex:()=>W.A,coinbase:()=>j.A,coinbaseadvanced:()=>K.A,coinbaseexchange:()=>z.A,coinbaseinternational:()=>Y.A,coincatch:()=>X.A,coincheck:()=>Q.A,coinex:()=>Z.A,coinmate:()=>$.A,coinmetro:()=>J.A,coinone:()=>ee.A,coinsph:()=>te.A,coinspot:()=>ie.A,cryptocom:()=>se.A,cryptomus:()=>re.A,default:()=>_i,defx:()=>ae.A,delta:()=>oe.A,deribit:()=>ne.A,derive:()=>de.A,digifinex:()=>he.A,errors:()=>h,exchanges:()=>Ai,exmo:()=>ce.A,fmfwio:()=>le.A,foxbit:()=>ue.A,functions:()=>d,gate:()=>pe.A,gateio:()=>fe.A,gemini:()=>me.A,hashkey:()=>ge.A,hibachi:()=>ve.A,hitbtc:()=>ye.A,hollaex:()=>be.A,htx:()=>we.A,huobi:()=>ke.A,hyperliquid:()=>Se.A,independentreserve:()=>Oe.A,indodax:()=>Te.A,kraken:()=>Pe.A,krakenfutures:()=>Ie.A,kucoin:()=>Me.A,kucoinfutures:()=>Ae.A,latoken:()=>xe.A,lbank:()=>_e.A,luno:()=>Ce.A,mercado:()=>Be.A,mexc:()=>Ee.A,modetrade:()=>Le.A,myokx:()=>Re.A,ndax:()=>Ne.A,novadax:()=>De.A,oceanex:()=>qe.A,okcoin:()=>Ve.A,okx:()=>Fe.A,okxus:()=>He.A,onetrading:()=>Ge.A,oxfun:()=>Ue.A,p2b:()=>We.A,paradex:()=>je.A,paymium:()=>Ke.A,phemex:()=>ze.A,poloniex:()=>Ye.A,pro:()=>xi,probit:()=>Xe.A,timex:()=>Qe.A,tokocrypto:()=>Ze.A,toobit:()=>$e.A,upbit:()=>Je.A,version:()=>Mi,wavesexchange:()=>et.A,whitebit:()=>tt.A,woo:()=>it.A,woofipro:()=>st.A,xt:()=>rt.A,yobit:()=>at.A,zaif:()=>ot.A,zonda:()=>nt.A});var o=r(2961),n=r(5147),d=r(5095),h=r(2079),c=r(7930),l=r(4920),u=r(1411),p=r(7698),f=r(9002),m=r(8698),g=r(3192),v=r(1510),y=r(8228),b=r(2171),w=r(2480),k=r(2342),S=r(7399),O=r(6328),T=r(8657),P=r(1787),I=r(7757),M=r(357),A=r(1837),x=r(9523),_=r(2753),C=r(9061),B=r(3019),E=r(382),L=r(112),R=r(2263),N=r(3727),D=r(3205),q=r(2520),V=r(3413),F=r(5376),H=r(4936),G=r(9265),U=r(5462),W=r(8846),j=r(7504),K=r(3278),z=r(4293),Y=r(1558),X=r(570),Q=r(2741),Z=r(9344),$=r(6016),J=r(8692),ee=r(5377),te=r(2692),ie=r(1669),se=r(6068),re=r(870),ae=r(6077),oe=r(1080),ne=r(2591),de=r(1839),he=r(779),ce=r(7057),le=r(3042),ue=r(448),pe=r(9403),fe=r(784),me=r(8823),ge=r(2937),ve=r(5106),ye=r(7996),be=r(4455),we=r(9946),ke=r(63),Se=r(1936),Oe=r(4162),Te=r(7325),Pe=r(8042),Ie=r(2300),Me=r(1397),Ae=r(6217),xe=r(8146),_e=r(3144),Ce=r(9248),Be=r(6419),Ee=r(2403),Le=r(5345),Re=r(8982),Ne=r(4460),De=r(8473),qe=r(3805),Ve=r(7915),Fe=r(3660),He=r(3536),Ge=r(3573),Ue=r(6358),We=r(4998),je=r(6993),Ke=r(3280),ze=r(9075),Ye=r(288),Xe=r(5037),Qe=r(6213),Ze=r(2490),$e=r(237),Je=r(930),et=r(7073),tt=r(5336),it=r(669),st=r(9641),rt=r(5344),at=r(7469),ot=r(1530),nt=r(6022),dt=r(6810),ht=r(136),ct=r(1657),lt=r(4034),ut=r(9338),pt=r(9544),ft=r(902),mt=r(8788),gt=r(8251),vt=r(9456),yt=r(1038),bt=r(205),wt=r(6181),kt=r(3069),St=r(3731),Ot=r(4401),Tt=r(3333),Pt=r(3326),It=r(2391),Mt=r(1327),At=r(8693),xt=r(1672),_t=r(8518),Ct=r(3774),Bt=r(8160),Et=r(5918),Lt=r(1925),Rt=r(998),Nt=r(3242),Dt=r(79),qt=r(9088),Vt=r(8673),Ft=r(6292),Ht=r(8717),Gt=r(7791),Ut=r(2127),Wt=r(5233),jt=r(9195),Kt=r(5843),zt=r(375),Yt=r(1481),Xt=r(4524),Qt=r(8247),Zt=r(3898),$t=r(6335),Jt=r(3984),ei=r(98),ti=r(9050),ii=r(6396),si=r(4965),ri=r(905),ai=r(1736),oi=r(2208),ni=r(9219),di=r(49),hi=r(3062),ci=r(3887),li=r(6187),ui=r(8588),pi=r(3296),fi=r(4357),mi=r(550),gi=r(4934),vi=r(1057),yi=r(1619),bi=r(3456),wi=r(5738),ki=r(3933),Si=r(5794),Oi=r(4712),Ti=r(5869),Pi=r(8713),Ii=r(2368);const Mi="4.5.9";o.k.ccxtVersion=Mi;const Ai={alpaca:c.A,apex:l.A,ascendex:u.A,backpack:p.A,bequant:f.A,bigone:m.A,binance:g.A,binancecoinm:v.A,binanceus:y.A,binanceusdm:b.A,bingx:w.A,bit2c:k.A,bitbank:S.A,bitbns:O.A,bitfinex:T.A,bitflyer:P.A,bitget:I.A,bithumb:M.A,bitmart:A.A,bitmex:x.A,bitopro:_.A,bitrue:C.A,bitso:B.A,bitstamp:E.A,bitteam:L.A,bittrade:R.A,bitvavo:N.A,blockchaincom:D.A,blofin:q.A,btcalpha:V.A,btcbox:F.A,btcmarkets:H.A,btcturk:G.A,bybit:U.A,cex:W.A,coinbase:j.A,coinbaseadvanced:K.A,coinbaseexchange:z.A,coinbaseinternational:Y.A,coincatch:X.A,coincheck:Q.A,coinex:Z.A,coinmate:$.A,coinmetro:J.A,coinone:ee.A,coinsph:te.A,coinspot:ie.A,cryptocom:se.A,cryptomus:re.A,defx:ae.A,delta:oe.A,deribit:ne.A,derive:de.A,digifinex:he.A,exmo:ce.A,fmfwio:le.A,foxbit:ue.A,gate:pe.A,gateio:fe.A,gemini:me.A,hashkey:ge.A,hibachi:ve.A,hitbtc:ye.A,hollaex:be.A,htx:we.A,huobi:ke.A,hyperliquid:Se.A,independentreserve:Oe.A,indodax:Te.A,kraken:Pe.A,krakenfutures:Ie.A,kucoin:Me.A,kucoinfutures:Ae.A,latoken:xe.A,lbank:_e.A,luno:Ce.A,mercado:Be.A,mexc:Ee.A,modetrade:Le.A,myokx:Re.A,ndax:Ne.A,novadax:De.A,oceanex:qe.A,okcoin:Ve.A,okx:Fe.A,okxus:He.A,onetrading:Ge.A,oxfun:Ue.A,p2b:We.A,paradex:je.A,paymium:Ke.A,phemex:ze.A,poloniex:Ye.A,probit:Xe.A,timex:Qe.A,tokocrypto:Ze.A,toobit:$e.A,upbit:Je.A,wavesexchange:et.A,whitebit:tt.A,woo:it.A,woofipro:st.A,xt:rt.A,yobit:at.A,zaif:ot.A,zonda:nt.A},xi={alpaca:dt.A,apex:ht.A,ascendex:ct.A,backpack:lt.A,bequant:ut.A,binance:pt.A,binancecoinm:ft.A,binanceus:mt.A,binanceusdm:gt.A,bingx:vt.A,bitfinex:yt.A,bitget:bt.A,bithumb:wt.A,bitmart:kt.A,bitmex:St.A,bitopro:Ot.A,bitrue:Tt.A,bitstamp:Pt.A,bittrade:It.A,bitvavo:Mt.A,blockchaincom:At.A,blofin:xt.A,bybit:_t.A,cex:Ct.A,coinbase:Bt.A,coinbaseadvanced:Et.A,coinbaseexchange:Lt.A,coinbaseinternational:Rt.A,coincatch:Nt.A,coincheck:Dt.A,coinex:qt.A,coinone:Vt.A,cryptocom:Ft.A,defx:Ht.A,deribit:Gt.A,derive:Ut.A,exmo:Wt.A,gate:jt.A,gateio:Kt.A,gemini:zt.A,hashkey:Yt.A,hitbtc:Xt.A,hollaex:Qt.A,htx:Zt.A,huobi:$t.A,hyperliquid:Jt.A,independentreserve:ei.A,kraken:ti.A,krakenfutures:ii.A,kucoin:si.A,kucoinfutures:ri.A,lbank:ai.A,luno:oi.A,mexc:ni.A,modetrade:di.A,myokx:hi.A,ndax:ci.A,okcoin:li.A,okx:ui.A,okxus:pi.A,onetrading:fi.A,oxfun:mi.A,p2b:gi.A,paradex:vi.A,phemex:yi.A,poloniex:bi.A,probit:wi.A,toobit:ki.A,upbit:Si.A,whitebit:Oi.A,woo:Ti.A,woofipro:Pi.A,xt:Ii.A};for(const e in xi);xi.exchanges=Object.keys(xi),xi.Exchange=o.k;const _i=Object.assign({version:Mi,Exchange:o.k,Precise:n.Y,exchanges:Object.keys(Ai),pro:xi},Ai,d,h);self.ccxt=a})();
|
package/dist/cjs/ccxt.js
CHANGED
|
@@ -189,7 +189,7 @@ var xt$1 = require('./src/pro/xt.js');
|
|
|
189
189
|
// ----------------------------------------------------------------------------
|
|
190
190
|
//-----------------------------------------------------------------------------
|
|
191
191
|
// this is updated by vss.js when building
|
|
192
|
-
const version = '4.5.
|
|
192
|
+
const version = '4.5.10';
|
|
193
193
|
Exchange["default"].ccxtVersion = version;
|
|
194
194
|
const exchanges = {
|
|
195
195
|
'alpaca': alpaca["default"],
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.5.
|
|
7
|
+
declare const version = "4.5.9";
|
|
8
8
|
import alpaca from './src/alpaca.js';
|
|
9
9
|
import apex from './src/apex.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.5.
|
|
41
|
+
const version = '4.5.9';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import alpaca from './src/alpaca.js';
|
package/package.json
CHANGED