UNPKG

sui-explorer-local

Version:
14 lines (13 loc) 21.7 kB
var R=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var j=(e,t,n)=>(R(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},q=(e,t,n,s)=>(R(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);var F=(e,t,n)=>(R(e,t,"access private method"),n);import{j as C}from"./jsx-runtime-ffb262ed.js";import{t as Z,v as _t,w as ft,Q as gt,S as mt}from"./index-d4ae957a.js";import{Q as St}from"./queryClient-3963a3bf.js";import{A as Et}from"./Amount-3826b3c1.js";import{a as bt,C as yt}from"./useFormatCoin-9f4b7ba7.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";import"./clsx-0839fdbe.js";import"./index-d5a566d3.js";import"./extends-98964cd2.js";import"./index-da07a199.js";import"./Heading-31d5eddc.js";import"./index-dca19ccf.js";import"./sizeAndWeight-05769a6b.js";import"./index-71a27fc6.js";const Tt=Object.prototype.toString;function Ct(e,t){return Tt.call(e)===`[object ${t}]`}function tt(e){return Ct(e,"Object")}function U(e){return!!(e&&e.then&&typeof e.then=="function")}function b(e){return e&&e.Math==Math?e:void 0}const d=typeof globalThis=="object"&&b(globalThis)||typeof window=="object"&&b(window)||typeof self=="object"&&b(self)||typeof global=="object"&&b(global)||function(){return this}()||{};function et(e,t,n){const s=n||d,r=s.__SENTRY__=s.__SENTRY__||{};return r[e]||(r[e]=t())}const Nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xt="Sentry Logger ",G=["debug","info","warn","error","log","assert","trace"],H={};function nt(e){if(!("console"in d))return e();const t=d.console,n={},s=Object.keys(H);s.forEach(r=>{const i=H[r];n[r]=t[r],t[r]=i});try{return e()}finally{s.forEach(r=>{t[r]=n[r]})}}function vt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Nt?G.forEach(n=>{t[n]=(...s)=>{e&&nt(()=>{d.console[n](`${xt}[${n}]:`,...s)})}}):G.forEach(n=>{t[n]=()=>{}}),t}const _=vt();function f(e){return w(e,new Map)}function w(e,t){if(Dt(e)){const n=t.get(e);if(n!==void 0)return n;const s={};t.set(e,s);for(const r of Object.keys(e))typeof e[r]<"u"&&(s[r]=w(e[r],t));return s}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const s=[];return t.set(e,s),e.forEach(r=>{s.push(w(r,t))}),s}return e}function Dt(e){if(!tt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function l(){const e=d,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const s=new Uint8Array(1);return t.getRandomValues(s),s[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,s=>(s^(n()&15)>>s/4).toString(16))}function Ot(e){return Array.isArray(e)?e:[e]}var p;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(p||(p={}));class h{constructor(t){h.prototype.__init.call(this),h.prototype.__init2.call(this),h.prototype.__init3.call(this),h.prototype.__init4.call(this),this._state=p.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new h((s,r)=>{this._handlers.push([!1,i=>{if(!t)s(i);else try{s(t(i))}catch(o){r(o)}},i=>{if(!n)r(i);else try{s(n(i))}catch(o){r(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new h((n,s)=>{let r,i;return this.then(o=>{i=!1,r=o,t&&t()},o=>{i=!0,r=o,t&&t()}).then(()=>{if(i){s(r);return}n(r)})})}__init(){this._resolve=t=>{this._setResult(p.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(p.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===p.PENDING){if(U(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===p.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===p.RESOLVED&&n[1](this._value),this._state===p.REJECTED&&n[2](this._value),n[0]=!0)})}}}const st=1e3;function k(){return Date.now()/st}function It(){const{performance:e}=d;if(!e||!e.now)return k;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/st}const rt=It();(()=>{const{performance:e}=d;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),s=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,i=r<t,o=e.timing&&e.timing.navigationStart,a=typeof o=="number"?Math.abs(o+n-s):t,u=a<t;return i||u?r<=a?e.timeOrigin:o:s})();const N=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,it="production";function Rt(){return et("globalEventProcessors",()=>[])}function A(e,t,n,s=0){return new h((r,i)=>{const o=e[s];if(t===null||typeof o!="function")r(t);else{const c=o({...t},n);N&&o.id&&c===null&&_.log(`Event processor "${o.id}" dropped event`),U(c)?c.then(a=>A(e,a,n,s+1).then(r)).then(null,i):A(e,c,n,s+1).then(r).then(null,i)}})}function Lt(e){const t=rt(),n={sid:l(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>At(n)};return e&&O(n,e),n}function O(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||rt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:l()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function wt(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),O(e,n)}function At(e){return f({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Mt=1;function Pt(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:r,parent_span_id:i,status:o,tags:c,origin:a}=x(e);return f({data:s,op:r,parent_span_id:i,span_id:t,status:o,tags:c,trace_id:n,origin:a})}function x(e){return Ut(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ut(e){return typeof e.getSpanJSON=="function"}function kt(e){const{traceFlags:t}=e.spanContext();return!!(t&Mt)}function Bt(e,t){return B().startTransaction({...e},t)}function jt(){return B().getClient()}function qt(){return B().getScope()}function ot(e){return e.transaction}function Ft(e,t,n){const s=t.getOptions(),{publicKey:r}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=f({environment:s.environment||it,release:s.release,user_segment:i,public_key:r,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Gt(e){const t=jt();if(!t)return{};const n=Ft(x(e).trace_id||"",t,qt()),s=ot(e);if(!s)return n;const r=s&&s._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:i,source:o}=s.metadata;i!=null&&(n.sample_rate=`${i}`);const c=x(s);return o&&o!=="url"&&(n.transaction=c.description),n.sampled=String(kt(s)),t.emit&&t.emit("createDsc",n),n}function Ht(e,t){const{fingerprint:n,span:s,breadcrumbs:r,sdkProcessingMetadata:i}=t;Yt(e,t),s&&$t(e,s),Kt(e,n),Jt(e,r),Vt(e,i)}function Yt(e,t){const{extra:n,tags:s,user:r,contexts:i,level:o,transactionName:c}=t,a=f(n);a&&Object.keys(a).length&&(e.extra={...a,...e.extra});const u=f(s);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const m=f(r);m&&Object.keys(m).length&&(e.user={...m,...e.user});const S=f(i);S&&Object.keys(S).length&&(e.contexts={...S,...e.contexts}),o&&(e.level=o),c&&(e.transaction=c)}function Jt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Vt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function $t(e,t){e.contexts={trace:Pt(t),...e.contexts};const n=ot(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Gt(t),...e.sdkProcessingMetadata};const s=x(n).description;s&&(e.tags={transaction:s,...e.tags})}}function Kt(e,t){e.fingerprint=e.fingerprint?Ot(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Qt=100;class g{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Y()}static clone(t){return t?t.clone():new g}clone(){const t=new g;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&O(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof g){const s=n.getScopeData();this._tags={...this._tags,...s.tags},this._extra={...this._extra,...s.extra},this._contexts={...this._contexts,...s.contexts},s.user&&Object.keys(s.user).length&&(this._user=s.user),s.level&&(this._level=s.level),s.fingerprint.length&&(this._fingerprint=s.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),s.propagationContext&&(this._propagationContext=s.propagationContext)}else if(tt(n)){const s=t;this._tags={...this._tags,...s.tags},this._extra={...this._extra,...s.extra},this._contexts={...this._contexts,...s.contexts},s.user&&(this._user=s.user),s.level&&(this._level=s.level),s.fingerprint&&(this._fingerprint=s.fingerprint),s.requestSession&&(this._requestSession=s.requestSession),s.propagationContext&&(this._propagationContext=s.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Y(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:Qt;if(s<=0)return this;const r={timestamp:k(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>s?i.slice(-s):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:s,_tags:r,_extra:i,_user:o,_level:c,_fingerprint:a,_eventProcessors:u,_propagationContext:m,_sdkProcessingMetadata:S,_transactionName:pt,_span:ht}=this;return{breadcrumbs:t,attachments:n,contexts:s,tags:r,extra:i,user:o,level:c,fingerprint:a||[],eventProcessors:u,propagationContext:m,sdkProcessingMetadata:S,transactionName:pt,span:ht}}applyToEvent(t,n={},s=[]){Ht(t,this.getScopeData());const r=[...s,...Rt(),...this._eventProcessors];return A(r,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const s=n&&n.event_id?n.event_id:l();if(!this._client)return _.warn("No client configured on scope - will not capture exception!"),s;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:s},this),s}captureMessage(t,n,s){const r=s&&s.event_id?s.event_id:l();if(!this._client)return _.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...s,event_id:r},this),r}captureEvent(t,n){const s=n&&n.event_id?n.event_id:l();return this._client?(this._client.captureEvent(t,{...n,event_id:s},this),s):(_.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Y(){return{traceId:l(),spanId:l().substring(16)}}const Wt="7.109.0",at=parseFloat(Wt),Xt=100;class ct{constructor(t,n,s,r=at){this._version=r;let i;n?i=n:(i=new g,i.setClient(t));let o;s?o=s:(o=new g,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let s;try{s=t(n)}catch(r){throw this.popScope(),r}return U(s)?s.then(r=>(this.popScope(),r),r=>{throw this.popScope(),r}):(this.popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const s=this._lastEventId=n&&n.event_id?n.event_id:l(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...n,event_id:s}),s}captureMessage(t,n,s){const r=this._lastEventId=s&&s.event_id?s.event_id:l(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...s,event_id:r}),r}captureEvent(t,n){const s=n&&n.event_id?n.event_id:l();return t.type||(this._lastEventId=s),this.getScope().captureEvent(t,{...n,event_id:s}),s}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:s,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Xt}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:k(),...t},u=i?nt(()=>i(a,n)):a;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,n),s.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:s}=this.getStackTop();s&&t(n)}run(t){const n=J(this);try{t(this)}finally{J(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return N&&_.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const s=this._callExtensionMethod("startTransaction",t,n);return N&&!s&&(this.getClient()?_.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):_.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),s}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,s=n.getSession();s&&wt(s),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:s}=this.getStackTop(),{release:r,environment:i=it}=s&&s.getOptions()||{},{userAgent:o}=d.navigator||{},c=Lt({release:r,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),a=n.getSession&&n.getSession();return a&&a.status==="ok"&&O(a,{status:"exited"}),this.endSession(),n.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),s=t.getSession();s&&n&&n.captureSession&&n.captureSession(s)}_callExtensionMethod(t,...n){const r=I().__SENTRY__;if(r&&r.extensions&&typeof r.extensions[t]=="function")return r.extensions[t].apply(this,n);N&&_.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function I(){return d.__SENTRY__=d.__SENTRY__||{extensions:{},hub:void 0},d}function J(e){const t=I(),n=M(t);return ut(t,e),n}function B(){const e=I();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return zt(e)}function zt(e=I()){return(!Zt(e)||M(e).isOlderThan(at))&&ut(e,new ct),M(e)}function Zt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function M(e){return et("hub",()=>new ct,e)}function ut(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}const te=["suix_resolveNameServiceNames","suix_resolveNameServiceAddresses"];var E,D,dt;class ee extends Z{constructor(n){super({url:n});L(this,D);L(this,E,void 0);q(this,E,n)}async request(n){return te.includes(n.method)?super.request(n):F(this,D,dt).call(this,n,()=>super.request(n))}}E=new WeakMap,D=new WeakSet,dt=async function(n,s){const r=Bt({name:n.method,op:"http.rpc-request",data:n.params,tags:{url:j(this,E)}});try{const i=await s(),o="ok";return r.setStatus(o),i}catch(i){const o="internal_error";throw r.setStatus(o),i}finally{r.finish()}};function P({amount:e,coinType:t,format:n,...s}){const[r,i]=bt(e,t,n||yt.FULL),o=t?r:e;return C.jsx(Et,{amount:o,symbol:i,...s})}try{P.displayName="CoinBalance",P.__docgenInfo={description:"",displayName:"CoinBalance",props:{coinType:{defaultValue:null,description:"",name:"coinType",required:!1,type:{name:"string | null"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'}]}},amount:{defaultValue:null,description:"",name:"amount",required:!0,type:{name:"string | number | bigint"}},format:{defaultValue:null,description:"",name:"format",required:!1,type:{name:"enum",value:[{value:'"ROUNDED"'},{value:'"FULL"'}]}}}}}catch{}var v=(e=>(e.LOCAL="LOCAL",e.DEVNET="DEVNET",e.TESTNET="TESTNET",e.MAINNET="MAINNET",e))(v||{});const lt={LOCAL:{url:_t("localnet")},DEVNET:{url:"https://sui-devnet.mystenlabs.com/json-rpc"},TESTNET:{url:"https://sui-testnet.mystenlabs.com/json-rpc"},MAINNET:{url:"https://sui-mainnet.mystenlabs.com/json-rpc"}},V=new Map,ne=e=>{const t=V.get(e);if(t)return t;const n=e in v?lt[e].url:e,s=new ft({transport:e in v&&e==="MAINNET"?new ee(n):new Z({url:n})});return V.set(e,s),s},Ee={component:P,decorators:[e=>C.jsx(gt,{client:new St,children:C.jsx(mt,{networks:lt,defaultNetwork:v.LOCAL,createClient:ne,children:C.jsx(e,{})})})]},y={args:{amount:1e3,coinType:"0x2::sui::SUI"}},T={args:{amount:1e4}};var $,K,Q;y.parameters={...y.parameters,docs:{...($=y.parameters)==null?void 0:$.docs,source:{originalSource:`{ args: { amount: 1000, coinType: '0x2::sui::SUI' } }`,...(Q=(K=y.parameters)==null?void 0:K.docs)==null?void 0:Q.source}}};var W,X,z;T.parameters={...T.parameters,docs:{...(W=T.parameters)==null?void 0:W.docs,source:{originalSource:`{ args: { amount: 10000 } }`,...(z=(X=T.parameters)==null?void 0:X.docs)==null?void 0:z.source}}};const be=["Default","WithoutSymbol"];export{y as Default,T as WithoutSymbol,be as __namedExportsOrder,Ee as default};