@sentio/sdk-bundle 2.63.0 → 2.63.1

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.
Files changed (76) hide show
  1. package/lib/aptos/builtin/0x1.js +1 -1
  2. package/lib/aptos/builtin/0x3.js +1 -1
  3. package/lib/aptos/builtin/0x4.js +1 -1
  4. package/lib/aptos/builtin/index.js +1 -1
  5. package/lib/aptos/ext/index.js +1 -1
  6. package/lib/aptos/index.js +1 -1
  7. package/lib/{chunk-RWNFJKBC.js → chunk-3UW3O4RI.js} +2 -2
  8. package/lib/{chunk-INM2JQXV.js → chunk-3XOMJPOV.js} +2 -2
  9. package/lib/{chunk-MEXIWEPZ.js → chunk-4CH3FO2Y.js} +2 -2
  10. package/lib/{chunk-MEXIWEPZ.js.map → chunk-4CH3FO2Y.js.map} +1 -1
  11. package/lib/chunk-67VWORXP.js +7 -0
  12. package/lib/chunk-67VWORXP.js.map +1 -0
  13. package/lib/{chunk-57B2QEFU.js → chunk-ATNNVLSV.js} +2 -2
  14. package/lib/{chunk-CIT277G3.js → chunk-CQUCT4WO.js} +2 -2
  15. package/lib/{chunk-MV77KZ7X.js → chunk-D2UTA6NP.js} +3 -3
  16. package/lib/{chunk-MV77KZ7X.js.map → chunk-D2UTA6NP.js.map} +1 -1
  17. package/lib/{chunk-NF7SQC5T.js → chunk-DCBB6WSY.js} +2 -2
  18. package/lib/{chunk-IRMT3JAE.js → chunk-E32G76ZD.js} +2 -2
  19. package/lib/{chunk-45NSVYWS.js → chunk-HYBAVEVS.js} +2 -2
  20. package/lib/{chunk-EDLEFVHW.js → chunk-MEWILSVR.js} +2 -2
  21. package/lib/{chunk-33Y7LZTL.js → chunk-OSRVBU5W.js} +2 -2
  22. package/lib/{chunk-XCZJCPWS.js → chunk-PJJSNY3A.js} +2 -2
  23. package/lib/{chunk-VG7IARUK.js → chunk-STFYLBQW.js} +2 -2
  24. package/lib/{chunk-RFTTBMZW.js → chunk-US7CSPMG.js} +2 -2
  25. package/lib/{chunk-TLJXINOL.js → chunk-WESN5VPX.js} +2 -2
  26. package/lib/{chunk-JWIM4IJV.js → chunk-WS3R3PHZ.js} +2 -2
  27. package/lib/{chunk-XMZYAXTX.js → chunk-ZXTBG7Q4.js} +2 -2
  28. package/lib/{chunk-VGSWB3RH.js → chunk-ZXUK2KRA.js} +2 -2
  29. package/lib/core/index.js +1 -1
  30. package/lib/eth/builtin/eacaggregatorproxy.js +1 -1
  31. package/lib/eth/builtin/erc1155.js +1 -1
  32. package/lib/eth/builtin/erc20.js +1 -1
  33. package/lib/eth/builtin/erc721.js +1 -1
  34. package/lib/eth/builtin/index.js +1 -1
  35. package/lib/eth/builtin/weth9.js +1 -1
  36. package/lib/eth/index.js +1 -1
  37. package/lib/fuel/index.js +1 -1
  38. package/lib/index.js +1 -1
  39. package/lib/iota/builtin/0x1.js +1 -1
  40. package/lib/iota/builtin/0x2.js +1 -1
  41. package/lib/iota/builtin/0x3.js +1 -1
  42. package/lib/iota/builtin/index.js +1 -1
  43. package/lib/iota/ext/index.js +1 -1
  44. package/lib/iota/index.js +1 -1
  45. package/lib/move/index.js +1 -1
  46. package/lib/solana/builtin/index.js +1 -1
  47. package/lib/solana/index.js +1 -1
  48. package/lib/stark/index.js +1 -1
  49. package/lib/store/index.js +1 -1
  50. package/lib/sui/builtin/0x1.js +1 -1
  51. package/lib/sui/builtin/0x2.js +1 -1
  52. package/lib/sui/builtin/0x3.js +1 -1
  53. package/lib/sui/builtin/index.js +1 -1
  54. package/lib/sui/ext/index.js +1 -1
  55. package/lib/sui/index.js +1 -1
  56. package/lib/testing/index.js +1 -1
  57. package/lib/utils/index.js +1 -1
  58. package/package.json +2 -2
  59. package/lib/chunk-V7ONVBT4.js +0 -7
  60. package/lib/chunk-V7ONVBT4.js.map +0 -1
  61. /package/lib/{chunk-RWNFJKBC.js.map → chunk-3UW3O4RI.js.map} +0 -0
  62. /package/lib/{chunk-INM2JQXV.js.map → chunk-3XOMJPOV.js.map} +0 -0
  63. /package/lib/{chunk-57B2QEFU.js.map → chunk-ATNNVLSV.js.map} +0 -0
  64. /package/lib/{chunk-CIT277G3.js.map → chunk-CQUCT4WO.js.map} +0 -0
  65. /package/lib/{chunk-NF7SQC5T.js.map → chunk-DCBB6WSY.js.map} +0 -0
  66. /package/lib/{chunk-IRMT3JAE.js.map → chunk-E32G76ZD.js.map} +0 -0
  67. /package/lib/{chunk-45NSVYWS.js.map → chunk-HYBAVEVS.js.map} +0 -0
  68. /package/lib/{chunk-EDLEFVHW.js.map → chunk-MEWILSVR.js.map} +0 -0
  69. /package/lib/{chunk-33Y7LZTL.js.map → chunk-OSRVBU5W.js.map} +0 -0
  70. /package/lib/{chunk-XCZJCPWS.js.map → chunk-PJJSNY3A.js.map} +0 -0
  71. /package/lib/{chunk-VG7IARUK.js.map → chunk-STFYLBQW.js.map} +0 -0
  72. /package/lib/{chunk-RFTTBMZW.js.map → chunk-US7CSPMG.js.map} +0 -0
  73. /package/lib/{chunk-TLJXINOL.js.map → chunk-WESN5VPX.js.map} +0 -0
  74. /package/lib/{chunk-JWIM4IJV.js.map → chunk-WS3R3PHZ.js.map} +0 -0
  75. /package/lib/{chunk-XMZYAXTX.js.map → chunk-ZXTBG7Q4.js.map} +0 -0
  76. /package/lib/{chunk-VGSWB3RH.js.map → chunk-ZXUK2KRA.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{Ad as X,ad as tt,bd as U,cd as V,dd as rt,ed as J,fd as Q,gd as ve,hd as pe,id as we,jd as me,kd as ge,ld as _e,md as Me,nd as be,od as Oe,pd as nt,qd as W,rd as at,sd as it,td as ot,ud as ut,vd as ft,wd as st,xd as ct,yd as lt,zd as dt}from"../chunk-MEXIWEPZ.js";import"../chunk-RA75ESSD.js";import"../chunk-T2GZNU62.js";import{a as n,d as Ke,f as et}from"../chunk-G5BIPHMS.js";var Ce=Ke(()=>{"use strict";var ke;(function(y){(function(l){var v=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:T(),w=p(y);typeof v.Reflect<"u"&&(w=p(v.Reflect,w)),l(w,v),typeof v.Reflect>"u"&&(v.Reflect=y);function p(P,R){return function(S,k){Object.defineProperty(P,S,{configurable:!0,writable:!0,value:k}),R&&R(S,k)}}n(p,"makeExporter");function b(){try{return Function("return this;")()}catch{}}n(b,"functionThis");function x(){try{return(0,eval)("(function() { return this; })()")}catch{}}n(x,"indirectEvalThis");function T(){return b()||x()}n(T,"sloppyModeThis")})(function(l,v){var w=Object.prototype.hasOwnProperty,p=typeof Symbol=="function",b=p&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",x=p&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",T=typeof Object.create=="function",P={__proto__:[]}instanceof Array,R=!T&&!P,S={create:T?function(){return Z(Object.create(null))}:P?function(){return Z({__proto__:null})}:function(){return Z({})},has:R?function(e,t){return w.call(e,t)}:function(e,t){return t in e},get:R?function(e,t){return w.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},k=Object.getPrototypeOf(Function),j=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ze(),z=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Je(),H=typeof WeakMap=="function"?WeakMap:Qe(),D=p?Symbol.for("@reflect-metadata:registry"):void 0,F=$e(),Y=qe(F);function Te(e,t,r,a){if(c(r)){if(!ue(e))throw new TypeError;if(!fe(t))throw new TypeError;return Ae(e,t)}else{if(!ue(e))throw new TypeError;if(!g(t))throw new TypeError;if(!g(a)&&!c(a)&&!G(a))throw new TypeError;return G(a)&&(a=void 0),r=I(r),We(e,t,r,a)}}n(Te,"decorate"),l("decorate",Te);function Ee(e,t){function r(a,s){if(!g(a))throw new TypeError;if(!c(s)&&!ze(s))throw new TypeError;re(e,t,a,s)}return n(r,"decorator"),r}n(Ee,"metadata"),l("metadata",Ee);function Se(e,t,r,a){if(!g(r))throw new TypeError;return c(a)||(a=I(a)),re(e,t,r,a)}n(Se,"defineMetadata"),l("defineMetadata",Se);function Ie(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),K(e,t,r)}n(Ie,"hasMetadata"),l("hasMetadata",Ie);function Pe(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),$(e,t,r)}n(Pe,"hasOwnMetadata"),l("hasOwnMetadata",Pe);function Re(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),ee(e,t,r)}n(Re,"getMetadata"),l("getMetadata",Re);function je(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),te(e,t,r)}n(je,"getOwnMetadata"),l("getOwnMetadata",je);function De(e,t){if(!g(e))throw new TypeError;return c(t)||(t=I(t)),ne(e,t)}n(De,"getMetadataKeys"),l("getMetadataKeys",De);function Ge(e,t){if(!g(e))throw new TypeError;return c(t)||(t=I(t)),ae(e,t)}n(Ge,"getOwnMetadataKeys"),l("getOwnMetadataKeys",Ge);function Ne(e,t,r){if(!g(t))throw new TypeError;if(c(r)||(r=I(r)),!g(t))throw new TypeError;c(r)||(r=I(r));var a=A(t,r,!1);return c(a)?!1:a.OrdinaryDeleteMetadata(e,t,r)}n(Ne,"deleteMetadata"),l("deleteMetadata",Ne);function Ae(e,t){for(var r=e.length-1;r>=0;--r){var a=e[r],s=a(t);if(!c(s)&&!G(s)){if(!fe(s))throw new TypeError;t=s}}return t}n(Ae,"DecorateConstructor");function We(e,t,r,a){for(var s=e.length-1;s>=0;--s){var _=e[s],O=_(t,r,a);if(!c(O)&&!G(O)){if(!g(O))throw new TypeError;a=O}}return a}n(We,"DecorateProperty");function K(e,t,r){var a=$(e,t,r);if(a)return!0;var s=L(t);return G(s)?!1:K(e,s,r)}n(K,"OrdinaryHasMetadata");function $(e,t,r){var a=A(t,r,!1);return c(a)?!1:oe(a.OrdinaryHasOwnMetadata(e,t,r))}n($,"OrdinaryHasOwnMetadata");function ee(e,t,r){var a=$(e,t,r);if(a)return te(e,t,r);var s=L(t);if(!G(s))return ee(e,s,r)}n(ee,"OrdinaryGetMetadata");function te(e,t,r){var a=A(t,r,!1);if(!c(a))return a.OrdinaryGetOwnMetadata(e,t,r)}n(te,"OrdinaryGetOwnMetadata");function re(e,t,r,a){var s=A(r,a,!0);s.OrdinaryDefineOwnMetadata(e,t,r,a)}n(re,"OrdinaryDefineOwnMetadata");function ne(e,t){var r=ae(e,t),a=L(e);if(a===null)return r;var s=ne(a,t);if(s.length<=0)return r;if(r.length<=0)return s;for(var _=new z,O=[],d=0,i=r;d<i.length;d++){var o=i[d],u=_.has(o);u||(_.add(o),O.push(o))}for(var f=0,h=s;f<h.length;f++){var o=h[f],u=_.has(o);u||(_.add(o),O.push(o))}return O}n(ne,"OrdinaryMetadataKeys");function ae(e,t){var r=A(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}n(ae,"OrdinaryOwnMetadataKeys");function ie(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}n(ie,"Type");function c(e){return e===void 0}n(c,"IsUndefined");function G(e){return e===null}n(G,"IsNull");function Fe(e){return typeof e=="symbol"}n(Fe,"IsSymbol");function g(e){return typeof e=="object"?e!==null:typeof e=="function"}n(g,"IsObject");function Ue(e,t){switch(ie(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var r=t===3?"string":t===5?"number":"default",a=se(e,b);if(a!==void 0){var s=a.call(e,r);if(g(s))throw new TypeError;return s}return Ve(e,r==="default"?"number":r)}n(Ue,"ToPrimitive");function Ve(e,t){if(t==="string"){var r=e.toString;if(N(r)){var a=r.call(e);if(!g(a))return a}var s=e.valueOf;if(N(s)){var a=s.call(e);if(!g(a))return a}}else{var s=e.valueOf;if(N(s)){var a=s.call(e);if(!g(a))return a}var _=e.toString;if(N(_)){var a=_.call(e);if(!g(a))return a}}throw new TypeError}n(Ve,"OrdinaryToPrimitive");function oe(e){return!!e}n(oe,"ToBoolean");function Be(e){return""+e}n(Be,"ToString");function I(e){var t=Ue(e,3);return Fe(t)?t:Be(t)}n(I,"ToPropertyKey");function ue(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}n(ue,"IsArray");function N(e){return typeof e=="function"}n(N,"IsCallable");function fe(e){return typeof e=="function"}n(fe,"IsConstructor");function ze(e){switch(ie(e)){case 3:return!0;case 4:return!0;default:return!1}}n(ze,"IsPropertyKey");function q(e,t){return e===t||e!==e&&t!==t}n(q,"SameValueZero");function se(e,t){var r=e[t];if(r!=null){if(!N(r))throw new TypeError;return r}}n(se,"GetMethod");function ce(e){var t=se(e,x);if(!N(t))throw new TypeError;var r=t.call(e);if(!g(r))throw new TypeError;return r}n(ce,"GetIterator");function le(e){return e.value}n(le,"IteratorValue");function de(e){var t=e.next();return t.done?!1:t}n(de,"IteratorStep");function he(e){var t=e.return;t&&t.call(e)}n(he,"IteratorClose");function L(e){var t=Object.getPrototypeOf(e);if(typeof e!="function"||e===k||t!==k)return t;var r=e.prototype,a=r&&Object.getPrototypeOf(r);if(a==null||a===Object.prototype)return t;var s=a.constructor;return typeof s!="function"||s===e?t:s}n(L,"OrdinaryGetPrototypeOf");function He(){var e;!c(D)&&typeof v.Reflect<"u"&&!(D in v.Reflect)&&typeof v.Reflect.defineMetadata=="function"&&(e=Le(v.Reflect));var t,r,a,s=new H,_={registerProvider:O,getProvider:i,setProvider:u};return _;function O(f){if(!Object.isExtensible(_))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===f:break;case c(t):t=f;break;case t===f:break;case c(r):r=f;break;case r===f:break;default:a===void 0&&(a=new z),a.add(f);break}}function d(f,h){if(!c(t)){if(t.isProviderFor(f,h))return t;if(!c(r)){if(r.isProviderFor(f,h))return t;if(!c(a))for(var m=ce(a);;){var M=de(m);if(!M)return;var E=le(M);if(E.isProviderFor(f,h))return he(m),E}}}if(!c(e)&&e.isProviderFor(f,h))return e}function i(f,h){var m=s.get(f),M;return c(m)||(M=m.get(h)),c(M)&&(M=d(f,h),c(M)||(c(m)&&(m=new j,s.set(f,m)),m.set(h,M))),M}function o(f){if(c(f))throw new TypeError;return t===f||r===f||!c(a)&&a.has(f)}function u(f,h,m){if(!o(m))throw new Error("Metadata provider not registered.");var M=i(f,h);if(M!==m){if(!c(M))return!1;var E=s.get(f);c(E)&&(E=new j,s.set(f,E)),E.set(h,m)}return!0}}n(He,"CreateMetadataRegistry");function $e(){var e;return!c(D)&&g(v.Reflect)&&Object.isExtensible(v.Reflect)&&(e=v.Reflect[D]),c(e)&&(e=He()),!c(D)&&g(v.Reflect)&&Object.isExtensible(v.Reflect)&&Object.defineProperty(v.Reflect,D,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}n($e,"GetOrCreateMetadataRegistry");function qe(e){var t=new H,r={isProviderFor:n(function(o,u){var f=t.get(o);return c(f)?!1:f.has(u)},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:s,OrdinaryGetOwnMetadata:_,OrdinaryOwnMetadataKeys:d,OrdinaryDeleteMetadata:i};return F.registerProvider(r),r;function a(o,u,f){var h=t.get(o),m=!1;if(c(h)){if(!f)return;h=new j,t.set(o,h),m=!0}var M=h.get(u);if(c(M)){if(!f)return;if(M=new j,h.set(u,M),!e.setProvider(o,u,r))throw h.delete(u),m&&t.delete(o),new Error("Wrong provider for target.")}return M}n(a,"GetOrCreateMetadataMap");function s(o,u,f){var h=a(u,f,!1);return c(h)?!1:oe(h.has(o))}n(s,"OrdinaryHasOwnMetadata");function _(o,u,f){var h=a(u,f,!1);if(!c(h))return h.get(o)}n(_,"OrdinaryGetOwnMetadata");function O(o,u,f,h){var m=a(f,h,!0);m.set(o,u)}n(O,"OrdinaryDefineOwnMetadata");function d(o,u){var f=[],h=a(o,u,!1);if(c(h))return f;for(var m=h.keys(),M=ce(m),E=0;;){var ye=de(M);if(!ye)return f.length=E,f;var Xe=le(ye);try{f[E]=Xe}catch(Ye){try{he(M)}finally{throw Ye}}E++}}n(d,"OrdinaryOwnMetadataKeys");function i(o,u,f){var h=a(u,f,!1);if(c(h)||!h.delete(o))return!1;if(h.size===0){var m=t.get(u);c(m)||(m.delete(f),m.size===0&&t.delete(m))}return!0}n(i,"OrdinaryDeleteMetadata")}n(qe,"CreateMetadataProvider");function Le(e){var t=e.defineMetadata,r=e.hasOwnMetadata,a=e.getOwnMetadata,s=e.getOwnMetadataKeys,_=e.deleteMetadata,O=new H,d={isProviderFor:n(function(i,o){var u=O.get(i);return!c(u)&&u.has(o)?!0:s(i,o).length?(c(u)&&(u=new z,O.set(i,u)),u.add(o),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:_};return d}n(Le,"CreateFallbackProvider");function A(e,t,r){var a=F.getProvider(e,t);if(!c(a))return a;if(r){if(F.setProvider(e,t,Y))return Y;throw new Error("Illegal state.")}}n(A,"GetMetadataProvider");function Ze(){var e={},t=[],r=function(){function d(i,o,u){this._index=0,this._keys=i,this._values=o,this._selector=u}return n(d,"MapIterator"),d.prototype["@@iterator"]=function(){return this},d.prototype[x]=function(){return this},d.prototype.next=function(){var i=this._index;if(i>=0&&i<this._keys.length){var o=this._selector(this._keys[i],this._values[i]);return i+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},d.prototype.throw=function(i){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),i},d.prototype.return=function(i){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:i,done:!0}},d}(),a=function(){function d(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return n(d,"Map"),Object.defineProperty(d.prototype,"size",{get:n(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),d.prototype.has=function(i){return this._find(i,!1)>=0},d.prototype.get=function(i){var o=this._find(i,!1);return o>=0?this._values[o]:void 0},d.prototype.set=function(i,o){var u=this._find(i,!0);return this._values[u]=o,this},d.prototype.delete=function(i){var o=this._find(i,!1);if(o>=0){for(var u=this._keys.length,f=o+1;f<u;f++)this._keys[f-1]=this._keys[f],this._values[f-1]=this._values[f];return this._keys.length--,this._values.length--,q(i,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},d.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},d.prototype.keys=function(){return new r(this._keys,this._values,s)},d.prototype.values=function(){return new r(this._keys,this._values,_)},d.prototype.entries=function(){return new r(this._keys,this._values,O)},d.prototype["@@iterator"]=function(){return this.entries()},d.prototype[x]=function(){return this.entries()},d.prototype._find=function(i,o){if(!q(this._cacheKey,i)){this._cacheIndex=-1;for(var u=0;u<this._keys.length;u++)if(q(this._keys[u],i)){this._cacheIndex=u;break}}return this._cacheIndex<0&&o&&(this._cacheIndex=this._keys.length,this._keys.push(i),this._values.push(void 0)),this._cacheIndex},d}();return a;function s(d,i){return d}function _(d,i){return i}function O(d,i){return[d,i]}}n(Ze,"CreateMapPolyfill");function Je(){var e=function(){function t(){this._map=new j}return n(t,"Set"),Object.defineProperty(t.prototype,"size",{get:n(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return this._map.set(r,r),this},t.prototype.delete=function(r){return this._map.delete(r)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[x]=function(){return this.keys()},t}();return e}n(Je,"CreateSetPolyfill");function Qe(){var e=16,t=S.create(),r=a();return function(){function i(){this._key=a()}return n(i,"WeakMap"),i.prototype.has=function(o){var u=s(o,!1);return u!==void 0?S.has(u,this._key):!1},i.prototype.get=function(o){var u=s(o,!1);return u!==void 0?S.get(u,this._key):void 0},i.prototype.set=function(o,u){var f=s(o,!0);return f[this._key]=u,this},i.prototype.delete=function(o){var u=s(o,!1);return u!==void 0?delete u[this._key]:!1},i.prototype.clear=function(){this._key=a()},i}();function a(){var i;do i="@@WeakMap@@"+d();while(S.has(t,i));return t[i]=!0,i}function s(i,o){if(!w.call(i,r)){if(!o)return;Object.defineProperty(i,r,{value:S.create()})}return i[r]}function _(i,o){for(var u=0;u<o;++u)i[u]=Math.random()*255|0;return i}function O(i){if(typeof Uint8Array=="function"){var o=new Uint8Array(i);return typeof crypto<"u"?crypto.getRandomValues(o):typeof msCrypto<"u"?msCrypto.getRandomValues(o):_(o,i),o}return _(new Array(i),i)}function d(){var i=O(e);i[6]=i[6]&79|64,i[8]=i[8]&191|128;for(var o="",u=0;u<e;++u){var f=i[u];(u===4||u===6||u===8)&&(o+="-"),f<16&&(o+="0"),o+=f.toString(16).toLowerCase()}return o}}n(Qe,"CreateWeakMapPolyfill");function Z(e){return e.__=void 0,delete e.__,e}n(Z,"MakeDictionary")})})(ke||(ke={}))});var pt=et(Ce(),1);function B(y,l,v){try{return v()}catch(w){throw new Error(`Get property "${l}" from Entity "${y}" failed: ${w.message}`)}}n(B,"handleError");function _t(y){return function(l){let v=l.meta||{},w=l.prototype;for(let[p,b]of Object.entries(v))if(b.isRelation&&b.relationName){let x=b.relationName.endsWith("!")?b.relationName.slice(0,-1):b.relationName,T=p.startsWith("_")?p.slice(1):p,P=n(function(){return B(this.constructor.entityName,T,()=>b.to(this._data.fields[T]))},"idGetter"),R=n(function(k){this._data.fields[T]=B(this.constructor.entityName,T,()=>b.from(k))},"idSetter"),S=b.isArray?T+"IDs":T+"ID";Reflect.defineProperty(w,S,{get:P,set:R}),Reflect.defineProperty(w,p,{get:n(function(){let k=P.call(this);return Array.isArray(k)?Promise.all(k.map(j=>X()?.get(x,j))):X()?.get(x,k)},"get"),set:n(function(k){k instanceof Promise?k.then(j=>{R.call(this,j)}):R.call(this,k)},"set")})}else Reflect.defineProperty(w,p,{configurable:!0,get:n(function(){return B(this.constructor.entityName,p,()=>b.to(this._data.fields[p]))},"get"),set:n(function(x){this._data.fields[p]=B(this.constructor.entityName,p,()=>b.from(x))},"set")});return class extends l{_data={fields:{}};static entityName=y;constructor(...p){super();for(let b of Object.getOwnPropertyNames(this))l.prototype.hasOwnProperty(b)&&delete this[b];p[0]&&Object.assign(this,p[0])}}}}n(_t,"Entity");function Mt(y){return function(l,v){let w=!1;y.endsWith("!")&&(w=!0,y=y.slice(0,-1));let p=W[y];if(!p)throw new Error(`Unsupported type ${y}`);w&&(p=U(p)),C(p)(l,v)}}n(Mt,"Column");function bt(y=""){return function(l,v){function w(p){return p.endsWith("!")?U(w(p.slice(0,-1))):p.startsWith("[")&&p.endsWith("]")?V(w(p.slice(1,-1))):W[p]?W[p]:Q}n(w,"getTypeConvert"),C(V(w(y)))(l,v)}}n(bt,"ListColumn");function C(y){return function(l,v){let w=Reflect.getMetadata("design:type",l,v);if(!y){let b=w.name;if(y=W[b],!y)throw new Error(`Unsupported type ${b}`)}let p=l.constructor.meta||{};p[v]=y,l.constructor.meta=p}}n(C,"column");var Ot=C(Me),kt=C(ve),Ct=C(pe),xt=C(we),Tt=C(be),Et=C(Oe),St=C(Q),It=C(me),Pt=C(ge),Rt=C(_e);function jt(y,l){let v=y.constructor.meta||{},w=v[l];w&&(v[l]=U(w)),y.constructor.meta=v}n(jt,"Required");function Dt(y){return function(l,v){C(J(y))(l,v)}}n(Dt,"One");function Gt(y){return function(l,v){C(V(J(y)))(l,v)}}n(Gt,"Many");import("node:process").then(y=>y.stdout.write(""));import{StoreContext as Vt}from"@sentio/runtime";import("node:process").then(y=>y.stdout.write(""));var xe=class{static{n(this,"Cursor")}_cursor;_done=!1;pageSize;constructor(l){this._cursor=l?.initCursor,this.pageSize=l?.pageSize}get cursor(){return this._cursor}set cursor(l){l||(this._done=!0),this._cursor=l}get hasNext(){return!this._done}};import("node:process").then(y=>y.stdout.write(""));import("node:process").then(y=>y.stdout.write(""));export{st as AbstractEntity,it as AddOp,Tt as BigDecimalColumn,be as BigDecimalConverter,Et as BigIntColumn,Oe as BigIntConverter,It as BooleanColumn,me as BooleanConverter,Rt as BytesColumn,_e as BytesConverter,Mt as Column,xe as Cursor,_t as Entity,xt as FloatColumn,we as FloatConverter,Ot as IDColumn,Me as IDConverter,Ct as Int8Column,pe as Int8Converter,kt as IntColumn,ve as IntConverter,bt as ListColumn,Gt as Many,ot as MultiplyOp,Dt as One,jt as Required,dt as Store,Vt as StoreContext,St as StringColumn,Q as StringConverter,Pt as TimestampColumn,ge as TimestampConverter,W as TypeConverters,at as UpdateOp,tt as ValueRequiredError,ut as add,V as array_,nt as bytesToBigInt,C as column,rt as enumerate_,lt as getEntityField,ct as getEntityName,X as getStore,ft as multiply,J as objectId_,U as required_};
2
+ import{Ad as X,ad as tt,bd as U,cd as V,dd as rt,ed as J,fd as Q,gd as ve,hd as pe,id as we,jd as me,kd as ge,ld as _e,md as Me,nd as be,od as Oe,pd as nt,qd as W,rd as at,sd as it,td as ot,ud as ut,vd as ft,wd as st,xd as ct,yd as lt,zd as dt}from"../chunk-4CH3FO2Y.js";import"../chunk-RA75ESSD.js";import"../chunk-T2GZNU62.js";import{a as n,d as Ke,f as et}from"../chunk-G5BIPHMS.js";var Ce=Ke(()=>{"use strict";var ke;(function(y){(function(l){var v=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:T(),w=p(y);typeof v.Reflect<"u"&&(w=p(v.Reflect,w)),l(w,v),typeof v.Reflect>"u"&&(v.Reflect=y);function p(P,R){return function(S,k){Object.defineProperty(P,S,{configurable:!0,writable:!0,value:k}),R&&R(S,k)}}n(p,"makeExporter");function b(){try{return Function("return this;")()}catch{}}n(b,"functionThis");function x(){try{return(0,eval)("(function() { return this; })()")}catch{}}n(x,"indirectEvalThis");function T(){return b()||x()}n(T,"sloppyModeThis")})(function(l,v){var w=Object.prototype.hasOwnProperty,p=typeof Symbol=="function",b=p&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",x=p&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",T=typeof Object.create=="function",P={__proto__:[]}instanceof Array,R=!T&&!P,S={create:T?function(){return Z(Object.create(null))}:P?function(){return Z({__proto__:null})}:function(){return Z({})},has:R?function(e,t){return w.call(e,t)}:function(e,t){return t in e},get:R?function(e,t){return w.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},k=Object.getPrototypeOf(Function),j=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ze(),z=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Je(),H=typeof WeakMap=="function"?WeakMap:Qe(),D=p?Symbol.for("@reflect-metadata:registry"):void 0,F=$e(),Y=qe(F);function Te(e,t,r,a){if(c(r)){if(!ue(e))throw new TypeError;if(!fe(t))throw new TypeError;return Ae(e,t)}else{if(!ue(e))throw new TypeError;if(!g(t))throw new TypeError;if(!g(a)&&!c(a)&&!G(a))throw new TypeError;return G(a)&&(a=void 0),r=I(r),We(e,t,r,a)}}n(Te,"decorate"),l("decorate",Te);function Ee(e,t){function r(a,s){if(!g(a))throw new TypeError;if(!c(s)&&!ze(s))throw new TypeError;re(e,t,a,s)}return n(r,"decorator"),r}n(Ee,"metadata"),l("metadata",Ee);function Se(e,t,r,a){if(!g(r))throw new TypeError;return c(a)||(a=I(a)),re(e,t,r,a)}n(Se,"defineMetadata"),l("defineMetadata",Se);function Ie(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),K(e,t,r)}n(Ie,"hasMetadata"),l("hasMetadata",Ie);function Pe(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),$(e,t,r)}n(Pe,"hasOwnMetadata"),l("hasOwnMetadata",Pe);function Re(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),ee(e,t,r)}n(Re,"getMetadata"),l("getMetadata",Re);function je(e,t,r){if(!g(t))throw new TypeError;return c(r)||(r=I(r)),te(e,t,r)}n(je,"getOwnMetadata"),l("getOwnMetadata",je);function De(e,t){if(!g(e))throw new TypeError;return c(t)||(t=I(t)),ne(e,t)}n(De,"getMetadataKeys"),l("getMetadataKeys",De);function Ge(e,t){if(!g(e))throw new TypeError;return c(t)||(t=I(t)),ae(e,t)}n(Ge,"getOwnMetadataKeys"),l("getOwnMetadataKeys",Ge);function Ne(e,t,r){if(!g(t))throw new TypeError;if(c(r)||(r=I(r)),!g(t))throw new TypeError;c(r)||(r=I(r));var a=A(t,r,!1);return c(a)?!1:a.OrdinaryDeleteMetadata(e,t,r)}n(Ne,"deleteMetadata"),l("deleteMetadata",Ne);function Ae(e,t){for(var r=e.length-1;r>=0;--r){var a=e[r],s=a(t);if(!c(s)&&!G(s)){if(!fe(s))throw new TypeError;t=s}}return t}n(Ae,"DecorateConstructor");function We(e,t,r,a){for(var s=e.length-1;s>=0;--s){var _=e[s],O=_(t,r,a);if(!c(O)&&!G(O)){if(!g(O))throw new TypeError;a=O}}return a}n(We,"DecorateProperty");function K(e,t,r){var a=$(e,t,r);if(a)return!0;var s=L(t);return G(s)?!1:K(e,s,r)}n(K,"OrdinaryHasMetadata");function $(e,t,r){var a=A(t,r,!1);return c(a)?!1:oe(a.OrdinaryHasOwnMetadata(e,t,r))}n($,"OrdinaryHasOwnMetadata");function ee(e,t,r){var a=$(e,t,r);if(a)return te(e,t,r);var s=L(t);if(!G(s))return ee(e,s,r)}n(ee,"OrdinaryGetMetadata");function te(e,t,r){var a=A(t,r,!1);if(!c(a))return a.OrdinaryGetOwnMetadata(e,t,r)}n(te,"OrdinaryGetOwnMetadata");function re(e,t,r,a){var s=A(r,a,!0);s.OrdinaryDefineOwnMetadata(e,t,r,a)}n(re,"OrdinaryDefineOwnMetadata");function ne(e,t){var r=ae(e,t),a=L(e);if(a===null)return r;var s=ne(a,t);if(s.length<=0)return r;if(r.length<=0)return s;for(var _=new z,O=[],d=0,i=r;d<i.length;d++){var o=i[d],u=_.has(o);u||(_.add(o),O.push(o))}for(var f=0,h=s;f<h.length;f++){var o=h[f],u=_.has(o);u||(_.add(o),O.push(o))}return O}n(ne,"OrdinaryMetadataKeys");function ae(e,t){var r=A(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}n(ae,"OrdinaryOwnMetadataKeys");function ie(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}n(ie,"Type");function c(e){return e===void 0}n(c,"IsUndefined");function G(e){return e===null}n(G,"IsNull");function Fe(e){return typeof e=="symbol"}n(Fe,"IsSymbol");function g(e){return typeof e=="object"?e!==null:typeof e=="function"}n(g,"IsObject");function Ue(e,t){switch(ie(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var r=t===3?"string":t===5?"number":"default",a=se(e,b);if(a!==void 0){var s=a.call(e,r);if(g(s))throw new TypeError;return s}return Ve(e,r==="default"?"number":r)}n(Ue,"ToPrimitive");function Ve(e,t){if(t==="string"){var r=e.toString;if(N(r)){var a=r.call(e);if(!g(a))return a}var s=e.valueOf;if(N(s)){var a=s.call(e);if(!g(a))return a}}else{var s=e.valueOf;if(N(s)){var a=s.call(e);if(!g(a))return a}var _=e.toString;if(N(_)){var a=_.call(e);if(!g(a))return a}}throw new TypeError}n(Ve,"OrdinaryToPrimitive");function oe(e){return!!e}n(oe,"ToBoolean");function Be(e){return""+e}n(Be,"ToString");function I(e){var t=Ue(e,3);return Fe(t)?t:Be(t)}n(I,"ToPropertyKey");function ue(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}n(ue,"IsArray");function N(e){return typeof e=="function"}n(N,"IsCallable");function fe(e){return typeof e=="function"}n(fe,"IsConstructor");function ze(e){switch(ie(e)){case 3:return!0;case 4:return!0;default:return!1}}n(ze,"IsPropertyKey");function q(e,t){return e===t||e!==e&&t!==t}n(q,"SameValueZero");function se(e,t){var r=e[t];if(r!=null){if(!N(r))throw new TypeError;return r}}n(se,"GetMethod");function ce(e){var t=se(e,x);if(!N(t))throw new TypeError;var r=t.call(e);if(!g(r))throw new TypeError;return r}n(ce,"GetIterator");function le(e){return e.value}n(le,"IteratorValue");function de(e){var t=e.next();return t.done?!1:t}n(de,"IteratorStep");function he(e){var t=e.return;t&&t.call(e)}n(he,"IteratorClose");function L(e){var t=Object.getPrototypeOf(e);if(typeof e!="function"||e===k||t!==k)return t;var r=e.prototype,a=r&&Object.getPrototypeOf(r);if(a==null||a===Object.prototype)return t;var s=a.constructor;return typeof s!="function"||s===e?t:s}n(L,"OrdinaryGetPrototypeOf");function He(){var e;!c(D)&&typeof v.Reflect<"u"&&!(D in v.Reflect)&&typeof v.Reflect.defineMetadata=="function"&&(e=Le(v.Reflect));var t,r,a,s=new H,_={registerProvider:O,getProvider:i,setProvider:u};return _;function O(f){if(!Object.isExtensible(_))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===f:break;case c(t):t=f;break;case t===f:break;case c(r):r=f;break;case r===f:break;default:a===void 0&&(a=new z),a.add(f);break}}function d(f,h){if(!c(t)){if(t.isProviderFor(f,h))return t;if(!c(r)){if(r.isProviderFor(f,h))return t;if(!c(a))for(var m=ce(a);;){var M=de(m);if(!M)return;var E=le(M);if(E.isProviderFor(f,h))return he(m),E}}}if(!c(e)&&e.isProviderFor(f,h))return e}function i(f,h){var m=s.get(f),M;return c(m)||(M=m.get(h)),c(M)&&(M=d(f,h),c(M)||(c(m)&&(m=new j,s.set(f,m)),m.set(h,M))),M}function o(f){if(c(f))throw new TypeError;return t===f||r===f||!c(a)&&a.has(f)}function u(f,h,m){if(!o(m))throw new Error("Metadata provider not registered.");var M=i(f,h);if(M!==m){if(!c(M))return!1;var E=s.get(f);c(E)&&(E=new j,s.set(f,E)),E.set(h,m)}return!0}}n(He,"CreateMetadataRegistry");function $e(){var e;return!c(D)&&g(v.Reflect)&&Object.isExtensible(v.Reflect)&&(e=v.Reflect[D]),c(e)&&(e=He()),!c(D)&&g(v.Reflect)&&Object.isExtensible(v.Reflect)&&Object.defineProperty(v.Reflect,D,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}n($e,"GetOrCreateMetadataRegistry");function qe(e){var t=new H,r={isProviderFor:n(function(o,u){var f=t.get(o);return c(f)?!1:f.has(u)},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:s,OrdinaryGetOwnMetadata:_,OrdinaryOwnMetadataKeys:d,OrdinaryDeleteMetadata:i};return F.registerProvider(r),r;function a(o,u,f){var h=t.get(o),m=!1;if(c(h)){if(!f)return;h=new j,t.set(o,h),m=!0}var M=h.get(u);if(c(M)){if(!f)return;if(M=new j,h.set(u,M),!e.setProvider(o,u,r))throw h.delete(u),m&&t.delete(o),new Error("Wrong provider for target.")}return M}n(a,"GetOrCreateMetadataMap");function s(o,u,f){var h=a(u,f,!1);return c(h)?!1:oe(h.has(o))}n(s,"OrdinaryHasOwnMetadata");function _(o,u,f){var h=a(u,f,!1);if(!c(h))return h.get(o)}n(_,"OrdinaryGetOwnMetadata");function O(o,u,f,h){var m=a(f,h,!0);m.set(o,u)}n(O,"OrdinaryDefineOwnMetadata");function d(o,u){var f=[],h=a(o,u,!1);if(c(h))return f;for(var m=h.keys(),M=ce(m),E=0;;){var ye=de(M);if(!ye)return f.length=E,f;var Xe=le(ye);try{f[E]=Xe}catch(Ye){try{he(M)}finally{throw Ye}}E++}}n(d,"OrdinaryOwnMetadataKeys");function i(o,u,f){var h=a(u,f,!1);if(c(h)||!h.delete(o))return!1;if(h.size===0){var m=t.get(u);c(m)||(m.delete(f),m.size===0&&t.delete(m))}return!0}n(i,"OrdinaryDeleteMetadata")}n(qe,"CreateMetadataProvider");function Le(e){var t=e.defineMetadata,r=e.hasOwnMetadata,a=e.getOwnMetadata,s=e.getOwnMetadataKeys,_=e.deleteMetadata,O=new H,d={isProviderFor:n(function(i,o){var u=O.get(i);return!c(u)&&u.has(o)?!0:s(i,o).length?(c(u)&&(u=new z,O.set(i,u)),u.add(o),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:_};return d}n(Le,"CreateFallbackProvider");function A(e,t,r){var a=F.getProvider(e,t);if(!c(a))return a;if(r){if(F.setProvider(e,t,Y))return Y;throw new Error("Illegal state.")}}n(A,"GetMetadataProvider");function Ze(){var e={},t=[],r=function(){function d(i,o,u){this._index=0,this._keys=i,this._values=o,this._selector=u}return n(d,"MapIterator"),d.prototype["@@iterator"]=function(){return this},d.prototype[x]=function(){return this},d.prototype.next=function(){var i=this._index;if(i>=0&&i<this._keys.length){var o=this._selector(this._keys[i],this._values[i]);return i+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},d.prototype.throw=function(i){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),i},d.prototype.return=function(i){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:i,done:!0}},d}(),a=function(){function d(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return n(d,"Map"),Object.defineProperty(d.prototype,"size",{get:n(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),d.prototype.has=function(i){return this._find(i,!1)>=0},d.prototype.get=function(i){var o=this._find(i,!1);return o>=0?this._values[o]:void 0},d.prototype.set=function(i,o){var u=this._find(i,!0);return this._values[u]=o,this},d.prototype.delete=function(i){var o=this._find(i,!1);if(o>=0){for(var u=this._keys.length,f=o+1;f<u;f++)this._keys[f-1]=this._keys[f],this._values[f-1]=this._values[f];return this._keys.length--,this._values.length--,q(i,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},d.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},d.prototype.keys=function(){return new r(this._keys,this._values,s)},d.prototype.values=function(){return new r(this._keys,this._values,_)},d.prototype.entries=function(){return new r(this._keys,this._values,O)},d.prototype["@@iterator"]=function(){return this.entries()},d.prototype[x]=function(){return this.entries()},d.prototype._find=function(i,o){if(!q(this._cacheKey,i)){this._cacheIndex=-1;for(var u=0;u<this._keys.length;u++)if(q(this._keys[u],i)){this._cacheIndex=u;break}}return this._cacheIndex<0&&o&&(this._cacheIndex=this._keys.length,this._keys.push(i),this._values.push(void 0)),this._cacheIndex},d}();return a;function s(d,i){return d}function _(d,i){return i}function O(d,i){return[d,i]}}n(Ze,"CreateMapPolyfill");function Je(){var e=function(){function t(){this._map=new j}return n(t,"Set"),Object.defineProperty(t.prototype,"size",{get:n(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return this._map.set(r,r),this},t.prototype.delete=function(r){return this._map.delete(r)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[x]=function(){return this.keys()},t}();return e}n(Je,"CreateSetPolyfill");function Qe(){var e=16,t=S.create(),r=a();return function(){function i(){this._key=a()}return n(i,"WeakMap"),i.prototype.has=function(o){var u=s(o,!1);return u!==void 0?S.has(u,this._key):!1},i.prototype.get=function(o){var u=s(o,!1);return u!==void 0?S.get(u,this._key):void 0},i.prototype.set=function(o,u){var f=s(o,!0);return f[this._key]=u,this},i.prototype.delete=function(o){var u=s(o,!1);return u!==void 0?delete u[this._key]:!1},i.prototype.clear=function(){this._key=a()},i}();function a(){var i;do i="@@WeakMap@@"+d();while(S.has(t,i));return t[i]=!0,i}function s(i,o){if(!w.call(i,r)){if(!o)return;Object.defineProperty(i,r,{value:S.create()})}return i[r]}function _(i,o){for(var u=0;u<o;++u)i[u]=Math.random()*255|0;return i}function O(i){if(typeof Uint8Array=="function"){var o=new Uint8Array(i);return typeof crypto<"u"?crypto.getRandomValues(o):typeof msCrypto<"u"?msCrypto.getRandomValues(o):_(o,i),o}return _(new Array(i),i)}function d(){var i=O(e);i[6]=i[6]&79|64,i[8]=i[8]&191|128;for(var o="",u=0;u<e;++u){var f=i[u];(u===4||u===6||u===8)&&(o+="-"),f<16&&(o+="0"),o+=f.toString(16).toLowerCase()}return o}}n(Qe,"CreateWeakMapPolyfill");function Z(e){return e.__=void 0,delete e.__,e}n(Z,"MakeDictionary")})})(ke||(ke={}))});var pt=et(Ce(),1);function B(y,l,v){try{return v()}catch(w){throw new Error(`Get property "${l}" from Entity "${y}" failed: ${w.message}`)}}n(B,"handleError");function _t(y){return function(l){let v=l.meta||{},w=l.prototype;for(let[p,b]of Object.entries(v))if(b.isRelation&&b.relationName){let x=b.relationName.endsWith("!")?b.relationName.slice(0,-1):b.relationName,T=p.startsWith("_")?p.slice(1):p,P=n(function(){return B(this.constructor.entityName,T,()=>b.to(this._data.fields[T]))},"idGetter"),R=n(function(k){this._data.fields[T]=B(this.constructor.entityName,T,()=>b.from(k))},"idSetter"),S=b.isArray?T+"IDs":T+"ID";Reflect.defineProperty(w,S,{get:P,set:R}),Reflect.defineProperty(w,p,{get:n(function(){let k=P.call(this);return Array.isArray(k)?Promise.all(k.map(j=>X()?.get(x,j))):X()?.get(x,k)},"get"),set:n(function(k){k instanceof Promise?k.then(j=>{R.call(this,j)}):R.call(this,k)},"set")})}else Reflect.defineProperty(w,p,{configurable:!0,get:n(function(){return B(this.constructor.entityName,p,()=>b.to(this._data.fields[p]))},"get"),set:n(function(x){this._data.fields[p]=B(this.constructor.entityName,p,()=>b.from(x))},"set")});return class extends l{_data={fields:{}};static entityName=y;constructor(...p){super();for(let b of Object.getOwnPropertyNames(this))l.prototype.hasOwnProperty(b)&&delete this[b];p[0]&&Object.assign(this,p[0])}}}}n(_t,"Entity");function Mt(y){return function(l,v){let w=!1;y.endsWith("!")&&(w=!0,y=y.slice(0,-1));let p=W[y];if(!p)throw new Error(`Unsupported type ${y}`);w&&(p=U(p)),C(p)(l,v)}}n(Mt,"Column");function bt(y=""){return function(l,v){function w(p){return p.endsWith("!")?U(w(p.slice(0,-1))):p.startsWith("[")&&p.endsWith("]")?V(w(p.slice(1,-1))):W[p]?W[p]:Q}n(w,"getTypeConvert"),C(V(w(y)))(l,v)}}n(bt,"ListColumn");function C(y){return function(l,v){let w=Reflect.getMetadata("design:type",l,v);if(!y){let b=w.name;if(y=W[b],!y)throw new Error(`Unsupported type ${b}`)}let p=l.constructor.meta||{};p[v]=y,l.constructor.meta=p}}n(C,"column");var Ot=C(Me),kt=C(ve),Ct=C(pe),xt=C(we),Tt=C(be),Et=C(Oe),St=C(Q),It=C(me),Pt=C(ge),Rt=C(_e);function jt(y,l){let v=y.constructor.meta||{},w=v[l];w&&(v[l]=U(w)),y.constructor.meta=v}n(jt,"Required");function Dt(y){return function(l,v){C(J(y))(l,v)}}n(Dt,"One");function Gt(y){return function(l,v){C(V(J(y)))(l,v)}}n(Gt,"Many");import("node:process").then(y=>y.stdout.write(""));import{StoreContext as Vt}from"@sentio/runtime";import("node:process").then(y=>y.stdout.write(""));var xe=class{static{n(this,"Cursor")}_cursor;_done=!1;pageSize;constructor(l){this._cursor=l?.initCursor,this.pageSize=l?.pageSize}get cursor(){return this._cursor}set cursor(l){l||(this._done=!0),this._cursor=l}get hasNext(){return!this._done}};import("node:process").then(y=>y.stdout.write(""));import("node:process").then(y=>y.stdout.write(""));export{st as AbstractEntity,it as AddOp,Tt as BigDecimalColumn,be as BigDecimalConverter,Et as BigIntColumn,Oe as BigIntConverter,It as BooleanColumn,me as BooleanConverter,Rt as BytesColumn,_e as BytesConverter,Mt as Column,xe as Cursor,_t as Entity,xt as FloatColumn,we as FloatConverter,Ot as IDColumn,Me as IDConverter,Ct as Int8Column,pe as Int8Converter,kt as IntColumn,ve as IntConverter,bt as ListColumn,Gt as Many,ot as MultiplyOp,Dt as One,jt as Required,dt as Store,Vt as StoreContext,St as StringColumn,Q as StringConverter,Pt as TimestampColumn,ge as TimestampConverter,W as TypeConverters,at as UpdateOp,tt as ValueRequiredError,ut as add,V as array_,nt as bytesToBigInt,C as column,rt as enumerate_,lt as getEntityField,ct as getEntityName,X as getStore,ft as multiply,J as objectId_,U as required_};
3
3
  /*! Bundled license information:
4
4
 
5
5
  reflect-metadata/Reflect.js:
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../../chunk-NF7SQC5T.js";import"../../chunk-V7ONVBT4.js";import"../../chunk-IRMT3JAE.js";import"../../chunk-TLJXINOL.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-57B2QEFU.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-45NSVYWS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-MEXIWEPZ.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as address,b as ascii,c as bcs,d as bit_vector,e as debug,f as fixed_point32,g as hash,t as loadAllTypes,h as option,i as string$,j as type_name,k as u128,l as u16,m as u256,n as u32,o as u64,p as u8,q as uq32_32,r as uq64_64,s as vector};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../../chunk-DCBB6WSY.js";import"../../chunk-67VWORXP.js";import"../../chunk-E32G76ZD.js";import"../../chunk-WESN5VPX.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-ATNNVLSV.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-HYBAVEVS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-4CH3FO2Y.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as address,b as ascii,c as bcs,d as bit_vector,e as debug,f as fixed_point32,g as hash,t as loadAllTypes,h as option,i as string$,j as type_name,k as u128,l as u16,m as u256,n as u32,o as u64,p as u8,q as uq32_32,r as uq64_64,s as vector};
3
3
  //# sourceMappingURL=0x1.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../chunk-RFTTBMZW.js";import"../../chunk-NF7SQC5T.js";import"../../chunk-V7ONVBT4.js";import"../../chunk-IRMT3JAE.js";import"../../chunk-TLJXINOL.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-57B2QEFU.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-45NSVYWS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-MEXIWEPZ.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as accumulator,b as accumulator_metadata,c as address,d as authenticator_state,e as bag,f as balance,g as bcs,h as bls12381,i as borrow,j as clock,k as coin,l as config,m as deny_list,n as derived_object,o as display,p as dynamic_field,q as dynamic_object_field,r as ecdsa_k1,s as ecdsa_r1,t as ecvrf,u as ed25519,v as event,w as groth16,x as group_ops,y as hash,z as hex,A as hmac,B as kiosk,C as kiosk_extension,D as linked_table,ca as loadAllTypes,E as math,F as nitro_attestation,G as object$,H as object_bag,I as object_table,J as package$,K as party,L as pay,M as poseidon,N as priority_queue,O as random,P as sui,Q as table,R as table_vec,S as token,T as transfer,U as transfer_policy,V as tx_context,W as types,X as url,Y as vdf,Z as vec_map,_ as vec_set,$ as versioned,aa as zklogin_verified_id,ba as zklogin_verified_issuer};
2
+ import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../chunk-US7CSPMG.js";import"../../chunk-DCBB6WSY.js";import"../../chunk-67VWORXP.js";import"../../chunk-E32G76ZD.js";import"../../chunk-WESN5VPX.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-ATNNVLSV.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-HYBAVEVS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-4CH3FO2Y.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as accumulator,b as accumulator_metadata,c as address,d as authenticator_state,e as bag,f as balance,g as bcs,h as bls12381,i as borrow,j as clock,k as coin,l as config,m as deny_list,n as derived_object,o as display,p as dynamic_field,q as dynamic_object_field,r as ecdsa_k1,s as ecdsa_r1,t as ecvrf,u as ed25519,v as event,w as groth16,x as group_ops,y as hash,z as hex,A as hmac,B as kiosk,C as kiosk_extension,D as linked_table,ca as loadAllTypes,E as math,F as nitro_attestation,G as object$,H as object_bag,I as object_table,J as package$,K as party,L as pay,M as poseidon,N as priority_queue,O as random,P as sui,Q as table,R as table_vec,S as token,T as transfer,U as transfer_policy,V as tx_context,W as types,X as url,Y as vdf,Z as vec_map,_ as vec_set,$ as versioned,aa as zklogin_verified_id,ba as zklogin_verified_issuer};
3
3
  //# sourceMappingURL=0x2.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-VG7IARUK.js";import"../../chunk-RFTTBMZW.js";import"../../chunk-NF7SQC5T.js";import"../../chunk-V7ONVBT4.js";import"../../chunk-IRMT3JAE.js";import"../../chunk-TLJXINOL.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-57B2QEFU.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-45NSVYWS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-MEXIWEPZ.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as genesis,l as loadAllTypes,b as stake_subsidy,c as staking_pool,d as storage_fund,e as sui_system,f as sui_system_state_inner,g as validator,h as validator_cap,i as validator_set,j as validator_wrapper,k as voting_power};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-STFYLBQW.js";import"../../chunk-US7CSPMG.js";import"../../chunk-DCBB6WSY.js";import"../../chunk-67VWORXP.js";import"../../chunk-E32G76ZD.js";import"../../chunk-WESN5VPX.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-ATNNVLSV.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-HYBAVEVS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-4CH3FO2Y.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";export{a as genesis,l as loadAllTypes,b as stake_subsidy,c as staking_pool,d as storage_fund,e as sui_system,f as sui_system_state_inner,g as validator,h as validator_cap,i as validator_set,j as validator_wrapper,k as voting_power};
3
3
  //# sourceMappingURL=0x3.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{m as x}from"../../chunk-VG7IARUK.js";import{da as t}from"../../chunk-RFTTBMZW.js";import{u as r}from"../../chunk-NF7SQC5T.js";import"../../chunk-V7ONVBT4.js";import"../../chunk-IRMT3JAE.js";import"../../chunk-TLJXINOL.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-57B2QEFU.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-45NSVYWS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-MEXIWEPZ.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";import("node:process").then(o=>o.stdout.write(""));export{r as _0x1,t as _0x2,x as _0x3};
2
+ import{m as x}from"../../chunk-STFYLBQW.js";import{da as t}from"../../chunk-US7CSPMG.js";import{u as r}from"../../chunk-DCBB6WSY.js";import"../../chunk-67VWORXP.js";import"../../chunk-E32G76ZD.js";import"../../chunk-WESN5VPX.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-ATNNVLSV.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-HYBAVEVS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-SUCYR7EB.js";import"../../chunk-4CH3FO2Y.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import"../../chunk-G5BIPHMS.js";import("node:process").then(o=>o.stdout.write(""));export{r as _0x1,t as _0x2,x as _0x3};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{a as m,b as p}from"../../chunk-SG7JFJTS.js";import{i as C,j as s,k as a,l as u,m as S,n as g,o as l}from"../../chunk-IRMT3JAE.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-57B2QEFU.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-45NSVYWS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-MEXIWEPZ.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import{a as e}from"../../chunk-G5BIPHMS.js";var n=class{static{e(this,"CoinList")}calculateValueInUsd(t,i,r){return l(t,i,r)}async getCoinInfo(t){return u(t)}whiteListed(t){return a(t)}whitelistCoins(){return s()}},d=new n,c=class extends m{static{e(this,"SuiDex")}coinList=d};async function I(o,t,i,r,f){return p(d,o,t,i,r,f)}e(I,"getPairValue");import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));export{n as CoinList,d as SuiCoinList,c as SuiDex,l as calculateValueInUsd,u as getCoinInfo,S as getCoinInfoWithFallback,I as getPairValue,g as getPrice,C as initCoinList,a as whiteListed,s as whitelistCoins};
2
+ import{a as m,b as p}from"../../chunk-SG7JFJTS.js";import{i as C,j as s,k as a,l as u,m as S,n as g,o as l}from"../../chunk-E32G76ZD.js";import"../../chunk-XFFLRFBN.js";import"../../chunk-3MTUCHCP.js";import"../../chunk-TSEQGMTN.js";import"../../chunk-J7Z2TKQE.js";import"../../chunk-ATNNVLSV.js";import"../../chunk-R3FE2HF3.js";import"../../chunk-TTG5P3RD.js";import"../../chunk-HYBAVEVS.js";import"../../chunk-ZVXXUBUV.js";import"../../chunk-4CH3FO2Y.js";import"../../chunk-RA75ESSD.js";import"../../chunk-T2GZNU62.js";import{a as e}from"../../chunk-G5BIPHMS.js";var n=class{static{e(this,"CoinList")}calculateValueInUsd(t,i,r){return l(t,i,r)}async getCoinInfo(t){return u(t)}whiteListed(t){return a(t)}whitelistCoins(){return s()}},d=new n,c=class extends m{static{e(this,"SuiDex")}coinList=d};async function I(o,t,i,r,f){return p(d,o,t,i,r,f)}e(I,"getPairValue");import("node:process").then(o=>o.stdout.write(""));import("node:process").then(o=>o.stdout.write(""));export{n as CoinList,d as SuiCoinList,c as SuiDex,l as calculateValueInUsd,u as getCoinInfo,S as getCoinInfoWithFallback,I as getPairValue,g as getPrice,C as initCoinList,a as whiteListed,s as whitelistCoins};
3
3
  //# sourceMappingURL=index.js.map
package/lib/sui/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
- import{$ as n,Q as e,S as f,T as g,U as h,V as i,W as j,Y as k,Z as l,_ as m,aa as o,ba as p,ca as q,da as r,ea as s,fa as t,ga as u}from"../chunk-V7ONVBT4.js";import{f as b,g as c,h as d}from"../chunk-IRMT3JAE.js";import"../chunk-TLJXINOL.js";import"../chunk-XFFLRFBN.js";import"../chunk-3MTUCHCP.js";import"../chunk-TSEQGMTN.js";import"../chunk-J7Z2TKQE.js";import"../chunk-57B2QEFU.js";import"../chunk-R3FE2HF3.js";import"../chunk-TTG5P3RD.js";import{q as a}from"../chunk-45NSVYWS.js";import"../chunk-ZVXXUBUV.js";import"../chunk-SUCYR7EB.js";import"../chunk-MEXIWEPZ.js";import"../chunk-RA75ESSD.js";import"../chunk-T2GZNU62.js";import"../chunk-G5BIPHMS.js";export{a as BUILTIN_TYPES,e as MoveCoder,i as SuiAddressContext,n as SuiAddressProcessor,r as SuiAddressProcessorTemplate,k as SuiBaseProcessor,g as SuiContext,m as SuiGlobalProcessor,l as SuiModulesProcessor,b as SuiNetwork,h as SuiObjectChangeContext,j as SuiObjectContext,o as SuiObjectProcessor,s as SuiObjectProcessorTemplate,p as SuiObjectTypeProcessor,u as SuiPlugin,q as SuiWrappedObjectProcessor,t as SuiWrappedObjectProcessorTemplate,f as defaultMoveCoder,c as getClient,d as getRpcEndpoint};
2
+ import{$ as n,Q as e,S as f,T as g,U as h,V as i,W as j,Y as k,Z as l,_ as m,aa as o,ba as p,ca as q,da as r,ea as s,fa as t,ga as u}from"../chunk-67VWORXP.js";import{f as b,g as c,h as d}from"../chunk-E32G76ZD.js";import"../chunk-WESN5VPX.js";import"../chunk-XFFLRFBN.js";import"../chunk-3MTUCHCP.js";import"../chunk-TSEQGMTN.js";import"../chunk-J7Z2TKQE.js";import"../chunk-ATNNVLSV.js";import"../chunk-R3FE2HF3.js";import"../chunk-TTG5P3RD.js";import{q as a}from"../chunk-HYBAVEVS.js";import"../chunk-ZVXXUBUV.js";import"../chunk-SUCYR7EB.js";import"../chunk-4CH3FO2Y.js";import"../chunk-RA75ESSD.js";import"../chunk-T2GZNU62.js";import"../chunk-G5BIPHMS.js";export{a as BUILTIN_TYPES,e as MoveCoder,i as SuiAddressContext,n as SuiAddressProcessor,r as SuiAddressProcessorTemplate,k as SuiBaseProcessor,g as SuiContext,m as SuiGlobalProcessor,l as SuiModulesProcessor,b as SuiNetwork,h as SuiObjectChangeContext,j as SuiObjectContext,o as SuiObjectProcessor,s as SuiObjectProcessorTemplate,p as SuiObjectTypeProcessor,u as SuiPlugin,q as SuiWrappedObjectProcessor,t as SuiWrappedObjectProcessorTemplate,f as defaultMoveCoder,c as getClient,d as getRpcEndpoint};
3
3
  //# sourceMappingURL=index.js.map