@broxus/tvm-connect
Version:
Nekoton-compatible wallets connector.
1 lines • 309 kB
JavaScript
import N from"classnames";import{observer as M1,Observer as Se}from"mobx-react-lite";import*as e from"react";import{defineMessages as Re,useIntl as R1}from"react-intl";import{preventEvent as I2,addClass as c1,getScrollWidth as He,removeClass as v1,canUseDocElement as Pe,storage as T1,isBrowser as e1,uniqueKey as v,camelify as Ae,truncateDecimals as $1,blendColor as Z2,debug as A,sliceAddress as V1,timeoutPromise as I1,groupCollapsed as $2,error as d1,groupEnd as F2,debounce as Z1,throwException as u1,isMobile as s2,isAndroid as Be,isIos as $e,isChrome as Fe,isFirefox as De,getUserAgent as h1,formattedTokenAmount as Ue,camelToSnake as We}from"@broxus/js-utils";import{observable as je,action as $,computed as Z,makeObservable as H1,runInAction as u2,reaction as j1,comparer as ze}from"mobx";import{AbstractStore as D2,errorLabelStyle as U2,inheritTextStyle as i1,resolveTvmAddress as W2,warningLabelStyle as e2,isAddressesEquals as c2,TvmChains as C2,DEFAULT_NATIVE_CURRENCY_DECIMALS as j2,getFullContractState as Ge,successLabelStyle as t2,successTextStyle as F1}from"@broxus/js-core";import{ProviderRpcClient as L1,StaticProviderAdapter as L2,AddressLiteral as Xe}from"everscale-inpage-provider";import z2 from"@rc-component/util/lib/omit";import Ke from"@rc-component/input-number";import{ColorType as Qe,LineStyle as Ye,LineType as f2,LastPriceAnimationMode as E2,TickMarkType as D1,createChart as qe,AreaSeries as Je,BarSeries as e7,BaselineSeries as t7,CandlestickSeries as r7,HistogramSeries as n7,LineSeries as o7}from"lightweight-charts";import{DateTime as S2}from"luxon";import a7 from"copy-to-clipboard";import"bignumber.js";import"d3";import*as i7 from"react-dom";import"react-waypoint";import l7,{Option as s7,OptGroup as c7}from"@rc-component/select";import C7 from"@rc-component/trigger";import p7 from"@rc-component/drawer";import d7 from"@rc-component/dialog";const m7="div",s1=e.forwardRef((r,t)=>{const{component:n=m7,...o}=r;return e.createElement(n,{ref:t,...o})});e.createContext(void 0);const G2=e.createContext({breakpoints:{"2xl":2560,"3xl":3440,l:1200,m:960,s:640,xl:1600,xs:480},getRootPrefixCls(r,t){return`${r?`${r}-`:`${this.prefixCls}-`}${t??""}`},getTooltipConfig(r){return r==null?{}:typeof r=="string"?{"data-uk-tooltip":`title: ${r}`}:{"data-uk-tooltip":[r.title?`title: ${r.title}`:!1,r.animation?`animation: ${r.animation}`:!1,r.cls?`cls: ${r.cls}`:!1,r.delay!==void 0?`delay: ${r.delay}`:!1,r.duration!==void 0?`duration: ${r.duration}`:!1,r.offset?`offset: ${r.offset}`:!1,r.pos?`pos: ${r.pos}`:!1].filter(Boolean).join(";")}},prefixCls:"uk"});function V(){return e.useContext(G2)}process.env.NODE_ENV!=="production"&&(G2.displayName="ConfigContext");const u7="a",z1=e.forwardRef((r,t)=>{const n=V(),{children:o,className:i,prefixCls:a=n.prefixCls,type:l,...s}=r,p=e.useMemo(()=>n.getRootPrefixCls(a||n.prefixCls,"link"),[n,a]);return e.createElement(s1,{ref:t,className:N({[`${p}-${l}`]:l!==void 0},i),component:u7,...s},o)});process.env.NODE_ENV!=="production"&&(z1.displayName="Link");function X2(r){return e.createElement("li",{...r})}process.env.NODE_ENV!=="production"&&(X2.displayName="List.Item");function L7(r){const t=V(),{className:n,color:o,prefixCls:i=t.prefixCls,size:a,type:l,...s}=r,p=e.useMemo(()=>t.getRootPrefixCls(i||t.prefixCls,"list"),[t,i]);return e.createElement("ul",{className:N(p,{[`${p}-${o}`]:o!==void 0,[`${p}-${a}`]:a!==void 0,[`${p}-${l}`]:l!==void 0},n),...s})}const g1=L7;g1.Item=X2;const f7="span";function h2(r){const t=V(),{children:n,className:o,icon:i,material:a=!0,mode:l,prefixCls:s=t.prefixCls,round:p,type:C,...d}=r,c=e.useMemo(()=>t.getRootPrefixCls(s||t.prefixCls,"icon"),[t,s]);return i?e.createElement(s1,{className:N(c,{[`${c}-button`]:C==="button",[`${c}-material`]:a,[`${c}-round`]:a&&p,[`${c}-${l}`]:l!==void 0},o),component:f7,...d},a?e.createElement("i",null,i):n):null}function K2(r){return e.createElement(h2,{...r,component:"button",role:"button",type:"button"})}process.env.NODE_ENV!=="production"&&(K2.displayName="Icon.Button");function Q2(r){return e.createElement(h2,{...r,component:"a",role:"button",type:"link"})}process.env.NODE_ENV!=="production"&&(Q2.displayName="Icon.Link");const h={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function E7(r,t,n=1){return{height:r*n,width:t*n}}const r1=h2;r1.Button=K2;r1.Link=Q2;function h7(r){return r??""}function Y2(r){const t=V(),n=e.useRef(null),{className:o,direction:i=t.control?.direction||t.direction,prefixCls:a=t.control?.prefixCls??t.prefixCls,size:l,state:s,useInternalValueState:p=!0,onChange:C,onClear:d,onPressEnter:c,...u}=r,[f,g]=e.useState(!1),[L,M]=e.useState(p?u.value||u.defaultValue:void 0),y=e.useCallback(I=>{p&&M(typeof I=="string"||typeof I=="number"?I:I.target.value),C?.(I)},[C,p]),_=e.useCallback(I=>{n.current&&(n.current.value=""),d?.(I),y(I)},[y,d]),P=e.useCallback(I=>{g(!1),u.onBlur?.(I)},[u]),R=e.useCallback(I=>{g(!0),u.onFocus?.(I)},[u]),G=e.useCallback(I=>{c&&(I.keyCode===13||I.key==="Enter")&&c(I),u.onKeyDown?.(I)},[c,u]),o1=e.useMemo(()=>({...u,prefixCls:a,value:h7(L||u.value),onBlur:P,onChange:y,onClear:_,onFocus:R,onKeyDown:G}),[u,a,L,P,y,_,R,G]),U=e.useMemo(()=>t.getRootPrefixCls(a,"control"),[t,a]),W=e.useMemo(()=>N(U,{[`${U}-${u.type}`]:u.type,[`${U}-${l}`]:l,[`${U}-${s}`]:s,[`${U}-rtl`]:i==="rtl",[`${a}-disabled`]:u.disabled,[`${a}-focused`]:f,[`${a}-readonly`]:u.readOnly},o),[U,u.type,u.disabled,u.readOnly,l,s,i,a,f,o]);return e.useEffect(()=>{p&&M(u.value)},[u.value,p]),{...o1,inputRef:n,wrapperClasses:W}}const g2=e.forwardRef((r,t)=>{const n=V(),{allowClear:o,htmlSize:i,inputRef:a,prefix:l,prefixCls:s,suffix:p,wrapperClasses:C,onClear:d,...c}=Y2({type:"text",...r}),u=e.useMemo(()=>n.getRootPrefixCls(s,"input"),[n,s]),f=e.useMemo(()=>n.getRootPrefixCls(s,"control"),[n,s]),g=z2({...c,className:N(u,{[`${s}-empty`]:!c.value})},["dir","size"]),L=e.useMemo(()=>typeof n.control?.clearIcon=="function"?n.control.clearIcon({onClick:M=>{d?.(M)}}):e.isValidElement(n.control?.clearIcon)?n.control.clearIcon:typeof n.controlClearIcon=="function"?n.controlClearIcon({onClick:M=>{d?.(M)}}):e.isValidElement(n.controlClearIcon)?n.controlClearIcon:e.createElement(r1,{key:"clearfix-icon",icon:"close",className:`${f}-clear`,onClick:d}),[n,f,d]);return e.useImperativeHandle(t,()=>({blur(){a.current?.blur()},focus(){a.current?.focus()},getInputRef(){return a}}),[a]),e.createElement("label",{className:C,htmlFor:c.id},l&&e.createElement("span",{key:"prefix",className:`${f}-prefix`},l),e.createElement("span",{key:"input",className:`${f}-input`},e.createElement("input",{ref:a,...g,size:i,type:c.type})),o&&c.value&&L,p&&e.createElement("span",{key:"suffix",className:`${f}-suffix`},p))});process.env.NODE_ENV!=="production"&&(g2.displayName="Input");const q2=e.forwardRef((r,t)=>{const n=V(),{inputRef:o,prefixCls:i,wrapperClasses:a,...l}=Y2({...r,type:"number"});e.useImperativeHandle(t,()=>({blur(){o.current?.blur()},focus(){o.current?.focus()},getInputRef(){return o}}));const s=e.useMemo(()=>n.getRootPrefixCls(i,"number"),[n,i]),p=e.useMemo(()=>n.getRootPrefixCls(i,"control"),[n,i]),C=e.useMemo(()=>e.createElement(r1,{icon:"keyboard_arrow_up",className:`${s}-handler-up-inner`}),[s]),d=e.useMemo(()=>e.createElement(r1,{icon:"keyboard_arrow_down",className:`${s}-handler-down-inner`}),[s]),c=z2({...l,className:`${s}-wrapper`},["allowClear","prefix","size","suffix","onClear"]);return e.createElement("label",{className:a,htmlFor:l.id},e.createElement("div",{className:`${p}-input`},e.createElement(Ke,{...c,downHandler:d,prefixCls:s,ref:o,upHandler:C})))});process.env.NODE_ENV!=="production"&&(q2.displayName="Input.Number");const J2=e.forwardRef((r,t)=>{const n=V(),{prefixCls:o=n.control?.prefixCls??n.prefixCls,onBlur:i,onChange:a,...l}=r,s=e.useRef(null),p=e.useRef(null),[C,d]=e.useState(!1),c=e.useMemo(()=>n.getRootPrefixCls(o,"control"),[n,o]),u=e.useCallback(()=>{p.current=setTimeout(()=>{const _=s?.current?.getInputRef()?.current;_?.getAttribute("type")==="password"&&_?.hasAttribute("value")&&_?.removeAttribute("value")})},[]),f=e.useCallback(()=>{d(!C),l.onVisibilityChange?.(!C)},[l,C]),g=e.useCallback(_=>{u(),a?.(_)},[a,u]),L=e.useCallback(_=>{u(),i?.(_)},[i,u]),M=e.useCallback(_=>{u(),l.onFocus?.(_)},[u,l]);e.useImperativeHandle(t,()=>({blur(){s.current?.blur()},focus(){s.current?.focus()},getInputRef(){return s.current?s.current.getInputRef():null}})),e.useEffect(()=>(u(),()=>{p.current&&clearTimeout(p.current)}),[u]);const y=e.useMemo(()=>e.createElement(e.Fragment,null,e.createElement(r1,{key:"toggle_visibility_icon",icon:C?l.iconVisibility??"visibility":l.iconVisibilityOff??"visibility_off",className:`${c}-password-icon`,onClick:f,onMouseDown:I2,onMouseUp:I2}),l.suffix),[c,l.iconVisibility,l.iconVisibilityOff,l.suffix,f,C]);return e.createElement(g2,{...l,suffix:y,type:C?"text":"password",ref:s,onChange:g,onBlur:L,onFocus:M})});process.env.NODE_ENV!=="production"&&(J2.displayName="Input.Password");const v2=g2;v2.Number=q2;v2.Password=J2;function g7(r){const t=r===!0?0:1;return{"bottom-left":{htmlRegion:"scroll",offset:[0,4],overflow:{adjustX:t,adjustY:1},points:["tl","bl"]},"bottom-right":{htmlRegion:"scroll",offset:[0,4],overflow:{adjustX:t,adjustY:1},points:["tr","br"]},"top-left":{htmlRegion:"scroll",offset:[0,-4],overflow:{adjustX:t,adjustY:1},points:["bl","tl"]},"top-right":{htmlRegion:"scroll",offset:[0,-4],overflow:{adjustX:t,adjustY:1},points:["br","tr"]}}}function y2(r){const t=V(),{className:n,prefixCls:o=t.prefixCls,ratio:i,...a}=r;return e.createElement("div",{className:N([`${o||t.prefixCls}-spinner`,`${o||t.prefixCls}-icon`],n),role:"status",...a},e.createElement("svg",{...h,...E7(20,20,i),viewBox:"0 0 30 30"},e.createElement("circle",{fill:"none",stroke:"currentColor",cx:15,cy:15,r:13,style:{strokeWidth:`${(2/(i??1)).toFixed(6)}px`}})))}const ee="SECRET_COMBOBOX_MODE_DO_NOT_USE";function v7(r,t){const n=V(),{allowClear:o,direction:i=n.select?.direction||n.direction,popupMatchSelectWidth:a,builtinPlacements:l=g7(a),className:s,listHeight:p=256,listItemHeight:C=24,placement:d="bottom-left",prefixCls:c=n.select?.prefixCls||n.prefixCls,showArrow:u=!0,showSearch:f=!1,onPressEnter:g,...L}=r,M=e.useRef(null),y=e.useRef(null),[_,P]=e.useState(!1),[R,G]=e.useState(L.defaultOpen||L.open||!1),[o1,U]=e.useState(2),W=e.useCallback(O=>{P(!1),G(!1),L.onBlur?.(O)},[L]),I=e.useCallback(O=>{P(!0),L.onFocus?.(O)},[L]),t1=e.useCallback(O=>{O.keyCode===13?(G(!0),g?.(O)):O.keyCode===32&&G(!0),L.onKeyDown?.(O)},[g,L]),Y=e.useCallback(O=>{G(O),L.onPopupVisibleChange?.(O)},[L]),x=e.useCallback(()=>{G(!R)},[R]);e.useEffect(()=>{G(L.defaultOpen||L.open||R)},[L.open,L.defaultOpen,R]),e.useEffect(()=>{const O=y.current?.firstElementChild;if(O){let Q=parseInt(getComputedStyle?.(O).getPropertyValue("border-left-width"),10);i!=="rtl"&&(Q*=-1),U(Q)}},[i]);const S=e.useMemo(()=>n.getRootPrefixCls(c||n.select?.prefixCls||n.prefixCls,"select"),[n,c]),w=e.useMemo(()=>n.getRootPrefixCls(c||n.select?.prefixCls||n.prefixCls,"control"),[n,c]),j=e.useMemo(()=>{const{mode:O}=L;if(O!=="combobox")return O===ee?"combobox":O},[L]),q=e.useMemo(()=>N([w,`${w}-select`],{[`${w}-${L.size}`]:L.size,[`${w}-rtl`]:i==="rtl",[`${c||n.select?.prefixCls||n.prefixCls}-focused`]:_,[`${c||n.select?.prefixCls||n.prefixCls}-disabled`]:L.disabled},s),[s,n.select?.prefixCls,n.prefixCls,w,_,c,i,L.disabled,L.size]),J=e.useMemo(()=>{let O;L.loading?typeof n.select?.loadingIcon=="function"?O=n.select.loadingIcon():e.isValidElement(n.select?.loadingIcon)?O=n.select.loadingIcon:O=e.createElement(y2,{key:"spinner",ratio:.7}):u&&(j==="multiple"||j==="tags"?typeof n.select?.addIcon=="function"?O=n.select.addIcon({onClick:x}):e.isValidElement(n.select?.addIcon)?O=n.select.addIcon:O=e.createElement(r1,{key:"add_box",icon:"add_box",onClick:x}):f&&R?typeof n.select?.searchIcon=="function"?O=n.select.searchIcon():e.isValidElement(n.select?.searchIcon)?O=n.select.searchIcon:O=e.createElement(r1,{key:"manage_search",icon:"manage_search"}):typeof n.select?.arrowIcon=="function"?O=n.select.arrowIcon({isOpen:R,onClick:x}):e.isValidElement(n.select?.arrowIcon)?O=n.select.arrowIcon:O=R?e.createElement(r1,{key:"expand_less",icon:"expand_less"}):e.createElement(r1,{key:"expand_more",icon:"expand_more",onClick:x}));let Q;L.notFoundContent!==void 0?Q=L.notFoundContent:j==="combobox"&&(Q=null),typeof n.select?.notFoundContent=="function"?Q=n.select.notFoundContent():e.isValidElement(n.select?.notFoundContent)&&(Q=n.select.notFoundContent);let X=e.createElement(r1,{icon:"clear"});return typeof n.select?.clearIcon=="function"?X=n.select.clearIcon():e.isValidElement(n.select?.clearIcon)&&(X=n.select.clearIcon),{allowClear:(o||o===void 0)&&{clearIcon:X},listHeight:p,listItemHeight:C,menuItemSelectedIcon:e.createElement(r1,{icon:"check"}),open:R,prefixCls:S,removeIcon:e.createElement(r1,{icon:"clear"}),showSearch:f,suffixIcon:O,transitionName:`${c||n.select?.prefixCls||n.prefixCls}-motion-slide-bottom-small`,...L,notFoundContent:Q,popupClassName:N(L.popupClassName,{[`${c||n.select?.prefixCls||n.prefixCls}-dropdown-rtl`]:i==="rtl"}),popupMatchSelectWidth:!0,onBlur:W,onFocus:I,onKeyDown:t1,onPopupVisibleChange:Y}},[L,u,j,n,o,p,C,R,S,f,c,i,W,I,t1,x,Y]);return e.useImperativeHandle(t,()=>({blur(){M.current?.blur()},focus(){M.current?.focus()},scrollTo(){return M.current?.scrollTo}})),e.createElement("label",{ref:y,className:q,htmlFor:L.id},e.createElement(l7,{ref:M,builtinPlacements:l,popupAlign:{offset:[o1,5]},placement:d,...J,mode:j}))}const K1=e.forwardRef(v7);K1.SECRET_COMBOBOX_MODE_DO_NOT_USE=ee;K1.Option=s7;K1.OptGroup=c7;const y7="button",te=e.forwardRef((r,t)=>{const n=V(),{component:o=y7,ghost:i,htmlType:a="button",prefixCls:l=n.button?.prefixCls??n.prefixCls,shape:s=n.button?.shape??n.buttonShape,size:p=n.button?.size??n.buttonSize,type:C,...d}=r,c=e.useRef(null),u=e.useCallback(L=>{if(d.disabled){L.preventDefault();return}d.onClick?.(L)},[d]),f=e.useMemo(()=>n.getRootPrefixCls(l,"button"),[n,l]),g=e.useMemo(()=>N(f,{[`${f}-${C}`]:C!==void 0,[`${f}-ghost`]:i===!0,[`${f}-${p}`]:p!==void 0,[`${f}-${s}`]:s!==void 0&&["circle","round"].includes(s)},d.className),[f,C,i,p,s,d.className]);return d.href!==void 0?e.createElement(s1,{ref:t||c,component:z1,href:d.href,...d,className:g,onClick:u}):e.createElement(s1,{ref:t||c,component:o,type:a,...d,className:g,onClick:u})});process.env.NODE_ENV!=="production"&&(te.displayName="Button");function re(r){const t=V(),{className:n,prefixCls:o=t.button?.prefixCls||t.prefixCls,...i}=r,a=e.useMemo(()=>t.getRootPrefixCls(o||t.button?.prefixCls||t.prefixCls,"button-group"),[t,o]);return e.createElement("div",{className:N(a,n),...i})}process.env.NODE_ENV!=="production"&&(re.displayName="Button.Group");const a1=te;a1.Group=re;const M7="button";function ne(r){const t=V(),{className:n,prefixCls:o=t.prefixCls,...i}=r,a=e.useMemo(()=>t.getRootPrefixCls(o||t.prefixCls,"close"),[t,o]);return e.createElement(r1,{"aria-hidden":"false",className:N(a,n),component:M7,tabIndex:-1,...i,icon:"close"})}process.env.NODE_ENV!=="production"&&(ne.displayName="Close");function G1(r,t,n={}){return Object.entries(n).map(([o,i])=>i?`${r}-${t}-${i}${o!=="default"?`@${o}`:""}`:"").join(" ").trim()}function W1(...r){c1(document?.documentElement,N(r??"uk-modal-page"));try{const t=He();document.documentElement.dir==="rtl"?document.documentElement.style.paddingLeft=`${t}px`:document.documentElement.style.paddingRight=`${t}px`}catch{}}function p2(...r){v1(document?.documentElement,N(r??"uk-modal-page"));try{document.documentElement.style.paddingLeft="",document.documentElement.style.paddingRight=""}catch{}}function O1(r,t,n){return n!==void 0?n:`${r}-motion-${t}`}function N7(r,t){return t?{...t,motionEnter:!0,onEnterStart:(n,o)=>(c1(n,`${r}-mask-active`),t.onEnterStart?.(n,o)),onLeaveStart:(n,o)=>(v1(n,`${r}-mask-active`),t.onEnterStart?.(n,o))}:{motionAppear:!0,motionDeadline:200,motionEnter:!0,motionName:O1(r,"fade"),onAppearEnd:(n,o)=>{c1(n,`${r}-active`)},onEnterEnd:(n,o)=>{c1(n,`${r}-active`)},onLeaveStart:(n,o)=>(v1(n,`${r}-active`),{opacity:0})}}function oe(r,t="uk"){if(typeof r=="string"||typeof r=="number")return typeof r=="string"&&["auto","expand"].includes(r)?`${t}-child-width-${r}`:`${t}-child-width-1-${r}`;if(typeof r=="object"&&!Array.isArray(r))return Object.entries(r).map(([n,o])=>`${oe(o)}${n!=="default"?`@${n}`:""}`).join(" ")}const k7="div";function M2(r){const t=V(),{childWidth:n,className:o,columnGap:i,divider:a,gap:l,margin:s,match:p,prefixCls:C=t.prefixCls,rowGap:d,...c}=r,u=e.useMemo(()=>oe(n),[n]),f=e.useMemo(()=>t.getRootPrefixCls(C||t.prefixCls,"grid"),[t,C]);return e.createElement(s1,{className:N(f,{[`${f}-${l}`]:l!==void 0,[`${f}-row-${d}`]:d!==void 0,[`${f}-column-${i}`]:i!==void 0,[`${f}-margin-${s}`]:s!==void 0,[`${f}-divider`]:a,[`${f}-match`]:p},u,o),component:k7,"data-uk-grid":"margin: ",...c})}function ae(r){const t=e.useContext(r);if(t==null)throw new Error(`use${r.displayName||r.constructor.name||"Unknown"} must be used within a ${r.displayName||r.constructor.name||"Unknown"}.Provider`);return t}function ie(){const[,r]=e.useReducer(t=>t+1,0);return r}const w1={adjustX:1,adjustY:1},_1=[0,0],w7={"bottom-center":{offset:[0,4],overflow:w1,points:["tc","bc"],targetOffset:_1},"bottom-left":{offset:[0,4],overflow:w1,points:["tl","bl"],targetOffset:_1},"bottom-right":{offset:[0,4],overflow:w1,points:["tr","br"],targetOffset:_1},"top-center":{offset:[0,-4],overflow:w1,points:["bc","tc"],targetOffset:_1},"top-left":{offset:[0,-4],overflow:w1,points:["bl","tl"],targetOffset:_1},"top-right":{offset:[0,-4],overflow:w1,points:["br","tr"],targetOffset:_1}},le=e.forwardRef((r,t)=>{const n=V(),{action:o=["hover"],align:i,alignPoint:a,arrow:l=!1,autoDestroy:s,builtinPlacements:p=w7,children:C,defaultVisible:d,getPopupContainer:c=n.getPopupContainer,hideAction:u=o,maskMotion:f,motion:g,minOverlayWidthMatchTrigger:L,openClassName:M,overlay:y,overlayClassName:_,overlayStyle:P,prefixCls:R=n.prefixCls,placement:G="bottom-left",rootCls:o1,showAction:U=o,visible:W,onAlign:I,onOverlayClick:t1,onVisibleChange:Y,...x}=r,S=e.useRef(null),[w,j]=e.useState(d),q="visible"in x?W:w,J=e.useMemo(()=>o1??n.getRootPrefixCls(R||n.prefixCls,"drop"),[n,R,o1]),O=e.useCallback(B1=>{j(B1),Y?.(B1)},[Y]),Q=e.useCallback(()=>typeof y=="function"?y():y,[y]),X=e.useCallback(()=>e.createElement(e.Fragment,null,l&&e.createElement("div",{className:`${J}-arrow`}),e.cloneElement(Q(),{onClick:t1})),[l,Q,t1,J]),N1=e.useCallback(()=>typeof y=="function"?X():X,[X,y]),k1=e.useCallback(()=>L!==void 0?L:!a,[a,L]),z=e.useCallback(()=>{const B1=C.props,Ze=N(B1?.className,`${R||n.prefixCls}-open`);return w&&C?e.cloneElement(C,{className:Ze}):C},[C,n.prefixCls,R,w]);e.useImperativeHandle(t,()=>({close(){j(!1)},open(){j(!0)},triggerRef:S.current}));let p1=Array.isArray(u)?u:[u];return!p1&&o.indexOf("contextMenu")>-1&&(p1=["click"]),e.createElement(C7,{ref:S,action:o,autoDestroy:s,builtinPlacements:p,getPopupContainer:c,hideAction:p1||[],maskMotion:N7(R||n.prefixCls,f),mouseLeaveDelay:.2,popup:N1(),popupAlign:i,popupClassName:N(_,{[`${J}-show-arrow`]:l,[M??""]:q}),popupMotion:{forceRender:!0,motionDeadline:300,motionName:O1(R||n.prefixCls,"slide-bottom-small"),...g},popupPlacement:G,popupStyle:P,popupVisible:q,prefixCls:J,showAction:Array.isArray(U)?U:[U],stretch:k1()?"minWidth":"",...x,onPopupAlign:I,onOpenChange:O},z())});process.env.NODE_ENV!=="production"&&(le.displayName="Drop");const se=e.forwardRef((r,t)=>{const n=V(),{children:o,prefixCls:i=n.prefixCls,...a}=r,l=e.useMemo(()=>n.getRootPrefixCls(i||n.prefixCls,"dropdown"),[n,i]);return e.createElement(le,{ref:t,...a,rootCls:l},o)});process.env.NODE_ENV!=="production"&&(se.displayName="Dropdown");let d2;const _7=r=>{d2={x:r.pageX,y:r.pageY},setTimeout(()=>{d2=null},100)};Pe()&&document.documentElement.addEventListener("click",_7,!0);function O7(r){const t=V(),{centered:n,children:o,className:i,closable:a=!0,closeIcon:l,focusTriggerAfterClose:s=!0,full:p,prefixCls:C=t.prefixCls,visible:d,onClose:c,onClosed:u,...f}=r,g=e.useMemo(()=>t.getRootPrefixCls(C||t.prefixCls,"modal"),[t,C]),L=e.useMemo(()=>O1(C||t.prefixCls,"fade"),[t.prefixCls,C]),M=e.useMemo(()=>O1(C||t.prefixCls,"zoom"),[t.prefixCls,C]);return e.createElement(d7,{className:N(i,{[`${g}-centered`]:n&&!p,[`${g}-full`]:p&&!n}),focusTriggerAfterClose:s,maskTransitionName:L,mousePosition:d2,prefixCls:g,transitionName:M,visible:d,...f,onClose:c,afterClose:u,classNames:{...f.classNames,section:N(`${g}-content`,f.classNames?.section)},closable:!1,closeIcon:null},a&&(l||e.createElement(ne,{className:N({[`${g}-close-default`]:!p,[`${g}-close-full`]:p}),component:"button",onClick:c})),o)}const x7={distance:180},ce=e.forwardRef((r,t)=>{const n=V(),{animation:o="slide",children:i,className:a,defaultOpen:l,destroyOnHidden:s,direction:p,getContainer:C=n.getPopupContainer,keyboard:d=!0,mask:c=!0,maskClosable:u=!0,motion:f,open:g,placement:L="right",prefixCls:M=n.prefixCls,push:y=x7,size:_,rootClassName:P,rootStyle:R,trigger:G,onClose:o1,...U}=r,[W,I]=e.useState(l),[t1,Y]=e.useState(l),x=g===void 0?t1:g,S=typeof f=="function"?f(L):f,w=e.useMemo(()=>n.getRootPrefixCls(M||n.prefixCls,"drawer"),[n,M]),j=e.useMemo(()=>N({[`${w}-${o}`]:o!==void 0,[`${w}-animation`]:x||W,[`${w}-large`]:_==="large",[`${w}-rtl`]:p==="rtl","no-mask":!c},P),[w,o,x,W,_,p,c,P]),q=e.useMemo(()=>N(`${w}-container`,{[`${w}-container-large`]:_==="large",[`${w}-container-${o}-${L}`]:L!==void 0&&["push","reveal"].includes(o)}),[w,_,L,o]),J=e.useMemo(()=>({onAppearPrepare:z=>{W1(`${w}-page`),c1(document.body,q),S?.onEnterPrepare?.(z)},onAppearStart:(z,p1)=>{["push","reveal"].includes(o)&&c1(document.body,N({[`${w}-container-animation`]:o!==void 0})),I(!0),S?.onAppearStart?.(z,p1)},onEnterPrepare:z=>{W1(`${w}-page`),c1(document.body,q),S?.onEnterPrepare?.(z)},onEnterStart:(z,p1)=>{["push","reveal"].includes(o)&&c1(document.body,N({[`${w}-container-animation`]:o!==void 0})),I(!0),S?.onAppearStart?.(z,p1)},onLeaveEnd:(z,p1)=>{p2(`${w}-page`),v1(document.body,q),I(!1),S?.onLeaveEnd?.(z,p1)},onLeavePrepare:z=>{["push","reveal"].includes(o)&&v1(document.body,N({[`${w}-container-animation`]:o!==void 0})),S?.onLeavePrepare?.(z)}}),[o,S,q,w]),O=e.useCallback(z=>{Y(!1),o1?.(z)},[o1]),Q=e.useCallback(()=>{Y(!1)},[]),X=e.useCallback(()=>{W1(`${w}-page`),c1(document.body,q),Y(!0)},[q,w]),N1=e.useCallback(()=>{p2(`${w}-page`),v1(document.body,q,`${w}-container-animation`)},[q,w]);e.useImperativeHandle(t,()=>({collapse:Q,expand:X,isOpen:x}),[Q,X,x]);const k1=e.useCallback(z=>({motionAppear:!0,motionEnter:!0,motionLeave:!0,motionName:O1(M||n.prefixCls,`drawer-${o}-${z}`),...S,...J}),[o,n.prefixCls,S,J,M]);return e.useEffect(()=>N1,[N1]),e.createElement(e.Fragment,null,G?.({collapse:Q,expand:X,isOpen:!!x}),e.createElement(p7,{className:a,destroyOnHidden:s,keyboard:d,getContainer:C,mask:c,maskClosable:u,maskMotion:{motionName:O1(M||n.prefixCls,"drawer-fade")},motion:k1,open:x,placement:L,prefixCls:w,push:y,rootClassName:j,rootStyle:{...R,display:x||W?"block":""},onClose:O,...U,classNames:{...U.classNames,section:N(`${w}-content`,U.classNames?.section)}},i))});process.env.NODE_ENV!=="production"&&(ce.displayName="Drawer");var m1;(function(r){r.Dark="dark",r.Light="light"})(m1||(m1={}));m1.Dark+"",m1.Light+"";const b7=e.createContext(null),V7="colorMode";e.memo(({children:r,defaultColorMode:t=m1.Dark,globalDarkClassName:n="tm-dark",globalLightClassName:o="tm-light",primaryColorDark:i,primaryColorLight:a,storageKey:l=V7})=>{const[s,p]=e.useState(()=>T1.get(l)||(t??m1.Dark)),C=e.useMemo(()=>({colorMode:s,logoColor:s===m1.Dark?a:i,setColorMode:c=>{p(c),T1.set(l,c)}}),[s,i,a,l]),d=e.useCallback(c=>{c.key===l&&c.newValue!=null&&p(c.newValue)},[l]);return e.useEffect(()=>{v1(document.documentElement,o,n),c1(document.documentElement,s===m1.Dark?o:n)},[s,n,o]),e.useEffect(()=>(e1()&&window.addEventListener("storage",d),()=>{e1()&&window.removeEventListener("storage",d)}),[d]),e.createElement(b7.Provider,{value:C},r)});const T7="span";function l1(r){const t=V(),{align:n,className:o,color:i,column:a,decoration:l,dropcap:s,italic:p,kind:C,prefixCls:d=t.prefixCls,size:c,transform:u,verticalAlign:f,weight:g,wrap:L,...M}=r,y=e.useMemo(()=>t.getRootPrefixCls(d||t.prefixCls,"text"),[t,d]),_=e.useMemo(()=>typeof n=="string"?`${y}-${n}`:G1(d||t.prefixCls,"align",n),[n,t.prefixCls,d,y]),P=e.useMemo(()=>typeof a=="number"?`${d||t.prefixCls}-column-1-${a}`:G1(d||t.prefixCls,"column-1",a),[a,t.prefixCls,d]);return e.createElement(s1,{className:N(P,_,{[`${d||t.prefixCls}-dropcap`]:s,[`${y}-${i}`]:i&&["muted","emphasis","primary","secondary","tertiary","success","warning","danger"].includes(i),[`${y}-${C}`]:C&&["meta","lead","base"].includes(C),[`${y}-${c}`]:c&&["xsmall","small","large"].includes(c),[`${y}-${u}`]:u&&["capitalize","uppercase","lowercase"].includes(u),[`${y}-${f}`]:f&&["top","middle","bottom","baseline"].includes(f),[`${y}-${g}`]:g&&["thin","light","normal","medium","semibold","bold","lighter","bolder"].includes(g),[`${y}-${L}`]:L&&["truncate","break","nowrap"].includes(L),[`${y}-decoration-none`]:l==="none",[`${y}-italic`]:p},o),component:T7,...M})}const Ce=e.createContext({getRootCls(){}}),I7="div",R2=new Map([["around","around"],["between","between"],["end","right"],["center","middle"],["start","left"],["stretch","stretch"]]),H2=new Map([["end","bottom"],["center","middle"],["start","top"],["stretch","stretch"]]),X1=new Map([["around","around"],["between","between"],["end","right"],["center","center"],["start","left"]]);function Z7(r){const t={};for(const n in r)X1.has(r[n])&&(t[n]=X1.get(r[n]));return t}function S7(r){const t=V(),{alignContent:n,alignItems:o,className:i,flexDirection:a,flexWrap:l,inline:s,justifyContent:p,prefixCls:C=t.prefixCls,...d}=r,c=e.useMemo(()=>t.getRootPrefixCls(C||t.prefixCls,"flex"),[t,C]),u=e.useMemo(()=>typeof p=="string"?X1.has(p)?`${c}-${X1.get(p)}`:"":G1(C||t.prefixCls,"flex",Z7(p||{})),[t.prefixCls,p,C,c]),f=e.useMemo(()=>({getRootCls(){return c}}),[c]);return e.createElement(Ce.Provider,{value:f},e.createElement(s1,{className:N({[c]:!s,[`${c}-inline`]:s,[`${c}-${H2.get(o)}`]:o&&H2.has(o),[`${c}-${a}`]:a!==void 0,[`${c}-${l}`]:l!==void 0,[`${c}-wrap-${R2.get(n)}`]:n&&R2.has(n)},u,i),component:I7,...d}))}const R7="div";function H7(r){const t=V(),{getRootCls:n}=e.useContext(Ce),{className:o,itemDimensions:i,order:a,prefixCls:l=n(),...s}=r,p=e.useMemo(()=>typeof a=="string"?`${l}-${a}`:G1(l||t.prefixCls,"flex",a),[t.prefixCls,a,l]);return e.createElement(s1,{className:N({[`${l}-${i}`]:i!==void 0},p,o),component:R7,...s})}const S1=S7;S1.Item=H7;const P7=[{cx:3,cy:3,fill:0,r:7},{cx:3,cy:13,fill:4,r:7},{cx:3,cy:23,fill:8,r:7},{cx:3,cy:33,fill:12,r:7},{cx:13,cy:3,fill:1,r:7},{cx:13,cy:13,fill:5,r:7},{cx:13,cy:23,fill:9,r:7},{cx:13,cy:33,fill:13,r:7},{cx:23,cy:3,fill:2,r:7},{cx:23,cy:13,fill:6,r:7},{cx:23,cy:23,fill:10,r:7},{cx:23,cy:33,fill:14,r:7},{cx:33,cy:3,fill:3,r:7},{cx:33,cy:13,fill:7,r:7},{cx:33,cy:23,fill:11,r:7},{cx:33,cy:33,fill:15,r:7}],A7={default:32,large:40,medium:36,small:24,xsmall:20};function B7(r){const t=r?!Number.isNaN(r*1):!1;return typeof r=="number"||t?r:A7[r??"default"]}function $7(r){const t=r.split(":")[1]??r.split("x")[1]??r,n=Math.floor((t.length>64?64:t.length)/16),o=[];for(let i=0;i<16;i++)o.push(`#${t[0]}${t[i*n]}${t[i*n+1]}${t[i*n+2]}${t[t.length-1]}${t[i*n+3]}`);return o}function N2(r){const t=V(),{address:n,className:o,size:i,tooltip:a}=r,l=e.useMemo(()=>$7(n),[n]),s=e.useMemo(()=>B7(i),[i]),p=e.useMemo(()=>`id${v(7,n)}`,[n]),C=e.useMemo(()=>a?t.getTooltipConfig(a):void 0,[t,a]);return e.createElement("svg",{className:o,fill:"none",height:s,viewBox:"0 0 36 36",width:s,xmlns:"http://www.w3.org/2000/svg",...C},e.createElement("g",{clipPath:`url(#${p})`},P7.map(({fill:d,...c})=>e.createElement("circle",{key:`${Object.values(c).join()}${d}`,...c,fill:l[d]}))),e.createElement("defs",null,e.createElement("clipPath",{id:p},e.createElement("rect",{width:36,height:36,rx:18,fill:"white"}))))}process.env.NODE_ENV!=="production"&&(N2.displayName="AccountIcon");const F7=Q1({everCoinIcon:({ratio:r,...t})=>{const n=v(7,"icon");return e.createElement("svg",{...B,...t,viewBox:"0 0 1200 1200",...m(20,20,r)},e.createElement("path",{d:"M0 600C0 268.629 268.63 0 600 0C931.373 0 1200 268.629 1200 600C1200 931.373 931.373 1200 600 1200C268.63 1200 0 931.373 0 600Z",className:"uk-preserve",fill:`url(#${n})`}),e.createElement("path",{d:"M459.3 300L187.5 574.792H629.321V1012.5L900 741.634V300H459.3Z",className:"uk-preserve",fill:"#fff"}),e.createElement("defs",null,e.createElement("linearGradient",{id:n,x1:1200,y1:-129529e-9,x2:109.123,y2:1082.26,gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FF6922"}),e.createElement("stop",{offset:"1",stopColor:"#6347F5"}))))},venomCoinIcon:({ratio:r,...t})=>{const n=v(),o=v(),i=v(),a=v(),l=v(),s=v(),p=v();return e.createElement("svg",{...B,...t,viewBox:"0 0 32 32",...m(20,20,r)},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${o})`}),e.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:32,height:32},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${i})`})),e.createElement("g",{mask:`url(#${n})`},e.createElement("g",{filter:`url(#${s})`},e.createElement("path",{className:"uk-preserve",d:"M7.84 5.762c8.1-1.384 16.821 3.77 19.481 11.51 2.66 7.741-1.75 15.138-9.849 16.522-8.099 1.383-16.82-3.77-19.48-11.511S-.258 7.145 7.84 5.762Z",fill:`url(#${a})`})),e.createElement("g",{filter:`url(#${p}})`},e.createElement("path",{className:"uk-preserve",d:"M27.178 22.05c-6.322 5.248-16.452 5.145-22.625-.229-6.174-5.373-6.054-13.984.269-19.232 6.322-5.247 16.452-5.145 22.625.229 6.174 5.374 6.054 13.984-.268 19.232Z",fill:`url(#${l})`}))),e.createElement("path",{className:"uk-preserve",d:"M23.117 6.044a3.647 3.647 0 0 0-1.714.147 3.49 3.49 0 0 0-1.43.91c-.742.79-.973 1.819-.795 2.85.162.929.376 1.872.424 2.767a9.704 9.704 0 0 1-.636 3.965c-.44 1.148-1.068 2.038-2.412 2.235-.1.015-.463.025-.566.03a4.633 4.633 0 0 1-.53-.029c-1.345-.197-1.978-1.087-2.418-2.242a9.706 9.706 0 0 1-.635-3.965c.048-.892.262-1.836.424-2.768.178-1.03-.053-2.06-.795-2.85a3.492 3.492 0 0 0-1.434-.908 3.647 3.647 0 0 0-1.716-.142C7.159 6.311 6.01 7.766 6 9.291a3.039 3.039 0 0 0 .485 1.668c.537.84 1.418 1.454 2.187 2.09.509.426 1.388 1.635 1.82 2.944.26.793.474 1.597.685 2.408.295 1.131.702 3.629.97 4.763.535 2.27 2.17 2.784 3.81 2.836h.059c1.64-.052 3.302-.567 3.837-2.837.267-1.134.672-3.633.97-4.762.212-.808.424-1.616.685-2.409.432-1.31 1.311-2.522 1.82-2.944.769-.638 1.649-1.25 2.187-2.09A3.04 3.04 0 0 0 26 9.29c-.01-1.529-1.153-2.984-2.883-3.246Z",fill:"#fff"}),e.createElement("defs",null,e.createElement("linearGradient",{id:o,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:i,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:a,x1:"8.64",y1:"32.48",x2:"12.754",y2:"20.464",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#8FEBFF"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("linearGradient",{id:l,x1:"14.431",y1:"1.402",x2:"14.179",y2:"26.309",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#49F150"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("filter",{id:s,x:"-12.783",y:"-4.463",width:"50.879",height:"48.481",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"})),e.createElement("filter",{id:p,x:"-10",y:"-11.28",width:"52",height:"47.2",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"}))))}});function m(r,t,n=1){return{height:r*n,width:t*n}}const B={fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q1(r){return Object.entries(r).reduce((t,[n,o])=>(t[n]=o,t),{})}const D7=Q1({tvm1BlockchainIcon:({ratio:r,...t})=>{const n=v(),o=v(),i=v(),a=v(),l=v(),s=v(),p=v();return e.createElement("svg",{...B,...t,viewBox:"0 0 32 32",...m(20,20,r)},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${o})`}),e.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:32,height:32},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${i})`})),e.createElement("g",{mask:`url(#${n})`},e.createElement("g",{filter:`url(#${s})`},e.createElement("path",{className:"uk-preserve",d:"M7.84 5.762c8.1-1.384 16.821 3.77 19.481 11.51 2.66 7.741-1.75 15.138-9.849 16.522-8.099 1.383-16.82-3.77-19.48-11.511S-.258 7.145 7.84 5.762Z",fill:`url(#${a})`})),e.createElement("g",{filter:`url(#${p}})`},e.createElement("path",{className:"uk-preserve",d:"M27.178 22.05c-6.322 5.248-16.452 5.145-22.625-.229-6.174-5.373-6.054-13.984.269-19.232 6.322-5.247 16.452-5.145 22.625.229 6.174 5.374 6.054 13.984-.268 19.232Z",fill:`url(#${l})`}))),e.createElement("path",{className:"uk-preserve",d:"M23.117 6.044a3.647 3.647 0 0 0-1.714.147 3.49 3.49 0 0 0-1.43.91c-.742.79-.973 1.819-.795 2.85.162.929.376 1.872.424 2.767a9.704 9.704 0 0 1-.636 3.965c-.44 1.148-1.068 2.038-2.412 2.235-.1.015-.463.025-.566.03a4.633 4.633 0 0 1-.53-.029c-1.345-.197-1.978-1.087-2.418-2.242a9.706 9.706 0 0 1-.635-3.965c.048-.892.262-1.836.424-2.768.178-1.03-.053-2.06-.795-2.85a3.492 3.492 0 0 0-1.434-.908 3.647 3.647 0 0 0-1.716-.142C7.159 6.311 6.01 7.766 6 9.291a3.039 3.039 0 0 0 .485 1.668c.537.84 1.418 1.454 2.187 2.09.509.426 1.388 1.635 1.82 2.944.26.793.474 1.597.685 2.408.295 1.131.702 3.629.97 4.763.535 2.27 2.17 2.784 3.81 2.836h.059c1.64-.052 3.302-.567 3.837-2.837.267-1.134.672-3.633.97-4.762.212-.808.424-1.616.685-2.409.432-1.31 1.311-2.522 1.82-2.944.769-.638 1.649-1.25 2.187-2.09A3.04 3.04 0 0 0 26 9.29c-.01-1.529-1.153-2.984-2.883-3.246Z",fill:"#fff"}),e.createElement("defs",null,e.createElement("linearGradient",{id:o,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:i,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:a,x1:"8.64",y1:"32.48",x2:"12.754",y2:"20.464",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#8FEBFF"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("linearGradient",{id:l,x1:"14.431",y1:"1.402",x2:"14.179",y2:"26.309",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#49F150"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("filter",{id:s,x:"-12.783",y:"-4.463",width:"50.879",height:"48.481",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"})),e.createElement("filter",{id:p,x:"-10",y:"-11.28",width:"52",height:"47.2",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"}))))},tvm42BlockchainIcon:({ratio:r,...t})=>{const n=v();return e.createElement("svg",{...B,...t,viewBox:"0 0 600 600",...m(20,20,r)},e.createElement("path",{d:"M300 600C465.685 600 600 465.685 600 300C600 134.315 465.685 0 300 0C134.315 0 0 134.315 0 300C0 465.685 134.315 600 300 600Z",fill:`url(#${n})`,className:"uk-preserve"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M322.598 505L445 383.512V155H216.488L95 277.5H322.5L322.598 505Z",fill:"#fff",className:"uk-preserve"}),e.createElement("defs",null,e.createElement("linearGradient",{id:n,x1:600,y1:226805e-9,x2:54.5601,y2:541.13,gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#FF6922"}),e.createElement("stop",{offset:1,stopColor:"#6347F5"}))))},tvm1000BlockchainIcon:({ratio:r,...t})=>{const n=v(),o=v(),i=v(),a=v(),l=v(),s=v(),p=v();return e.createElement("svg",{...B,...t,viewBox:"0 0 32 32",...m(20,20,r)},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${o})`}),e.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:32,height:32},e.createElement("circle",{className:"uk-preserve",cx:16,cy:16,r:16,fill:`url(#${i})`})),e.createElement("g",{mask:`url(#${n})`},e.createElement("g",{filter:`url(#${s})`},e.createElement("path",{className:"uk-preserve",d:"M7.84 5.762c8.1-1.384 16.821 3.77 19.481 11.51 2.66 7.741-1.75 15.138-9.849 16.522-8.099 1.383-16.82-3.77-19.48-11.511S-.258 7.145 7.84 5.762Z",fill:`url(#${a})`})),e.createElement("g",{filter:`url(#${p}})`},e.createElement("path",{className:"uk-preserve",d:"M27.178 22.05c-6.322 5.248-16.452 5.145-22.625-.229-6.174-5.373-6.054-13.984.269-19.232 6.322-5.247 16.452-5.145 22.625.229 6.174 5.374 6.054 13.984-.268 19.232Z",fill:`url(#${l})`}))),e.createElement("path",{className:"uk-preserve",d:"M23.117 6.044a3.647 3.647 0 0 0-1.714.147 3.49 3.49 0 0 0-1.43.91c-.742.79-.973 1.819-.795 2.85.162.929.376 1.872.424 2.767a9.704 9.704 0 0 1-.636 3.965c-.44 1.148-1.068 2.038-2.412 2.235-.1.015-.463.025-.566.03a4.633 4.633 0 0 1-.53-.029c-1.345-.197-1.978-1.087-2.418-2.242a9.706 9.706 0 0 1-.635-3.965c.048-.892.262-1.836.424-2.768.178-1.03-.053-2.06-.795-2.85a3.492 3.492 0 0 0-1.434-.908 3.647 3.647 0 0 0-1.716-.142C7.159 6.311 6.01 7.766 6 9.291a3.039 3.039 0 0 0 .485 1.668c.537.84 1.418 1.454 2.187 2.09.509.426 1.388 1.635 1.82 2.944.26.793.474 1.597.685 2.408.295 1.131.702 3.629.97 4.763.535 2.27 2.17 2.784 3.81 2.836h.059c1.64-.052 3.302-.567 3.837-2.837.267-1.134.672-3.633.97-4.762.212-.808.424-1.616.685-2.409.432-1.31 1.311-2.522 1.82-2.944.769-.638 1.649-1.25 2.187-2.09A3.04 3.04 0 0 0 26 9.29c-.01-1.529-1.153-2.984-2.883-3.246Z",fill:"#fff"}),e.createElement("defs",null,e.createElement("linearGradient",{id:o,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:i,x1:"2.609",y1:"4.348",x2:"26.435",y2:"28.87",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#649A66"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF"})),e.createElement("linearGradient",{id:a,x1:"8.64",y1:"32.48",x2:"12.754",y2:"20.464",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#8FEBFF"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("linearGradient",{id:l,x1:"14.431",y1:"1.402",x2:"14.179",y2:"26.309",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#49F150"}),e.createElement("stop",{offset:1,stopColor:"#2B4CCF",stopOpacity:0})),e.createElement("filter",{id:s,x:"-12.783",y:"-4.463",width:"50.879",height:"48.481",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"})),e.createElement("filter",{id:p,x:"-10",y:"-11.28",width:"52",height:"47.2",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feGaussianBlur",{stdDeviation:"5",result:"effect1_foregroundBlur_10890_5345"}))))},evm1BlockchainIcon:({ratio:r,...t})=>e.createElement("svg",{...B,...t,viewBox:"0 0 32 32",...m(20,20,r)},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("circle",{className:"uk-preserve",cx:"16",cy:"16",r:"16",fill:"#627EEA"}),e.createElement("g",{className:"uk-preserve",fill:"#FFF",fillRule:"nonzero"},e.createElement("path",{fillOpacity:".602",d:"M16.498 4v8.87l7.497 3.35z"}),e.createElement("path",{d:"M16.498 4L9 16.22l7.498-3.35z"}),e.createElement("path",{fillOpacity:".602",d:"M16.498 21.968v6.027L24 17.616z"}),e.createElement("path",{d:"M16.498 27.995v-6.028L9 17.616z"}),e.createElement("path",{fillOpacity:".2",d:"M16.498 20.573l7.497-4.353-7.497-3.348z"}),e.createElement("path",{fillOpacity:".602",d:"M9 16.22l7.498 4.353v-7.701z"})))),evm56BlockchainIcon:({ratio:r,...t})=>e.createElement("svg",{...B,...t,viewBox:"0 0 34 40",...m(20,20,r)},e.createElement("path",{className:"uk-preserve",d:"M17 0L6.56211 6.12683L10.3996 8.39024L17 4.52683L23.6004 8.39024L27.4379 6.12683L17 0Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M23.6004 11.5902L27.4379 13.8537V18.3805L20.8375 22.2439V29.9707L17 32.2341L13.1625 29.9707V22.2439L6.56211 18.3805V13.8537L10.3996 11.5902L17 15.4537L23.6004 11.5902Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M27.4379 21.5805V26.1073L23.6004 28.3707V23.8439L27.4379 21.5805Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M23.5621 31.5707L30.1625 27.7073V19.9805L34 17.7171V29.9707L23.5621 36.0976V31.5707Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M30.1625 12.2537L26.3251 9.99025L30.1625 7.72683L34 9.99025V14.5171L30.1625 16.7805V12.2537Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M13.1625 37.7366V33.2098L17 35.4732L20.8375 33.2098V37.7366L17 40L13.1625 37.7366Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M10.3996 28.3707L6.56211 26.1073V21.5805L10.3996 23.8439V28.3707Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M17 12.2537L13.1625 9.99025L17 7.72683L20.8375 9.99025L17 12.2537Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M7.67493 9.99025L3.83747 12.2537V16.7805L0 14.5171V9.99025L3.83747 7.72683L7.67493 9.99025Z",fill:"#F0B90B"}),e.createElement("path",{className:"uk-preserve",d:"M0 17.7171L3.83747 19.9805V27.7073L10.4379 31.5707V36.0976L0 29.9707V17.7171Z",fill:"#F0B90B"})),evm137BlockchainIcon:({ratio:r,...t})=>{const n=v();return e.createElement("svg",{...B,...t,viewBox:"0 0 252 252",...m(20,20,r)},e.createElement("mask",{id:"mask0_4864_1939",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"252",height:"252"},e.createElement("path",{className:"uk-preserve",d:"M125.999 251.394C195.253 251.394 251.393 195.253 251.393 126C251.393 56.7468 195.253 0.606079 125.999 0.606079C56.7462 0.606079 0.605469 56.7468 0.605469 126C0.605469 195.253 56.7462 251.394 125.999 251.394Z",fill:"white"})),e.createElement("g",{mask:"url(#mask0_4864_1939)"},e.createElement("path",{className:"uk-preserve",d:"M263.267 -11.2672H-11.2676V263.267H263.267V-11.2672Z",fill:`url(#paint0_linear_${n})`})),e.createElement("path",{className:"uk-preserve",d:"M162.264 153.059L197.741 132.574C199.62 131.489 200.782 129.471 200.782 127.301V86.3354C200.782 84.1696 199.615 82.1472 197.741 81.0618L162.264 60.5767C160.385 59.4912 158.056 59.4964 156.177 60.5767L120.7 81.0618C118.821 82.1472 117.659 84.1696 117.659 86.3354V159.546L92.781 173.908L67.9029 159.546V130.818L92.781 116.456L109.191 125.928V106.657L95.8222 98.9408C94.9006 98.4084 93.8459 98.1268 92.7758 98.1268C91.7058 98.1268 90.651 98.4084 89.7346 98.9408L54.2581 119.426C52.379 120.511 51.2168 122.529 51.2168 124.7V165.665C51.2168 167.83 52.3842 169.853 54.2581 170.938L89.7346 191.423C91.6085 192.504 93.9432 192.504 95.8222 191.423L131.299 170.943C133.178 169.858 134.34 167.836 134.34 165.67V92.4589L134.791 92.2029L159.218 78.0973L184.096 92.4589V121.187L159.218 135.549L142.834 126.087V145.359L156.177 153.064C158.056 154.145 160.385 154.145 162.264 153.064V153.059Z",fill:"white"}),e.createElement("defs",null,e.createElement("linearGradient",{id:`paint0_linear_${n}`,x1:"-61.4385",y1:"11.2966",x2:"221.974",y2:"184.732",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#A229C5"}),e.createElement("stop",{offset:"1",stopColor:"#7B3FE4"}))))},evm250BlockchainIcon:({ratio:r,...t})=>e.createElement("svg",{...B,...t,viewBox:"0 0 1024 1024",...m(20,20,r)},e.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},e.createElement("g",null,e.createElement("circle",{className:"uk-preserve",fill:"#1969FF",cx:"512",cy:"512",r:"512"}),e.createElement("path",{className:"uk-preserve",d:"M480.952632,162.820404 C498.202214,153.726532 524.449007,153.726532 541.698589,162.820404 L717.715301,255.615438 C728.104233,261.091936 733.809736,269.25319 734.831811,277.678216 L735,277.678216 L735,744.110155 C734.770819,753.300673 729.011717,762.429399 717.715301,768.384559 L541.698589,861.179741 C524.449007,870.27342 498.202214,870.27342 480.952632,861.179741 L304.936382,768.384559 C293.687466,762.4543 288.288954,753.261937 288.021607,744.110155 C287.994161,743.171274 287.991758,742.397481 288.020775,741.760186 L288.021607,280.818578 C287.995362,280.170216 287.995085,279.52462 288.02096,278.881791 L288.021607,277.678216 L288.100249,277.678216 C288.882053,269.16004 294.328618,261.207221 304.936382,255.615438 L480.952632,162.820404 Z M707,537 L541.644818,624.459967 C524.420262,633.571112 498.21155,633.571112 480.986994,624.459967 L316,537.194955 L316,742.669239 L480.986994,829.471349 C490.737056,834.688013 500.874684,839.770703 510.746553,839.992453 L511.315906,840 C521.168396,840.032183 530.733903,835.022485 540.433212,830.279812 L707,741.920834 L707,537 Z M260.423841,734 C260.423841,751.880605 262.483542,763.633063 266.573125,771.912197 C269.962755,778.774873 275.048664,784.019001 284.335203,790.400911 L284.865291,790.762639 C286.903313,792.149569 289.148339,793.602016 291.881192,795.308227 L295.103883,797.299574 L305,803.325293 L290.80629,827 L279.729986,820.250826 L277.868233,819.097358 C274.665666,817.102319 272.011205,815.389649 269.535301,813.704662 C243.068452,795.702251 233.197716,776.074834 233.002947,735.2439 L233,734 L260.423841,734 Z M498,413 C496.719282,413.440417 495.51884,413.951152 494.424509,414.530355 L318.676529,507.623888 C318.49208,507.721039 318.316212,507.818189 318.148833,507.91349 L318,507.999537 L318.275982,508.15868 L318.676529,508.376112 L494.424509,601.469645 C495.51884,602.048848 496.719282,602.559583 498,603 L498,413 Z M526,413 L526,603 C527.281635,602.559583 528.482071,602.048848 529.576397,601.469645 L705.322736,508.376112 C705.507277,508.278961 705.683513,508.181811 705.850522,508.08651 L706,507.999537 L705.724112,507.84132 L705.322736,507.623888 L529.576397,414.530355 C528.482071,413.951152 527.281635,413.440417 526,413 Z M707,311 L549,394 L707,477 L707,311 Z M316,311 L316,477 L474,394 L316,311 Z M529.422488,187.627114 C520.27514,182.790962 503.724952,182.790962 494.577605,187.627114 L318.677116,280.623711 C318.492507,280.721685 318.316486,280.817811 318.148962,280.913937 L318,280.999896 L318.276221,281.157949 L318.677116,281.376081 L494.577605,374.3724 C503.724952,379.2092 520.27514,379.2092 529.422488,374.3724 L705.322145,281.376081 C705.506847,281.278107 705.683237,281.181981 705.850392,281.086779 L706,280.999896 L705.723871,280.841843 L705.322145,280.623711 L529.422488,187.627114 Z M733.193821,197 L744.270251,203.749273 L746.131721,204.902466 C749.33418,206.896953 751.988718,208.610547 754.464885,210.294705 C780.931599,228.297503 790.802419,247.925124 790.997256,288.756099 L791,290 L763.576481,290 C763.576481,272.118455 761.516516,260.366907 757.426771,252.086842 C754.037707,245.224806 748.951824,239.980488 739.665515,233.599218 L739.134973,233.236751 C737.096961,231.850558 734.852221,230.398109 732.119016,228.691528 L728.896433,226.700086 L719,220.674731 L733.193821,197 Z",fill:"#FFFFFF",fillRule:"nonzero"})))),evm2001BlockchainIcon:({ratio:r,...t})=>e.createElement("svg",{...B,...t,viewBox:"0 0 32 32",...m(20,20,r)},e.createElement("path",{d:"M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",className:"uk-preserve",fill:"black"}),e.createElement("path",{d:"M27.1725 13.4449L29.0001 16.6088L19.3734 22.1675C19.3734 22.1675 13.4778 25.7307 9.23901 18.3845L12.2366 16.6548C12.2366 16.6548 14.1845 20.9604 17.5607 19.0051C20.9368 17.0497 27.1725 13.4449 27.1725 13.4449Z",className:"uk-preserve",fill:"white"}),e.createElement("path",{d:"M4.82765 18.3623L3 15.1984L12.8316 9.52244C12.8316 9.52244 18.7273 5.9592 22.9646 13.3054L19.967 15.0351C19.967 15.0351 18.0191 10.7295 14.6429 12.6848C11.2667 14.6402 4.82765 18.3623 4.82765 18.3623Z",className:"uk-preserve",fill:"white"}),e.createElement("path",{d:"M16.1854 18.2849C17.5121 18.2849 18.5876 17.2094 18.5876 15.8827C18.5876 14.556 17.5121 13.4805 16.1854 13.4805C14.8587 13.4805 13.7832 14.556 13.7832 15.8827C13.7832 17.2094 14.8587 18.2849 16.1854 18.2849Z",className:"uk-preserve",fill:"#FF931E"}),e.createElement("path",{d:"M7.70378 22